|
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.ModuleSpecID
net.jxta.impl.id.UUID.ModuleSpecID
public class ModuleSpecID
An implementation of the ModuleSpecID
ID Type.
Field Summary | |
---|---|
protected IDBytes |
id
The id data |
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
protected |
ModuleSpecID()
Constructor. |
protected |
ModuleSpecID(IDBytes id)
Initializes contents from provided ID. |
|
ModuleSpecID(ModuleClassID classID)
See IDFactory.Instantiator.newModuleSpecID(net.jxta.platform.ModuleClassID) . |
protected |
ModuleSpecID(UUID classUUID,
UUID specUUID)
Creates a ModuleSpecID in a given class, with a given class unique id. |
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 |
getSpecUUID()
get the spec unique id |
Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
int |
hashCode()
|
boolean |
isOfSameBaseClass(ModuleClassID classId)
Returns true if this ModuleSpecID is of the same base class than the given class. |
boolean |
isOfSameBaseClass(ModuleSpecID specId)
Returns true if this ModuleSpecID is of the same base class than the the given ModuleSpecID. |
Methods inherited from class net.jxta.platform.ModuleSpecID |
---|
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 ModuleSpecID()
protected ModuleSpecID(IDBytes id)
id
- the ID dataprotected ModuleSpecID(UUID classUUID, UUID specUUID)
classUUID
- the class to which this will belong.specUUID
- the unique id of this spec in that class.public ModuleSpecID(ModuleClassID classID)
IDFactory.Instantiator.newModuleSpecID(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 ModuleSpecID
public boolean isOfSameBaseClass(ModuleClassID classId)
isOfSameBaseClass
in class ModuleSpecID
classId
- Module class id to compare with
public boolean isOfSameBaseClass(ModuleSpecID specId)
isOfSameBaseClass
in class ModuleSpecID
specId
- Module spec id to compare with
protected UUID getClassUUID()
protected UUID getSpecUUID()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |