com.simonstl.fragment
Class Characters
java.lang.Object
|
+--com.simonstl.fragment.DocComponent
|
+--com.simonstl.fragment.Characters
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Characters
- extends DocComponent
The Characters class stores information about textual fragments.
Version 0.01 is based on the Element class.
- Version:
- 0.01 1 July 2001
- Author:
- Simon St.Laurent
Method Summary |
void |
eventComponent(FragmentFilter handler)
Describes the content for this component as a series of SAX events. |
java.lang.String |
getKey()
Returns a key which can be used as a unique identifier for this component. |
boolean |
matchComponent(java.lang.String match)
Takes a string representing a component description and returns true or false to indicate
whether or not it matches this component. |
void |
print()
Prints a representation of the component to STDOUT |
java.lang.String |
toString()
Returns a representation of the component as a String. |
Methods inherited from class com.simonstl.fragment.DocComponent |
clone, getAfter, getBefore, getContent, getLocalName, getNsURI, getPrefix, setAfter, setBefore, setContent, setLocalName, setNsURI, setPrefix |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Characters
public Characters()
Characters
public Characters(java.lang.String newContent)
Characters
public Characters(Characters oldDocComponent)
matchComponent
public boolean matchComponent(java.lang.String match)
- Description copied from class:
DocComponent
- Takes a string representing a component description and returns true or false to indicate
whether or not it matches this component.
- Overrides:
matchComponent
in class DocComponent
getKey
public java.lang.String getKey()
- Description copied from class:
DocComponent
- Returns a key which can be used as a unique identifier for this component.
- Overrides:
getKey
in class DocComponent
eventComponent
public void eventComponent(FragmentFilter handler)
throws org.xml.sax.SAXException
- Description copied from class:
DocComponent
- Describes the content for this component as a series of SAX events. Note that
FragmentFilter
supports some events (startChars and endChars) which
are extensions to the existing SAX models and which serve to keep the stacks under control.
- Overrides:
eventComponent
in class DocComponent
print
public void print()
- Description copied from class:
DocComponent
- Prints a representation of the component to STDOUT
- Overrides:
print
in class DocComponent
toString
public java.lang.String toString()
- Description copied from class:
DocComponent
- Returns a representation of the component as a String.
- Overrides:
toString
in class DocComponent