|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sf.molae.pipe.struts.LabelValueEntry
Implements a bean with a label and a value property on the
basis of a Map.Entry.
The key of the map entry is mapped to the value property.
The value of the map entry is mapped to the label property.
| Method Summary | |
static Collection |
asLabelValueCollection(Map map)
Implements a collection of beans with a label and a value property on the basis of a Map. |
String |
getLabel()
Returns the value of the underlying map entry. |
String |
getValue()
Returns the key of the underlying map entry. |
void |
setLabel(String label)
Sets the value of the underlying map entry. |
String |
toString()
Returns the string representation of the underlying map entry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public String getValue()
ClassCastException - if the key of the base entry is not a
Stringpublic String getLabel()
ClassCastException - if the value of the base entry is not a
StringsetLabel(String)public void setLabel(String label)
label - a String specifying the label valueUnsupportedOperationException - if the base map entry is
immutableClassCastException - depending on the base map entryIllegalArgumentException - depending on the base map entryNullPointerException - depending on the base map entrygetLabel()public String toString()
toString in class Objectpublic static Collection asLabelValueCollection(Map map)
Map.map - the base map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||