public abstract class AbstractXMLDescriptorHandler extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
AbstractXMLDescriptorHandler()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
before(String qName,
String currentPath,
Attributes attributes)
Node pre-treatment
|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String name) |
abstract AbstractDescriptor |
getDescriptor()
Get the parsed descriptor
|
protected String |
getElementValue()
Get the current element value
|
protected String |
getRequired(Attributes attributes,
String attributeName) |
protected abstract void |
onNode(String qName,
String currentPath)
Node treatment
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic abstract AbstractDescriptor getDescriptor()
protected String getElementValue()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected abstract void before(String qName, String currentPath, Attributes attributes) throws SAXException
SAXExceptionprotected abstract void onNode(String qName, String currentPath) throws SAXException
SAXExceptionprotected String getRequired(Attributes attributes, String attributeName) throws SAXException
SAXExceptionCopyright © 2019. All rights reserved.