Package org.apache.camel.model.language
Class XMLTokenizerExpression.Builder
- java.lang.Object
-
- org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder<T,E>
-
- org.apache.camel.model.language.XMLTokenizerExpression.Builder
-
- All Implemented Interfaces:
LanguageBuilder<XMLTokenizerExpression>
- Enclosing class:
- XMLTokenizerExpression
public static class XMLTokenizerExpression.Builder extends SingleInputExpressionDefinition.AbstractBuilder<T,E>
Builder
is a specific builder forXMLTokenizerExpression
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLTokenizerExpression
end()
Ends the build of an expression.T
expression(String expression)
The expression value in your chosen language syntaxXMLTokenizerExpression.Builder
group(int group)
To group N parts togetherXMLTokenizerExpression.Builder
group(String group)
To group N parts togetherT
id(String id)
Sets the id of this nodeXMLTokenizerExpression.Builder
mode(String mode)
The extraction mode.T
namespace(List<PropertyDefinition> namespace)
Injects the XML Namespaces of prefix -> uri mappingsT
namespaces(Map<String,String> namespaces)
Injects the XML Namespaces of prefix -> uri mappingsT
namespaces(org.apache.camel.support.builder.Namespaces namespaces)
Injects the XML Namespaces of prefix -> uri mappingsT
predicate(org.apache.camel.Predicate predicate)
T
trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaksT
trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks-
Methods inherited from class org.apache.camel.model.language.SingleInputExpressionDefinition.AbstractBuilder
headerName, propertyName
-
-
-
-
Method Detail
-
mode
public XMLTokenizerExpression.Builder mode(String mode)
The extraction mode. The available extraction modes are:- i - injecting the contextual namespace bindings into the extracted token (default)
- w - wrapping the extracted token in its ancestor context
- u - unwrapping the extracted token to its child content
- t - extracting the text content of the specified element
-
group
public XMLTokenizerExpression.Builder group(String group)
To group N parts together
-
group
public XMLTokenizerExpression.Builder group(int group)
To group N parts together
-
end
public XMLTokenizerExpression end()
Description copied from interface:LanguageBuilder
Ends the build of an expression.- Returns:
- the expression fully built.
-
namespaces
public T namespaces(org.apache.camel.support.builder.Namespaces namespaces)
Injects the XML Namespaces of prefix -> uri mappings- Parameters:
namespaces
- the XML namespaces
-
namespaces
public T namespaces(Map<String,String> namespaces)
Injects the XML Namespaces of prefix -> uri mappings- Parameters:
namespaces
- the XML namespaces with the key of prefixes and the value the URIs
-
namespace
public T namespace(List<PropertyDefinition> namespace)
Injects the XML Namespaces of prefix -> uri mappings
-
id
public T id(String id)
Sets the id of this node
-
trim
public T trim(String trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
trim
public T trim(boolean trim)
Whether to trim the value to remove leading and trailing whitespaces and line breaks
-
expression
public T expression(String expression)
The expression value in your chosen language syntax
-
predicate
public T predicate(org.apache.camel.Predicate predicate)
-
-