|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.AbstractURIReference
A base implementation of an RDF URIReference
.
Constructor Summary | |
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 |
Constructor Detail |
protected AbstractURIReference(URI newUri)
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)
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 boolean equals(Object obj)
URIReference
equals
in interface URIReference
public int hashCode()
URIReference
hashCode
in interface URIReference
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |