|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrdf.graph.AbstractURIReference
public abstract class AbstractURIReference
A base implementation of an RDF URIReference
.
Field Summary | |
---|---|
protected URI |
uri
The URI of the node. |
Constructor Summary | |
---|---|
protected |
AbstractURIReference()
|
protected |
AbstractURIReference(URI newUri)
Constructor. |
protected |
AbstractURIReference(URI newUri,
boolean validate)
Constructor. |
Method Summary | |
---|---|
void |
accept(TypedNodeVisitor visitor)
Accept a call from a TypedNodeVisitor. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
URI |
getURI()
The URI identifiying this resource. |
int |
hashCode()
Returns a hash-code value for this URI Reference. |
String |
toString()
Provide a legible representation of a URI reference. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected URI uri
Constructor Detail |
---|
protected AbstractURIReference()
protected AbstractURIReference(URI newUri) throws IllegalArgumentException
Enforces a non-null
and absolute newUri parameter.
newUri
- the URI to use in creation.
IllegalArgumentException
- if newUri is null
or
not absoluteprotected AbstractURIReference(URI newUri, boolean validate) throws IllegalArgumentException
Enforces a non-null
parameter. Use only for applications
where enforcement of valid URIs is too expensive or not necessary.
newUri
- the URI to use in creation.validate
- whether to enforce valid RDF URIs.
IllegalArgumentException
- if newUri is not absolute and
validate is true.Method Detail |
---|
public URI getURI()
URI
identifiying this resource.
getURI
in interface URIReference
URI
identifying this resource.public void accept(TypedNodeVisitor visitor)
accept
in interface TypedNodeVisitable
visitor
- the object doing the visiting.public int hashCode()
URIReference
hashCode
in interface URIReference
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object obj)
URIReference
A URI Reference is equal to another URI Reference if their URIs are equal to one another, character by character.
equals
in interface URIReference
equals
in class Object
obj
- the reference object with which to compare.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |