ilog.rules.rf.model.event

Class IlrRFEvent

  • java.lang.Object
    • ilog.rules.rf.model.event.IlrRFEvent


  • public class IlrRFEvent
    extends java.lang.Object
    Ruleflow model event class.
    Since:
    JRules 7.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int ADD
      Constant indentifying an "add" event.
      static int REMOVE
      Constant indentifying a "remove" event.
      static int SET
      Constant indentifying a "set" event.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrRFEvent(IlrRFElement source, int eventType, java.lang.String property, boolean oldValue, boolean newValue)
      Builds a new notification.
      IlrRFEvent(IlrRFElement source, int eventType, java.lang.String property, int oldValue, int newValue)
      Builds a new notification.
      IlrRFEvent(IlrRFElement source, int eventType, java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
      Builds a new notification.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getEventType()
      Returns the event type of this event.
      java.lang.Object getNewValue()
      Returns the new value of this event.
      java.lang.Object getOldValue()
      Returns the old value of this event.
      java.lang.String getProperty()
      Returns the feature ID of this event.
      IlrRFElement getSource()
      Returns the source object for this event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrRFEvent

        public IlrRFEvent(IlrRFElement source,
                  int eventType,
                  java.lang.String property,
                  java.lang.Object oldValue,
                  java.lang.Object newValue)
        Builds a new notification.
        Parameters:
        source - The source element.
        eventType - The type of event.
        property - The property.
        oldValue - The old value.
        newValue - The new value.
      • IlrRFEvent

        public IlrRFEvent(IlrRFElement source,
                  int eventType,
                  java.lang.String property,
                  boolean oldValue,
                  boolean newValue)
        Builds a new notification.
        Parameters:
        source - The source element.
        eventType - The type of event.
        property - The property.
        oldValue - The old value.
        newValue - The new value.
      • IlrRFEvent

        public IlrRFEvent(IlrRFElement source,
                  int eventType,
                  java.lang.String property,
                  int oldValue,
                  int newValue)
        Builds a new notification.
        Parameters:
        source - The source element.
        eventType - The type of event.
        property - The property.
        oldValue - The old value.
        newValue - The new value.
    • Method Detail

      • getProperty

        public java.lang.String getProperty()
        Returns the feature ID of this event.
        Returns:
        Returns the feature ID.
      • getEventType

        public int getEventType()
        Returns the event type of this event.
        Returns:
        Returns the event type.
      • getNewValue

        public java.lang.Object getNewValue()
        Returns the new value of this event. This value is null when the event is a removal.
        Returns:
        Returns the new value.
      • getOldValue

        public java.lang.Object getOldValue()
        Returns the old value of this event. This value is null when the event is an addition.
        Returns:
        Returns the old value.
      • getSource

        public IlrRFElement getSource()
        Returns the source object for this event.
        Returns:
        The source object for this event.

© Copyright IBM Corp. 1987, 2017