com.sun.xml.ws.security.opt.impl.util
Class DOMUtil

java.lang.Object
  extended by com.sun.xml.ws.security.opt.impl.util.DOMUtil

public class DOMUtil
extends java.lang.Object

$author: JAXWS Development Team


Constructor Summary
DOMUtil()
           
 
Method Summary
static org.w3c.dom.Document createDom()
          Creates a new DOM document.
static org.w3c.dom.Node createDOMNode(java.io.InputStream inputStream)
           
static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node parent)
           
static org.w3c.dom.Element getFirstChild(org.w3c.dom.Element e, java.lang.String nsUri, java.lang.String local)
          Gets the first child of the given name, or null.
static org.w3c.dom.Element getFirstElementChild(org.w3c.dom.Node parent)
          Gets the first element child.
static void serializeNode(org.w3c.dom.Element node, javax.xml.stream.XMLStreamWriter writer)
          Traverses a DOM node and writes out on a streaming writer.
static void writeTagWithAttributes(org.w3c.dom.Element node, javax.xml.stream.XMLStreamWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

createDom

public static org.w3c.dom.Document createDom()
Creates a new DOM document.


createDOMNode

public static org.w3c.dom.Node createDOMNode(java.io.InputStream inputStream)

serializeNode

public static void serializeNode(org.w3c.dom.Element node,
                                 javax.xml.stream.XMLStreamWriter writer)
                          throws javax.xml.stream.XMLStreamException
Traverses a DOM node and writes out on a streaming writer.

Parameters:
node -
writer -
Throws:
javax.xml.stream.XMLStreamException

writeTagWithAttributes

public static void writeTagWithAttributes(org.w3c.dom.Element node,
                                          javax.xml.stream.XMLStreamWriter writer)
                                   throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getFirstChild

public static org.w3c.dom.Element getFirstChild(org.w3c.dom.Element e,
                                                java.lang.String nsUri,
                                                java.lang.String local)
Gets the first child of the given name, or null.


getFirstElementChild

@Nullable
public static org.w3c.dom.Element getFirstElementChild(org.w3c.dom.Node parent)
Gets the first element child.


getChildElements

@NotNull
public static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node parent)


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.