|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for Objects which have a Label
.
For instance, they may be hand-classified with one or more tags.
Note that it is for things that possess
a label via composition, rather than for things that implement
the Label
interface.
An implementor might choose to be read-only and throw an
UnsupportedOperationException on the setLabel(s)() commands, but should
minimally implement both commands to return Label(s).
Method Summary | |
Label |
label()
Returns the Object's label. |
Collection |
labels()
Gives back all labels for this thing. |
void |
setLabel(Label label)
Sets the label associated with this object. |
void |
setLabels(Collection labels)
Sets the labels associated with this object. |
Method Detail |
public Label label()
public void setLabel(Label label)
public Collection labels()
public void setLabels(Collection labels)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |