Apache CXF API

org.apache.cxf.staxutils
Class OverlayW3CDOMStreamWriter

java.lang.Object
  extended by org.apache.cxf.staxutils.W3CDOMStreamWriter
      extended by org.apache.cxf.staxutils.OverlayW3CDOMStreamWriter
All Implemented Interfaces:
javax.xml.stream.XMLStreamWriter

public class OverlayW3CDOMStreamWriter
extends W3CDOMStreamWriter

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


Constructor Summary
OverlayW3CDOMStreamWriter(Document document)
           
OverlayW3CDOMStreamWriter(Element e)
           
 
Method Summary
 void writeEndElement()
           
 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, flush, getCurrentFragment, getCurrentNode, getDocument, getNamespaceContext, getPrefix, getProperty, isNsRepairing, newChild, setChild, setDefaultNamespace, setNamespaceContext, setNsRepairing, setPrefix, setProperties, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, 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
 

Constructor Detail

OverlayW3CDOMStreamWriter

public OverlayW3CDOMStreamWriter(Document document)

OverlayW3CDOMStreamWriter

public OverlayW3CDOMStreamWriter(Element e)
Method Detail

writeEndElement

public void writeEndElement()
                     throws javax.xml.stream.XMLStreamException
Specified by:
writeEndElement in interface javax.xml.stream.XMLStreamWriter
Overrides:
writeEndElement in class W3CDOMStreamWriter
Throws:
javax.xml.stream.XMLStreamException

writeStartElement

public void writeStartElement(String local)
                       throws javax.xml.stream.XMLStreamException
Specified by:
writeStartElement in interface javax.xml.stream.XMLStreamWriter
Overrides:
writeStartElement in class W3CDOMStreamWriter
Throws:
javax.xml.stream.XMLStreamException

writeStartElement

public void writeStartElement(String namespace,
                              String local)
                       throws javax.xml.stream.XMLStreamException
Specified by:
writeStartElement in interface javax.xml.stream.XMLStreamWriter
Overrides:
writeStartElement in class W3CDOMStreamWriter
Throws:
javax.xml.stream.XMLStreamException

writeStartElement

public void writeStartElement(String prefix,
                              String local,
                              String namespace)
                       throws javax.xml.stream.XMLStreamException
Specified by:
writeStartElement in interface javax.xml.stream.XMLStreamWriter
Overrides:
writeStartElement in class W3CDOMStreamWriter
Throws:
javax.xml.stream.XMLStreamException

Apache CXF API

Apache CXF