Methods Summary |
---|
public java.lang.String[] | _ids()
return __ids;
|
public void | assign(org.omg.DynamicAny.DynAny dyn_any)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if ((any != null) && (! any.type().equal(dyn_any.type()))) {
throw new TypeMismatch();
}
any = dyn_any.to_any();
|
protected void | clearData()
// This clears the data part of the Any while keeping the TypeCode info.
any.type(any.type());
|
public abstract org.omg.DynamicAny.DynAny | copy()
|
public abstract void | destroy()
|
public abstract boolean | equal(org.omg.DynamicAny.DynAny dyn_any)
|
protected DynAnyFactory | factory()
try {
return (DynAnyFactory)orb.resolve_initial_references(
ORBConstants.DYN_ANY_FACTORY_NAME );
} catch (InvalidName in) {
throw new RuntimeException("Unable to find DynAnyFactory");
}
|
public void | from_any(org.omg.CORBA.Any value)
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if ((any != null) && (! any.type().equal(value.type()))) {
throw new TypeMismatch();
}
// If the passed Any does not contain a legal value
// (such as a null string), the operation raises InvalidValue.
Any tempAny = null;
try {
tempAny = DynAnyUtil.copy(value, orb);
} catch (Exception e) {
throw new InvalidValue();
}
if ( ! DynAnyUtil.isInitialized(tempAny)) {
throw new InvalidValue();
}
any = tempAny;
|
protected org.omg.CORBA.Any | getAny()
return any;
|
protected org.omg.CORBA.Any | getAny(DynAny dynAny)
if (dynAny instanceof DynAnyImpl)
return ((DynAnyImpl)dynAny).getAny();
else
// _REVISIT_ Nothing we can do about copying at this point
// if this is not our implementation of DynAny.
// To prevent this we would need another representation,
// one where component DynAnys are initialized but not the component Anys.
return dynAny.to_any();
|
protected void | setStatus(byte newStatus)
status = newStatus;
|
public abstract org.omg.CORBA.Any | to_any()
|
public org.omg.CORBA.TypeCode | type()
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
return any.type();
|
protected void | writeAny(org.omg.CORBA.portable.OutputStream out)
//System.out.println(this + " writeAny of type " + type().kind().value());
any.write_value(out);
|