|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.id.ID
net.jxta.platform.ModuleClassID
net.jxta.impl.id.UUID.ModuleClassID
public class ModuleClassID
An implementation of the ModuleClassID
ID Type.
Field Summary | |
---|---|
protected IDBytes |
id
The id data |
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
|
ModuleClassID()
See IDFactory.Instantiator.newModuleClassID() . |
protected |
ModuleClassID(IDBytes id)
Constructor. |
|
ModuleClassID(ModuleClassID classID)
See IDFactory.Instantiator.newModuleClassID(net.jxta.platform.ModuleClassID) . |
protected |
ModuleClassID(UUID classUUID,
UUID roleUUID)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object target)
|
ModuleClassID |
getBaseClass()
Return a ModuleClassID of the same base class but with the role portion set to zero. aka "the base class". |
protected UUID |
getClassUUID()
get the class' unique id |
String |
getIDFormat()
Returns a string identifier which indicates which ID format is used by this ID instance. |
protected UUID |
getRoleUUID()
get the role unique id |
Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
int |
hashCode()
|
boolean |
isOfSameBaseClass(ModuleClassID classId)
Returns true if this ModuleClassID is of the same base class than the given class. |
boolean |
isOfSameBaseClass(ModuleSpecID specId)
Returns true if this ModuleClassID is of the same class than the the given ModuleSpecID. |
Methods inherited from class net.jxta.platform.ModuleClassID |
---|
create, intern |
Methods inherited from class net.jxta.id.ID |
---|
getURL, toString, toURI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected IDBytes id
Constructor Detail |
---|
protected ModuleClassID(IDBytes id)
id
- the ID dataprotected ModuleClassID(UUID classUUID, UUID roleUUID)
classUUID
- the class to which this will belong.roleUUID
- the unique id of this role in that class.public ModuleClassID()
IDFactory.Instantiator.newModuleClassID()
.
A new class UUID is created. The role ID is left null. This is the
only way to create a new class without supplying a new UUID explicitly.
Note that a null role is just as valid as any other, it just has a
shorter string representation. So it is not mandatory to create a new
role in a new class.
public ModuleClassID(ModuleClassID classID)
IDFactory.Instantiator.newModuleClassID(net.jxta.platform.ModuleClassID)
.
Method Detail |
---|
public boolean equals(Object target)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getIDFormat()
getIDFormat
in class ID
public Object getUniqueValue()
this
.
getUniqueValue
in class ID
public ModuleClassID getBaseClass()
getBaseClass
in class ModuleClassID
public boolean isOfSameBaseClass(ModuleClassID classId)
isOfSameBaseClass
in class ModuleClassID
classId
- Module class id to compare with
public boolean isOfSameBaseClass(ModuleSpecID specId)
isOfSameBaseClass
in class ModuleClassID
specId
- Module spec id to compare with
protected UUID getClassUUID()
protected UUID getRoleUUID()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |