Package org.dmd.dmc

Examples of org.dmd.dmc.DmcValueException


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


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

        return(rc);
    }
View Full Code Here

        }
        else if (value instanceof Integer){
            rc = RequestOptionEnum.get((Integer)value);
        }
        else{
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with RequestOptionEnum expected."));
        }

        if (rc == null){
            throw(new DmcValueException("Value: " + value.toString() + " is not a valid RequestOptionEnum value."));
        }

        return(rc);
    }
View Full Code Here

            else
                rc = input.substring(start+1);
      }
         else{
             if ( (start+1) >= input.length())
               throw (new DmcValueException("Missing value for field: " + fn + " in complex type: RuleParam"));
         
             int pos = -1;
             if (start > -1){
               start = start + 1;
               pos = input.indexOf(":", start);
             }
             else{
               start = 0;
               pos = input.indexOf(":");
             }
        
             if (pos == start){
               seppos.set(pos);
               return("");
             }
        
             if (pos == -1)
               throw (new DmcValueException("Missing value for field: " + fn + " in complex type: RuleParam"));
          
             rc = input.substring(start, pos).trim();
        
             seppos.set(pos);
        }
View Full Code Here

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

        }
        else if (value instanceof Integer){
            rc = SelectionTypeEnum.get((Integer)value);
        }
        else{
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with SelectionTypeEnum expected."));
        }

        if (rc == null){
            throw(new DmcValueException("Value: " + value.toString() + " is not a valid SelectionTypeEnum value."));
        }

        return(rc);
    }
View Full Code Here

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

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

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

    protected LogoutRequestDMO typeCheck(Object value) throws DmcValueException {
        if (value instanceof LogoutRequestDMO)
            return((LogoutRequestDMO)value);
       
        throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with LogoutRequestDMO expected."));
    }
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.