javax.slee.resource
Class ResourceAdaptorTypeID

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

public final class ResourceAdaptorTypeID
extends ComponentID

The ResourceAdaptorTypeID class encapsulates resource adaptor type component identity. A ResourceAdaptorTypeID object is also known as a resource adaptor type identifier.

See Also:
Serialized Form

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

ResourceAdaptorTypeID

public ResourceAdaptorTypeID(java.lang.String name,
                             java.lang.String vendor,
                             java.lang.String version)
Create a new resource adaptor type component identifier.

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

Overrides:
clone in class java.lang.Object
Returns:
a copy of this resource adaptor 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 © 2008. All Rights Reserved.