org.openfast.template.type
Class Type

java.lang.Object
  extended by org.openfast.template.type.Type
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DateType, SimpleType

public abstract class Type
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
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
           
 
Constructor Summary
Type(java.lang.String typeName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
abstract  TypeCodec getCodec(Operator operator, boolean optional)
           
abstract  ScalarValue getDefaultValue()
           
 java.lang.String getName()
           
static java.util.Map getRegisteredTypeMap()
           
static Type getType(java.lang.String typeName)
          Return the type that is being searched for
abstract  ScalarValue getValue(java.lang.String value)
           
 int hashCode()
           
abstract  boolean isValueOf(ScalarValue previousValue)
           
 java.lang.String serialize(ScalarValue value)
           
 java.lang.String toString()
           
 void validateValue(ScalarValue value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

U8

public static final Type U8

U16

public static final Type U16

U32

public static final Type U32

U64

public static final Type U64

I8

public static final Type I8

I16

public static final Type I16

I32

public static final Type I32

I64

public static final Type I64

STRING

public static final Type STRING

ASCII

public static final Type ASCII

UNICODE

public static final Type UNICODE

BYTE_VECTOR

public static final Type BYTE_VECTOR

DECIMAL

public static final Type DECIMAL

ALL_TYPES

public static final Type[] ALL_TYPES

INTEGER_TYPES

public static final Type[] INTEGER_TYPES
Constructor Detail

Type

public Type(java.lang.String typeName)
Method Detail

getType

public static Type getType(java.lang.String typeName)
Return the type that is being searched for

Parameters:
typeName - The type name that being searched for
Returns:
Return a Type object of the type that is being searched for

getName

public java.lang.String getName()
Returns:
Returns name as a string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns the name as a string

serialize

public java.lang.String serialize(ScalarValue value)

getCodec

public abstract TypeCodec getCodec(Operator operator,
                                   boolean optional)

getValue

public abstract ScalarValue getValue(java.lang.String value)

getDefaultValue

public abstract ScalarValue getDefaultValue()

isValueOf

public abstract boolean isValueOf(ScalarValue previousValue)

validateValue

public void validateValue(ScalarValue value)

getRegisteredTypeMap

public static java.util.Map getRegisteredTypeMap()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2006-2008 The LaSalle Technology Group, LLC. All Rights Reserved.