|
||||||||||
| 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()
|
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 MuleContextAwaresetMuleContext in class AbstractTransformer
public void initialise()
throws InitialisationException
initialise in interface Initialisableinitialise in class AbstractTransformerInitialisationException
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 | |||||||||