Class IndentingXmlStreamWriter2
- java.lang.Object
-
- org.codehaus.stax2.util.StreamWriterDelegate
-
- org.codehaus.stax2.util.StreamWriter2Delegate
-
- gov.nist.secauto.metaschema.core.model.xml.IndentingXmlStreamWriter2
-
- All Implemented Interfaces:
XMLStreamWriter
,org.codehaus.stax2.typed.TypedXMLStreamWriter
,org.codehaus.stax2.validation.Validatable
,org.codehaus.stax2.XMLStreamWriter2
public class IndentingXmlStreamWriter2 extends org.codehaus.stax2.util.StreamWriter2Delegate
-
-
Constructor Summary
Constructors Constructor Description IndentingXmlStreamWriter2(org.codehaus.stax2.XMLStreamWriter2 parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getIndentText()
protected String
getLineEndText()
protected void
handleEmptyElement()
protected void
handleEndElement()
protected void
handleStartElement()
protected void
setIndentText(String indentText)
protected void
setLineEndText(String lineEndText)
void
writeEmptyElement(String localName)
void
writeEmptyElement(String namespaceURI, String localName)
void
writeEmptyElement(String prefix, String localName, String namespaceURI)
void
writeEndElement()
void
writeFullEndElement()
void
writeStartElement(String localName)
void
writeStartElement(String namespaceURI, String localName)
void
writeStartElement(String prefix, String localName, String namespaceURI)
-
Methods inherited from class org.codehaus.stax2.util.StreamWriter2Delegate
closeCompletely, copyEventFromReader, getEncoding, getLocation, isPropertySupported, setParent, setProperty, setValidationProblemHandler, stopValidatingAgainst, stopValidatingAgainst, validateAgainst, writeBinary, writeBinary, writeBinaryAttribute, writeBinaryAttribute, writeBoolean, writeBooleanAttribute, writeCData, writeDecimal, writeDecimalAttribute, writeDouble, writeDoubleArray, writeDoubleArrayAttribute, writeDoubleAttribute, writeDTD, writeFloat, writeFloatArray, writeFloatArrayAttribute, writeFloatAttribute, writeInt, writeIntArray, writeIntArrayAttribute, writeIntAttribute, writeInteger, writeIntegerAttribute, writeLong, writeLongArray, writeLongArrayAttribute, writeLongAttribute, writeQName, writeQNameAttribute, writeRaw, writeRaw, writeRaw, writeSpace, writeSpace, writeStartDocument
-
Methods inherited from class org.codehaus.stax2.util.StreamWriterDelegate
close, flush, getNamespaceContext, getParent, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEndDocument, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.XMLStreamWriter
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEndDocument, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument
-
-
-
-
Constructor Detail
-
IndentingXmlStreamWriter2
public IndentingXmlStreamWriter2(org.codehaus.stax2.XMLStreamWriter2 parent)
-
-
Method Detail
-
getIndentText
protected String getIndentText()
-
setIndentText
protected void setIndentText(String indentText)
-
getLineEndText
protected String getLineEndText()
-
setLineEndText
protected void setLineEndText(String lineEndText)
-
handleStartElement
protected void handleStartElement() throws XMLStreamException
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String localName) throws XMLStreamException
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Overrides:
writeStartElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Overrides:
writeStartElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Overrides:
writeStartElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
handleEndElement
protected void handleEndElement() throws XMLStreamException
- Throws:
XMLStreamException
-
writeEndElement
public void writeEndElement() throws XMLStreamException
- Specified by:
writeEndElement
in interfaceXMLStreamWriter
- Overrides:
writeEndElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
writeFullEndElement
public void writeFullEndElement() throws XMLStreamException
- Specified by:
writeFullEndElement
in interfaceorg.codehaus.stax2.XMLStreamWriter2
- Overrides:
writeFullEndElement
in classorg.codehaus.stax2.util.StreamWriter2Delegate
- Throws:
XMLStreamException
-
handleEmptyElement
protected void handleEmptyElement() throws XMLStreamException
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String localName) throws XMLStreamException
- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Overrides:
writeEmptyElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Overrides:
writeEmptyElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Overrides:
writeEmptyElement
in classorg.codehaus.stax2.util.StreamWriterDelegate
- Throws:
XMLStreamException
-
-