com.ctc.wstx.dom
Class DOMOutputElement
java.lang.Object
com.ctc.wstx.sw.OutputElementBase
com.ctc.wstx.dom.DOMOutputElement
- All Implemented Interfaces:
- javax.xml.namespace.NamespaceContext
- public class DOMOutputElement
- extends OutputElementBase
Context object that holds information about an open element
(one for which START_ELEMENT has been sent, but no END_ELEMENT)
- Author:
- Yoon-Je Choi, Tatu Saloranta
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createRoot
public static DOMOutputElement createRoot()
createChild
protected DOMOutputElement createChild(org.w3c.dom.Element element)
- Simplest factory method, which gets called when a 1-argument
element output method is called. It is, then, assumed to
use the default namespace.
createChild
protected DOMOutputElement createChild()
reuseAsChild
protected DOMOutputElement reuseAsChild(DOMOutputElement parent,
org.w3c.dom.Element element)
- Returns:
- New head of the recycle pool
addToPool
protected void addToPool(DOMOutputElement poolHead)
- Method called to temporarily link this instance to a pool, to
allow reusing of instances with the same reader.
getParent
public DOMOutputElement getParent()
isRoot
public boolean isRoot()
- Specified by:
isRoot in class OutputElementBase
getNameDesc
public java.lang.String getNameDesc()
- Specified by:
getNameDesc in class OutputElementBase
- Returns:
- String presentation of the fully-qualified name, in
"prefix:localName" format (no URI). Useful for error and
debugging messages.
setDefaultNsUri
public void setDefaultNsUri(java.lang.String uri)
- Specified by:
setDefaultNsUri in class OutputElementBase
setRootNsContext
protected void setRootNsContext(javax.xml.namespace.NamespaceContext ctxt)
- Specified by:
setRootNsContext in class OutputElementBase
appendNode
protected void appendNode(org.w3c.dom.Node n)
addAttribute
protected void addAttribute(java.lang.String pname,
java.lang.String value)
addAttribute
protected void addAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.String value)
appendChild
public void appendChild(org.w3c.dom.Node n)