|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiruss.util.AddressingUtil
public class AddressingUtil
Utilities for doing address resolution and management. Holds the knowledge of how to resolve particular addressing elements or attributes to their targets. FIXME: Not sure this is the best way to organize this functionality. WEK.
Field Summary | |
---|---|
(package private) static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
AddressingUtil()
|
Method Summary | |
---|---|
static java.lang.String |
constructXPathForElement(org.w3c.dom.Element inElem)
Constructs an XPath to an element. |
static java.lang.String |
constructXPathForElement(org.w3c.dom.Element inElem,
java.lang.String xPathRest)
|
static java.io.File |
getHrefTargetDocument(org.w3c.dom.Element elem,
java.io.File baseFile)
Resolves the href= attribute of an XInclude |
static java.io.File |
getReferenceTargetFile(org.w3c.dom.Element elem,
java.io.File baseFile)
|
static Resource |
getReferenceTargetResource(org.w3c.dom.Element elem,
Resource baseResource)
Given an element with an pointer attribute, resolves it to a resource inside the repository. |
static org.w3c.dom.NodeList |
resolveXPointer(java.lang.String xpointerString,
org.w3c.dom.Document targetDocument)
Given an xpointer string, attempts to resolve it to a node list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.apache.log4j.Logger logger
Constructor Detail |
---|
public AddressingUtil()
Method Detail |
---|
public static java.io.File getReferenceTargetFile(org.w3c.dom.Element elem, java.io.File baseFile) throws AddressingException
elem
-
AddressingException
public static Resource getReferenceTargetResource(org.w3c.dom.Element elem, Resource baseResource) throws AddressingException
elem
- resource
-
AddressingException
public static java.io.File getHrefTargetDocument(org.w3c.dom.Element elem, java.io.File baseFile) throws AddressingException
elem
-
AddressingException
public static java.lang.String constructXPathForElement(org.w3c.dom.Element inElem)
inElem
-
public static java.lang.String constructXPathForElement(org.w3c.dom.Element inElem, java.lang.String xPathRest)
public static org.w3c.dom.NodeList resolveXPointer(java.lang.String xpointerString, org.w3c.dom.Document targetDocument) throws XPointerException
xpointer
- XPointer string (e.g., as specified in an xpointer= attribute.targetDocument
- The document the XPointer is to be resolved to.
XPointerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |