Package org.dmd.dmt.shared.generated.dmo

Examples of org.dmd.dmt.shared.generated.dmo.TestBasicObjectFixedDMO


    /**
     * @return The TestBasicObjectFixedDMW object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1791)
    public TestBasicObjectFixedDMW getNthMvIdxUnnamedObj(int index){
        TestBasicObjectFixedDMO dmo = ((UnnamedObjMVIDXDMO) core).getNthMvIdxUnnamedObj(index);
        if (dmo == null)
            return(null);
       
        return((TestBasicObjectFixedDMW)dmo.getContainer());
    }
View Full Code Here


    /**
     * @return The TestBasicObjectFixedDMW object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1791)
    public TestBasicObjectFixedDMW getNthMvIdxUnnamedObj(int index){
        TestBasicObjectFixedDMO dmo = ((ParseTestDMO) core).getNthMvIdxUnnamedObj(index);
        if (dmo == null)
            return(null);
       
        return((TestBasicObjectFixedDMW)dmo.getContainer());
    }
View Full Code Here

    /**
     * @return A TestBasicObjectFixedDMW object.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1219)
    public TestBasicObjectFixedDMW getSvUnnamedObj(){
        TestBasicObjectFixedDMO dmo = ((ParseTestDMO) core).getSvUnnamedObj();
        if (dmo == null)
            return(null);
       
        return((TestBasicObjectFixedDMW)dmo.getContainer());
    }
View Full Code Here

    /**
     * @return The TestBasicObjectFixedDMW object at the specified index.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatMV(BaseDMWGeneratorNewest.java:1791)
    public TestBasicObjectFixedDMW getNthIndexedPlainObjRef(int index){
        TestBasicObjectFixedDMO dmo = ((ObjWithRefsDMO) core).getNthIndexedPlainObjRef(index);
        if (dmo == null)
            return(null);
       
        return((TestBasicObjectFixedDMW)dmo.getContainer());
    }
View Full Code Here

        value.serializeIt(dos);
    }

    @Override
    public TestBasicObjectFixedDMO deserializeValue(DmcInputStreamIF dis) throws Exception {
        TestBasicObjectFixedDMO rc = (TestBasicObjectFixedDMO)dis.getDMOInstance(dis);
        rc.deserializeIt(dis);
        return(rc);
    }
View Full Code Here

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpMVType(GenUtility.java:2363)
    public TestBasicObjectFixedDMO add(Object v) throws DmcValueException {
        synchronized(this){
            TestBasicObjectFixedDMO rc = typeCheck(v);
            if (value == null)
                value = new ArrayList<TestBasicObjectFixedDMO>();
            value.add(rc);
            return(rc);
        }
View Full Code Here

    public TestBasicObjectFixedDMO del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            TestBasicObjectFixedDMO key = null;
            TestBasicObjectFixedDMO rc = null;
            try {
                key = typeCheck(v);
            } catch (DmcValueException e) {
                throw(new IllegalStateException("Incompatible type passed to del():" + getName(),e));
            }
View Full Code Here

                throw(new IllegalStateException("Attribute: " + getAttributeInfo().name + " is not indexed. You can't use setMVnth()."));
           
            if ( (index < 0) || (index >= getAttributeInfo().indexSize))
                throw(new IllegalStateException("Index " + index + " for attribute: " + getAttributeInfo().name + " is out of range: 0 <= index < " + getAttributeInfo().indexSize));
           
            TestBasicObjectFixedDMO rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

        synchronized(this){
            if (value == null)
                return(false);

            try {
                TestBasicObjectFixedDMO val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2659)
    public TestBasicObjectFixedDMO add(Object v) throws DmcValueException {
        synchronized(this){
            TestBasicObjectFixedDMO rc = typeCheck(v);
            if (value == null)
                initValue();
       
            // If false is returned, we didn't modify the set, so return null
            if (!value.add(rc))
View Full Code Here

TOP

Related Classes of org.dmd.dmt.shared.generated.dmo.TestBasicObjectFixedDMO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.