Package org.apache.cxf.staxutils
Class OverlayW3CDOMStreamWriter
java.lang.Object
org.apache.cxf.staxutils.W3CDOMStreamWriter
org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter
- All Implemented Interfaces:
XMLStreamWriter
Special StreamWriter that will "overlay" any write events onto the DOM.
If the startElement ends up writing an element that already exists at that
location, it will just walk into it instead of creating a new element
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOverlayW3CDOMStreamWriter
(Document document) OverlayW3CDOMStreamWriter
(Document doc, DocumentFragment frag) OverlayW3CDOMStreamWriter
(Document doc, Element e) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
adjustOverlaidNode
(Node nd2, String pfx) protected void
createAndAddElement
(String prefix, String local, String namespace) void
writeCharacters
(String text) void
void
writeStartElement
(String local) void
writeStartElement
(String namespace, String local) void
writeStartElement
(String prefix, String local, String namespace) Methods inherited from class org.apache.cxf.staxutils.W3CDOMStreamWriter
close, createElementNS, flush, getCurrentFragment, getCurrentNode, getDocument, getNamespaceContext, getPrefix, getProperty, isNsRepairing, newChild, setChild, setDefaultNamespace, setNamespaceContext, setNsRepairing, setPrefix, setProperties, toString, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument
-
Field Details
-
isOverlaid
protected boolean isOverlaid
-
-
Constructor Details
-
OverlayW3CDOMStreamWriter
-
OverlayW3CDOMStreamWriter
-
OverlayW3CDOMStreamWriter
-
OverlayW3CDOMStreamWriter
-
-
Method Details
-
createAndAddElement
- Overrides:
createAndAddElement
in classW3CDOMStreamWriter
-
writeEndElement
- Specified by:
writeEndElement
in interfaceXMLStreamWriter
- Overrides:
writeEndElement
in classW3CDOMStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Overrides:
writeStartElement
in classW3CDOMStreamWriter
- Throws:
XMLStreamException
-
adjustOverlaidNode
-
writeStartElement
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Overrides:
writeStartElement
in classW3CDOMStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String local, String namespace) throws XMLStreamException - Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Overrides:
writeStartElement
in classW3CDOMStreamWriter
- Throws:
XMLStreamException
-
writeCharacters
- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Overrides:
writeCharacters
in classW3CDOMStreamWriter
- Throws:
XMLStreamException
-