| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static 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. |
| public static Element | Returns: the newly created elementthe owner document doc, String the tag tag, String the namespace URI nsURI, String the namespace prefix prefix)Creates an element in the specified namespace, with the specified tag and namespace prefix. |
| public static String | Returns: the attribute value (may be null if unspecified)the element containing the attribute elem, String the name of the attribute name)Returns the attribute value for the attribute with the specified name. |
| public static Element | Returns: the first child element of the specified node, or null if there is no such elementthe node node)Returns the first child element of the specified node, or null if there is no such element. |
| public static Element | Returns: the first child element of the specified nodethe node node, String localName, String namespaceURI)Returns the first child element of the specified node and checks that
the local name is equal to |
| public static <N> String | Returns: the attribute value (may be null if unspecified)the element containing the attribute elem, String the name of the attribute name)Returns the attribute value for the attribute with the specified name. |
| public static Element | Returns: the last child element of the specified node, or null if there is no such elementthe node node)Returns the last child element of the specified node, or null if there is no such element. |
| public static Element | Returns: the next sibling element of the specified node, or null if there is no such elementthe node node)Returns the next sibling element of the specified node, or null if there is no such element. |
| public static Element | Returns: the next sibling element of the specified nodethe node node, String localName, String namespaceURI)Returns the next sibling element of the specified node and checks that
the local name is equal to |
| public static String | Returns: the prefix associated with the specified namespace URI, or null if not setcontains the namespace map context, String the namespace URI nsURI)Returns the prefix associated with the specified namespace URI |
| public static Document | Returns: the owner documentthe node node)Returns the owner document of the specified node. |
| public static String | Returns: The string for the qName, for example, "xsd:element".The prefix, if any. Can be either null or empty. prefix, String The local name. localName)Create a QName string from a prefix and local name. |
| public static String | Returns: the prefix associated with the specified namespace URI, or null if not setcontains the namespace map context)Returns the prefix associated with the XML Signature namespace URI |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public static void | removeAllChildren(Node
the parent node whose children are to be removed node)Removes all children nodes from the specified node. |
| public static void | setAttribute(Element
the element to set the attribute on elem, String the name of the attribute name, String the attribute value. If null, no attribute is set. value)Sets an element's attribute (using DOM level 2) with the specified value and namespace prefix. |
| public static void | setAttributeID(Element
the element to set the attribute on elem, String the name of the attribute name, String the attribute value. If null, no attribute is set. 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. |
| private static Element |
| DOMUtils | back to summary |
|---|---|
| private DOMUtils() | |
| appendChild | back to summary |
|---|---|
| public static 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. | |
| createElement | back to summary |
|---|---|
| public static Element createElement(Document doc, String tag, String nsURI, String prefix) Creates an element in the specified namespace, with the specified tag and namespace prefix. | |
| getAttributeValue | back to summary |
|---|---|
| public static String getAttributeValue(Element elem, String name) Returns the attribute value for the attribute with the specified name. Returns null if there is no such attribute, or the empty string if the attribute value is empty. This works around a limitation of the DOM
| |
| getFirstChildElement | back to summary |
|---|---|
| public static Element getFirstChildElement(Node node) Returns the first child element of the specified node, or null if there is no such element.
| |
| getFirstChildElement | back to summary |
|---|---|
| public static Element getFirstChildElement(Node node, String localName, String namespaceURI) throws MarshalException Returns the first child element of the specified node and checks that
the local name is equal to
| |
| getIdAttributeValue | back to summary |
|---|---|
| public static <N> String getIdAttributeValue(Element elem, String name) Returns the attribute value for the attribute with the specified name. Returns null if there is no such attribute, or the empty string if the attribute value is empty. This works around a limitation of the DOM
| |
| getLastChildElement | back to summary |
|---|---|
| public static Element getLastChildElement(Node node) Returns the last child element of the specified node, or null if there is no such element.
| |
| getNextSiblingElement | back to summary |
|---|---|
| public static Element getNextSiblingElement(Node node) Returns the next sibling element of the specified node, or null if there is no such element.
| |
| getNextSiblingElement | back to summary |
|---|---|
| public static Element getNextSiblingElement(Node node, String localName, String namespaceURI) throws MarshalException Returns the next sibling element of the specified node and checks that
the local name is equal to
| |
| getNSPrefix | back to summary |
|---|---|
| public static String getNSPrefix(XMLCryptoContext context, String nsURI) Returns the prefix associated with the specified namespace URI
| |
| getOwnerDocument | back to summary |
|---|---|
| public static Document getOwnerDocument(Node node) Returns the owner document of the specified node. | |
| getQNameString | back to summary |
|---|---|
| public static String getQNameString(String prefix, String localName) Create a QName string from a prefix and local name. | |
| getSignaturePrefix | back to summary |
|---|---|
| public static String getSignaturePrefix(XMLCryptoContext context) Returns the prefix associated with the XML Signature namespace URI
| |
| isNamespace | back to summary |
|---|---|
| public static boolean isNamespace(Node node) | |
| nodesEqual | back to summary |
|---|---|
| public static boolean nodesEqual(Node thisNode, Node otherNode) Compares 2 nodes for equality. | |
| paramsEqual | back to summary |
|---|---|
| public static boolean paramsEqual(AlgorithmParameterSpec spec1, AlgorithmParameterSpec spec2) | |
| paramsEqual | back to summary |
|---|---|
| private static boolean paramsEqual(XPathFilter2ParameterSpec spec1, XPathFilter2ParameterSpec spec2) | |
| paramsEqual | back to summary |
|---|---|
| private static boolean paramsEqual(ExcC14NParameterSpec spec1, ExcC14NParameterSpec spec2) | |
| paramsEqual | back to summary |
|---|---|
| private static boolean paramsEqual(XPathFilterParameterSpec spec1, XPathFilterParameterSpec spec2) | |
| paramsEqual | back to summary |
|---|---|
| private static boolean paramsEqual(XSLTTransformParameterSpec spec1, XSLTTransformParameterSpec spec2) | |
| removeAllChildren | back to summary |
|---|---|
| public static void removeAllChildren(Node node) Removes all children nodes from the specified node.
| |
| setAttribute | back to summary |
|---|---|
| public static void setAttribute(Element elem, String name, String value) Sets an element's attribute (using DOM level 2) with the specified value and namespace prefix. | |
| setAttributeID | back to summary |
|---|---|
| public static 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. This is for resolving same-document ID references. | |
| verifyElement | back to summary |
|---|---|
| private static Element verifyElement(Element elem, String localName, String namespaceURI) throws MarshalException | |