dap4/d4cdm/src/main/java/dap4/cdm/CDMTypeFcns.java
static public Class
    cdmElementClass(DataType dt)
    {
        switch (dt) {
        case BOOLEAN:
            return boolean.class;
        case ENUM1:
        case BYTE:
            return byte.class;
        case CHAR:
            return char.class;
        case ENUM2:
        case SHORT:
            return short.class;
        case ENUM4:
        case INT:
            return int.class;
        case LONG:
            return long.class;
        case FLOAT:
            return float.class;
        case DOUBLE:
            return double.class;
        case STRING:
            return String.class;
        case OPAQUE:
            return ByteBuffer.class;
        case UBYTE:
            return byte.class;
        case USHORT:
            return short.class;
        case UINT:
            return int.class;
        case ULONG:
            return long.class;
        default:
            break;
        }
        return null;
    }
static public Class
    cdmElementClass(DataType dt)
    {
        switch (dt) {
        case BOOLEAN:
            return boolean.class;
        case ENUM1:
        case BYTE:
            return byte.class;
        case CHAR:
            return char.class;
        case ENUM2:
        case SHORT:
            return short.class;
        case ENUM4:
        case INT:
            return int.class;
        case LONG:
            return long.class;
        case FLOAT:
            return float.class;
        case DOUBLE:
            return double.class;
        case STRING:
            return String.class;
        case OPAQUE:
            return ByteBuffer.class;
        case UBYTE:
            return byte.class;
        case USHORT:
            return short.class;
        case UINT:
            return int.class;
        case ULONG:
            return long.class;
        default:
            break;
        }
        return null;
    }
static public Class cdmElementClass ( DataType dt ) { switch ( dt ) { case BOOLEAN : return boolean . class ; case ENUM1 : case BYTE : return byte . class ; case CHAR : return char . class ; case ENUM2 : case SHORT : return short . class ; case ENUM4 : case INT : return int . class ; case LONG : return long . class ; case FLOAT : return float . class ; case DOUBLE : return double . class ; case STRING : return String . class ; case OPAQUE : return ByteBuffer . class ; case UBYTE : return byte . class ; case USHORT : return short . class ; case UINT : return int . class ; case ULONG : return long . class ; default : break ; } return null ; }
/* Needed to implement Array.getElement()
/ * Needed to implement Array . getElement ()