JaxenFilter (Mule ESB 2.2.1 API)
Keywords: org.mule.module.xml.filters.JaxenFilter class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 Log` | `logger`

Constructor Summary
`JaxenFilter()`
`JaxenFilter(String pattern)`
`JaxenFilter(String pattern, String expectedValue)`

Method Summary
`boolean` | `accept(MuleMessage obj)` Check a given message against this filter.
`boolean` | `equals(Object obj)`
`Map` | `getContextProperties()`
`protected org.jaxen.dom4j.Dom4jXPath` | `getDom4jXPath()`
`protected org.jaxen.dom.DOMXPath` | `getDOMXPath()`
`String` | `getExpectedValue()`
`org.apache.commons.jxpath.AbstractFactory` | `getFactory()`
`protected org.jaxen.javabean.JavaBeanXPath` | `getJavaBeanXPath()`
`Map` | `getNamespaces()`
`String` | `getPattern()`
`int` | `hashCode()`
`void` | `setContextProperties(Map contextProperties)`
`void` | `setExpectedValue(String expectedValue)` Sets the expected result value of the XPath expression
`void` | `setFactory(org.apache.commons.jxpath.AbstractFactory factory)`
`void` | `setMuleContext(MuleContext context)`
`void` | `setNamespaces(Map namespaces)`
`void` | `setPattern(String pattern)`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### logger

    protected transient Log logger

Constructor Detail

### JaxenFilter

    public JaxenFilter()

### JaxenFilter

    public JaxenFilter(String pattern)

### JaxenFilter

    public JaxenFilter(String pattern,
                       String expectedValue)

Method Detail

### setMuleContext

    public void setMuleContext(MuleContext context)

  Specified by:
    `setMuleContext` in interface `MuleContextAware`

### accept

    public boolean accept(MuleMessage obj)

  Description copied from interface: `Filter`
  Check a given message against this filter.

  Specified by:
    `accept` in interface `Filter`
  Parameters:
    `obj` - a non null message to filter.
  Returns:
    `true` if the message matches the 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 getNamespaces()

### setNamespaces

    public void setNamespaces(Map 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.