org.apache.xml.security.utils
public class IdResolver extends java.lang.Object
getElementByID
functionality. So this modules uses some implicit
knowledge on selected Schemas and DTDs to pick the right Element for a given
ID: We know that all @Id
attributes in an Element from the XML
Signature namespace are of type ID
.Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Element |
getElementById(org.w3c.dom.Document doc,
java.lang.String id)
Method getElementById
|
static int |
isElement(org.w3c.dom.Element el,
java.lang.String id,
org.w3c.dom.Element[] els) |
static void |
registerElementById(org.w3c.dom.Element element,
org.w3c.dom.Attr id)
Method registerElementById
|
static void |
registerElementById(org.w3c.dom.Element element,
java.lang.String idValue)
Method registerElementById
|
static void |
unregisterDocument(org.w3c.dom.Document doc)
Force a removal of a registered document.
|
public static void registerElementById(org.w3c.dom.Element element, java.lang.String idValue)
element
- the element to registeridValue
- the value of the ID attributepublic static void unregisterDocument(org.w3c.dom.Document doc)
doc
- the DOM document that is to be removed from the map.public static void registerElementById(org.w3c.dom.Element element, org.w3c.dom.Attr id)
element
- the element to registerid
- the ID attributepublic static org.w3c.dom.Element getElementById(org.w3c.dom.Document doc, java.lang.String id)
doc
- the documentid
- the value of the IDpublic static int isElement(org.w3c.dom.Element el, java.lang.String id, org.w3c.dom.Element[] els)
Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.