|
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.impl.id.unknown.ID
public final class 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 FormField Summary | |
---|---|
(package private) String |
unqiueValue
|
Fields inherited from class net.jxta.id.ID |
---|
nullID, URIEncodingName, URNNamespace |
Constructor Summary | |
---|---|
ID(String value)
Constructor for IDs. |
Method Summary | |
---|---|
boolean |
equals(Object target)
|
String |
getIDFormat()
Returns a string identifier which indicates which ID format is used by this ID instance. |
Object |
getUniqueValue()
Returns an object containing the unique value of the ID. |
URL |
getURL()
Returns a URL representation of the ID. |
(package private) static URL |
getURL(String uniqueValue)
Public member which returns a URI (URL in Java nomenclature) of the ID. |
int |
hashCode()
|
URI |
toURI()
Returns a URI representation of the ID. |
Methods inherited from class net.jxta.id.ID |
---|
create, intern, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
String unqiueValue
Constructor Detail |
---|
ID(String value)
Method Detail |
---|
public boolean equals(Object target)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getIDFormat()
getIDFormat
in class ID
public Object getUniqueValue()
this
.
getUniqueValue
in class ID
public URL getURL()
JXTA ID Factory
can be used to construct
ID Objects from URLs containing JXTA IDs.
getURL
in class ID
IDFactory.fromURL( java.net.URL )
static URL getURL(String uniqueValue)
uniqueValue
- the unique portion of the ID
public URI toURI()
URIs
are
the preferred way of externalizing and presenting JXTA IDs. The
JXTA ID Factory
can be used to construct
ID Objects from URIs containing JXTA IDs.
toURI
in class ID
IDFactory.fromURI( java.net.URI )
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |