Class FormatXML1RuntimeHandler
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimeHandler
- All Implemented Interfaces:
FormatXMLContentHandlerType<RuntimeDescription>
public final class FormatXML1RuntimeHandler extends FormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
A content handler for parsing runtimes.
-
Constructor Summary
Constructors Constructor Description FormatXML1RuntimeHandler(java.util.Optional<java.net.URI> in_repository, org.xml.sax.ext.Locator2 in_locator)
Construct a handler. -
Method Summary
Modifier and Type Method Description protected void
onChildResultReceived(FormatXML1RuntimeChildType value)
A value was received from a child handler.protected java.util.Optional<RuntimeDescription>
onElementFinishDirectly(java.lang.String namespace, java.lang.String name, java.lang.String qname)
protected void
onElementStartDirectly(java.lang.String namespace, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attributes)
protected java.util.Map<java.lang.String,java.util.function.Supplier<FormatXMLContentHandlerType<FormatXML1RuntimeChildType>>>
onWantChildHandlers()
protected java.lang.String
onWantHandlerName()
Methods inherited from class com.io7m.coffeepick.runtime.format.xml.FormatXMLAbstractContentHandler
finish, get, locator, map, onCharacters, onElementFinished, onElementStarted, toString
-
Constructor Details
-
FormatXML1RuntimeHandler
public FormatXML1RuntimeHandler(java.util.Optional<java.net.URI> in_repository, org.xml.sax.ext.Locator2 in_locator)Construct a handler.- Parameters:
in_repository
- The repository URIin_locator
- The XML locator
-
-
Method Details
-
onWantChildHandlers
protected java.util.Map<java.lang.String,java.util.function.Supplier<FormatXMLContentHandlerType<FormatXML1RuntimeChildType>>> onWantChildHandlers()- Specified by:
onWantChildHandlers
in classFormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
-
onWantHandlerName
protected java.lang.String onWantHandlerName()- Specified by:
onWantHandlerName
in classFormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
-
onElementFinishDirectly
protected java.util.Optional<RuntimeDescription> onElementFinishDirectly(java.lang.String namespace, java.lang.String name, java.lang.String qname)- Specified by:
onElementFinishDirectly
in classFormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
-
onElementStartDirectly
protected void onElementStartDirectly(java.lang.String namespace, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXParseException- Specified by:
onElementStartDirectly
in classFormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
- Throws:
org.xml.sax.SAXParseException
-
onChildResultReceived
Description copied from class:FormatXMLAbstractContentHandler
A value was received from a child handler.- Specified by:
onChildResultReceived
in classFormatXMLAbstractContentHandler<FormatXML1RuntimeChildType,RuntimeDescription>
- Parameters:
value
- The result value
-