ecologylab.semantics.model
Class TextChunk

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.xml.ElementState
          extended by ecologylab.xml.types.element.ArrayListState<T>
              extended by ecologylab.semantics.model.TextChunkBase<TextToken>
                  extended by ecologylab.semantics.model.TextChunk
All Implemented Interfaces:
ecologylab.xml.ClassTypes, ecologylab.xml.types.scalar.ScalarTypeInstanceConstants, ecologylab.xml.XMLTranslationExceptionTypes, java.lang.Cloneable, java.lang.Iterable<TextToken>, java.util.Collection<TextToken>, java.util.List<TextToken>

public class TextChunk
extends TextChunkBase<TextToken>

Author:
andruid

Nested Class Summary
 
Nested classes/interfaces inherited from class ecologylab.xml.ElementState
ecologylab.xml.ElementState.DeclarationStyle, ecologylab.xml.ElementState.xml_attribute, ecologylab.xml.ElementState.xml_bind_from, ecologylab.xml.ElementState.xml_bind_to, ecologylab.xml.ElementState.xml_class, ecologylab.xml.ElementState.xml_classes, ecologylab.xml.ElementState.xml_collection, ecologylab.xml.ElementState.xml_format, ecologylab.xml.ElementState.xml_leaf, ecologylab.xml.ElementState.xml_map, ecologylab.xml.ElementState.xml_nested, ecologylab.xml.ElementState.xml_nowrap, ecologylab.xml.ElementState.xml_other_tags, ecologylab.xml.ElementState.xml_scope, ecologylab.xml.ElementState.xml_tag, ecologylab.xml.ElementState.xml_text
 
Field Summary
 
Fields inherited from class ecologylab.semantics.model.TextChunkBase
CENTER, CHARS_PER_TOKEN, DEFAULT_POINT_SIZE, LEFT, RIGHT
 
Fields inherited from class ecologylab.xml.ElementState
CDATA, NORMAL, UTF16, UTF16_LE, UTF8
 
Fields inherited from interface ecologylab.xml.types.scalar.ScalarTypeInstanceConstants
STRING_SCALAR_TYPE, URL_SCALAR_TYPE
 
Fields inherited from interface ecologylab.xml.ClassTypes
BAD_FIELD, COLLECTION_ELEMENT, COLLECTION_SCALAR, IGNORED_ATTRIBUTE, IGNORED_ELEMENT, LEAF_NODE_VALUE, MAP_ELEMENT, MAP_SCALAR, NAME_SPACE_ATTRIBUTE, NAME_SPACE_LEAF_NODE, NAME_SPACE_MASK, NAME_SPACE_NESTED_ELEMENT, NAMESPACE_IGNORED_ELEMENT, NAMESPACE_TRIAL_ELEMENT, OTHER_NESTED_ELEMENT, REGULAR_ATTRIBUTE, REGULAR_NESTED_ELEMENT, ROOT, TEXT_NODE_VALUE, UNSET_TYPE, XMLNS_ATTRIBUTE, XMLNS_IGNORED
 
Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN
 
Constructor Summary
TextChunk(boolean doUnderline)
           
TextChunk(boolean doUnderlineArg, java.lang.CharSequence untokenized)
           
TextChunk(boolean doUnderlineArg, java.lang.CharSequence untokenized, ecologylab.xml.types.scalar.ScalarType scalarType)
           
TextChunk(boolean doUnderline, ecologylab.net.ParsedURL commonHref)
           
TextChunk(boolean doUnderline, ecologylab.xml.types.scalar.ScalarType scalarType)
           
TextChunk(TextChunk copyChunk)
           
 
Method Summary
 TextChunk newTextChunk(boolean doUnderlineArg, java.lang.CharSequence untokenized, ecologylab.xml.types.scalar.ScalarType scalarType)
          Factory method to call the correct constructor.
 TextToken newToken(java.lang.String string, java.lang.String delims, ecologylab.net.ParsedURL href)
          Create a new constituent TextToken of the correct subtype.
 TextToken newToken(java.lang.String string, java.lang.String delims, ecologylab.net.ParsedURL href, int style, int fontSize, int faceIndex)
          Create a new constituent TextToken of the correct subtype.
 TextToken newToken(TextToken prevToken)
          Create a new constituent TextToken of the correct subtype.
 
Methods inherited from class ecologylab.semantics.model.TextChunkBase
add, add, add, addTextToken, appendString, appendTextChunk, commonHref, emitHtml, emitHtml, empty, endLink, initDoubleUnderline, isGarbage, lastElement, lc, length, namedStyle, recycle, removeElementAt, scalarType, setNamedStyle, setStyleName, string, string, stringBuilder, styleName, textToken, toHTML, token, toString, toStringBuilder, toStringBuilder
 
Methods inherited from class ecologylab.xml.types.element.ArrayListState
add, addAll, addAll, clear, clone, contains, containsAll, get, getArrayList, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class ecologylab.xml.ElementState
buildDOM, buildDOM, buildDOM, buildDOM, buildDOM, buildDOMFromXMLCharSequence, buildDOMFromXMLString, checkAnnotation, createParentDirs, getChildFieldAccessors, getElementStateById, getFieldDescriptors, getNestedNameSpace, getTextNodeString, hasScalarTextField, lookupNestedNameSpace, parent, propagateInheritedValues, setDeclarationStyle, setParent, setUseDOMForTranslateTo, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXML, translateFromXMLCharSequence, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOM, translateFromXMLDOMCharSequence, translateFromXMLDOMCharSequence, translateFromXMLRootNode, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateFromXMLSAX, translateToDOM, translateToXML, translateToXML, translateToXML, translateToXML, writePrettyXML, writePrettyXML, writePrettyXML
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, 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, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

TextChunk

public TextChunk(boolean doUnderline,
                 ecologylab.net.ParsedURL commonHref)
Parameters:
doUnderline -
commonHref -

TextChunk

public TextChunk(boolean doUnderline)
Parameters:
doUnderline -

TextChunk

public TextChunk(boolean doUnderline,
                 ecologylab.xml.types.scalar.ScalarType scalarType)
Parameters:
doUnderline -
scalarType -

TextChunk

public TextChunk(boolean doUnderlineArg,
                 java.lang.CharSequence untokenized)
Parameters:
doUnderlineArg -
untokenized -

TextChunk

public TextChunk(boolean doUnderlineArg,
                 java.lang.CharSequence untokenized,
                 ecologylab.xml.types.scalar.ScalarType scalarType)
Parameters:
doUnderlineArg -
untokenized -
scalarType -

TextChunk

public TextChunk(TextChunk copyChunk)
Parameters:
copyChunk -
Method Detail

newTextChunk

public TextChunk newTextChunk(boolean doUnderlineArg,
                              java.lang.CharSequence untokenized,
                              ecologylab.xml.types.scalar.ScalarType scalarType)
Factory method to call the correct constructor.

Specified by:
newTextChunk in class TextChunkBase<TextToken>
Parameters:
doUnderlineArg -
untokenized -
scalarType -
Returns:

newToken

public TextToken newToken(java.lang.String string,
                          java.lang.String delims,
                          ecologylab.net.ParsedURL href)
Description copied from class: TextChunkBase
Create a new constituent TextToken of the correct subtype.

Specified by:
newToken in class TextChunkBase<TextToken>
Returns:

newToken

public TextToken newToken(TextToken prevToken)
Description copied from class: TextChunkBase
Create a new constituent TextToken of the correct subtype.

Specified by:
newToken in class TextChunkBase<TextToken>
Returns:

newToken

public TextToken newToken(java.lang.String string,
                          java.lang.String delims,
                          ecologylab.net.ParsedURL href,
                          int style,
                          int fontSize,
                          int faceIndex)
Description copied from class: TextChunkBase
Create a new constituent TextToken of the correct subtype.

Specified by:
newToken in class TextChunkBase<TextToken>
Returns: