|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mulgara.mrg.Uri
public class Uri
A wrapper for a URI. This allows the use of URI as a Node. TODO: create Uri with factory from the graph. If a uri string is already internal (u == u.intern()) then it is already in the graph, and we want to find it with the existing indexes so that we can reuse the object.
| Field Summary | |
|---|---|
static int |
TYPE_ID
The type identifier for Uri |
| Constructor Summary | |
|---|---|
Uri(String u)
Convenience to a new URI. |
|
Uri(URI uri)
Create a new URI. |
|
| Method Summary | |
|---|---|
int |
compareTo(Node o)
Compares this object with the specified object for order. |
static Uri |
create(String u)
Safe creation of a URI. |
boolean |
equals(Object o)
Equality method. |
int |
getTypeId()
A type identifier to distinguish from the other types of Node. |
URI |
getURI()
Gets the wrapped URI. |
int |
hashCode()
The hashcode, based on the uri. |
String |
toString()
Represents this node as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_ID
| Constructor Detail |
|---|
public Uri(String u)
throws URISyntaxException
u - The string form of the URI to wrap.
URISyntaxExceptionpublic Uri(URI uri)
uri - The URI to wrap.| Method Detail |
|---|
public static Uri create(String u)
u - The string form of the URI to wrap.public URI getURI()
public int getTypeId()
getTypeId in interface Nodepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Node o)
compareTo in interface Comparable<Node>o - the object to be compared.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||