org.omg.CORBA

Class NameValuePair

public final class NameValuePair extends Object implements Serializable, IDLEntity

Holds the value, having the given name(id). This class is used by with {@link DynStruct} to name the fields of the record (structure).
Field Summary
Stringid
The name of the structure record.
Anyvalue
The value of the structure record.
Constructor Summary
NameValuePair()
Cretes an unitialised instance of the name-value pair.
NameValuePair(String an_id, Any a_value)
Creates the name-value pair, initialising the fields to the passed values.

Field Detail

id

public String id
The name of the structure record.

value

public Any value
The value of the structure record.

Constructor Detail

NameValuePair

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

NameValuePair

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

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