app.spa
Class SPAEvent

java.lang.Object
  extended by app.spa.SPAEvent

public final class SPAEvent
extends java.lang.Object

SPA event descriptor.


Field Summary
 boolean FLAG
          Boolean parameter for this event.
 int[] INTS
          List of integer parameter values for this event, may be null.
 EventId KIND
          The event kind.
 java.lang.String PARAM
          String parameter for this event.
 
Constructor Summary
SPAEvent(EventId kind)
          Constructs a new event of the given kind, with default parameter values.
SPAEvent(EventId kind, boolean flag)
          Constructs a new event of the given kind, with the given boolean parameter value, and default values for the remaining parameters.
SPAEvent(EventId kind, java.lang.String param)
          Constructs a new event of the given kind, with the given string parameter value, and default values for the remaining parameters.
SPAEvent(EventId kind, java.lang.String param, boolean flag, int[] ints)
          Constructs a new event of the given kind, with the given string, boolean, and integer list parameter values.
 
Method Summary
 java.lang.String kindTag()
          Returns this event's kind as a string.
 java.lang.String toString()
          Returns a legible text representation of this event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KIND

public final EventId KIND
The event kind.


PARAM

public final java.lang.String PARAM
String parameter for this event.


FLAG

public final boolean FLAG
Boolean parameter for this event.


INTS

public final int[] INTS
List of integer parameter values for this event, may be null.

Constructor Detail

SPAEvent

public SPAEvent(EventId kind)
Constructs a new event of the given kind, with default parameter values.


SPAEvent

public SPAEvent(EventId kind,
                java.lang.String param)
Constructs a new event of the given kind, with the given string parameter value, and default values for the remaining parameters.


SPAEvent

public SPAEvent(EventId kind,
                boolean flag)
Constructs a new event of the given kind, with the given boolean parameter value, and default values for the remaining parameters.


SPAEvent

public SPAEvent(EventId kind,
                java.lang.String param,
                boolean flag,
                int[] ints)
Constructs a new event of the given kind, with the given string, boolean, and integer list parameter values.

Method Detail

kindTag

public java.lang.String kindTag()
Returns this event's kind as a string.


toString

public java.lang.String toString()
Returns a legible text representation of this event.

Overrides:
toString in class java.lang.Object