Package org.apache.qpid.management.domain.model.type

Examples of org.apache.qpid.management.domain.model.type.Type


     */
    public void testGetTypeOk() throws UnknownTypeCodeException
    {
        TypeMapping mapping = new TypeMapping(TestConstants.VALID_CODE,new Uint8());
        Configuration.getInstance().addTypeMapping(mapping);
        Type type = Configuration.getInstance().getType(TestConstants.VALID_CODE);
       
        assertTrue(type instanceof Uint8);
    }
View Full Code Here


     * @return the type associated to the given code.
     * @throws UnknownTypeCodeException when the given code is not associated to any type.
     */
    public Type getType(int code) throws UnknownTypeCodeException
    {
        Type result = _typeMappings.get(code);
        if (result == null)
        {
            throw new UnknownTypeCodeException(code);
        }
        return result;
View Full Code Here

     *
     * @param mapping the type mapping that will be added.
     */
    void addTypeMapping(TypeMapping mapping) {
        int code = mapping.getCode();
        Type type = mapping.getType();
        String validatorClassName = mapping.getValidatorClassName();
        _typeMappings.put(code, type);
        _validators.put(type, validatorClassName);
       
        LOGGER.info(Messages.QMAN_000005_TYPE_MAPPING_CONFIGURED, code,type,validatorClassName);
View Full Code Here

     * @return the type associated to the given code.
     * @throws UnknownTypeCodeException when the given code is not associated to any type.
     */
    public Type getType(int code) throws UnknownTypeCodeException
    {
        Type result = _typeMappings.get(code);
        if (result == null)
        {
            throw new UnknownTypeCodeException(code);
        }
        return result;
View Full Code Here

     * @return the type associated to the given code.
     * @throws UnknownTypeCodeException when the given code is not associated to any type.
     */
    public Type getType(int code) throws UnknownTypeCodeException
    {
        Type result = _typeMappings.get(code);
        if (result == null)
        {
            throw new UnknownTypeCodeException(code);
        }
        return result;
View Full Code Here

TOP

Related Classes of org.apache.qpid.management.domain.model.type.Type

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.