Enum Constant and Description |
---|
BIG_INTEGER
Represents Big Integer
|
BOOLEAN
Represents Boolean
|
BYTE_STRING
Represents Byte String
|
DATE_TIME
Represent Date Time
|
ENUMERATION
Represents Enumeration
|
INTEGER
Represents Integer
|
INTERVAL
Represents Interval
|
LONG_INTEGER
Represents Long Integer
|
STRUCTURE
Represents Structure
|
TEXT_STRING
Represents Text String
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
static java.util.logging.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(java.lang.Object obj)
Get byte array value of the given object.
|
java.lang.String |
getName()
Get name of the OKVType.
|
java.lang.String |
getNameFromType(byte typ)
Get the name of KMIP type given the type value in bytes.
|
java.lang.Object |
getObject(byte[] bytes,
int offset,
int len)
Get the corresponding object given the value in byte array, offset of the
value and length of the byte value.
|
static OKVType |
getOKVType(byte typ)
Get the OKVType object given the type value in bytes.
|
byte |
getTyp()
Get the type.
|
static OKVType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OKVType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OKVType STRUCTURE
public static final OKVType INTEGER
public static final OKVType LONG_INTEGER
public static final OKVType BIG_INTEGER
public static final OKVType ENUMERATION
public static final OKVType BOOLEAN
public static final OKVType TEXT_STRING
public static final OKVType BYTE_STRING
public static final OKVType DATE_TIME
public static final OKVType INTERVAL
public static final java.lang.String CLASS_NAME
public static final java.util.logging.Logger logger
public static OKVType[] values()
for (OKVType c : OKVType.values()) System.out.println(c);
public static OKVType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte getTyp()
public java.lang.String getName()
public java.lang.String getNameFromType(byte typ)
typ
- KMIP typepublic java.lang.Object getObject(byte[] bytes, int offset, int len)
bytes
- object value in bytesoffset
- offsetlen
- length of the objectpublic byte[] getBytes(java.lang.Object obj)
obj
- Object to be converted to bytespublic static OKVType getOKVType(byte typ)
typ
- type value in bytes