Package net.timewalker.ffmq4.utils.xml
Class AbstractXMLDescriptorHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- net.timewalker.ffmq4.utils.xml.AbstractXMLDescriptorHandler
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
BridgeDescriptorHandler
public abstract class AbstractXMLDescriptorHandler extends DefaultHandler
AbstractXMLDescriptorHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractXMLDescriptorHandler()Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidbefore(String qName, String currentPath, Attributes attributes)Node pre-treatmentvoidcharacters(char[] ch, int start, int length)voidendElement(String uri, String localName, String name)abstract AbstractDescriptorgetDescriptor()Get the parsed descriptorprotected StringgetElementValue()Get the current element valueprotected StringgetRequired(Attributes attributes, String attributeName)protected abstract voidonNode(String qName, String currentPath)Node treatmentvoidstartElement(String uri, String localName, String qName, Attributes attributes)-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
getDescriptor
public abstract AbstractDescriptor getDescriptor()
Get the parsed descriptor
-
getElementValue
protected String getElementValue()
Get the current element value
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String name) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
before
protected abstract void before(String qName, String currentPath, Attributes attributes) throws SAXException
Node pre-treatment- Throws:
SAXException
-
onNode
protected abstract void onNode(String qName, String currentPath) throws SAXException
Node treatment- Throws:
SAXException
-
getRequired
protected String getRequired(Attributes attributes, String attributeName) throws SAXException
- Throws:
SAXException
-
-