|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Labeled
Interface for Objects that have a label, whose label is an Object. There are only two methods: Object label() and Collection labels(). If there is only one label, labels() will return a collection of one label. If there are multiple labels, label() will return the primary label, or a consistent arbitrary label if there is not primary label.
Method Summary | |
---|---|
java.lang.Object |
label()
Returns the primary label for this Object, or null if none have been set. |
java.util.Collection |
labels()
Returns the complete list of labels for this Object, which may be empty. |
Method Detail |
---|
java.lang.Object label()
java.util.Collection labels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |