com.isti.openorbutil
Class EvtChEventType

java.lang.Object
  extended by com.isti.openorbutil.EvtChEventType

public class EvtChEventType
extends java.lang.Object

Class EvtChEventType holds "domain" and "type" strings for an event type.


Field Summary
 java.lang.String domainStr
          Event type "domain" string.
 java.lang.String typeStr
          Event type "type" string.
 
Constructor Summary
EvtChEventType(java.lang.String domainStr, java.lang.String typeStr)
          Creates an event type information block.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines if the given object is equal to this object.
 int hashCode()
          Returns the hash code value for this object.
 java.lang.String toListString()
          creates a string suitable for using to build up the domain/type lists using the format "domain:type,domain:type...".
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domainStr

public final java.lang.String domainStr
Event type "domain" string.


typeStr

public final java.lang.String typeStr
Event type "type" string.

Constructor Detail

EvtChEventType

public EvtChEventType(java.lang.String domainStr,
                      java.lang.String typeStr)
Creates an event type information block.

Parameters:
domainStr - the "domain" string to use.
typeStr - the "type" string to use.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Determines if the given object is equal to this object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the 'EvtChEventType' to compare to.
Returns:
true if the given object is an 'EvtChEventType' object whose domain and type names are equal to the ones in this object.

toListString

public java.lang.String toListString()
creates a string suitable for using to build up the domain/type lists using the format "domain:type,domain:type...". Occurrences of the ':' and ',' characters not meant as separators may be "quoted" by preceding them with the backslash ('\') character. List items missing the ':' character will be considered to specify only a domain name (the type name will be an empty string).

Returns:
the final string element.

hashCode

public int hashCode()
Returns the hash code value for this object. The hash code value is computed by adding the hash codes for the domain and type name strings.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code value for this object.