ecologylab.xml.types.scalar
Class CoordinatesType

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.types.scalar.ScalarType<T>
          extended by ecologylab.xml.types.scalar.ReferenceType<Coordinates>
              extended by ecologylab.xml.types.scalar.CoordinatesType

public class CoordinatesType
extends ReferenceType<Coordinates>

Type system entry for Coordinates. A very simple case.

Author:
Zachary O. Toups (touspz@gmail.com)

Field Summary
 
Fields inherited from class ecologylab.xml.types.scalar.ScalarType
DEFAULT_DELIMS, DEFAULT_VALUE, DEFAULT_VALUE_STRING
 
Constructor Summary
CoordinatesType()
          This constructor should only be called once per session, through a static initializer, typically in TypeRegistry.
 
Method Summary
 Coordinates 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.ReferenceType
appendValue, appendValue
 
Methods inherited from class ecologylab.xml.types.scalar.ScalarType
affordsInterestExpression, allowDelimitersInTokens, allowNewLines, 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

CoordinatesType

public CoordinatesType()
This constructor should only be called once per session, through a static initializer, typically in TypeRegistry.

To get the instance of this type object for use in translations, call TypeRegistry.get("java.lang.String").

Method Detail

getInstance

public Coordinates 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<Coordinates>
Parameters:
value - String representation of the instance.