Interface ITypedValue
- All Known Implementing Classes:
AbstractValueComposite,AbstractValueNumber,AbstractValuePrimitive,ValueArray,ValueBoolean,ValueByte,ValueCharacter,ValueDouble,ValueFloat,ValueInteger,ValueLong,ValueObject,ValueRaw,ValueShort,ValueString,ValueVoid
public interface ITypedValue
A typed value. Typed values can be either
primitives or
composites.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringArray value type.static final StringBoolean value type.static final StringByte value type.static final StringCharacter value type.static final StringDouble value type.static final StringFloat value type.static final StringInteger value type.static final StringLong integer value type.static final StringObject value type.static final StringRaw byte value type.static final StringShort integer value type.static final StringString value type. -
Method Summary
-
Field Details
-
TYPE_RAW
Raw byte value type.- See Also:
-
TYPE_BOOLEAN
Boolean value type.- See Also:
-
TYPE_BYTE
Byte value type.- See Also:
-
TYPE_CHARACTER
Character value type.- See Also:
-
TYPE_SHORT
Short integer value type.- See Also:
-
TYPE_INTEGER
Integer value type.- See Also:
-
TYPE_LONG
Long integer value type.- See Also:
-
TYPE_FLOAT
Float value type.- See Also:
-
TYPE_DOUBLE
Double value type.- See Also:
-
TYPE_STRING
String value type.- See Also:
-
TYPE_OBJECT
Object value type.- See Also:
-
TYPE_ARRAY
Array value type.- See Also:
-
-
Method Details
-
getTypeName
String getTypeName()Get the type name. One of TYPE_* or a language type (Ljava/util/ArrayList; for example)- Returns:
- type name
-
format
String format()Format the value to a readable string block.- Returns:
- formatted value
-
getValue
Object getValue()Get the value. The object returned depends ongetTypeName(). For raw types, the returned byte array contains the value bytes in the target byte order.- Returns:
- value object
-