Package 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:
org.apache.camel.Expression,org.apache.camel.ExpressionFactory,HasExpressionType,org.apache.camel.Predicate,org.apache.camel.PredicateFactory,org.apache.camel.spi.ExpressionFactoryAware,org.apache.camel.spi.NamespaceAware,org.apache.camel.spi.PredicateFactoryAware
- Direct Known Subclasses:
XMLTokenizerExpression,XPathExpression,XQueryExpression
public abstract class NamespaceAwareExpression extends ExpressionDefinition implements org.apache.camel.spi.NamespaceAware
A useful base class for any expression which may be namespace or XML content aware such asXPathExpressionorXQueryExpression
-
-
Constructor Summary
Constructors Constructor Description NamespaceAwareExpression()NamespaceAwareExpression(String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PropertyDefinition>getNamespace()Map<String,String>getNamespaceAsMap()Map<String,String>getNamespaces()voidsetNamespace(List<PropertyDefinition> namespace)Injects the XML Namespaces of prefix -> uri mappingsvoidsetNamespaces(Map<String,String> namespaces)Injects the XML Namespaces of prefix -> uri mappings-
Methods inherited from class org.apache.camel.model.language.ExpressionDefinition
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getLanguage, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
-
-
-
Constructor Detail
-
NamespaceAwareExpression
public NamespaceAwareExpression()
-
NamespaceAwareExpression
public NamespaceAwareExpression(String expression)
-
-
Method Detail
-
getNamespaces
public Map<String,String> getNamespaces()
- Specified by:
getNamespacesin interfaceorg.apache.camel.spi.NamespaceAware
-
setNamespaces
public void setNamespaces(Map<String,String> namespaces)
Injects the XML Namespaces of prefix -> uri mappings- Specified by:
setNamespacesin interfaceorg.apache.camel.spi.NamespaceAware- Parameters:
namespaces- the XML namespaces with the key of prefixes and the value the URIs
-
getNamespace
public List<PropertyDefinition> getNamespace()
-
setNamespace
public void setNamespace(List<PropertyDefinition> namespace)
Injects the XML Namespaces of prefix -> uri mappings
-
-