org.openfast.template.type
Class DateType

java.lang.Object
  extended by org.openfast.template.type.Type
      extended by org.openfast.template.type.DateType
All Implemented Interfaces:
java.io.Serializable

public class DateType
extends Type

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openfast.template.type.Type
ALL_TYPES, ASCII, BYTE_VECTOR, DECIMAL, I16, I32, I64, I8, INTEGER_TYPES, STRING, U16, U32, U64, U8, UNICODE
 
Constructor Summary
DateType(java.text.DateFormat dateFormat, TypeCodec dateCodec)
           
DateType(java.lang.String dateFormat, TypeCodec dateCodec)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 TypeCodec getCodec(Operator operator, boolean optional)
           
 ScalarValue getDefaultValue()
           
 ScalarValue getValue(java.lang.String value)
           
 int hashCode()
           
 boolean isValueOf(ScalarValue previousValue)
           
 java.lang.String serialize(ScalarValue value)
           
 
Methods inherited from class org.openfast.template.type.Type
getName, getRegisteredTypeMap, getType, toString, validateValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateType

public DateType(java.lang.String dateFormat,
                TypeCodec dateCodec)

DateType

public DateType(java.text.DateFormat dateFormat,
                TypeCodec dateCodec)
Method Detail

getDefaultValue

public ScalarValue getDefaultValue()
Specified by:
getDefaultValue in class Type

isValueOf

public boolean isValueOf(ScalarValue previousValue)
Specified by:
isValueOf in class Type

getCodec

public TypeCodec getCodec(Operator operator,
                          boolean optional)
Specified by:
getCodec in class Type

getValue

public ScalarValue getValue(java.lang.String value)
Specified by:
getValue in class Type

serialize

public java.lang.String serialize(ScalarValue value)
Overrides:
serialize in class Type

hashCode

public int hashCode()
Overrides:
hashCode in class Type

equals

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


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