public class IDCache
extends java.lang.Object
Constructor and Description |
---|
IDCache() |
Modifier and Type | Method and Description |
---|---|
static void |
addToIDCache(org.w3c.dom.Element elem)
FOR INTERNAL USE ONLY Scan this element and its descendants for Ids and add them to the ID Cache.
|
static void |
addToIDCache(org.w3c.dom.Element elem, java.lang.String id)
FOR INTERNAL USE ONLY add this Id to Elem mapping to the ID Cache.
|
static org.w3c.dom.Element |
getElementById(org.w3c.dom.Document doc, java.lang.String id)
FOR INTERNAL USE ONLY - call
XMLUtils.getElementById(Document, String) instead Scan the Id Cache for the element. |
static boolean |
isIDCacheEnabled(org.w3c.dom.Document doc)
Check if ID Caching is enabled
|
public static boolean isIDCacheEnabled(org.w3c.dom.Document doc)
doc
-public static org.w3c.dom.Element getElementById(org.w3c.dom.Document doc, java.lang.String id)
XMLUtils.getElementById(Document, String)
instead Scan the Id Cache for the element. If not found assume that there is some change and rebuild the id cache.doc
-id
-public static void addToIDCache(org.w3c.dom.Element elem)
elem
-public static void addToIDCache(org.w3c.dom.Element elem, java.lang.String id)
elem
-