public class IncludeUtils
extends java.lang.Object
Constructor and Description |
---|
IncludeUtils() |
Modifier and Type | Method and Description |
---|---|
static DocumentElement |
getElement(java.lang.String includeStr,
java.lang.ClassLoader classLoader,
org.w3c.dom.Document docRoot,
javax.xml.parsers.DocumentBuilder builder)
This function is used to find the element to be included.
|
static DocumentElement |
getElement(java.lang.String includeStr,
cookxml.core.DecodeEngine decodeEngine)
This function is used to find the element to be included.
|
static DocumentElement |
getElement(java.lang.String includeStr,
org.w3c.dom.Document docRoot,
javax.xml.parsers.DocumentBuilder builder)
This function is used to find the element to be included.
|
static org.w3c.dom.Element |
getElementById(org.w3c.dom.Element rootElm,
java.lang.String id)
This function retrieves the element in the document that has the given id.
|
public static DocumentElement getElement(java.lang.String includeStr, cookxml.core.DecodeEngine decodeEngine) throws java.lang.Exception
includeStr
- the "pointer" to the element to be added.decodeEngine
- the DecodeEngine that is being used.java.lang.Exception
public static DocumentElement getElement(java.lang.String includeStr, org.w3c.dom.Document docRoot, javax.xml.parsers.DocumentBuilder builder) throws java.lang.Exception
includeStr
- the "pointer" to the element to be added.builder
- the XML parser.docRoot
- the root of the current document.java.lang.Exception
public static DocumentElement getElement(java.lang.String includeStr, java.lang.ClassLoader classLoader, org.w3c.dom.Document docRoot, javax.xml.parsers.DocumentBuilder builder) throws java.lang.Exception
includeStr
- the "pointer" to the element to be added.builder
- the XML parser.docRoot
- the root of the current document.java.lang.Exception
public static org.w3c.dom.Element getElementById(org.w3c.dom.Element rootElm, java.lang.String id)
rootElm
- sthe current rootid
- the id