|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.xml.XpathComputer
Implements static methods for computing Xpath strings (www.w3.org/TR/xpath) for DOM Nodes (www.w3.org/DOM/)
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Constructor Summary | |
XpathComputer()
|
Method Summary | |
static java.lang.String |
computeXpath(org.w3c.dom.Node node)
Returns the entire Xpath string for the input node, i.e. |
static org.w3c.dom.Node |
followLocalXpath(org.w3c.dom.Node start,
java.lang.String localXpath)
Takes a starting DOM node and a local Xpath directive and returns the DOM node, if any, which can be reached following the directive from the input node It throws DOMExceptions if no node exists at the specified address or if the address is not a valid local Xpath expression. |
static org.w3c.dom.Node |
followXpath(org.w3c.dom.Node start,
java.lang.String Xpath)
Takes a starting DOM node and an Xpath directive and returns the DOM node, if any, which can be reached following the directive from the input node. |
static java.lang.String |
localXpath(org.w3c.dom.Node node)
Returns the local Xpath string for the input node, i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XpathComputer()
Method Detail |
public static java.lang.String localXpath(org.w3c.dom.Node node) throws org.w3c.dom.DOMException
throws
- DOMException.public static org.w3c.dom.Node followLocalXpath(org.w3c.dom.Node start, java.lang.String localXpath) throws org.w3c.dom.DOMException
throws
- DOMException.public static java.lang.String computeXpath(org.w3c.dom.Node node)
public static org.w3c.dom.Node followXpath(org.w3c.dom.Node start, java.lang.String Xpath) throws org.w3c.dom.DOMException
throws
- DOMException.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |