Class MarkupXmlEventWriter
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.datatype.markup.flexmark.AbstractMarkupWriter<XMLEventWriter,XMLStreamException>
-
- gov.nist.secauto.metaschema.core.datatype.markup.flexmark.MarkupXmlEventWriter
-
- All Implemented Interfaces:
IMarkupWriter<XMLEventWriter,XMLStreamException>
public class MarkupXmlEventWriter extends AbstractMarkupWriter<XMLEventWriter,XMLStreamException>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nist.secauto.metaschema.core.datatype.markup.flexmark.AbstractMarkupWriter
AbstractMarkupWriter.NodeVisitorException
-
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.core.datatype.markup.flexmark.IMarkupWriter
IMarkupWriter.ChildHandler<T,E extends Throwable>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.stax2.evt.XMLEventFactory2
eventFactory
-
Constructor Summary
Constructors Constructor Description MarkupXmlEventWriter(String namespace, com.vladsch.flexmark.parser.ListOptions listOptions, XMLEventWriter writer, org.codehaus.stax2.evt.XMLEventFactory2 eventFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.codehaus.stax2.evt.XMLEventFactory2
getEventFactory()
protected List<Attribute>
handleAttributes(Map<String,String> attributes)
protected void
writeComment(CharSequence text)
void
writeElementEnd(QName qname)
void
writeElementStart(QName qname, Map<String,String> attributes)
void
writeEmptyElement(QName qname, Map<String,String> attributes)
protected void
writeHtmlEntityInternal(String entityText)
void
writeText(CharSequence text)
-
Methods inherited from class gov.nist.secauto.metaschema.core.datatype.markup.flexmark.AbstractMarkupWriter
asQName, collapseWhitespace, getNamespace, getOptions, getStream, visitChildren, writeBlockHtml, writeBlockQuote, writeBreak, writeBreak, writeCode, writeCodeBlock, writeCodeBlock, writeCodeBlock, writeComment, writeElement, writeHeading, writeHtmlEntity, writeHtmlEntity, writeImage, writeInlineHtml, writeInsertAnchor, writeLink, writeLink, writeLink, writeList, writeListItem, writeParagraph, writePrecedingNewline, writeTable, writeText, writeText, writeTrailingNewline, writeTypographicQuotes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.core.datatype.markup.flexmark.IMarkupWriter
writeElement, writeElement, writeElementStart, writeEmptyElement, writeList
-
-
-
-
Field Detail
-
eventFactory
@NonNull protected final org.codehaus.stax2.evt.XMLEventFactory2 eventFactory
-
-
Constructor Detail
-
MarkupXmlEventWriter
public MarkupXmlEventWriter(@NonNull String namespace, @NonNull com.vladsch.flexmark.parser.ListOptions listOptions, @NonNull XMLEventWriter writer, @NonNull org.codehaus.stax2.evt.XMLEventFactory2 eventFactory)
-
-
Method Detail
-
getEventFactory
@NonNull protected org.codehaus.stax2.evt.XMLEventFactory2 getEventFactory()
-
handleAttributes
@NonNull protected List<Attribute> handleAttributes(@NonNull Map<String,String> attributes)
-
writeEmptyElement
public void writeEmptyElement(QName qname, Map<String,String> attributes) throws XMLStreamException
- Throws:
XMLStreamException
-
writeElementStart
public void writeElementStart(QName qname, Map<String,String> attributes) throws XMLStreamException
- Throws:
XMLStreamException
-
writeElementEnd
public void writeElementEnd(QName qname) throws XMLStreamException
- Throws:
XMLStreamException
-
writeText
public void writeText(CharSequence text) throws XMLStreamException
- Throws:
XMLStreamException
-
writeHtmlEntityInternal
protected void writeHtmlEntityInternal(String entityText) throws XMLStreamException
- Overrides:
writeHtmlEntityInternal
in classAbstractMarkupWriter<XMLEventWriter,XMLStreamException>
- Throws:
XMLStreamException
-
writeComment
protected void writeComment(CharSequence text) throws XMLStreamException
- Specified by:
writeComment
in classAbstractMarkupWriter<XMLEventWriter,XMLStreamException>
- Throws:
XMLStreamException
-
-