public class NameValue
extends java.lang.Object
implements java.io.Serializable
They provide a generic mechanism to configure a component with no specific API.
For instance to specify custom structures used in lists, tables or trees ("artifacts").
Constructor and Description |
---|
NameValue(java.lang.String name,
java.lang.Object value)
Creates a new instance with the specified name and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the pair name/value.
|
java.lang.Object |
getValue()
Returns the value of the pair name/value.
|
void |
setValue(java.lang.Object value)
Changes the value of the pair name/value.
|
java.lang.String |
toString()
Returns the name of this object as string representation of the object.
|
public NameValue(java.lang.String name, java.lang.Object value)
name
- the name of the pair name/value.value
- the value of the pair name/value.public java.lang.String getName()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the new value.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.