|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.Association
org.pf.util.NamedValue
org.pf.util.NamedText
public class NamedText
An association of a name string and a text value.
Both, name and value can never be null!
Access to key and value is provided by
| Constructor Summary | |
|---|---|
NamedText(java.lang.String name,
java.lang.String text)
Initialize the new instance with the given name and value. |
|
| Method Summary | |
|---|---|
NamedText |
copy()
Returns a copy of this object |
NamedText |
copyNamedText()
Returns a copy of this object |
java.lang.String |
text()
Returns the text (value) of the association. |
void |
text(java.lang.String newText)
Sets the text (value) of the association. |
void |
value(java.lang.Object newValue)
Sets the value of the association. |
void |
value(java.lang.String newValue)
Sets the value (text) of the association. |
| Methods inherited from class org.pf.util.NamedValue |
|---|
compareTo, copyNamedValue, key, key, name, name |
| Methods inherited from class org.pf.util.Association |
|---|
copyAssociation, equals, getKey, getValue, hashCode, key, setValue, toString, value |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamedText(java.lang.String name,
java.lang.String text)
| Method Detail |
|---|
public void value(java.lang.Object newValue)
value in class Associationpublic void value(java.lang.String newValue)
newValue - The new value (must not be null !)public void text(java.lang.String newText)
newText - The new text (must not be null !)public java.lang.String text()
public NamedText copy()
public NamedText copyNamedText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||