Package org.dmd.dmc

Examples of org.dmd.dmc.DmcValueException


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

        return(rc);
    }
View Full Code Here


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

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

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

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

        return(rc);
    }
View Full Code Here

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

        return(rc);
    }
View Full Code Here

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

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

        return(rc);
    }
View Full Code Here

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

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

        return(rc);
    }
View Full Code Here

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

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

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

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

        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.