Class ObjectEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ObjectEvent
    extends java.lang.Object
    implements java.io.Serializable
    An EnvironmentObject event.
    See Also:
    Serialized Form
    • Constructor Detail

      • ObjectEvent

        public ObjectEvent​(java.lang.Object type)
        Creates a new ObjectEvent
        Parameters:
        type - event type
    • Method Detail

      • getType

        public java.lang.Object getType()
        Returns the event type.
        Returns:
        event type
      • hasParameters

        public boolean hasParameters()
        Returns whether the event has parameters.
        Returns:
        true, if the event has parameters
      • getParameters

        public java.util.Set getParameters()
        Returns the parameters.
        Returns:
        parameters as Set of Map.Entry
      • getParameter

        public java.lang.Object getParameter​(java.lang.String parameter)
        Returns an event parameter.
        Parameters:
        parameter - parameter name
        Returns:
        event parameter
      • setParameter

        public void setParameter​(java.lang.String parameter,
                                 java.lang.Object obj)
        Sets an event parameter.
        Parameters:
        parameter - parameter name
        obj - parameter object