public final class AttributeType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTR_BITFIELD
Attribute type is bit filed
|
static int |
ATTR_BITSELECTOR
Attribute type is bit selector
|
static int |
ATTR_BOOLEAN
Attribute type is boolean
|
static int |
ATTR_BYTEARRAY
Attribute type is array of bytes
|
static int |
ATTR_DATE
Attribute type is Date
|
static int |
ATTR_DOUBLE
Attribute type is double
|
static int |
ATTR_INTEGER
Attribute type is int
|
static int |
ATTR_STRING
Attribute type is String
|
static int |
ATTR_TIME
Attribute type is Time
|
private static java.lang.String[] |
types
Static strings which must match defined types.
|
Constructor and Description |
---|
AttributeType() |
Modifier and Type | Method and Description |
---|---|
static int |
fromString(java.lang.String type)
Convert type name into type value.
|
static java.lang.String |
toString(int type)
Convert type code into humen-readable text string.
|
public static final int ATTR_INTEGER
public static final int ATTR_BOOLEAN
public static final int ATTR_STRING
public static final int ATTR_DOUBLE
public static final int ATTR_BYTEARRAY
public static final int ATTR_BITFIELD
public static final int ATTR_BITSELECTOR
public static final int ATTR_DATE
public static final int ATTR_TIME
private static java.lang.String[] types
public static java.lang.String toString(int type)
type
- Type code for which string representation is requested.public static int fromString(java.lang.String type)
type
- A string which represents type name.