org.apache.camel.model.language
Class NamespaceAwareExpression
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition
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: 750806 $
Methods inherited from class org.apache.camel.model.language.ExpressionDefinition |
assertMatches, createExpression, createPredicate, evaluate, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getLanguage, getPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setProperty, toString |
NamespaceAwareExpression
public NamespaceAwareExpression()
NamespaceAwareExpression
public NamespaceAwareExpression(String expression)
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(RouteContext routeContext,
Expression expression)
- Overrides:
configureExpression
in class ExpressionDefinition
configurePredicate
protected void configurePredicate(RouteContext routeContext,
Predicate predicate)
- Overrides:
configurePredicate
in class ExpressionDefinition
configureNamespaceAware
protected void configureNamespaceAware(Object builder)
Apache CAMEL