private void setBasicType(Class c)
    {
        if (Boolean.class.equals(c))
        {
            type = BasicTypes.BOOLEAN;
        }
        else if (Character.class.equals(c))
        {
            type = BasicTypes.CHARACTER;
        }
        else if (Byte.class.equals(c))
        {
            type = BasicTypes.BYTE;
        }
        else if (Short.class.equals(c))
        {
            type = BasicTypes.SHORT;
        }
        else if (Integer.class.equals(c))
        {
            type = BasicTypes.INTEGER;
        }
        else if (Long.class.equals(c))
        {
            type = BasicTypes.LONG;
        }
        else if (Float.class.equals(c))
        {
            type = BasicTypes.FLOAT;
        }
        else if (Double.class.equals(c))
        {
            type = BasicTypes.DOUBLE;
        }
        else
        {
            type = BasicTypes.OTHER;
        }
    }
private void setBasicType(Class c)
    {
        if (Boolean.class.equals(c))
        {
            type = BasicTypes.BOOLEAN;
        }
        else if (Character.class.equals(c))
        {
            type = BasicTypes.CHARACTER;
        }
        else if (Byte.class.equals(c))
        {
            type = BasicTypes.BYTE;
        }
        else if (Short.class.equals(c))
        {
            type = BasicTypes.SHORT;
        }
        else if (Integer.class.equals(c))
        {
            type = BasicTypes.INTEGER;
        }
        else if (Long.class.equals(c))
        {
            type = BasicTypes.LONG;
        }
        else if (Float.class.equals(c))
        {
            type = BasicTypes.FLOAT;
        }
        else if (Double.class.equals(c))
        {
            type = BasicTypes.DOUBLE;
        }
        else
        {
            type = BasicTypes.OTHER;
        }
    }
private void setBasicType ( Class c ) { if ( Boolean . class . equals ( c ) ) { type = BasicTypes . BOOLEAN ; } else if ( Character . class . equals ( c ) ) { type = BasicTypes . CHARACTER ; } else if ( Byte . class . equals ( c ) ) { type = BasicTypes . BYTE ; } else if ( Short . class . equals ( c ) ) { type = BasicTypes . SHORT ; } else if ( Integer . class . equals ( c ) ) { type = BasicTypes . INTEGER ; } else if ( Long . class . equals ( c ) ) { type = BasicTypes . LONG ; } else if ( Float . class . equals ( c ) ) { type = BasicTypes . FLOAT ; } else if ( Double . class . equals ( c ) ) { type = BasicTypes . DOUBLE ; } else { type = BasicTypes . OTHER ; } }
Sets the basic type of this type depending on the class.

@param c The underlying class.
Sets the basic type of this type depending on the class .