javax.slee
Class EventTypeID

java.lang.Object
  extended by javax.slee.ComponentID
      extended by javax.slee.EventTypeID
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public final class EventTypeID
extends ComponentID

The EventTypeID class encapsulates event type component identity. An EventTypeID object is also known as an event type identifier.

See Also:
Serialized Form

Constructor Summary
EventTypeID(java.lang.String name, java.lang.String vendor, java.lang.String version)
          Create a new event type component identifier.
 
Method Summary
 java.lang.Object clone()
          Create a copy of this event type component identifier.
 int compareTo(java.lang.Object obj)
          Compare this component identifier with the specified object for order.
protected  java.lang.String getClassName()
          Get the class name of this component identifier.
 
Methods inherited from class javax.slee.ComponentID
compareTo, equals, getName, getVendor, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventTypeID

public EventTypeID(java.lang.String name,
                   java.lang.String vendor,
                   java.lang.String version)
Create a new event type component identifier.

Parameters:
name - the name of the event type component.
vendor - the vendor of the event type component.
version - the version of the event type component.
Throws:
java.lang.NullPointerException - if any argument is null.
Method Detail

compareTo

public final int compareTo(java.lang.Object obj)
Description copied from class: ComponentID
Compare this component identifier with the specified object for order. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.

Component ordering is determined by comparing the component identifier attributes in the following order:

  1. component type (nb. any subclass of ComponentID may be safely compared without causing a ClassCastException)
  2. component name
  3. component vendor
  4. component version

Specified by:
compareTo in interface java.lang.Comparable
Specified by:
compareTo in class ComponentID
Parameters:
obj - the object to compare this with.
Returns:
a negative integer, zero, or a positive integer if this component identifier is considered less than, equal to, or greater than the specified object.
See Also:
Comparable.compareTo(Object)

clone

public java.lang.Object clone()
Create a copy of this event type component identifier.

Overrides:
clone in class java.lang.Object
Returns:
a copy of this event type component identifier.
See Also:
Object.clone()

getClassName

protected java.lang.String getClassName()
Description copied from class: ComponentID
Get the class name of this component identifier. More efficient than getClass().getName().

Specified by:
getClassName in class ComponentID
Returns:
the class name of this component identifier.


Copyright © 2009. All Rights Reserved.