|
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.ConfigParams
net.jxta.impl.protocol.GroupConfig
net.jxta.impl.protocol.PlatformConfig
public final class PlatformConfig
Configuration container for the World Peer Group. For historical reasons the same configuration container and instance is also used for the Net Peer Group.
Nested Class Summary | |
---|---|
static class |
PlatformConfig.Instantiator
Instantiator for PlatformConfig |
Field Summary |
---|
Fields inherited from class net.jxta.protocol.ConfigParams |
---|
modCount |
Constructor Summary | |
---|---|
PlatformConfig()
Use the Instantiator through the factory |
|
PlatformConfig(XMLElement doc)
Use the Instantiator through the factory |
Method Summary | |
---|---|
boolean |
addDocumentElements(StructuredDocument adv)
Return the advertisement as a document. |
PlatformConfig |
clone()
Make a safe clone of this PlatformConfig. |
boolean |
equals(Object other)
|
static String |
getAdvertisementType()
returns the advertisement type |
String |
getAdvType()
Returns the identifying type of this Advertisement. |
String |
getDebugLevel()
Deprecated. The debug level is no longer set via this api. See Logging . |
StructuredDocument |
getDesc()
Returns the description |
String |
getDescription()
returns the description |
ID |
getID()
Returns a unique ID for that peer X group intersection. |
String |
getName()
returns the name of the peer. |
PeerID |
getPeerID()
Returns the id of the peer. |
protected boolean |
handleElement(Element raw)
Process an individual element from the document during parse. |
void |
setDebugLevel(String debugLevel)
Deprecated. The debug level is no longer set via this api. See Logging . |
void |
setDesc(Element desc)
Sets the description |
void |
setDescription(String description)
Sets the description |
void |
setName(String name)
sets the name of the peer. |
void |
setPeerID(PeerID pid)
Sets the peer ID to use for this peer. |
Methods inherited from class net.jxta.impl.protocol.GroupConfig |
---|
getDocument, getIndexFields |
Methods inherited from class net.jxta.protocol.ConfigParams |
---|
getBaseAdvType, getModCount, getServiceParam, getServiceParamsEntrySet, getSvcConfigAdvertisement, incModCount, isSvcEnabled, putServiceParam, removeServiceParam, removeSvcConfigAdvertisement, setSvcConfigAdvertisement, setSvcConfigAdvertisement |
Methods inherited from class net.jxta.document.ExtendableAdvertisement |
---|
handleAttribute |
Methods inherited from class net.jxta.document.Advertisement |
---|
toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
PlatformConfig()
PlatformConfig(XMLElement doc)
doc
- the elementMethod Detail |
---|
public PlatformConfig clone()
clone
in class GroupConfig
public boolean equals(Object other)
equals
in class ConfigParams
public static String getAdvertisementType()
public String getAdvType()
Advertisement.getAdvertisementType()
this method will return the correct
runtime type of an Advertisement object.
This implementation is provided for existing advertisements which do not
provide their own implementation. In most cases you should provide your
own implementation for efficiency reasons.
getAdvType
in class GroupConfig
public String getName()
public void setName(String name)
name
- name of the peer.public PeerID getPeerID()
public void setPeerID(PeerID pid)
pid
- The peer ID to use for this peer.public ID getID()
getID
in class GroupConfig
ID.nullID
if this advertisement is of a type that is not
normally indexed.public String getDescription()
public void setDescription(String description)
description
- the descriptionpublic StructuredDocument getDesc()
public void setDesc(Element desc)
desc
- the description@Deprecated public String getDebugLevel()
Logging
.
@Deprecated public void setDebugLevel(String debugLevel)
Logging
.
debugLevel
- the debugLevelprotected boolean handleElement(Element raw)
protected boolean handleElement(Element elem) {
if (super.handleElement()) {
// it's been handled.
return true;
}
... handle elements here ...
// we don't know how to handle the element
return false;
}
handleElement
in class ConfigParams
raw
- The element to be processed.
true
if the element was recognized, otherwise false.public boolean addDocumentElements(StructuredDocument adv)
addDocumentElements
in class ConfigParams
adv
- the document to add elements to.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |