ecologylab.xml.types.scalar
Class DateType

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.types.scalar.ScalarType<java.util.Date>
          extended by ecologylab.xml.types.scalar.DateType

public class DateType
extends ScalarType<java.util.Date>

Type system entry for Date.

Author:
Zachary O. Toups (toupsz@cs.tamu.edu)

Field Summary
 
Fields inherited from class ecologylab.xml.types.scalar.ScalarType
DEFAULT_DELIMS, DEFAULT_VALUE, DEFAULT_VALUE_STRING
 
Constructor Summary
DateType()
           
 
Method Summary
 java.util.Date getInstance(java.lang.String value)
          If this is a reference type, build an appropriate Object, given a String representation.
 
Methods inherited from class ecologylab.xml.types.scalar.ScalarType
affordsInterestExpression, allowDelimitersInTokens, allowNewLines, appendValue, appendValue, appendValue, appendValue, composedOfTerms, defaultValue, defaultValueLength, defaultValueString, delimeters, getClassName, getTypeClass, illegalChars, isDefaultValue, isDefaultValue, isFloatingPoint, isPrimitive, isReference, marshall, needsEscaping, setField, setFieldError, toString
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateType

public DateType()
Method Detail

getInstance

public java.util.Date getInstance(java.lang.String value)
Description copied from class: ScalarType
If this is a reference type, build an appropriate Object, given a String representation. If it is a primitive type, return a boxed value.

Specified by:
getInstance in class ScalarType<java.util.Date>
Parameters:
value - is interpreted as a SimpleDateFormat in the form EEE MMM dd kk:mm:ss zzz yyyy (for example Wed Aug 02 13:12:50 CDT 2006); if that does not work, then attempts to use the DateFormat for the current locale instead.
See Also:
ScalarType.getInstance(java.lang.String)