FileDocCategorySizeDatePackage
DynStructOperations.javaAPI DocJava SE 5 API5078Fri Aug 26 17:25:14 BST 2005org.omg.DynamicAny

DynStructOperations

public interface DynStructOperations implements org.omg.DynamicAny.DynAnyOperations
DynStruct objects support the manipulation of IDL struct and exception values. Members of the exceptions are handled in the same way as members of a struct.

Fields Summary
Constructors Summary
Methods Summary
public org.omg.CORBA.TCKindcurrent_member_kind()
Returns the TCKind associated with the member at the current position.

exception
TypeMismatch if the DynStruct represents an empty exception.
exception
InvalidValue if the current position does not indicate a member

public java.lang.Stringcurrent_member_name()
Returns the name of the member at the current position. This operation may return an empty string since the TypeCode of the value being manipulated may not contain the names of members.

exception
TypeMismatch if the DynStruct represents an empty exception.
exception
InvalidValue if the current position does not indicate a member

public org.omg.DynamicAny.NameValuePair[]get_members()
Returns a sequence of NameValuePairs describing the name and the value of each member in the struct associated with a DynStruct object. The sequence contains members in the same order as the declaration order of members as indicated by the DynStruct's TypeCode. The current position is not affected. The member names in the returned sequence will be empty strings if the DynStruct's TypeCode does not contain member names.

public org.omg.DynamicAny.NameDynAnyPair[]get_members_as_dyn_any()
Returns a sequence of NameDynAnyPairs describing the name and the value of each member in the struct associated with a DynStruct object. The sequence contains members in the same order as the declaration order of members as indicated by the DynStruct's TypeCode. The current position is not affected. The member names in the returned sequence will be empty strings if the DynStruct's TypeCode does not contain member names.

public voidset_members(org.omg.DynamicAny.NameValuePair[] value)
Initializes the struct data value associated with a DynStruct object from a sequence of NameValuePairs. The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise, if an empty sequence is passed, the current position is set to -1.

Members must appear in the NameValuePairs in the order in which they appear in the IDL specification of the struct as indicated by the DynStruct's TypeCode or they must be empty strings. The operation makes no attempt to assign member values based on member names.

exception
TypeMismatch if the member names supplied in the passed sequence do not match the corresponding member name in the DynStruct's TypeCode and they are not empty strings
exception
InvalidValue if the passed sequence has a number of elements that disagrees with the number of members as indicated by the DynStruct's TypeCode

public voidset_members_as_dyn_any(org.omg.DynamicAny.NameDynAnyPair[] value)
Initializes the struct data value associated with a DynStruct object from a sequence of NameDynAnyPairs. The operation sets the current position to zero if the passed sequences has non-zero length. Otherwise, if an empty sequence is passed, the current position is set to -1.

Members must appear in the NameDynAnyPairs in the order in which they appear in the IDL specification of the struct as indicated by the DynStruct's TypeCode or they must be empty strings. The operation makes no attempt to assign member values based on member names.

exception
TypeMismatch if the member names supplied in the passed sequence do not match the corresponding member name in the DynStruct's TypeCode and they are not empty strings
exception
InvalidValue if the passed sequence has a number of elements that disagrees with the number of members as indicated by the DynStruct's TypeCode