org.apache.camel.language.xpath
Class XPathLanguage

java.lang.Object
  extended by org.apache.camel.language.xpath.XPathLanguage
All Implemented Interfaces:
IsSingleton, Language

public class XPathLanguage
extends Object
implements Language, IsSingleton

XPath language.

Version:
$Revision: 752893 $

Constructor Summary
XPathLanguage()
           
 
Method Summary
protected  void configureBuilder(XPathBuilder builder)
           
 Expression createExpression(String expression)
          Creates an expression based on the given string input
 Predicate createPredicate(String expression)
          Creates a predicate based on the given string input
 QName getResultType()
           
 boolean isSingleton()
          Wheter this class supports being singleton or not.
 void setResultType(QName resultType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathLanguage

public XPathLanguage()
Method Detail

createPredicate

public Predicate createPredicate(String expression)
Description copied from interface: Language
Creates a predicate based on the given string input

Specified by:
createPredicate in interface Language
Parameters:
expression - the expression
Returns:
the created predicate

createExpression

public Expression createExpression(String expression)
Description copied from interface: Language
Creates an expression based on the given string input

Specified by:
createExpression in interface Language
Parameters:
expression - the expression as a string input
Returns:
the created expression

getResultType

public QName getResultType()

setResultType

public void setResultType(QName resultType)

configureBuilder

protected void configureBuilder(XPathBuilder builder)

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Wheter this class supports being singleton or not.

Specified by:
isSingleton in interface IsSingleton
Returns:
true to be a single shared instance, false to create new instances.


Copyright © 2009 Apache Software Foundation. All Rights Reserved.