|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.ComponentID
public abstract class ComponentID
The ComponentID class is the common base class for all component
identifiers. All deployable components installed in the SLEE have some
component identity, specified as a derivitive class of ComponentID.
| Constructor Summary | |
|---|---|
protected |
ComponentID(java.lang.String name,
java.lang.String vendor,
java.lang.String version)
Create a new component identifier. |
| Method Summary | |
|---|---|
abstract int |
compareTo(java.lang.Object obj)
Compare this component identifier with the specified object for order. |
protected int |
compareTo(java.lang.String thisClassName,
ComponentID that)
Compare this component identifier with the specified component identifier for order. |
boolean |
equals(java.lang.Object obj)
Compare this component identifier for equality with another object. |
protected abstract java.lang.String |
getClassName()
Get the class name of this component identifier. |
java.lang.String |
getName()
Get the name of the component. |
java.lang.String |
getVendor()
Get the vendor of the component. |
java.lang.String |
getVersion()
Get the version of the component. |
int |
hashCode()
Get a hash code value for this component identifier. |
java.lang.String |
toString()
Get a string representation for this component identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ComponentID(java.lang.String name,
java.lang.String vendor,
java.lang.String version)
name - the name of the component.vendor - the vendor of the component.version - the version of the component.
java.lang.NullPointerException - if any argument is null.| Method Detail |
|---|
public final java.lang.String getName()
public final java.lang.String getVendor()
public final java.lang.String getVersion()
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare this with.
true if obj is a component identifier
of the same class as this, and has the same name, vendor, and
version as this, false otherwise.Object.equals(Object)public final int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public final java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public abstract int compareTo(java.lang.Object obj)
Component ordering is determined by comparing the component identifier attributes in the following order:
ComponentID may
be safely compared without causing a ClassCastException)
compareTo in interface java.lang.Comparableobj - the object to compare this with.
Comparable.compareTo(Object)
protected final int compareTo(java.lang.String thisClassName,
ComponentID that)
Component ordering is determined by comparing the component identifier attributes in the following order:
ComponentID may
be safely compared without causing a ClassCastException)
thisClassName - the class name of this component identifier.that - the component identifier to compare this with.
Comparable.compareTo(Object)protected abstract java.lang.String getClassName()
getClass().getName().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||