|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.jxta.document.Advertisement
|
+--net.jxta.protocol.ModuleImplAdvertisement
A ModuleImplAdvertisement represents one of any number of published implementation of a given specification. It is meant to be published via JXTA discovery. Module specifications are referenced by their ModuleSpecID. Given a ModuleSpecID, a ModuleImplAdvertisement may be searched by means of JXTA Discovery, filtered according to the compatibility statement it contains, and if compatible, loaded and initialized. The loadModule method of a PeerGroup implementation performs this task automaticaly, given a ModuleSpecID. One significant example of Modules referenced and loaded in that manner are the services and protocols that constitute a StdPeerGroup in the java reference implementation.
ID,
ModuleSpecID,
Advertisement,
StructuredDocument,
Element,
ModuleSpecAdvertisement,
PeerGroup| Field Summary | |
protected StructuredDocument |
compat
|
protected StructuredDocument |
param
|
| Constructor Summary | |
ModuleImplAdvertisement()
|
|
| Method Summary | |
java.lang.Object |
clone()
Clone this ModuleImplAdvertisement |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.lang.String |
getCode()
returns the code; a reference to or representation of the executable code advertised by this advertisement. |
StructuredDocument |
getCompat()
returns the module impl. |
java.lang.String |
getDescription()
returns the description |
ID |
getID()
Returns the unique ID of that advertisement for indexation purposes. |
ModuleSpecID |
getModuleSpecID()
Returns the id of the spec that this implements. |
StructuredDocument |
getParam()
returns the param element. |
java.lang.String |
getProvider()
returns the provider |
java.lang.String |
getUri()
returns the uri; that is a reference to or representation of a package from which the executable code referenced by the getCode method may be loaded. |
void |
setCode(java.lang.String code)
sets the code |
void |
setCompat(Element compat)
sets the module impl. |
void |
setDescription(java.lang.String description)
sets the description |
void |
setModuleSpecID(ModuleSpecID sid)
Sets the id of the spec that is implemented |
void |
setParam(Element param)
sets the module param |
void |
setProvider(java.lang.String provider)
sets the provider |
void |
setUri(java.lang.String uri)
sets the uri |
| Methods inherited from class net.jxta.document.Advertisement |
getDocument |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected StructuredDocument compat
protected StructuredDocument param
| Constructor Detail |
public ModuleImplAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.Object clone()
clone in class Advertisementpublic ID getID()
getID in class Advertisementpublic ModuleSpecID getModuleSpecID()
public void setModuleSpecID(ModuleSpecID sid)
sid - The id of the specpublic StructuredDocument getCompat()
public void setCompat(Element compat)
compat - Element of an unspecified content.public java.lang.String getCode()
public void setCode(java.lang.String code)
code - reference to the codepublic java.lang.String getUri()
public void setUri(java.lang.String uri)
uri - string uripublic java.lang.String getProvider()
public void setProvider(java.lang.String provider)
provider - the providerpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the descriptionpublic StructuredDocument getParam()
public void setParam(Element param)
param - Element of an unspecified content.
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||