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 Taggable
A 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
.boolean
isTaggedAs(Tag tag)
Checks if the given tag are contained in thisTaggable
.boolean
isTaggedAs(Tag... tags)
Checks if all the given tags are contained in thisTaggable
.boolean
isTaggedAs(Collection<Tag> tags)
Checks if all the given tags are contained in thisTaggable
.
-
-
-
Method Detail
-
getTags
Collection<Tag> getTags()
- Returns:
- the collection of
Tag
s
-
getTags
<T extends Tag> Collection<T> getTags(Class<T> classTag)
Returns the collection of the given class of thisTaggable
.- Type Parameters:
T
- theTag
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 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
-
-