JXTA

net.jxta.impl.id.CBID
Class ModuleSpecID

java.lang.Object
  extended by net.jxta.id.ID
      extended by net.jxta.platform.ModuleSpecID
          extended by net.jxta.impl.id.UUID.ModuleSpecID
              extended by net.jxta.impl.id.CBID.ModuleSpecID
All Implemented Interfaces:
Serializable

public final class ModuleSpecID
extends ModuleSpecID

An implementation of the ModuleSpecID ID Type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.jxta.impl.id.UUID.ModuleSpecID
id
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
protected ModuleSpecID()
          Constructor.
protected ModuleSpecID(IDBytes id)
          Intializes 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
 ModuleClassID getBaseClass()
          Return a ModuleClassID of the same base class but with the role portion set to zero. aka "the base class".
 String getIDFormat()
          Returns a string identifier which indicates which ID format is used by this ID instance.
 
Methods inherited from class net.jxta.impl.id.UUID.ModuleSpecID
equals, getClassUUID, getSpecUUID, getUniqueValue, hashCode, isOfSameBaseClass, isOfSameBaseClass
 
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
 

Constructor Detail

ModuleSpecID

protected ModuleSpecID()
Constructor. Used only internally.


ModuleSpecID

protected ModuleSpecID(IDBytes id)
Intializes contents from provided ID.

Parameters:
id - the ID data

ModuleSpecID

protected ModuleSpecID(UUID classUUID,
                       UUID specUUID)
Creates a ModuleSpecID in a given class, with a given class unique id. A UUID of a class and another UUID are provided.

Parameters:
classUUID - the class to which this will belong.
specUUID - the unique id of this spec in that class.
Since:
JXTA 1.0

ModuleSpecID

public ModuleSpecID(ModuleClassID classID)
See IDFactory.Instantiator.newModuleSpecID(net.jxta.platform.ModuleClassID).

Parameters:
classID - the ModuleClassID
Method Detail

getIDFormat

public String getIDFormat()
Returns a string identifier which indicates which ID format is used by this ID instance.

Overrides:
getIDFormat in class ModuleSpecID
Returns:
a string identifier which indicates which ID format is used by this ID instance.

getBaseClass

public ModuleClassID getBaseClass()
Return a ModuleClassID of the same base class but with the role portion set to zero. aka "the base class".

Overrides:
getBaseClass in class ModuleSpecID
Returns:
ModuleClassID the base class.

JXSE