|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.document.Advertisement
net.jxta.document.ExtendableAdvertisement
net.jxta.protocol.ModuleImplAdvertisement
public abstract class ModuleImplAdvertisement
A ModuleImplAdvertisement represents one of any number of published implementations 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 automatically, 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
Constructor Summary | |
---|---|
ModuleImplAdvertisement()
|
Method Summary | |
---|---|
Object |
clone()
Clone this ModuleImplAdvertisement |
static String |
getAdvertisementType()
Returns the identifying type of this Advertisement. |
String |
getBaseAdvType()
Returns the base type of this advertisement hierarchy. |
String |
getCode()
returns the code; a reference to or representation of the executable code advertised by this advertisement. |
StructuredDocument |
getCompat()
returns the module impl. compatibility statement. |
protected StructuredDocument |
getCompatPriv()
Privileged version of getCompat() that does not clone the elements. |
String |
getDescription()
returns the description |
ID |
getID()
Returns the unique ID of that advertisement for indexing purposes. |
ModuleSpecID |
getModuleSpecID()
Returns the id of the spec that this implements. |
StructuredDocument |
getParam()
returns the param element. |
protected StructuredDocument |
getParamPriv()
Privileged version of getParam() that does not clone the elements. |
String |
getProvider()
returns the provider |
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(String code)
sets the code |
void |
setCompat(Element compat)
sets the module impl. compatibility statement. |
void |
setDescription(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(String provider)
sets the provider |
void |
setUri(String uri)
sets the uri |
Methods inherited from class net.jxta.document.ExtendableAdvertisement |
---|
getDocument, handleElement |
Methods inherited from class net.jxta.document.Advertisement |
---|
getAdvType, getIndexFields, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModuleImplAdvertisement()
Method Detail |
---|
public static String getAdvertisementType()
public final String getBaseAdvType()
final
.
getBaseAdvType
in class ExtendableAdvertisement
public Object clone()
clone
in class Advertisement
public ID getID()
getID
in class Advertisement
public ModuleSpecID getModuleSpecID()
public void setModuleSpecID(ModuleSpecID sid)
sid
- The id of the specpublic StructuredDocument getCompat()
protected StructuredDocument getCompatPriv()
getCompat()
that does not clone the elements.
public void setCompat(Element compat)
compat
- Element of an unspecified content.public String getCode()
public void setCode(String code)
code
- reference to the codepublic String getUri()
public void setUri(String uri)
uri
- string uripublic String getProvider()
public void setProvider(String provider)
provider
- the providerpublic String getDescription()
public void setDescription(String description)
description
- the descriptionpublic StructuredDocument getParam()
protected StructuredDocument getParamPriv()
getParam()
that does not clone the elements.
public void setParam(Element param)
param
- Element of an unspecified content.
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |