Methods Summary |
---|
public int | component_count()
return 0;
|
private int | computeCurrentEnumeratorIndex(java.lang.String value)
int memberCount = memberCount();
for (int i=0; i<memberCount; i++) {
if (memberName(i).equals(value)) {
return i;
}
}
return NO_INDEX;
|
public org.omg.DynamicAny.DynAny | current_component()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
throw new TypeMismatch();
|
public java.lang.String | get_as_string()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
return memberName(currentEnumeratorIndex);
|
public int | get_as_ulong()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
return currentEnumeratorIndex;
|
private int | memberCount()
int memberCount = 0;
try {
memberCount = any.type().member_count();
} catch (BadKind bad) {
}
return memberCount;
|
private java.lang.String | memberName(int i)
String memberName = null;
try {
memberName = any.type().member_name(i);
} catch (BadKind bad) {
} catch (Bounds bounds) {
}
return memberName;
|
public void | set_as_string(java.lang.String value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
int newIndex = computeCurrentEnumeratorIndex(value);
if (newIndex == NO_INDEX) {
throw new InvalidValue();
}
currentEnumeratorIndex = newIndex;
any.insert_long(newIndex);
|
public void | set_as_ulong(int value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (value < 0 || value >= memberCount()) {
throw new InvalidValue();
}
currentEnumeratorIndex = value;
any.insert_long(value);
|