org.omg.DynamicAny
Class FieldNameHelper

java.lang.Object
  extended by org.omg.DynamicAny.FieldNameHelper

public abstract class FieldNameHelper
extends Object

A helper for the FieldName. The fields NameValuePair.id, NameDynAnyPair.id and return values of methods current_member_name(), member_name() in several interfaces officially have the "FieldName" type. This type is directly mapped into java String and needs no helper. The helper is included only as a part of the formal standard.


Constructor Summary
FieldNameHelper()
           
 
Method Summary
static String extract(Any a)
          Extract the FieldName from Any ((uses Any.extract_string()).
static String id()
          Return the FieldName repository id.
static void insert(Any a, String that)
          Insert the FieldName into Any (uses Any.insert_string(java.lang.String)).
static String read(InputStream istream)
          Calls InputStream.read_string().
static TypeCode type()
          Return an alias typecode.
static void write(OutputStream ostream, String value)
          Calls OutputStream.write_string(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldNameHelper

public FieldNameHelper()
Method Detail

insert

public static void insert(Any a,
                          String that)
Insert the FieldName into Any (uses Any.insert_string(java.lang.String)).

Parameters:
a - the Any to insert into.
that - the string to insert.

extract

public static String extract(Any a)
Extract the FieldName from Any ((uses Any.extract_string()).

Parameters:
a - the Any to extract from.

type

public static TypeCode type()
Return an alias typecode.


id

public static String id()
Return the FieldName repository id.

Returns:
"IDL:omg.org/DynamicAny/FieldName:1.0", always.

read

public static String read(InputStream istream)
Calls InputStream.read_string().

Parameters:
istream - the stream to read from.

write

public static void write(OutputStream ostream,
                         String value)
Calls OutputStream.write_string(String).

Parameters:
ostream - the stream to write into.
value - the string (FieldName) value to write.