public final class ProfileSpecificationID extends ComponentID
ProfileSpecificationID
class encapsulates profile specification
component identity. A ProfileSpecificationID
object is also known
as a profile specification identifier.Constructor and Description |
---|
ProfileSpecificationID(String name,
String vendor,
String version)
Create a new profile specification component identifier.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Create a copy of this profile specification component identifier.
|
int |
compareTo(Object obj)
Compare this component identifier with the specified object for order.
|
protected String |
getClassName()
Get the class name of this component identifier.
|
compareTo, equals, getName, getVendor, getVersion, hashCode, toString
public ProfileSpecificationID(String name, String vendor, String version)
name
- the name of the profile specification component.vendor
- the vendor of the profile specification component.version
- the version of the profile specification component.NullPointerException
- if any argument is null
.public final int compareTo(Object obj)
ComponentID
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 Comparable
compareTo
in class ComponentID
obj
- the object to compare this with.Comparable.compareTo(Object)
public Object clone()
clone
in class Object
Object.clone()
protected String getClassName()
ComponentID
getClass().getName()
.getClassName
in class ComponentID