Package org.forester.io.parsers.tol
Class TolXmlHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.forester.io.parsers.tol.TolXmlHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
attributeEqualsValue
(XmlElement element, String attributeName, String attributeValue) void
characters
(char[] chars, int start_index, int end_index) void
endElement
(String namespace_uri, String local_name, String qualified_name) static String
getAtttributeValue
(XmlElement element, String attributeName) void
void
startElement
(String namespace_uri, String local_name, String qualified_name, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
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
-
Method Details
-
characters
public void characters(char[] chars, int start_index, int end_index) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
endElement
public void endElement(String namespace_uri, String local_name, String qualified_name) throws SAXException - Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String namespace_uri, String local_name, String qualified_name, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
attributeEqualsValue
public static boolean attributeEqualsValue(XmlElement element, String attributeName, String attributeValue) -
getAtttributeValue
-