Package org.apache.camel.model.language
Class NamespaceAwareExpression
java.lang.Object
org.apache.camel.model.language.ExpressionDefinition
org.apache.camel.model.language.TypedExpressionDefinition
org.apache.camel.model.language.SingleInputTypedExpressionDefinition
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 SingleInputTypedExpressionDefinition
implements org.apache.camel.spi.NamespaceAware
A useful base class for any expression which may be namespace or XML content aware such as
XPathExpression or
XQueryExpression-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNamespaceAwareExpression.AbstractNamespaceAwareBuilder<T extends NamespaceAwareExpression.AbstractNamespaceAwareBuilder<T,E>, E extends NamespaceAwareExpression> NamespaceAwareBuilderis the base namespace aware expression builder.Nested classes/interfaces inherited from class org.apache.camel.model.language.SingleInputTypedExpressionDefinition
SingleInputTypedExpressionDefinition.AbstractBuilder<T extends SingleInputTypedExpressionDefinition.AbstractBuilder<T,E>, E extends SingleInputTypedExpressionDefinition> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedNamespaceAwareExpression(String expression) protectedprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidsetNamespace(List<PropertyDefinition> namespace) Injects the XML Namespaces of prefix -> uri mappingsvoidsetNamespaces(Map<String, String> namespaces) Injects the XML Namespaces of prefix -> uri mappingsMethods inherited from class org.apache.camel.model.language.SingleInputTypedExpressionDefinition
getSource, setSourceMethods inherited from class org.apache.camel.model.language.TypedExpressionDefinition
getResultType, getResultTypeName, setResultType, setResultTypeNameMethods inherited from class org.apache.camel.model.language.ExpressionDefinition
copyDefinition, createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getLanguage, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim, toString
-
Constructor Details
-
NamespaceAwareExpression
protected NamespaceAwareExpression() -
NamespaceAwareExpression
-
NamespaceAwareExpression
-
NamespaceAwareExpression
protected NamespaceAwareExpression(NamespaceAwareExpression.AbstractNamespaceAwareBuilder<?, ?> builder)
-
-
Method Details
-
getNamespaces
- Specified by:
getNamespacesin interfaceorg.apache.camel.spi.NamespaceAware
-
setNamespaces
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
-
setNamespace
Injects the XML Namespaces of prefix -> uri mappings -
getNamespaceAsMap
-