public abstract class Type extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static Type[] |
ALL_TYPES |
static Type |
ASCII |
static Type |
BYTE_VECTOR |
static Type |
DECIMAL |
static Type |
I16 |
static Type |
I32 |
static Type |
I64 |
static Type |
I8 |
static Type[] |
INTEGER_TYPES |
static Type |
STRING |
static Type |
U16 |
static Type |
U32 |
static Type |
U64 |
static Type |
U8 |
static Type |
UNICODE |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
abstract TypeCodec |
getCodec(Operator operator,
boolean optional) |
abstract ScalarValue |
getDefaultValue() |
String |
getName() |
static Map |
getRegisteredTypeMap() |
static Type |
getType(String typeName)
Return the type that is being searched for
|
ScalarValue |
getValue(byte[] bytes) |
ScalarValue |
getValue(byte[] bytes,
int offset,
int length) |
abstract ScalarValue |
getValue(String value) |
int |
hashCode() |
abstract boolean |
isValueOf(ScalarValue previousValue) |
String |
serialize(ScalarValue value) |
String |
toString() |
void |
validateValue(ScalarValue value) |
public static final Type U8
public static final Type U16
public static final Type U32
public static final Type U64
public static final Type I8
public static final Type I16
public static final Type I32
public static final Type I64
public static final Type STRING
public static final Type ASCII
public static final Type UNICODE
public static final Type BYTE_VECTOR
public static final Type DECIMAL
public static final Type[] ALL_TYPES
public static final Type[] INTEGER_TYPES
public Type(String typeName)
public static Type getType(String typeName)
typeName
- The type name that being searched forpublic String getName()
public String toString()
public String serialize(ScalarValue value)
public abstract ScalarValue getValue(String value)
public abstract ScalarValue getDefaultValue()
public abstract boolean isValueOf(ScalarValue previousValue)
public void validateValue(ScalarValue value)
public static Map getRegisteredTypeMap()
public ScalarValue getValue(byte[] bytes)
public ScalarValue getValue(byte[] bytes, int offset, int length)
Copyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.