Package org.apache.uima.util
Class XMLSerializer.CharacterValidatingContentHandler
java.lang.Object
org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler
- All Implemented Interfaces:
ContentHandler
,LexicalHandler
- Enclosing class:
XMLSerializer
public class XMLSerializer.CharacterValidatingContentHandler
extends Object
implements ContentHandler, LexicalHandler
This class wraps the standard content handler
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
void
endDTD()
void
endElement
(String uri, String localName, String qName) void
void
endPrefixMapping
(String prefix) int
int
void
ignorableWhitespace
(char[] ch, int start, int length) void
void
int
int
void
processingInstruction
(String target, String data) void
setDocumentLocator
(Locator locator) void
setIndentDelta
(int indentDelta) void
void
skippedEntity
(String name) void
void
void
void
startElement
(String uri, String localName, String qName, Attributes atts) void
startEntity
(String arg0) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
prevWasEndElement
public boolean prevWasEndElement -
prevNL
public boolean prevNL
-
-
Method Details
-
getIndent
public int getIndent() -
nextIndent
public int nextIndent() -
prevIndent
public int prevIndent() -
getIndentDelta
public int getIndentDelta() -
setIndentDelta
public void setIndentDelta(int indentDelta) -
lastOutputNodeAddLevel
public void lastOutputNodeAddLevel() -
setLastOutputNode
-
getLastOutputNode
-
getLastOutputNodePrevLevel
-
lastOutputNodeClearLevel
public void lastOutputNodeClearLevel() -
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-