org.jbind.xml.core.bridge
Class XPath

java.lang.Object
  extended byorg.jbind.xml.core.bridge.XPath
All Implemented Interfaces:
IXPath

public abstract class XPath
extends java.lang.Object
implements IXPath


Constructor Summary
XPath(java.lang.String anXPath)
           
 
Method Summary
 java.lang.String asString()
           
protected  java.lang.String getXPath()
           
 boolean selectsZeroOrOneNode()
          Indicates that the XPath selects always 0 or 1 node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.bridge.IXPath
number, select, string, test
 

Constructor Detail

XPath

public XPath(java.lang.String anXPath)
Method Detail

getXPath

protected java.lang.String getXPath()

toString

public java.lang.String toString()

asString

public java.lang.String asString()
Specified by:
asString in interface IXPath

selectsZeroOrOneNode

public boolean selectsZeroOrOneNode()
Description copied from interface: IXPath
Indicates that the XPath selects always 0 or 1 node. The method is not guaranteed to be true for all XPaths that return always 0 or 1 node. It is only guaranteed that if this method returns true then the XPath will never select more than 1 node.

Specified by:
selectsZeroOrOneNode in interface IXPath
Returns:
Returns true if the XPath selects always 0 or 1 node.