public class XTMValidatingContentHandler extends Object implements ContentHandler
Modifier and Type | Field and Description |
---|---|
static String |
XTM_1_RNC |
static String |
XTM_2_RNC |
Constructor and Description |
---|
XTMValidatingContentHandler(ContentHandler child) |
XTMValidatingContentHandler(ContentHandler child,
XTMVersion version) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
protected ContentHandler |
createValidator() |
void |
endDocument() |
void |
endElement(String uri,
String name,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator docloc) |
void |
skippedEntity(String entityname) |
void |
startDocument() |
void |
startElement(String uri,
String name,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
public static final String XTM_1_RNC
public static final String XTM_2_RNC
public XTMValidatingContentHandler(ContentHandler child)
public XTMValidatingContentHandler(ContentHandler child, XTMVersion version)
protected ContentHandler createValidator()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void endElement(String uri, String name, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void skippedEntity(String entityname)
skippedEntity
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void setDocumentLocator(Locator docloc)
setDocumentLocator
in interface ContentHandler