mil.dod.th.ose.utils/src/mil/dod/th/ose/utils/ConfigurationUtils.java
public static Class<?> convertToClassType(final int type)
    {
        switch (type)
        {
            case AttributeDefinition.BOOLEAN:
                return Boolean.class;
            case AttributeDefinition.BYTE:
                return Byte.class;
            case AttributeDefinition.CHARACTER:
                return Character.class;
            case AttributeDefinition.DOUBLE:
                return Double.class;
            case AttributeDefinition.FLOAT:
                return Float.class;
            case AttributeDefinition.INTEGER:
                return Integer.class;
            case AttributeDefinition.LONG:
                return Long.class;
            case AttributeDefinition.SHORT:
                return Short.class;
            case AttributeDefinition.STRING:
                return String.class;
            default:
                return null;
        }
    }
/**
     * Method that converts the integer type stored in an attribute definition to a the appropriate class type.
     * 
     * @param type
     *          integer that represents the class type of the attribute definition.
     * @return
     *          the class type the integer represents.
     */
Method that converts the integer type stored in an attribute definition to a the appropriate class type.

@param type
integer that represents the class type of the attribute definition.
@return
the class type the integer represents.
Method that converts the integer type stored in an attribute definition to a the appropriate class type . @param type integer that represents the class type of the attribute definition . @return the class type the integer represents .
public static Class<?> convertToClassType(final int type)
    {
        switch (type)
        {
            case AttributeDefinition.BOOLEAN:
                return Boolean.class;
            case AttributeDefinition.BYTE:
                return Byte.class;
            case AttributeDefinition.CHARACTER:
                return Character.class;
            case AttributeDefinition.DOUBLE:
                return Double.class;
            case AttributeDefinition.FLOAT:
                return Float.class;
            case AttributeDefinition.INTEGER:
                return Integer.class;
            case AttributeDefinition.LONG:
                return Long.class;
            case AttributeDefinition.SHORT:
                return Short.class;
            case AttributeDefinition.STRING:
                return String.class;
            default:
                return null;
        }
    }
public static Class < ? > convertToClassType ( final int type ) { switch ( type ) { case AttributeDefinition . BOOLEAN : return Boolean . class ; case AttributeDefinition . BYTE : return Byte . class ; case AttributeDefinition . CHARACTER : return Character . class ; case AttributeDefinition . DOUBLE : return Double . class ; case AttributeDefinition . FLOAT : return Float . class ; case AttributeDefinition . INTEGER : return Integer . class ; case AttributeDefinition . LONG : return Long . class ; case AttributeDefinition . SHORT : return Short . class ; case AttributeDefinition . STRING : return String . class ; default : return null ; } }
Method that converts the integer type stored in an attribute definition to a the appropriate class type.
Method that converts the integer type stored in an attribute definition to a the appropriate class type .