|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Labeled
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 |
---|
Label label()
void setLabel(Label label)
label
- The Label valueCollection labels()
void setLabels(Collection labels)
labels
- The set of Label values
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |