Class SimpleXMLReader<T>
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLReader<T>
- All Implemented Interfaces:
- ContentHandler,- DTDHandler,- EntityResolver,- ErrorHandler
- Direct Known Subclasses:
- HistoricalDataXmlReader,- TagXMLImporter.TagXMLReader
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) protected org.apache.log4j.LoggervoidendElement(String uri, String localName, String name) voidvoidprotected Elementprotected final LoggerExCan be called to get the value on the root element.protected voidparseString(String xml) Works the same as parseFile, but allows a String to be passed instead of a filevoidsetDocumentLocator(Locator locator) voidstartElement(String uri, String localName, String name, Attributes attributes) voidMethods inherited from class org.xml.sax.helpers.DefaultHandlerendDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandlerdeclaration
- 
Field Details- 
elemTypeDictionary
 
- 
- 
Constructor Details- 
SimpleXMLReaderprotected SimpleXMLReader()
 
- 
- 
Method Details- 
getLogger
- 
createLoggerprotected org.apache.log4j.Logger createLogger()
- 
initializeMappingsprotected void initializeMappings()
- 
setDocumentLocator- Specified by:
- setDocumentLocatorin interface- ContentHandler
- Overrides:
- setDocumentLocatorin class- DefaultHandler
 
- 
parseFile- Throws:
- Exception
 
- 
parseStringWorks the same as parseFile, but allows a String to be passed instead of a file- Throws:
- Exception
 
- 
getParsedValueCan be called to get the value on the root element. Should only be called after parsing is finished.
- 
getElementStack
- 
getCurrentElement
- 
startElementpublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException - Specified by:
- startElementin interface- ContentHandler
- Overrides:
- startElementin class- DefaultHandler
- Throws:
- SAXException
 
- 
endElement- Specified by:
- endElementin interface- ContentHandler
- Overrides:
- endElementin class- DefaultHandler
- Throws:
- SAXException
 
- 
characters- Specified by:
- charactersin interface- ContentHandler
- Overrides:
- charactersin class- DefaultHandler
- Throws:
- SAXException
 
- 
error- Specified by:
- errorin interface- ErrorHandler
- Overrides:
- errorin class- DefaultHandler
- Throws:
- SAXException
 
- 
warning- Specified by:
- warningin interface- ErrorHandler
- Overrides:
- warningin class- DefaultHandler
- Throws:
- SAXException
 
- 
fatalError- Specified by:
- fatalErrorin interface- ErrorHandler
- Overrides:
- fatalErrorin class- DefaultHandler
- Throws:
- SAXException
 
 
-