org.apache.camel.model.language
Class NamespaceAwareExpression

java.lang.Object
  extended by org.apache.camel.model.language.ExpressionDefinition
      extended by org.apache.camel.model.language.NamespaceAwareExpression
All Implemented Interfaces:
Expression, Predicate, NamespaceAware
Direct Known Subclasses:
XPathExpression, XQueryExpression

public abstract class NamespaceAwareExpression
extends ExpressionDefinition
implements NamespaceAware

A useful base class for any expression which may be namespace or XML content aware such as XPathExpression or XQueryExpression

Version:
$Revision: 17440 $

Constructor Summary
NamespaceAwareExpression()
           
NamespaceAwareExpression(String expression)
           
 
Method Summary
protected  void configureExpression(CamelContext camelContext, Expression expression)
           
protected  void configureNamespaceAware(Object builder)
           
protected  void configurePredicate(CamelContext camelContext, Predicate predicate)
           
 Map<String,String> getNamespaces()
           
 void setNamespaces(Map<String,String> namespaces)
          Injects the XML Namespaces of prefix -> uri mappings
 
Methods inherited from class org.apache.camel.model.language.ExpressionDefinition
assertMatches, createExpression, createExpression, createPredicate, createPredicate, evaluate, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getLanguage, getPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespaceAwareExpression

public NamespaceAwareExpression()

NamespaceAwareExpression

public NamespaceAwareExpression(String expression)
Method Detail

getNamespaces

public Map<String,String> getNamespaces()

setNamespaces

public void setNamespaces(Map<String,String> namespaces)
Injects the XML Namespaces of prefix -> uri mappings

Specified by:
setNamespaces in interface NamespaceAware
Parameters:
namespaces - the XML namespaces with the key of prefixes and the value the URIs

configureExpression

protected void configureExpression(CamelContext camelContext,
                                   Expression expression)
Overrides:
configureExpression in class ExpressionDefinition

configurePredicate

protected void configurePredicate(CamelContext camelContext,
                                  Predicate predicate)
Overrides:
configurePredicate in class ExpressionDefinition

configureNamespaceAware

protected void configureNamespaceAware(Object builder)


Apache CAMEL