|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.mit.csail.aeolus.api.AeolusLabel
public final class AeolusLabel
An AeolusLabel is a collection of AeolusTags.
Constructor Summary | |
---|---|
AeolusLabel()
Creates a new empty label |
Method Summary | |
---|---|
void |
addTag(AeolusTag t)
Adds tag t to this |
AeolusLabel |
clone()
Returns a copy of this |
boolean |
equals(AeolusLabel l)
Checks if this and l have the same tags |
boolean |
hasTag(AeolusTag t)
Checks if this contains tag t |
AeolusLabel |
intersection(AeolusLabel l)
Intersect this with l |
boolean |
isEmpty()
Checks whether this is empty |
boolean |
isSubsetOf(AeolusLabel l)
Checks if the tags in this are a subset of the tags in l |
java.util.List<AeolusTag> |
members()
Returns a list of tags in the label |
void |
removeTag(AeolusTag t)
Removes tag t from this |
int |
size()
Returns the number of tags in this label |
java.lang.String |
toString()
Returns the string representation of this label |
AeolusLabel |
union(AeolusLabel l)
Form the union of this and l |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AeolusLabel()
Method Detail |
---|
public void addTag(AeolusTag t)
public AeolusLabel clone()
clone
in class java.lang.Object
public boolean equals(AeolusLabel l)
l
-
public boolean hasTag(AeolusTag t)
public AeolusLabel intersection(AeolusLabel l)
public boolean isEmpty()
public boolean isSubsetOf(AeolusLabel l)
public java.util.List<AeolusTag> members()
public void removeTag(AeolusTag t)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public AeolusLabel union(AeolusLabel l)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |