Package org.dmd.dmp.shared.generated.dmo

Examples of org.dmd.dmp.shared.generated.dmo.SetRequestDMO


  @Override
  public void applyModification(DmcNamedObjectIF referringObject, DmcTypeModifier mods) throws DmcValueExceptionSet, DmcValueException {
    System.out.println("TestDataCache.applyModification() ");
    DmcObject target = (DmcObject) referringObject;
   
    SetRequestDMO request = new SetRequestDMO();
    request.setTarget(referringObject.getObjectName());
    request.add(mods.getAttributeInfo(), mods);
   
    System.out.println(request.toOIF());
   
    System.out.println("Before:\n" + target.toOIF(15) + "\n");
   
    target.applyModifier(mods);
   
View Full Code Here


    }
   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSVType(GenUtility.java:2010)
    public SetRequestDMO set(Object v) throws DmcValueException {
        SetRequestDMO 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

        value.serializeIt(dos);
    }

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

*/
abstract public class SetRequestDMW extends Request {

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:443)
    public SetRequestDMW() {
        super(new SetRequestDMO(), org.dmd.dmp.server.generated.DmpSchemaAG._SetRequest);
    }
View Full Code Here

        super(new SetRequestDMO(), org.dmd.dmp.server.generated.DmpSchemaAG._SetRequest);
    }

    // Generated from: org.dmd.dmg.generators.BaseDMWGeneratorNewest.dumpWrapper(BaseDMWGeneratorNewest.java:449)
    public SetRequestDMW(DmcTypeModifierMV mods) {
        super(new SetRequestDMO(mods), org.dmd.dmp.server.generated.DmpSchemaAG._SetRequest);
    }
View Full Code Here

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2659)
    public SetRequestDMO add(Object v) throws DmcValueException {
        synchronized(this){
            SetRequestDMO 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

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2676)
    public SetRequestDMO del(Object v){
        synchronized(this){
            SetRequestDMO rc = null;
            if (value == null)
                return(rc);
           
            try {
                rc = typeCheck(v);
View Full Code Here

        synchronized(this){
            if (value == null)
                return(false);
           
            try {
                SetRequestDMO val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

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

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

TOP

Related Classes of org.dmd.dmp.shared.generated.dmo.SetRequestDMO

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.