cia.abus
Class ChannelEventType

java.lang.Object
  |
  +--cia.abus.ChannelEventType

public class ChannelEventType
extends java.lang.Object
implements java.io.Serializable

This class represents the type of a Channel Event.

For now ChannelEventType is just a free format string that is passed along with ChannelEvents, -Messages, -Requests, -RequestMessages or -Replies. This will change in the near future, so be ready to change your code related to ChannelEventType.

Version:
0.1 99-03-10 14:00 fkargl initial coding
Author:
Frank Kargl
See Also:
Serialized Form

Constructor Summary
ChannelEventType(java.lang.String type)
          Creates new event type.
 
Method Summary
 boolean equals(ChannelEventType othertype)
          Checks if two types are equal.
 java.lang.String getEventType()
          Gets the eventtype field.
 void setEventType(java.lang.String eventtype)
          Sets the eventtype field.
 java.lang.String toString()
          Gets string representation of eventtype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelEventType

public ChannelEventType(java.lang.String type)
Creates new event type.

The event type is just a free format string.

Parameters:
type - type of event
Method Detail

setEventType

public void setEventType(java.lang.String eventtype)
Sets the eventtype field.
Parameters:
eventtype - set eventtype to this value

getEventType

public java.lang.String getEventType()
Gets the eventtype field.
Returns:
eventtype field null if not set

toString

public java.lang.String toString()
Gets string representation of eventtype
Returns:
string representation
Overrides:
toString in class java.lang.Object

equals

public boolean equals(ChannelEventType othertype)
Checks if two types are equal.
Parameters:
type - ChannelEventType to compare
Returns:
boolean match or not