|
||||||||||
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 |
---|
encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.AnnotatedObject |
---|
PROPERTY_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 |
setMuleContext(MuleContext context)
|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPathExtractor()
Method Detail |
---|
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
setMuleContext
in class AbstractTransformer
public void initialise() throws InitialisationException
AbstractTransformer
initialise
in interface Initialisable
initialise
in class AbstractTransformer
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic Object doTransform(Object src, String encoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
public 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 |