Package org.dmd.dmc

Examples of org.dmd.dmc.DmcValueException


        else if (value instanceof String){
            rc = new RuleCategoryREF();
            rc.setName(new StringName((String)value));
        }
        else
            throw(new DmcValueException("Object of class:" + value.getClass().getName() + " passed where a RuleCategoryREF/DMO or DmcObjectName expected."));
        return(rc);
    }
View Full Code Here


        else if (value instanceof UUIDName)
            rc = new UUIDNamedObjectREF((UUIDName)value);
        else if (value instanceof String)
            rc = new UUIDNamedObjectREF((String)value);
        else
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with UUIDNamedObjectREF, UUIDNamedObjectDMO or String expected."));

        return(rc);
    }
View Full Code Here

        else if (value instanceof CamelCaseName)
            rc = new EventREF((CamelCaseName)value);
        else if (value instanceof String)
            rc = new EventREF((String)value);
        else
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with EventREF, EventDMO or String expected."));

        return(rc);
    }
View Full Code Here

    protected ClientCountFilterRequestDMO typeCheck(Object value) throws DmcValueException {
        if (value instanceof ClientCountFilterRequestDMO)
            return((ClientCountFilterRequestDMO)value);
       
        throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with ClientCountFilterRequestDMO expected."));
    }
View Full Code Here

        else if (value instanceof StringName)
            rc = new TestOneLevelSubpackageExtendedREF((StringName)value);
        else if (value instanceof String)
            rc = new TestOneLevelSubpackageExtendedREF((String)value);
        else
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with TestOneLevelSubpackageExtendedREF, TestOneLevelSubpackageExtendedDMO or String expected."));

        return(rc);
    }
View Full Code Here

        else if (value instanceof String){
            rc = new EnumDefinitionREF();
            rc.setName(new StringName((String)value));
        }
        else
            throw(new DmcValueException("Object of class:" + value.getClass().getName() + " passed where a EnumDefinitionREF/DMO or DmcObjectName expected."));
        return(rc);
    }
View Full Code Here

        }
        else if (value instanceof String){
            rc = new EventSpec((String)value);
        }
        else{
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with EventSpec expected."));
        }
        return(rc);
    }
View Full Code Here

    protected PrimitiveHMDMO typeCheck(Object value) throws DmcValueException {
        if (value instanceof PrimitiveHMDMO)
            return((PrimitiveHMDMO)value);
       
        throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with PrimitiveHMDMO expected."));
    }
View Full Code Here

        else if (value instanceof String){
            rc = new ComplexTypeDefinitionREF();
            rc.setName(new StringName((String)value));
        }
        else
            throw(new DmcValueException("Object of class:" + value.getClass().getName() + " passed where a ComplexTypeDefinitionREF/DMO or DmcObjectName expected."));
        return(rc);
    }
View Full Code Here

  public void setNameString(String n) throws DmcValueException {
      try{
        name = Integer.valueOf(n);
      }
      catch(NumberFormatException e){
        throw(new DmcValueException("Invalid IntegerName value: " + n));
      }
  }
View Full Code Here

TOP

Related Classes of org.dmd.dmc.DmcValueException

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.