DynValueBoxImplpublic class DynValueBoxImpl extends DynValueCommonImpl implements DynValueBox
Methods Summary |
---|
public org.omg.CORBA.Any | get_boxed_value()
if (isNull) {
throw new InvalidValue();
}
checkInitAny();
return any;
| public DynAny | get_boxed_value_as_dyn_any()
if (isNull) {
throw new InvalidValue();
}
checkInitComponents();
return components[0];
| protected boolean | initializeAnyFromComponents()
any = getAny(components[0]);
return true;
| protected boolean | initializeComponentsFromAny()
try {
components = new DynAny[] {DynAnyUtil.createMostDerivedDynAny(any, orb, false)};
} catch (InconsistentTypeCode ictc) {
return false; // impossible
}
return true;
| protected boolean | initializeComponentsFromTypeCode()
try {
any = DynAnyUtil.createDefaultAnyOfType(any.type(), orb);
components = new DynAny[] {DynAnyUtil.createMostDerivedDynAny(any, orb, false)};
} catch (InconsistentTypeCode ictc) {
return false; // impossible
}
return true;
| public void | set_boxed_value(org.omg.CORBA.Any boxed)
if ( ! isNull && ! boxed.type().equal(this.type())) {
throw new TypeMismatch();
}
clearData();
any = boxed;
representations = REPRESENTATION_ANY;
index = 0;
isNull = false;
| public void | set_boxed_value_as_dyn_any(DynAny boxed)
if ( ! isNull && ! boxed.type().equal(this.type())) {
throw new TypeMismatch();
}
clearData();
components = new DynAny[] {boxed};
representations = REPRESENTATION_COMPONENTS;
index = 0;
isNull = false;
|
|