ecologylab.xml.types.scalar
Class StringBuilderType

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

public class StringBuilderType
extends ReferenceType<java.lang.StringBuilder>

Type system entry for String. A very simple case.

Author:
andruid

Field Summary
 
Fields inherited from class ecologylab.xml.types.scalar.ScalarType
DEFAULT_DELIMS, DEFAULT_VALUE, DEFAULT_VALUE_STRING
 
Constructor Summary
StringBuilderType()
          This constructor should only be called once per session, through a static initializer, typically in TypeRegistry.
 
Method Summary
 void appendValue(java.lang.StringBuilder instance, java.lang.Appendable buffy, boolean needsEscaping)
           
 void appendValue(java.lang.StringBuilder instance, java.lang.StringBuilder buffy, boolean needsEscaping)
          Append the String directly, unless it needs escaping, in which case, call escapeXML.
 java.lang.StringBuilder getInstance(java.lang.String value)
          Return the value wrapped inside a StringBuilder.
 
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

StringBuilderType

public StringBuilderType()
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 java.lang.StringBuilder getInstance(java.lang.String value)
Return the value wrapped inside a StringBuilder. A call to avoid!

Specified by:
getInstance in class ScalarType<java.lang.StringBuilder>
Parameters:
value - String representation of the instance.
See Also:
ScalarType.getInstance(java.lang.String)

appendValue

public void appendValue(java.lang.StringBuilder instance,
                        java.lang.StringBuilder buffy,
                        boolean needsEscaping)
Description copied from class: ReferenceType
Append the String directly, unless it needs escaping, in which case, call escapeXML.

Overrides:
appendValue in class ReferenceType<java.lang.StringBuilder>

appendValue

public void appendValue(java.lang.StringBuilder instance,
                        java.lang.Appendable buffy,
                        boolean needsEscaping)
                 throws java.io.IOException
Overrides:
appendValue in class ReferenceType<java.lang.StringBuilder>
Throws:
java.io.IOException