|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transformer.AbstractTransformer
org.mule.module.xml.transformer.XPathExtractor
public class XPathExtractor
Simple transformer for using the JAXP XPath library to extract an XPath value from an XPath expression.
| Nested Class Summary | |
|---|---|
static class |
XPathExtractor.ResultType
Result type. |
| Field Summary |
|---|
| Fields inherited from class org.mule.transformer.AbstractTransformer |
|---|
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, muleContext, name, returnClass, sourceTypes |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
XPathExtractor()
|
|
| Method Summary | |
|---|---|
Object |
doTransform(Object src,
String encoding)
|
String |
getExpression()
|
Map<String,String> |
getNamespaces()
The prefix-to-namespace map. |
XPathExtractor.ResultType |
getResultType()
Result type from this transformer. |
XPath |
getXpath()
The XPath evaluator. |
void |
initialise()
Template method where deriving classes can do any initialisation after the properties have been set on this transformer |
void |
setExpression(String expression)
|
void |
setNamespaces(Map<String,String> prefixToNamespaceMap)
The prefix-to-namespace map. |
void |
setResultType(XPathExtractor.ResultType resultType)
Result type from this transformer. |
void |
setXpath(XPath xPath)
The XPath evaluator. |
| Methods inherited from class org.mule.transformer.AbstractTransformer |
|---|
checkReturnClass, generateTransformerName, getEncoding, getEndpoint, getName, getReturnClass, getSourceTypes, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setMuleContext, setName, setReturnClass, toString, transform, transform, unregisterSourceType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XPathExtractor()
| Method Detail |
|---|
public void initialise()
throws InitialisationException
AbstractTransformer
initialise in interface Initialisableinitialise in class AbstractTransformerInitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from
public Object doTransform(Object src,
String encoding)
throws TransformerException
doTransform in class AbstractTransformerTransformerExceptionpublic String getExpression()
public void setExpression(String expression)
expression - The expression to set.public XPathExtractor.ResultType getResultType()
public void setResultType(XPathExtractor.ResultType resultType)
resultType - Result type from this transformer.public XPath getXpath()
public void setXpath(XPath xPath)
xPath - The XPath evaluator.public Map<String,String> getNamespaces()
public void setNamespaces(Map<String,String> prefixToNamespaceMap)
prefixToNamespaceMap - The prefix-to-namespace map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||