biz.c24.io.api.data
Class IOXPathFactory

java.lang.Object
  extended by biz.c24.io.api.data.IOXPathFactory

public class IOXPathFactory
extends Object

A factory class for returning IOXPath implementations.

This factory uses the value of the system property specified by Utils.SYSTEM_PROPERTY_XPATH_IMPLEMENTATION. The value of this property should be the class name of a subclass of IOXPath. The default implementation if none has been specified by Utils.SYSTEM_PROPERTY_XPATH_IMPLEMENTATION is currently biz.c24.io.api.data.saxon.SaxonXPath.


Constructor Summary
IOXPathFactory()
           
 
Method Summary
static IOXPath getInstance(String xpath)
          Returns an instance of IOXPath according to the concrete XPath implementation selected given the specified XPath expression.
static IOXPath getInstance(XPathStatement statement)
          Returns an instance of IOXPath according to the concrete XPath implementation selected given the specified XPath statement.
static IOXPath getInstanceSafe(String xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOXPathFactory

public IOXPathFactory()
Method Detail

getInstance

public static IOXPath getInstance(XPathStatement statement)
                           throws IOXPathException
Returns an instance of IOXPath according to the concrete XPath implementation selected given the specified XPath statement.

Parameters:
statement - The XPath statement to be evaluated.
Returns:
The resulting IOXPath object.
Throws:
IOXPathException - If an exception occurs trying to instantiate the xpath implementation.

getInstanceSafe

public static IOXPath getInstanceSafe(String xpath)

getInstance

public static IOXPath getInstance(String xpath)
                           throws IOXPathException
Returns an instance of IOXPath according to the concrete XPath implementation selected given the specified XPath expression.

In general the getInstance(XPathStatement) method should be preferred to this one since this method is provides no way to make the resulting XPath namespace aware.

Parameters:
xpath - The XPath expression to be evaluated.
Returns:
The resulting IOXPath object.
Throws:
IOXPathException - If the XPath is invalid or an exception occurs trying to instantiate the xpath implementation.


C24 Technologies © 2002-2012: All Rights Reserved.