Methods Summary |
---|
public void | assign(org.omg.DynamicAny.DynAny dyn_any)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
super.assign(dyn_any);
index = NO_INDEX;
|
public int | component_count()
return 0;
|
public org.omg.DynamicAny.DynAny | copy()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
// The flag "true" indicates copying the Any value
try {
return DynAnyUtil.createMostDerivedDynAny(any, orb, true);
} catch (InconsistentTypeCode ictc) {
return null; // impossible
}
|
public org.omg.DynamicAny.DynAny | current_component()
return null;
|
public void | destroy()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (status == STATUS_DESTROYABLE) {
status = STATUS_DESTROYED;
}
|
public boolean | equal(org.omg.DynamicAny.DynAny dyn_any)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (dyn_any == this) {
return true;
}
// If the other DynAny is a constructed one we don't want it to have
// to create its Any representation just for this test.
if ( ! any.type().equal(dyn_any.type())) {
return false;
}
//System.out.println("Comparing anys");
return any.equal(getAny(dyn_any));
|
public void | from_any(org.omg.CORBA.Any value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
super.from_any(value);
index = NO_INDEX;
|
public org.omg.CORBA.Any | get_any()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_any)
throw new TypeMismatch();
return any.extract_any();
|
public boolean | get_boolean()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_boolean)
throw new TypeMismatch();
return any.extract_boolean();
|
public char | get_char()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_char)
throw new TypeMismatch();
return any.extract_char();
|
public double | get_double()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_double)
throw new TypeMismatch();
return any.extract_double();
|
public org.omg.DynamicAny.DynAny | get_dyn_any()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_any)
throw new TypeMismatch();
// _REVISIT_ Copy value here?
try {
return DynAnyUtil.createMostDerivedDynAny(any.extract_any(), orb, true);
} catch (InconsistentTypeCode ictc) {
// The spec doesn't allow us to throw back this exception
// incase the anys any if of type Principal, native or abstract interface.
return null;
}
|
public float | get_float()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_float)
throw new TypeMismatch();
return any.extract_float();
|
public int | get_long()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_long)
throw new TypeMismatch();
return any.extract_long();
|
public long | get_longlong()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_longlong)
throw new TypeMismatch();
return any.extract_longlong();
|
public byte | get_octet()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_octet)
throw new TypeMismatch();
return any.extract_octet();
|
public org.omg.CORBA.Object | get_reference()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_objref)
throw new TypeMismatch();
return any.extract_Object();
|
public short | get_short()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_short)
throw new TypeMismatch();
return any.extract_short();
|
public java.lang.String | get_string()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_string)
throw new TypeMismatch();
return any.extract_string();
|
public org.omg.CORBA.TypeCode | get_typecode()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_TypeCode)
throw new TypeMismatch();
return any.extract_TypeCode();
|
public int | get_ulong()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_ulong)
throw new TypeMismatch();
return any.extract_ulong();
|
public long | get_ulonglong()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_ulonglong)
throw new TypeMismatch();
return any.extract_ulonglong();
|
public short | get_ushort()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_ushort)
throw new TypeMismatch();
return any.extract_ushort();
|
public java.io.Serializable | get_val()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
int kind = any.type().kind().value();
if (kind != TCKind._tk_value && kind != TCKind._tk_value_box)
throw new TypeMismatch();
return any.extract_Value();
|
public char | get_wchar()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_wchar)
throw new TypeMismatch();
return any.extract_wchar();
|
public java.lang.String | get_wstring()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_wstring)
throw new TypeMismatch();
return any.extract_wstring();
|
public void | insert_any(org.omg.CORBA.Any value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_any)
throw new TypeMismatch();
any.insert_any(value);
|
public void | insert_boolean(boolean value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_boolean)
throw new TypeMismatch();
any.insert_boolean(value);
|
public void | insert_char(char value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_char)
throw new TypeMismatch();
any.insert_char(value);
|
public void | insert_double(double value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_double)
throw new TypeMismatch();
any.insert_double(value);
|
public void | insert_dyn_any(org.omg.DynamicAny.DynAny value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_any)
throw new TypeMismatch();
// _REVISIT_ Copy value here?
any.insert_any(value.to_any());
|
public void | insert_float(float value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_float)
throw new TypeMismatch();
any.insert_float(value);
|
public void | insert_long(int value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_long)
throw new TypeMismatch();
any.insert_long(value);
|
public void | insert_longlong(long value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_longlong)
throw new TypeMismatch();
any.insert_longlong(value);
|
public void | insert_octet(byte value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_octet)
throw new TypeMismatch();
any.insert_octet(value);
|
public void | insert_reference(org.omg.CORBA.Object value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_objref)
throw new TypeMismatch();
any.insert_Object(value);
|
public void | insert_short(short value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_short)
throw new TypeMismatch();
any.insert_short(value);
|
public void | insert_string(java.lang.String value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_string)
throw new TypeMismatch();
if (value == null)
throw new InvalidValue();
// Throw InvalidValue if this is a bounded string and the length is exceeded
try {
if (any.type().length() > 0 && any.type().length() < value.length())
throw new InvalidValue();
} catch (BadKind bad) { // impossible
}
any.insert_string(value);
|
public void | insert_typecode(org.omg.CORBA.TypeCode value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_TypeCode)
throw new TypeMismatch();
any.insert_TypeCode(value);
|
public void | insert_ulong(int value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_ulong)
throw new TypeMismatch();
any.insert_ulong(value);
|
public void | insert_ulonglong(long value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_ulonglong)
throw new TypeMismatch();
any.insert_ulonglong(value);
|
public void | insert_ushort(short value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_ushort)
throw new TypeMismatch();
any.insert_ushort(value);
|
public void | insert_val(java.io.Serializable value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
int kind = any.type().kind().value();
if (kind != TCKind._tk_value && kind != TCKind._tk_value_box)
throw new TypeMismatch();
any.insert_Value(value);
|
public void | insert_wchar(char value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_wchar)
throw new TypeMismatch();
any.insert_wchar(value);
|
public void | insert_wstring(java.lang.String value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_wstring)
throw new TypeMismatch();
if (value == null)
throw new InvalidValue();
// Throw InvalidValue if this is a bounded string and the length is exceeded
try {
if (any.type().length() > 0 && any.type().length() < value.length())
throw new InvalidValue();
} catch (BadKind bad) { // impossible
}
any.insert_wstring(value);
|
public boolean | next()
return false;
|
public void | rewind()
|
public boolean | seek(int index)
return false;
|
public org.omg.CORBA.Any | to_any()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
return DynAnyUtil.copy(any, orb);
|