Package org.dmd.dmc

Examples of org.dmd.dmc.DmcValueException


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


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

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

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

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

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

        return(rc);
    }
View Full Code Here

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

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

        return(rc);
    }
View Full Code Here

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

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

        return(rc);
    }
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.