org.omg.DynamicAny
Class NameValuePair

java.lang.Object
  extended by org.omg.DynamicAny.NameValuePair
All Implemented Interfaces:
Serializable, IDLEntity

public final class NameValuePair
extends Object
implements Serializable, IDLEntity

Holds the value, having the given name(id). This class is used by with DynStruct to name the fields of the record (structure).

See Also:
Serialized Form

Field Summary
 String id
          The name of the structure record.
 Any value
          The value of the structure record.
 
Constructor Summary
NameValuePair()
          Cretes an unitialised instance of the name-value pair.
NameValuePair(String aName, Any aValue)
          Creates the name-value pair, initialising the fields to the passed values.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public Any value
The value of the structure record.


id

public String id
The name of the structure record.

Constructor Detail

NameValuePair

public NameValuePair()
Cretes an unitialised instance of the name-value pair.


NameValuePair

public NameValuePair(String aName,
                     Any aValue)
Creates the name-value pair, initialising the fields to the passed values.

Parameters:
aName - the name (also called id) of the name-value pair, normally the name of the structure field.
aValue - the value of the name-value pair.