|
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.ModuleClassAdvertisement
public abstract class ModuleClassAdvertisement
Formally documents the existence of a module class (identified by the
ModuleClassID
and may provide additional
descriptive metadata about the Module Class.
ModuleClassID
Constructor Summary | |
---|---|
ModuleClassAdvertisement()
|
Method Summary | |
---|---|
ModuleClassAdvertisement |
clone()
|
static String |
getAdvertisementType()
Returns the identifying type of this Advertisement. |
String |
getBaseAdvType()
Returns the base type of this advertisement hierarchy. |
StructuredDocument |
getDesc()
returns the description |
String |
getDescription()
returns the description |
ID |
getID()
Returns an ID which identifies this Advertisement as uniquely as
possible. |
ModuleClassID |
getModuleClassID()
returns the id of the class |
String |
getName()
returns the name of the class |
void |
setDesc(Element desc)
sets the description |
void |
setDescription(String description)
sets the description |
void |
setModuleClassID(ModuleClassID id)
sets the id of the class |
void |
setName(String name)
sets the name of the class |
Methods inherited from class net.jxta.document.ExtendableAdvertisement |
---|
getDocument, handleAttribute, 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 ModuleClassAdvertisement()
Method Detail |
---|
public static String getAdvertisementType()
public final String getBaseAdvType()
final
.
getBaseAdvType
in class ExtendableAdvertisement
public ModuleClassAdvertisement clone()
clone
in class Advertisement
public ID getID()
Advertisement
as uniquely as
possible. This ID is typically used as the primary key for indexing of
the Advertisement within databases.
Each advertisement sub-class must choose an appropriate implementation
which returns canonical and relatively unique ID values for it's
instances. Since this ID is commonly used for indexing, the IDs returned
must be as unique as possible to avoid collisions. The value for the ID
returned can either be:
IllegalStateException
should be
thrown.
getID
in class Advertisement
ID.nullID
if this advertisement is of a type that is not
normally indexed.public String getName()
public void setName(String name)
name
- name of the class to be setpublic String getDescription()
public void setDescription(String description)
description
- the descriptionpublic StructuredDocument getDesc()
public void setDesc(Element desc)
desc
- the descriptionpublic ModuleClassID getModuleClassID()
public void setModuleClassID(ModuleClassID id)
id
- The id of the class
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |