javax.slee
Class SbbID

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

public final class SbbID
extends ComponentID

The SbbID class encapsulates SBB component identity. An SbbID object is also known as an SBB identifier.

See Also:
Serialized Form

Constructor Summary
SbbID(java.lang.String name, java.lang.String vendor, java.lang.String version)
          Create a new SBB component identifier.
 
Method Summary
 java.lang.Object clone()
          Create a copy of this SBB 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

SbbID

public SbbID(java.lang.String name,
             java.lang.String vendor,
             java.lang.String version)
Create a new SBB component identifier.

Parameters:
name - the name of the SBB component.
vendor - the vendor of the SBB component.
version - the version of the SBB 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 SBB component identifier.

Overrides:
clone in class java.lang.Object
Returns:
a copy of this SBB 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.