Class XPathFilter

java.lang.Object
oracle.fabric.composite.model.BaseElementModel
oracle.fabric.blocks.event.XPathFilterConfig
oracle.fabric.blocks.event.XPathFilter
All Implemented Interfaces:
BusinessEventFilter, oracle.fabric.blocks.event.BusinessEventFilterModel

public class XPathFilter extends oracle.fabric.blocks.event.XPathFilterConfig implements BusinessEventFilter
Represents XPath Filter object that contains XPath filter expression and namespace context.
  • Field Summary

    Fields inherited from class oracle.fabric.blocks.event.XPathFilterConfig

    ROOT_NODE_NAME, XPATH_NODE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an XPathFilter object.
    XPathFilter(String xpathExpression, NamespaceContext nsContext)
    Construct an XPathFilter object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(BusinessEvent businessEvent)
    Determine whether a given BusinessEvent should be forwarded to the subscriber.
     

    Methods inherited from class oracle.fabric.blocks.event.XPathFilterConfig

    getNsContext, getXpathExpression, setNsContext, setXpathExpression

    Methods inherited from class oracle.fabric.composite.model.BaseElementModel

    getId, setId

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XPathFilter

      public XPathFilter()
      Construct an XPathFilter object.
    • XPathFilter

      public XPathFilter(String xpathExpression, NamespaceContext nsContext)
      Construct an XPathFilter object.
      Parameters:
      xpathExpression - - xpath filter expression string
      nsContext - - namespace context
  • Method Details

    • accept

      public boolean accept(BusinessEvent businessEvent)
      Description copied from interface: BusinessEventFilter
      Determine whether a given BusinessEvent should be forwarded to the subscriber.
      Specified by:
      accept in interface BusinessEventFilter
      Parameters:
      businessEvent - The event
      Returns:
      "true" if the event should be forwarded.
    • toString

      public String toString()
      Specified by:
      toString in interface oracle.fabric.blocks.event.BusinessEventFilterModel
      Overrides:
      toString in class oracle.fabric.blocks.event.XPathFilterConfig