Package io.markdom.handler.xml
Class AbstractXmlDocumentMarkdomDispatcher<XmlElement>
- java.lang.Object
-
- io.markdom.handler.xml.AbstractXmlDocumentMarkdomDispatcher<XmlElement>
-
- All Implemented Interfaces:
MarkdomDispatcher
public abstract class AbstractXmlDocumentMarkdomDispatcher<XmlElement> extends Object implements MarkdomDispatcher
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlDocumentMarkdomDispatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Iterator<XmlElement>getElements(XmlElement xmlElement)protected abstract StringgetName(XmlElement xmlElement)protected abstract XmlElementgetRootElement()protected abstract StringgetText(XmlElement xmlElement)<Result> Resulthandle(MarkdomHandler<Result> handler)protected abstract Optional<String>optString(XmlElement xmlElement, String key)protected abstract BooleanreqBoolean(XmlElement xmlElement, String key)protected abstract IntegerreqInteger(XmlElement xmlElement, String key)protected abstract StringreqString(XmlElement xmlElement, String key)
-
-
-
Method Detail
-
handle
public final <Result> Result handle(MarkdomHandler<Result> handler)
- Specified by:
handlein interfaceMarkdomDispatcher
-
getRootElement
protected abstract XmlElement getRootElement()
-
getName
protected abstract String getName(XmlElement xmlElement)
-
getElements
protected abstract Iterator<XmlElement> getElements(XmlElement xmlElement)
-
getText
protected abstract String getText(XmlElement xmlElement)
-
optString
protected abstract Optional<String> optString(XmlElement xmlElement, String key)
-
reqString
protected abstract String reqString(XmlElement xmlElement, String key)
-
reqBoolean
protected abstract Boolean reqBoolean(XmlElement xmlElement, String key)
-
reqInteger
protected abstract Integer reqInteger(XmlElement xmlElement, String key)
-
-