org.mule.module.xml.filters
Class JaxenFilter
java.lang.Object
org.mule.module.xml.filters.JaxenFilter
- All Implemented Interfaces:
- MuleContextAware, Filter
public class JaxenFilter
- extends Object
- implements Filter, MuleContextAware
JaxenFilter evaluates an XPath expression against an XML document
using Jaxen.
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
logger
protected transient org.apache.commons.logging.Log logger
JaxenFilter
public JaxenFilter()
JaxenFilter
public JaxenFilter(String pattern)
JaxenFilter
public JaxenFilter(String pattern,
String expectedValue)
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext in interface MuleContextAware
accept
public boolean accept(MuleMessage obj)
- Specified by:
accept in interface Filter
getDOMXPath
protected org.jaxen.dom.DOMXPath getDOMXPath()
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
getDom4jXPath
protected org.jaxen.dom4j.Dom4jXPath getDom4jXPath()
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
getJavaBeanXPath
protected org.jaxen.javabean.JavaBeanXPath getJavaBeanXPath()
throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
getPattern
public String getPattern()
- Returns:
- XPath expression
setPattern
public void setPattern(String pattern)
- Parameters:
pattern - The XPath expression
getExpectedValue
public String getExpectedValue()
- Returns:
- The expected result value of the XPath expression
setExpectedValue
public void setExpectedValue(String expectedValue)
- Sets the expected result value of the XPath expression
getNamespaces
public Map<String,String> getNamespaces()
setNamespaces
public void setNamespaces(Map<String,String> namespaces)
getContextProperties
public Map getContextProperties()
setContextProperties
public void setContextProperties(Map contextProperties)
getFactory
public org.apache.commons.jxpath.AbstractFactory getFactory()
setFactory
public void setFactory(org.apache.commons.jxpath.AbstractFactory factory)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.