Class FormatXML1RuntimesHandler
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
com.io7m.coffeepick.runtime.format.xml.FormatXML1RuntimesHandler
- All Implemented Interfaces:
FormatXMLContentHandlerType<java.util.List<RuntimeDescription>>
public final class FormatXML1RuntimesHandler extends FormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
A content handler for parsing sets of runtimes.
-
Constructor Summary
Constructors Constructor Description FormatXML1RuntimesHandler(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(RuntimeDescription value)
A value was received from a child handler.protected java.util.Optional<java.util.List<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<RuntimeDescription>>>
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
-
FormatXML1RuntimesHandler
public FormatXML1RuntimesHandler(java.net.URI in_repository, org.xml.sax.ext.Locator2 in_locator)Construct a handler.- Parameters:
in_repository
- The repository URIin_locator
- An XML locator
-
-
Method Details
-
onWantChildHandlers
protected java.util.Map<java.lang.String,java.util.function.Supplier<FormatXMLContentHandlerType<RuntimeDescription>>> onWantChildHandlers()- Specified by:
onWantChildHandlers
in classFormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
-
onWantHandlerName
protected java.lang.String onWantHandlerName()- Specified by:
onWantHandlerName
in classFormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
-
onElementFinishDirectly
protected java.util.Optional<java.util.List<RuntimeDescription>> onElementFinishDirectly(java.lang.String namespace, java.lang.String name, java.lang.String qname)- Specified by:
onElementFinishDirectly
in classFormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
-
onElementStartDirectly
protected void onElementStartDirectly(java.lang.String namespace, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attributes)- Specified by:
onElementStartDirectly
in classFormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
-
onChildResultReceived
Description copied from class:FormatXMLAbstractContentHandler
A value was received from a child handler.- Specified by:
onChildResultReceived
in classFormatXMLAbstractContentHandler<RuntimeDescription,java.util.List<RuntimeDescription>>
- Parameters:
value
- The result value
-