Project JXTA

net.jxta.impl.id.UUID
Class ModuleSpecID

java.lang.Object
  extended bynet.jxta.id.ID
      extended bynet.jxta.platform.ModuleSpecID
          extended bynet.jxta.impl.id.UUID.ModuleSpecID
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ModuleSpecID

public class ModuleSpecID
extends ModuleSpecID

An implementation of the ModuleSpecID ID Type.

See Also:
Serialized Form

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)
          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
 boolean equals(Object target)
          
 ModuleClassID getBaseClass()
          
protected  UUID getClassUUID()
          get the class' unique id
 String getIDFormat()
          
protected  UUID getSpecUUID()
          get the spec unique id
 Object getUniqueValue()
          
 URL getURL()
          
 int hashCode()
          
 boolean isOfSameBaseClass(ModuleClassID classId)
          
 boolean isOfSameBaseClass(ModuleSpecID specId)
          
 URI toURI()
          
 
Methods inherited from class net.jxta.id.ID
clone, create, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected IDBytes id
The id data

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).

Method Detail

equals

public boolean equals(Object target)


hashCode

public int hashCode()


getIDFormat

public String getIDFormat()


getUniqueValue

public Object getUniqueValue()


getURL

public URL getURL()


getBaseClass

public ModuleClassID getBaseClass()


isOfSameBaseClass

public boolean isOfSameBaseClass(ModuleClassID classId)


isOfSameBaseClass

public boolean isOfSameBaseClass(ModuleSpecID specId)


getClassUUID

protected UUID getClassUUID()
get the class' unique id

Returns:
UUID module class' unique id
Since:
JXTA 1.0

getSpecUUID

protected UUID getSpecUUID()
get the spec unique id

Returns:
UUID module spec unique id
Since:
JXTA 1.0

toURI

public URI toURI()


JXTA J2SE