biz.c24.io.api.data
Interface IOXPath

All Known Implementing Classes:
JaxenXPath, SaxonXPath, SaxonXQuery

public interface IOXPath

An XPath 1.0 abstraction for XPath implementations.

Implementations of this class are normally retrieved from the IOXPathFactory.


Method Summary
 boolean getBoolean(ComplexDataObject o)
          Returns a boolean representation of the node specified by this object's XPath expression.
 List getList(ComplexDataObject o)
          Returns a List representation of the node specified by this object's XPath expression.
 Number getNumber(ComplexDataObject o)
          Returns a Number representation of the node specified by this object's XPath expression.
 Object getObject(ComplexDataObject o)
          Returns an Object representation of the node specified by this object's XPath expression.
 String getString(ComplexDataObject o)
          Returns a String representation of the node specified by this object's XPath expression.
 

Method Detail

getObject

Object getObject(ComplexDataObject o)
                 throws IOXPathException
Returns an Object representation of the node specified by this object's XPath expression.

Parameters:
o - The ComplexDataObject on which the expression will be evaluated.
Returns:
The referenced node as an Object.
Throws:
IOXPathException - If the underlying xpath implementation rejects the xpath expression.

getList

List getList(ComplexDataObject o)
             throws IOXPathException
Returns a List representation of the node specified by this object's XPath expression.

Parameters:
o - The ComplexDataObject on which the expression will be evaluated.
Returns:
The referenced node as a List.
Throws:
IOXPathException - If the underlying xpath implementation rejects the xpath expression.

getBoolean

boolean getBoolean(ComplexDataObject o)
                   throws IOXPathException
Returns a boolean representation of the node specified by this object's XPath expression.

Parameters:
o - The ComplexDataObject on which the expression will be evaluated.
Returns:
true if the underlying implementation evaluates the XPath expression to true.
Throws:
IOXPathException - If the underlying xpath implementation rejects the xpath expression.

getNumber

Number getNumber(ComplexDataObject o)
                 throws IOXPathException
Returns a Number representation of the node specified by this object's XPath expression.

Parameters:
o - The ComplexDataObject on which the expression will be evaluated.
Returns:
The referenced node as a Number.
Throws:
IOXPathException - If the underlying xpath implementation rejects the xpath expression.

getString

String getString(ComplexDataObject o)
                 throws IOXPathException
Returns a String representation of the node specified by this object's XPath expression.

Parameters:
o - The ComplexDataObject on which the expression will be evaluated.
Returns:
The referenced node as a String.
Throws:
IOXPathException - If the underlying xpath implementation rejects the xpath expression.


C24 Technologies © 2002-2012: All Rights Reserved.