org.apache.tuscany.sca.databinding.impl
Class DOMHelper

java.lang.Object
  extended by org.apache.tuscany.sca.databinding.impl.DOMHelper

public final class DOMHelper
extends java.lang.Object

Helper for DOM


Method Summary
static org.w3c.dom.Element adjustElementName(TransformationContext context, org.w3c.dom.Element element)
           
static org.w3c.dom.Element createElement(org.w3c.dom.Document document, javax.xml.namespace.QName name)
           
static javax.xml.namespace.QName getQName(org.w3c.dom.Node node)
           
static org.w3c.dom.Document newDocument()
           
static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
           
static org.w3c.dom.Document promote(org.w3c.dom.Node node)
          Wrap an element as a DOM document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newDocument

public static org.w3c.dom.Document newDocument()
                                        throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException

newDocumentBuilder

public static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
                                                            throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException

getQName

public static javax.xml.namespace.QName getQName(org.w3c.dom.Node node)

createElement

public static org.w3c.dom.Element createElement(org.w3c.dom.Document document,
                                                javax.xml.namespace.QName name)

promote

public static org.w3c.dom.Document promote(org.w3c.dom.Node node)
Wrap an element as a DOM document

Parameters:
node -
Returns:

adjustElementName

public static org.w3c.dom.Element adjustElementName(TransformationContext context,
                                                    org.w3c.dom.Element element)
Parameters:
context -
element -