org.jbind.xml.core.bridge
Interface IXPath

All Known Implementing Classes:
XPath

public interface IXPath


Method Summary
 java.lang.String asString()
           
 double number(IDataImpl aData)
           
 java.util.Iterator select(IDataImpl aContext)
          Selects the data objects.
 boolean selectsZeroOrOneNode()
          Indicates that the XPath selects always 0 or 1 node.
 java.lang.String string(IDataImpl aData)
           
 boolean test(IDataImpl aData)
          Evaluates the XPath and returns the result as a boolean.
 

Method Detail

selectsZeroOrOneNode

public boolean selectsZeroOrOneNode()
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.

Returns:
Returns true if the XPath selects always 0 or 1 node.

select

public java.util.Iterator select(IDataImpl aContext)
                          throws XmlException
Selects the data objects.

Returns:
(required). An iterator of IDataImpl.
Throws:
XmlException

test

public boolean test(IDataImpl aData)
             throws XmlException
Evaluates the XPath and returns the result as a boolean.

Parameters:
aData - (required).
Throws:
XmlException

number

public double number(IDataImpl aData)
              throws XmlException
Throws:
XmlException

string

public java.lang.String string(IDataImpl aData)
                        throws XmlException
Throws:
XmlException

asString

public java.lang.String asString()