Class XMLTokenizeLanguage
- java.lang.Object
-
- org.apache.camel.support.LanguageSupport
-
- org.apache.camel.language.xtokenizer.XMLTokenizeLanguage
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.IsSingleton,org.apache.camel.spi.Language
@Language("xtokenize") public class XMLTokenizeLanguage extends org.apache.camel.support.LanguageSupportA language for tokenizer expressions. This xmltokenizer language can operate in the following modes:- inject - injecting the contextual namespace bindings into the extracted token
- wrap - wrapping the extracted token in its ancestor context
- unwrap - unwrapping the extracted token to its child content
-
-
Constructor Summary
Constructors Constructor Description XMLTokenizeLanguage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ExpressioncreateExpression(String expression)Creates a tokenize expression.org.apache.camel.PredicatecreatePredicate(String expression)intgetGroup()StringgetHeaderName()chargetMode()org.apache.camel.support.builder.NamespacesgetNamespaces()StringgetPath()booleanisSingleton()voidsetGroup(int group)voidsetHeaderName(String headerName)voidsetMode(char mode)voidsetNamespaces(org.apache.camel.support.builder.Namespaces namespaces)voidsetPath(String path)static org.apache.camel.Expressiontokenize(String path)static org.apache.camel.Expressiontokenize(String path, char mode)static org.apache.camel.Expressiontokenize(String headerName, String path)static org.apache.camel.Expressiontokenize(String headerName, String path, char mode)static org.apache.camel.Expressiontokenize(String headerName, String path, char mode, int group, org.apache.camel.support.builder.Namespaces namespaces)
-
-
-
Method Detail
-
tokenize
public static org.apache.camel.Expression tokenize(String path)
-
tokenize
public static org.apache.camel.Expression tokenize(String path, char mode)
-
tokenize
public static org.apache.camel.Expression tokenize(String headerName, String path, char mode)
-
tokenize
public static org.apache.camel.Expression tokenize(String headerName, String path, char mode, int group, org.apache.camel.support.builder.Namespaces namespaces)
-
createPredicate
public org.apache.camel.Predicate createPredicate(String expression)
-
createExpression
public org.apache.camel.Expression createExpression(String expression)
Creates a tokenize expression.
-
getHeaderName
public String getHeaderName()
-
setHeaderName
public void setHeaderName(String headerName)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getMode
public char getMode()
-
setMode
public void setMode(char mode)
-
getGroup
public int getGroup()
-
setGroup
public void setGroup(int group)
-
getNamespaces
public org.apache.camel.support.builder.Namespaces getNamespaces()
-
setNamespaces
public void setNamespaces(org.apache.camel.support.builder.Namespaces namespaces)
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.apache.camel.IsSingleton- Overrides:
isSingletonin classorg.apache.camel.support.LanguageSupport
-
-