|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||



public interface DynStructOperations

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.
| Method Summary | |
|---|---|
TCKind |
current_member_kind
Returns the TCKind associated with the member at the current position. |
String |
current_member_name
Returns the name of the member at the current position. |
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. |
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. |
void |
set_members_as_dyn_any
Initializes the struct data value associated with a DynStruct object from a sequence of NameDynAnyPairs. |
void |
set_members
Initializes the struct data value associated with a DynStruct object from a sequence of NameValuePairs. |
Methods inherited from interface org.omg.DynamicAny.DynAnyOperations ![]() |
|---|
assign |
| Method Detail |
|---|

String![]()
![]()
current_member_name() throws TypeMismatch
![]()
![]()
, InvalidValue
![]()
![]()
TypeMismatch - if the DynStruct represents an empty exception.
InvalidValue - if the current position does not indicate a member

TCKind![]()
![]()
current_member_kind() throws TypeMismatch
![]()
![]()
, InvalidValue
![]()
![]()
TypeMismatch - if the DynStruct represents an empty exception.
InvalidValue - if the current position does not indicate a member

NameValuePair![]()
![]()
[] get_members()

void set_members(NameValuePair![]()
![]()
[] value) throws TypeMismatch
![]()
![]()
, InvalidValue
![]()
![]()
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.
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
InvalidValue - if the passed sequence has a number of elements that disagrees
with the number of members as indicated by the DynStruct's TypeCode

NameDynAnyPair![]()
![]()
[] get_members_as_dyn_any()

void set_members_as_dyn_any(NameDynAnyPair![]()
![]()
[] value) throws TypeMismatch
![]()
![]()
, InvalidValue
![]()
![]()
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.
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
InvalidValue - if the passed sequence has a number of elements that disagrees
with the number of members as indicated by the DynStruct's TypeCode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||