org.apache.servicemix.expression
Class JaxenVariableContext
java.lang.Object
org.apache.servicemix.expression.JaxenVariableContext
- All Implemented Interfaces:
- org.jaxen.VariableContext
public class JaxenVariableContext
- extends java.lang.Object
- implements org.jaxen.VariableContext
A variable resolver for XPath expressions which support properties on the messge, exchange as well
as making system properties and environment properties available.
- Version:
- $Revision: 564374 $
Method Summary |
javax.jbi.messaging.MessageExchange |
getExchange()
|
javax.jbi.messaging.NormalizedMessage |
getMessage()
|
java.util.Map |
getVariables()
|
java.lang.Object |
getVariableValue(java.lang.String uri,
java.lang.String prefix,
java.lang.String localPart)
|
void |
setExchange(javax.jbi.messaging.MessageExchange exchange)
|
void |
setMessage(javax.jbi.messaging.NormalizedMessage message)
|
void |
setVariables(java.util.Map variables)
Allows other variables to be added to the variable scope |
void |
setVariableValue(java.lang.String localPart,
java.lang.Object value)
Allows a variable to be specified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MESSAGE_NAMESPACE
public static final java.lang.String MESSAGE_NAMESPACE
- See Also:
- Constant Field Values
EXCHANGE_NAMESPACE
public static final java.lang.String EXCHANGE_NAMESPACE
- See Also:
- Constant Field Values
SYSTEM_PROPERTIES_NAMESPACE
public static final java.lang.String SYSTEM_PROPERTIES_NAMESPACE
- See Also:
- Constant Field Values
ENVIRONMENT_VARIABLES_NAMESPACE
public static final java.lang.String ENVIRONMENT_VARIABLES_NAMESPACE
- See Also:
- Constant Field Values
JaxenVariableContext
public JaxenVariableContext()
getExchange
public javax.jbi.messaging.MessageExchange getExchange()
setExchange
public void setExchange(javax.jbi.messaging.MessageExchange exchange)
getMessage
public javax.jbi.messaging.NormalizedMessage getMessage()
setMessage
public void setMessage(javax.jbi.messaging.NormalizedMessage message)
getVariables
public java.util.Map getVariables()
setVariables
public void setVariables(java.util.Map variables)
- Allows other variables to be added to the variable scope
- Parameters:
variables
-
getVariableValue
public java.lang.Object getVariableValue(java.lang.String uri,
java.lang.String prefix,
java.lang.String localPart)
throws org.jaxen.UnresolvableException
- Specified by:
getVariableValue
in interface org.jaxen.VariableContext
- Throws:
org.jaxen.UnresolvableException
setVariableValue
public void setVariableValue(java.lang.String localPart,
java.lang.Object value)
- Allows a variable to be specified
- Parameters:
localPart
- value
-
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.