|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.data.saxon.SaxonXPath
public class SaxonXPath
Concrete implementation of IOXPath interface using Saxon.
biz.c24.io.api.data.saxon
,
Saxon for information on using Saxon over C24 Integration Objects objects directly.Constructor Summary | |
---|---|
SaxonXPath(String expression)
Creates a new instance with the specified xpath expression. |
|
SaxonXPath(XPathStatement statement)
Creates a new instance with the specified xpath statement. |
Method Summary | |
---|---|
static net.sf.saxon.sxpath.XPathExpression |
createExpression(XPathStatement statement,
net.sf.saxon.Configuration config)
Helper method to create an XPath expression with all relevant namespaces initialized. |
static int |
fixXpath(String expression)
|
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. |
void |
setConfiguration(net.sf.saxon.Configuration config)
Sets the configuration to be used by Saxon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaxonXPath(String expression)
expression
- The xpath expression.public SaxonXPath(XPathStatement statement)
statement
- The xpath statement.Method Detail |
---|
public void setConfiguration(net.sf.saxon.Configuration config)
This allows multiple instances to share a configuration managed externally and reuse it's name pool.
config
- public static net.sf.saxon.sxpath.XPathExpression createExpression(XPathStatement statement, net.sf.saxon.Configuration config) throws IOXPathException
statement
- The XPath statement to create the expression from.config
- The configuration.
IOXPathException
- If there is an error generating the XPath expression.public Object getObject(ComplexDataObject o) throws IOXPathException
IOXPath
getObject
in interface IOXPath
o
- The ComplexDataObject
on which the expression will be evaluated.
IOXPathException
- If the underlying xpath implementation rejects the xpath expression.public List getList(ComplexDataObject o) throws IOXPathException
IOXPath
getList
in interface IOXPath
o
- The ComplexDataObject
on which the expression will be evaluated.
IOXPathException
- If the underlying xpath implementation rejects the xpath expression.public boolean getBoolean(ComplexDataObject o) throws IOXPathException
IOXPath
getBoolean
in interface IOXPath
o
- The ComplexDataObject
on which the expression will be evaluated.
true if the underlying implementation evaluates the XPath expression to true.
- Throws:
IOXPathException
- If the underlying xpath implementation rejects the xpath expression.
public Number getNumber(ComplexDataObject o) throws IOXPathException
IOXPath
getNumber
in interface IOXPath
o
- The ComplexDataObject
on which the expression will be evaluated.
IOXPathException
- If the underlying xpath implementation rejects the xpath expression.public String getString(ComplexDataObject o) throws IOXPathException
IOXPath
getString
in interface IOXPath
o
- The ComplexDataObject
on which the expression will be evaluated.
IOXPathException
- If the underlying xpath implementation rejects the xpath expression.public static int fixXpath(String expression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |