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

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


    }
   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSVType(GenUtility.java:2010)
    public TestBasicObjectFixedDMO set(Object v) throws DmcValueException {
        TestBasicObjectFixedDMO rc = typeCheck(v);
        // We only return a value if the value actually changed. This supports
        // the applyModifier() mechanism on DmcObject where we only return true
        // if something changed as a result of the modifier
        if (value == null)
            value = rc;
View Full Code Here


        super(oc);
    }

    @Override
    public TestBasicObjectFixedDMO getNew(){
        TestBasicObjectFixedDMO rc = new TestBasicObjectFixedDMO();
        return(rc);
    }
View Full Code Here

        return(rc);
    }

    @Override
    public TestBasicObjectFixedDMO getSlice(DmcSliceInfo info){
        TestBasicObjectFixedDMO rc = new TestBasicObjectFixedDMO();
        populateSlice(rc,info);
        return(rc);
    }
View Full Code Here

        modrec(true);
        setModifier(mods);
    }

    public TestBasicObjectFixedDMO getModificationRecorder(){
        TestBasicObjectFixedDMO rc = new TestBasicObjectFixedDMO();
        rc.setModifier(new DmcTypeModifierMV(MetaDMSAG.__modify));
        rc.modrec(true);
        return(rc);
    }
View Full Code Here

*/
public class TestBasicObjectFixedDMW extends DmwWrapper {

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:443)
    public TestBasicObjectFixedDMW() {
        super(new TestBasicObjectFixedDMO(), org.dmd.dmt.server.generated.DmtSchemaAG._TestBasicObjectFixed);
    }
View Full Code Here

        super(new TestBasicObjectFixedDMO(), org.dmd.dmt.server.generated.DmtSchemaAG._TestBasicObjectFixed);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:449)
    public TestBasicObjectFixedDMW(DmcTypeModifierMV mods) {
        super(new TestBasicObjectFixedDMO(mods), org.dmd.dmt.server.generated.DmtSchemaAG._TestBasicObjectFixed);
    }
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 = ((TestBasicObjectFixedDMO) core).getNthMvIdxUnnamedObj(index);
        if (dmo == null)
            return(null);
       
        return((TestBasicObjectFixedDMW)dmo.getContainer());
    }
View Full Code Here

   
    TestBasicNamedObjectFixedDMO  editObject = new TestBasicNamedObjectFixedDMO();
    editObject.setName(new StringName("object 1"));
    editObject.setSvString("single valued string");
   
    TestBasicObjectFixedDMO  obj1 = new TestBasicObjectFixedDMO();
    obj1.setSvBoolean(true);
    obj1.setSvString("object 1");
   
    editObject.setNthMvIdxUnnamedObj(1, obj1);
   
    binding.setObject(editObject);
   
    binding.getMvIdxUnnamedObj1().showDisplayValue();
   
    // This object is eqivalent to the first object value we set and we shouldn't
    // wind up with any modifications from the binding
    TestBasicObjectFixedDMO  obj2 = new TestBasicObjectFixedDMO();
    obj2.setSvBoolean(true);
    obj2.setSvString("object 1");
   
    binding.getMvIdxUnnamedObj1().setValue(obj2);
   
    if (binding.getModRec().getModifier().getMVSize() == 0){
      System.out.println("No mods 1");
    }
    else{
      System.out.println("Mods occurred 1");
      fail("No modifications should have been indicated");
    }
   
    TestBasicObjectFixedDMO  obj3 = new TestBasicObjectFixedDMO();
    obj3.setSvBoolean(true);
    obj3.setSvString("object 3");
   
    binding.getMvIdxUnnamedObj1().setValue(obj3);
   
    DmcTypeModifierMV mods = binding.getModRec().getModifier();
   
    if (mods.getMVSize() == 0){
      System.out.println("No mods 2");
    }
    else{
      System.out.println("Mods occurred 2");
      System.out.println(mods.modifierFormat());
    }
   
    ////////////////////////////////////////////////////////////////
    binding.setObject(editObject);
   
   
    TestBasicObjectFixedDMO  obj4 = new TestBasicObjectFixedDMO();
    obj4.setSvBoolean(true);
    obj4.setSvString("object 4");
   
    binding.getMvIdxUnnamedObj4().setValue(obj4);
   
    mods = binding.getModRec().getModifier();
   
View Full Code Here

    /**
     * @return A TestBasicObjectFixedDMW object.
     */
    // org.dmd.dmg.generators.BaseDMWGeneratorNewest.formatSV(BaseDMWGeneratorNewest.java:1219)
    public TestBasicObjectFixedDMW getSvUnnamedObj(){
        TestBasicObjectFixedDMO dmo = ((UnnamedObjSVDMO) 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 getNthMvIdxUnnamedObj(int index){
        TestBasicObjectFixedDMO dmo = ((TestBasicNamedObjectFixedDMO) core).getNthMvIdxUnnamedObj(index);
        if (dmo == null)
            return(null);
       
        return((TestBasicObjectFixedDMW)dmo.getContainer());
    }
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.