Package it.uniroma1.lcl.babelnet.data
Interface Taggable
-
- All Known Subinterfaces:
BabelSynset,Sense,Synset<S,E,T,G,X>
- All Known Implementing Classes:
BabelSense,WordNetSense
public interface TaggableA general interface for a taggable.- Author:
- natavio
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Tag>getTags()<T extends Tag>
Collection<T>getTags(Class<T> classTag)Returns the collection of the given class of thisTaggable.booleanisTaggedAs(Tag tag)Checks if the given tag are contained in thisTaggable.booleanisTaggedAs(Tag... tags)Checks if all the given tags are contained in thisTaggable.booleanisTaggedAs(Collection<Tag> tags)Checks if all the given tags are contained in thisTaggable.
-
-
-
Method Detail
-
getTags
Collection<Tag> getTags()
- Returns:
- the collection of
Tags
-
getTags
<T extends Tag> Collection<T> getTags(Class<T> classTag)
Returns the collection of the given class of thisTaggable.- Type Parameters:
T- theTagtype- 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 thisTaggable.- 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 thisTaggable.- Parameters:
tags- the tags of interest- Returns:
- true if all the given tags are contained in this
Taggable, false othwerwise
-
-