|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openadaptor.simplexml.XToken
org.openadaptor.simplexml.XText
org.openadaptor.simplexml.XWhitespace
public class XWhitespace
XWhitespace - abstract superclass for the various simplexml token classes
Field Summary |
---|
Fields inherited from class org.openadaptor.simplexml.XText |
---|
text, xmlText |
Fields inherited from class org.openadaptor.simplexml.XToken |
---|
AMPERSAND, log, RCARET |
Constructor Summary | |
---|---|
XWhitespace(XScanner scanner)
Constructs an XWhitespace instance from scanner. |
Method Summary | |
---|---|
boolean |
equals(XToken other)
Returns true if other is XWhitespace, or XText containing whitespace. |
boolean |
isWhitespace()
Returns true if the text contains only whitespace. |
boolean |
matches(XToken other)
Returns true if other is whitespace. |
java.lang.String |
toString()
Returns a string containing the whitespace characters. |
void |
toWriter(java.io.Writer writer)
Writes the whitespace text to writer. |
Methods inherited from class org.openadaptor.simplexml.XText |
---|
fromScanner, getText, getTrimmedText, getXmlText, grab, grab, prepareForRelease, printStats, release, setText, textToXml, xmlToText |
Methods inherited from class org.openadaptor.simplexml.XToken |
---|
_grabStringBuffer, _releaseStringBuffer, convertToPlaintext, getClassName, isReleased, printDebug, setReleased, toWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XWhitespace(XScanner scanner) throws java.io.IOException, XParserException
java.io.IOException
XParserException
Method Detail |
---|
public boolean isWhitespace()
XText
isWhitespace
in class XText
public void toWriter(java.io.Writer writer) throws java.io.IOException
toWriter
in class XText
writer
- Output stream.
java.io.IOException
public java.lang.String toString()
toString
in class XText
XText.getXmlText()
public boolean matches(XToken other)
matches
in class XText
other
- XToken to be compared.
other.- See Also:
equals(org.openadaptor.simplexml.XToken)
public boolean equals(XToken other)
equals
in class XText
other
- XToken to be compared.
other.- See Also:
XToken.matches(org.openadaptor.simplexml.XToken)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |