Project JXTA

net.jxta.peergroup
Class PeerGroupID

java.lang.Object
  extended by net.jxta.id.ID
      extended by net.jxta.peergroup.PeerGroupID
All Implemented Interfaces:
Serializable

public abstract class PeerGroupID
extends ID

This class implements a PeerGroup ID. Each peer group is assigned a unique id.

Since:
JXTA 1.0
See Also:
ID, IDFactory, PeerID, Serialized Form

Field Summary
static PeerGroupID defaultNetPeerGroupID
          The well known Unique Identifier of the net peergroup.
static PeerGroupID worldPeerGroupID
          The well known Unique Identifier of the world peergroup.
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
PeerGroupID()
           
 
Method Summary
abstract  PeerGroupID getParentPeerGroupID()
          Returns the parent peer group id of this peer group id, if any.
 
Methods inherited from class net.jxta.id.ID
clone, create, getIDFormat, getUniqueValue, getURL, toString, toURI
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

worldPeerGroupID

public static final PeerGroupID worldPeerGroupID
The well known Unique Identifier of the world peergroup. This is a singleton within the scope of a VM.


defaultNetPeerGroupID

public static final PeerGroupID defaultNetPeerGroupID
The well known Unique Identifier of the net peergroup. This is a singleton within the scope of this VM.

Constructor Detail

PeerGroupID

public PeerGroupID()
Method Detail

getParentPeerGroupID

public abstract PeerGroupID getParentPeerGroupID()
Returns the parent peer group id of this peer group id, if any.

Returns:
the id of the parent peergroup or null if this group has no parent group.

JXTA J2SE