Class IdResolver
java.lang.Object
org.docx4j.org.apache.xml.security.utils.IdResolver
public class IdResolver
extends java.lang.Object
Deprecated.
Purpose of this class is to enable the XML Parser to keep track of ID
attributes. This is done by 'registering' attributes of type ID at the
IdResolver.
-
Method Summary
Modifier and Type Method Description static org.w3c.dom.ElementgetElementById(org.w3c.dom.Document doc, java.lang.String id)Deprecated.Method getElementByIdstatic voidregisterElementById(org.w3c.dom.Element element, org.w3c.dom.Attr id)Deprecated.Method registerElementById
-
Method Details
-
registerElementById
public static void registerElementById(org.w3c.dom.Element element, org.w3c.dom.Attr id)Deprecated.Method registerElementById- Parameters:
element- the element to registerid- the ID attribute
-
getElementById
public static org.w3c.dom.Element getElementById(org.w3c.dom.Document doc, java.lang.String id)Deprecated.Method getElementById- Parameters:
doc- the documentid- the value of the ID- Returns:
- the element obtained by the id, or null if it is not found.
-