public class InternalReferenceResolverImpl extends java.lang.Object implements InternalReferenceResolverInterface
InternalReferenceResolverInterface, which is shipped with IXSIL.| Modifier and Type | Field and Description |
|---|---|
static int |
FLAT_RESULT_
Result type for flat result (with node expansion of Element nodes)
|
static int |
FOREST_RESULT_
Result type for forest result (without node expansion of Element nodes)
|
protected static java.lang.String |
XPATHEXPR_ALLCHILDREN_
XPath expression for getting all child nodes of a document.
|
| Constructor and Description |
|---|
InternalReferenceResolverImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.NodeList |
resolve(URI uri,
org.w3c.dom.Document xmlDocumentOM,
org.w3c.dom.NodeList hereResult)
Gets a list of DOM nodes representing the content of the given URI.
|
protected org.w3c.dom.NodeList |
resolve(URI uri,
org.w3c.dom.Document xmlDocumentOM,
org.w3c.dom.NodeList hereResult,
int resultType) |
org.w3c.dom.NodeList |
resolveForest(URI uri,
org.w3c.dom.Document xmlDocumentOM,
org.w3c.dom.NodeList hereResult)
Gets a list of DOM nodes representing the content of the given URI.
|
public static final int FLAT_RESULT_
public static final int FOREST_RESULT_
protected static final java.lang.String XPATHEXPR_ALLCHILDREN_
public org.w3c.dom.NodeList resolve(URI uri, org.w3c.dom.Document xmlDocumentOM, org.w3c.dom.NodeList hereResult) throws InternalReferenceResolverException
"") results in all nodes of the XML document, except that comment nodes are
filtered out.
xpointer(/) results in all nodes of the
XML document, including comment nodes.
xpointer(id("IDREFValue") or
xpointer(id('IDREFValue') result in that element node of the XML document, whose ID
attribute has a value equal to IDREFValue, including all its descendants.
IDREFValue) has the same
result as the previous option, except that comment nodes are filtered out.
resolve in interface InternalReferenceResolverInterfaceuri - Specifies the internal reference.xmlDocumentOM - The object model for the XML document to be processed.hereResult - Not used by this implementation.InternalReferenceResolverException - if the content for the given URI cannot be fetched.public org.w3c.dom.NodeList resolveForest(URI uri, org.w3c.dom.Document xmlDocumentOM, org.w3c.dom.NodeList hereResult) throws InternalReferenceResolverException
"") results in all child nodes of the DOM Document, except that comment
nodes are filtered out.
xpointer(/) results in all child nodes of
the DOM Document, including comment nodes.
xpointer(id("IDREFValue") or
xpointer(id('IDREFValue') result in exactlyvthat element node of the XML document, whose
ID attribute has a value equal to IDREFValue.
IDREFValue) has the same
result as the previous option.
uri - Specifies the internal reference.xmlDocumentOM - The object model for the XML document to be processed.hereResult - Not used by this implementation.InternalReferenceResolverException - if the content for the given URI cannot be fetched.protected org.w3c.dom.NodeList resolve(URI uri, org.w3c.dom.Document xmlDocumentOM, org.w3c.dom.NodeList hereResult, int resultType) throws InternalReferenceResolverException
resultType - One of FLAT_RESULT_ or FOREST_RESULT_. FLAT_RESULT_ will
lead to a result suitable for resolve(iaik.ixsil.util.URI, org.w3c.dom.Document, org.w3c.dom.NodeList), whereas FOREST_RESULT_ will
lead to a result suitable for resolveForest(iaik.ixsil.util.URI, org.w3c.dom.Document, org.w3c.dom.NodeList).InternalReferenceResolverExceptionresolve(iaik.ixsil.util.URI, org.w3c.dom.Document, org.w3c.dom.NodeList),
resolveForest(iaik.ixsil.util.URI, org.w3c.dom.Document, org.w3c.dom.NodeList)