org.apache.camel.language.tokenizer
Class XMLTokenizeLanguage

java.lang.Object
  extended by org.apache.camel.support.LanguageSupport
      extended by org.apache.camel.language.tokenizer.XMLTokenizeLanguage
All Implemented Interfaces:
CamelContextAware, IsSingleton, Language

public class XMLTokenizeLanguage
extends LanguageSupport

A language for tokenizer expressions.

This xmltokenizer language can operate in the following modes:


Field Summary
 
Fields inherited from class org.apache.camel.support.LanguageSupport
RESOURCE
 
Constructor Summary
XMLTokenizeLanguage()
           
 
Method Summary
 Expression createExpression()
          Creates a tokenize expression.
 Expression createExpression(String expression)
          Creates an expression based on the given string input
 Predicate createPredicate(String expression)
          Creates a predicate based on the given string input
 int getGroup()
           
 String getHeaderName()
           
 char getMode()
           
 String getPath()
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 void setGroup(int group)
           
 void setHeaderName(String headerName)
           
 void setMode(char mode)
           
 void setPath(String path)
           
static Expression tokenize(String path)
           
static Expression tokenize(String path, char mode)
           
static Expression tokenize(String headerName, String path)
           
static Expression tokenize(String headerName, String path, char mode)
           
 
Methods inherited from class org.apache.camel.support.LanguageSupport
getCamelContext, loadResource, setCamelContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTokenizeLanguage

public XMLTokenizeLanguage()
Method Detail

tokenize

public static Expression tokenize(String path)

tokenize

public static Expression tokenize(String path,
                                  char mode)

tokenize

public static Expression tokenize(String headerName,
                                  String path)

tokenize

public static Expression tokenize(String headerName,
                                  String path,
                                  char mode)

createPredicate

public Predicate createPredicate(String expression)
Description copied from interface: Language
Creates a predicate based on the given string input

Parameters:
expression - the expression
Returns:
the created predicate

createExpression

public Expression createExpression()
Creates a tokenize expression.


createExpression

public Expression createExpression(String expression)
Description copied from interface: Language
Creates an expression based on the given string input

Parameters:
expression - the expression as a string input
Returns:
the created expression

getPath

public String getPath()

setPath

public void setPath(String path)

getHeaderName

public String getHeaderName()

setHeaderName

public void setHeaderName(String headerName)

getMode

public char getMode()

setMode

public void setMode(char mode)

getGroup

public int getGroup()

setGroup

public void setGroup(int group)

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Specified by:
isSingleton in interface IsSingleton
Overrides:
isSingleton in class LanguageSupport
Returns:
true to be a single shared instance, false to create new instances.


Apache Camel