|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.jxta.id.ID
IDs are used to uniquely identify peers, peer groups, pipes and other types of objects manipulated by the JXTA APIs.
IDFactory,
CodatID,
PeerID,
PeerGroupID,
PipeID,
ModuleClassID,
ModuleSpecID, Serialized Form| Field Summary | |
static ID |
nullID
The null ID. |
static java.lang.String |
URIEncodingName
This defines the URI scheme that we will be using to present JXTA IDs. |
static java.lang.String |
URNNamespace
This defines the URN Namespace that we will be using to present JXTA IDs. |
| Constructor Summary | |
protected |
ID()
Constructor for IDs. |
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of this object. |
abstract java.lang.String |
getIDFormat()
Returns a string identifier which indicates which ID format is used by this ID instance. |
abstract java.lang.Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
abstract java.net.URL |
getURL()
Returns a URI (URL in Java nomenclature) representation of the ID. |
java.lang.String |
toString()
Returns a string representation of the ID. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String URIEncodingName
public static final java.lang.String URNNamespace
public static final ID nullID
| Constructor Detail |
protected ID()
| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
getURL.
The default implementation is the toString representation of the URL
representation.toString in class java.lang.Objectpublic abstract java.lang.String getIDFormat()
public abstract java.lang.Object getUniqueValue()
this.public abstract java.net.URL getURL()
URLs are the prefered way of externalizing and
presenting JXTA IDs. The JXTA ID Factory
can be used to construct ID Objects from URLs containing JXTA IDs.URL,
IDFactory.fromURL( java.net.URL )
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||