opendap/src/main/java/opendap/dap/Attribute.java
public static final int getTypeVal(String s)
    {

        if(s.equalsIgnoreCase("Container"))
            return CONTAINER;
        else if(s.equalsIgnoreCase("Byte"))
            return BYTE;
        else if(s.equalsIgnoreCase("Int16"))
            return INT16;
        else if(s.equalsIgnoreCase("UInt16"))
            return UINT16;
        else if(s.equalsIgnoreCase("Int32"))
            return INT32;
        else if(s.equalsIgnoreCase("UInt32"))
            return UINT32;
        else if(s.equalsIgnoreCase("Float32"))
            return FLOAT32;
        else if(s.equalsIgnoreCase("Float64"))
            return FLOAT64;
        else if(s.equalsIgnoreCase("String"))
            return STRING;
        else if(s.equalsIgnoreCase("URL"))
            return URL;
        else
            return UNKNOWN;
    }
public static final int getTypeVal(String s)
    {

        if(s.equalsIgnoreCase("Container"))
            return CONTAINER;
        else if(s.equalsIgnoreCase("Byte"))
            return BYTE;
        else if(s.equalsIgnoreCase("Int16"))
            return INT16;
        else if(s.equalsIgnoreCase("UInt16"))
            return UINT16;
        else if(s.equalsIgnoreCase("Int32"))
            return INT32;
        else if(s.equalsIgnoreCase("UInt32"))
            return UINT32;
        else if(s.equalsIgnoreCase("Float32"))
            return FLOAT32;
        else if(s.equalsIgnoreCase("Float64"))
            return FLOAT64;
        else if(s.equalsIgnoreCase("String"))
            return STRING;
        else if(s.equalsIgnoreCase("URL"))
            return URL;
        else
            return UNKNOWN;
    }
Returns the attribute type as a <code>String</code>.

@return the attribute type <code>String</code>.