Class JpmsModuleUtilities.Parser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.inductiveautomation.ignition.client.launch.util.JpmsModuleUtilities.Parser
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- JpmsModuleUtilities
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParser
(String exitElementName, DefaultHandler caller) Creates a parser for JPMS Module requirements. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int end) void
endElement
(String uri, String localName, String name) void
startElement
(String uri, String localName, String name, 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
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
-
Field Details
-
allJpmsModules
-
-
Constructor Details
-
Parser
Creates a parser for JPMS Module requirements. IfexitElement
andcaller
are both Nonnull then when theexitElement
is reached the caller'sDefaultHandler.endElement(String, String, String)
is called. It is typically expected that the caller would resume parsing from here by setting itself as the default content handler viaXMLReader.setContentHandler(ContentHandler)
.
-
-
Method Details
-
getJpmsModules
-
startElement
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int end) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-