Class XMLTokenExpressionIterator
java.lang.Object
org.apache.camel.support.ExpressionSupport
org.apache.camel.support.ExpressionAdapter
org.apache.camel.language.xtokenizer.XMLTokenExpressionIterator
- All Implemented Interfaces:
org.apache.camel.Expression,org.apache.camel.Predicate,org.apache.camel.spi.NamespaceAware
public class XMLTokenExpressionIterator
extends org.apache.camel.support.ExpressionAdapter
implements org.apache.camel.spi.NamespaceAware
An
XMLTokenizeLanguage based iterator.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXMLTokenExpressionIterator(String path, char mode) XMLTokenExpressionIterator(org.apache.camel.Expression source, String path, char mode) -
Method Summary
Modifier and TypeMethodDescriptionprotected Iterator<?> protected Iterator<?> createIterator(InputStream in, String charset) protected Iterator<?> createIterator(Reader in) protected ObjectdoEvaluate(org.apache.camel.Exchange exchange, boolean closeStream) Strategy to evaluate the exchangeevaluate(org.apache.camel.Exchange exchange) intgetGroup()voidinit(org.apache.camel.CamelContext context) booleanmatches(org.apache.camel.Exchange exchange) voidsetGroup(int group) voidsetMode(char mode) voidvoidsetNamespaces(Map<String, String> nsmap) Methods inherited from class org.apache.camel.support.ExpressionAdapter
assertionFailureMessage, evaluateMethods inherited from class org.apache.camel.support.ExpressionSupport
assertMatchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Predicate
initPredicate
-
Field Details
-
path
-
mode
protected char mode -
group
protected int group -
source
protected org.apache.camel.Expression source -
nsmap
-
-
Constructor Details
-
XMLTokenExpressionIterator
-
XMLTokenExpressionIterator
-
-
Method Details
-
init
public void init(org.apache.camel.CamelContext context) - Specified by:
initin interfaceorg.apache.camel.Expression- Specified by:
initin interfaceorg.apache.camel.Predicate- Overrides:
initin classorg.apache.camel.support.ExpressionAdapter
-
setNamespaces
- Specified by:
setNamespacesin interfaceorg.apache.camel.spi.NamespaceAware
-
getNamespaces
- Specified by:
getNamespacesin interfaceorg.apache.camel.spi.NamespaceAware
-
setMode
public void setMode(char mode) -
setMode
-
getGroup
public int getGroup() -
setGroup
public void setGroup(int group) -
createIterator
protected Iterator<?> createIterator(InputStream in, String charset) throws XMLStreamException, UnsupportedEncodingException -
createIterator
- Throws:
XMLStreamExceptionIOException
-
createIterator
- Throws:
XMLStreamException
-
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matchesin interfaceorg.apache.camel.Predicate- Overrides:
matchesin classorg.apache.camel.support.ExpressionSupport
-
evaluate
- Overrides:
evaluatein classorg.apache.camel.support.ExpressionSupport
-
doEvaluate
Strategy to evaluate the exchange- Parameters:
exchange- the exchangecloseStream- whether to close the stream before returning from this method.- Returns:
- the evaluated value
-