|
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.binaryID.ModuleSpecBinaryID
public final class ModuleSpecBinaryID
A ModuleSpecID uniquely identifies a particular network behaviour (wire protocol and choregraphy) that may be embodied by a Jxta Module. There may be any number of implementations of a given SpecID. All such implementations are assumed to be network compatible.
The Specification that corresponds to a given ModuleSpecID may be published in a ModuleSpecAdvertisement. This advertisement is uniquely identified by the ModuleSpecID that it describes. The various implementations of a given SpecID may be published in ModuleImplAdvertisements. These advertisements are identified by the ModuleSpecID that they implement and a compatibility statement. ModuleImplAdvertisements baring the same SpecID and compatibility statement are theorethicaly interchangeable. However they may be subsequently discriminated by a Description element. A ModuleSpecID embeds a ModuleClassID which uniquely identifies a base Module class. A base module class defines a local behaviour and one API per compatible JXTA implementation. A ModuleSpecID therefore uniquely identifies an abstract module, of which an implementation compatible with the local JXTA implementation may be located and instantiated. In the standard PeerGroup implementation of the java reference implementation the various services are specified as a list of ModuleSpecID, for each of which the group locates and loads an implementation as part of the group's initialization.
PeerGroup
,
Module
,
ModuleClassID
,
ModuleSpecAdvertisement
,
ModuleImplAdvertisement
,
ID
,
Advertisement
,
Serialized FormField Summary | |
---|---|
protected BinaryID |
baseClassID
|
protected BinaryID |
classID
|
protected BinaryID |
specID
|
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
protected |
ModuleSpecBinaryID()
Constructor. |
protected |
ModuleSpecBinaryID(BinaryID classID,
BinaryID baseClassID,
BinaryID specID)
Constructor. |
protected |
ModuleSpecBinaryID(String id)
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". |
BinaryID |
getBaseClassID()
Getter for property baseClassID. |
BinaryID |
getClassID()
Getter for property classID. |
String |
getIDFormat()
Returns a string identifier which indicates which ID format is used by this ID instance. |
BinaryID |
getSpecID()
Getter for property specID. |
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 BinaryID classID
protected BinaryID baseClassID
protected BinaryID specID
Constructor Detail |
---|
protected ModuleSpecBinaryID()
protected ModuleSpecBinaryID(String id)
id
- the ID dataprotected ModuleSpecBinaryID(BinaryID classID, BinaryID baseClassID, BinaryID specID)
classID
- the class to which this will belong.baseClassID
- the unique id of this spec in that class.specID
- the spec IDMethod 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
public BinaryID getClassID()
public BinaryID getBaseClassID()
public BinaryID getSpecID()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |