Interface Taggable

All Known Subinterfaces:
BabelSynset, Sense, Synset<S,E,T,G,X>
All Known Implementing Classes:
BabelSense, WordNetSense

public interface Taggable
A general interface for a taggable.
Author:
natavio
  • Method Details

    • getTags

      Collection<Tag> getTags()
      Returns the collection of Tags of this Taggable.
      Returns:
      the collection of Tags
    • getTags

      <T extends Tag> Collection<T> getTags(Class<T> classTag)
      Returns the collection of the given class of this Taggable.
      Type Parameters:
      T - the Tag type
      Parameters:
      classTag - the class for the search.
      Returns:
      the collection of the given class
    • isTaggedAs

      boolean isTaggedAs(Collection<Tag> tags)
      Checks if all the given tags are contained in this Taggable.
      Parameters:
      tags - the tags of interest
      Returns:
      true if all the given tags are contained in this Taggable, false othwerwise
    • isTaggedAs

      boolean isTaggedAs(Tag... tags)
      Checks if all the given tags are contained in this Taggable.
      Parameters:
      tags - the tags of interest
      Returns:
      true if all the given tags are contained in this Taggable, false othwerwise
    • isTaggedAs

      boolean isTaggedAs(Tag tag)
      Checks if the given tag are contained in this Taggable.
      Parameters:
      tag - the tag of interest
      Returns:
      true if all the given tags are contained in this Taggable, false othwerwise