FileDocCategorySizeDatePackage
DynValueCommonImpl.javaAPI DocJava SE 5 API3882Fri Aug 26 14:54:20 BST 2005com.sun.corba.se.impl.dynamicany

DynValueCommonImpl

public abstract class DynValueCommonImpl extends DynAnyComplexImpl implements DynValueCommon

Fields Summary
protected boolean
isNull
Constructors Summary
private DynValueCommonImpl()

        this(null, (Any)null, false);
        isNull = true;
    
protected DynValueCommonImpl(com.sun.corba.se.spi.orb.ORB orb, org.omg.CORBA.Any any, boolean copyValue)

        super(orb, any, copyValue);
        isNull = checkInitComponents();
    
protected DynValueCommonImpl(com.sun.corba.se.spi.orb.ORB orb, org.omg.CORBA.TypeCode typeCode)

        super(orb, typeCode);
        isNull = true;
    
Methods Summary
public org.omg.DynamicAny.NameValuePair[]get_members()

        if (status == STATUS_DESTROYED) {
	    throw wrapper.dynAnyDestroyed() ;
        }
        if (isNull) {
            throw new InvalidValue();
        }
        checkInitComponents();
        return nameValuePairs;
    
public org.omg.DynamicAny.NameDynAnyPair[]get_members_as_dyn_any()

        if (status == STATUS_DESTROYED) {
	    throw wrapper.dynAnyDestroyed() ;
        }
        if (isNull) {
            throw new InvalidValue();
        }
        checkInitComponents();
        return nameDynAnyPairs;
    
public booleanis_null()

        return isNull;
    
public voidset_members(org.omg.DynamicAny.NameValuePair[] value)

        super.set_members(value);
        // If we didn't get an exception then this must be a valid non-null value
        isNull = false;
    
public voidset_members_as_dyn_any(org.omg.DynamicAny.NameDynAnyPair[] value)

        super.set_members_as_dyn_any(value);
        // If we didn't get an exception then this must be a valid non-null value
        isNull = false;
    
public voidset_to_null()

        isNull = true;
        clearData();
    
public voidset_to_value()

        if (isNull) {
            isNull = false;
            // the rest is done lazily
        }
        // else: there is nothing to do