|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.id.ID
net.jxta.peergroup.PeerGroupID
public abstract class PeerGroupID
This class implements a PeerGroup ID. Each peer group is assigned a unique id.
ID
,
IDFactory
,
PeerID
,
Serialized FormField 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 | |
---|---|
static PeerGroupID |
create(URI fromURI)
Creates an ID by parsing the given URI. |
abstract PeerGroupID |
getParentPeerGroupID()
Returns the parent peer group id of this peer group id, if any. |
PeerGroupID |
intern()
Returns a canonical representation for the ID object. |
Methods inherited from class net.jxta.id.ID |
---|
getIDFormat, getUniqueValue, getURL, toString, toURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PeerGroupID worldPeerGroupID
public static final PeerGroupID defaultNetPeerGroupID
Constructor Detail |
---|
public PeerGroupID()
Method Detail |
---|
public static PeerGroupID create(URI fromURI)
This convenience factory method works as if by invoking the
IDFactory.fromURI(URI)
method; any
URISyntaxException
thrown is caught and wrapped in a
new IllegalArgumentException
object, which is then thrown.
This method is provided for use in situations where it is known that
the given string is a legal ID, for example for ID constants declared
within in a program, and so it would be considered a programming error
for the URI not to parse as such. The IDFactory
,
which throws URISyntaxException
directly, should be used
situations where a ID is being constructed from user input or from some
other source that may be prone to errors.
fromURI
- The URI to be parsed into an ID
NullPointerException
- If fromURI
is null
.
IllegalArgumentException
- If the given URI is not a valid ID.public PeerGroupID intern()
intern
in class ID
public abstract PeerGroupID getParentPeerGroupID()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |