|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.transformers.AbstractTransformer
org.mule.transformers.xml.JXPathExtractor
The JXPathExtractor is a simple transformer that evaluates an xpath expression against the given bean and that returns the result.
By default, a single result will be returned. If multiple values are expected, set the#singleResult property to false. In this case a
List of values will be returned. Note the property is currently ignored
for non-String/XML payloads.
| Field Summary |
| Fields inherited from class org.mule.transformers.AbstractTransformer |
endpoint, logger, name, nextTransformer, returnClass, TRANSFORMER_DEFAULT |
| Fields inherited from interface org.mule.umo.transformer.UMOSimpleTransformer |
SERVICE_ID |
| Constructor Summary | |
JXPathExtractor()
|
|
| Method Summary | |
Object |
doTransform(Object src,
String encoding)
Evaluate the expression in the context of the given object and returns the result. |
String |
getExpression()
|
boolean |
isSingleResult()
Should a single value be returned. |
void |
setExpression(String expression)
|
void |
setSingleResult(boolean singleResult)
If multiple results are expected from the #expression evaluation, set
this to false. |
| Methods inherited from class org.mule.transformers.AbstractTransformer |
checkReturnClass, clone, generateTransformerName, getEndpoint, getFinalReturnClass, getName, getNextTransformer, getReturnClass, getSourceType, getSourceTypeClassesIterator, initialise, isAcceptNull, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setNextTransformer, setReturnClass, setSourceType, toString, transform, unregisterSourceType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JXPathExtractor()
| Method Detail |
public Object doTransform(Object src,
String encoding)
throws org.mule.umo.transformer.TransformerException
org.mule.umo.transformer.TransformerExceptionpublic String getExpression()
public void setExpression(String expression)
expression - The expression to set.public boolean isSingleResult()
public void setSingleResult(boolean singleResult)
#expression evaluation, set
this to false.
singleResult - flag
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||