|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.taggedvalue.TaggedValue
public class TaggedValue
A tagged value consists of a name and a string value.
| Field Summary |
|---|
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
TaggedValue()
Default constructor. |
|
TaggedValue(java.lang.String name,
java.lang.String value)
Value constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a clone of this object. |
int |
compareTo(java.lang.Object o)
Compares this object to another Object. |
void |
copyFrom(java.lang.Object source,
int copyMode)
Copies the values of the source object to this object. |
java.lang.String |
getDisplayText()
Gets text that can be used to display this object. |
java.lang.String |
getName()
Gets the name of the attribute. |
java.lang.String |
getValue()
Gets the value of the attribute. |
void |
setName(java.lang.String name)
Sets the name of the attribute. |
void |
setValue(java.lang.String value)
Sets the value of the attribute. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaggedValue()
public TaggedValue(java.lang.String name,
java.lang.String value)
name - Name of the attributevalue - Value of the attribute| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface Copyableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - If the cloning of one of the contained members failed
public void copyFrom(java.lang.Object source,
int copyMode)
throws java.lang.CloneNotSupportedException
copyFrom in interface Copyablesource - The source object. Must be of the same type as this object.copyMode - Determines if a deep copy, a first level copy or a shallow copy is to be
performed. See the constants of the org.openbp.common.generic.description.Copyable class.
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDisplayText()
getDisplayText in interface Displayablepublic int compareTo(java.lang.Object o)
setName(java.lang.String) values of the two objects.
Otherwise, it throws a ClassCastException (as TaggedValues are comparable only to other TaggedValues).
compareTo in interface java.lang.Comparableo - Object to be compared
java.lang.ClassCastException - if the argument is not a TaggedValue.public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getValue()
public void setValue(java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||