API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.jcp.xml.dsig.internal.dom. DOMUtils View Source
Author(s)
Sean Mullan
Since
Version
Serial
Hierarchy
 Object
      DOMUtils
Implements
Subclasses
Description
public class DOMUtils
Useful static DOM utility methods.
See also:   
Constructors
private DOMUtils ()
Methods
Hide/Show inherited methods
publicstatic void appendChild (Node parent, Node child)
Checks if child element has same owner document before appending to the parent, and imports it to the parent's document if necessary.
publicstatic Element createElement (Document doc, String tag, String nsURI, String prefix)
  Creates an element in the specified namespace, with the specified tag and namespace prefix.
publicstatic String getAttributeValue (Element elem, String name)
  Returns the attribute value for the attribute with the specified name.
publicstatic Element getFirstChildElement (Node node)
  Returns the first child element of the specified node, or null if there is no such element.
publicstatic Element getLastChildElement (Node node)
  Returns the last child element of the specified node, or null if there is no such element.
publicstatic Element getNextSiblingElement (Node node)
  Returns the next sibling element of the specified node, or null if there is no such element.
publicstatic String getNSPrefix (XMLCryptoContext context, String nsURI)
  Returns the prefix associated with the specified namespace URI
publicstatic Document getOwnerDocument (Node node)
  Returns the owner document of the specified node.
publicstatic String getSignaturePrefix (XMLCryptoContext context)
  Returns the prefix associated with the XML Signature namespace URI
publicstatic boolean nodesEqual (Node thisNode, Node otherNode)
  Compares 2 nodes for equality.
publicstatic Set nodeSet (NodeList nl)
  Returns a Set of Nodes, backed by the specified NodeList.
publicstatic boolean paramsEqual (AlgorithmParameterSpec spec1, AlgorithmParameterSpec spec2)
publicstatic void removeAllChildren (Node node)
  Removes all children nodes from the specified node.
publicstatic void setAttribute (Element elem, String name, String value)
  Sets an element's attribute (using DOM level 2) with the specified value and namespace prefix.
publicstatic void setAttributeID (Element elem, String name, String value)
  Sets an element's attribute (using DOM level 2) with the specified value and namespace prefix AND registers the ID value with the specified element.
Fields
Hide/Show inherited fields
Nested Classes
  DOMUtils.NodeSet
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar