org.mule.api.annotations.expression
Annotation Type XPath
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface XPath
An expression annotation that allows developers to control how method parameter values are injected on a service component or transformer.
This parameter level annotation enables an XPath expression to be execute on an Xml payload of a message.
The annotation uses the standard JAXP api and this dictates what method parameter types the annotaiton can be used with. The follonig parameter types are supported
Boolean
String
Double
Node
NodeList
Element
Document
See XPathConstants
for further information.
Required Element Summary |
java.lang.String |
value
|
Optional Element Summary |
boolean |
optional
|
value
public abstract java.lang.String value
optional
public abstract boolean optional
- Default:
- false
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.