|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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. |
static void |
validateURI(URI newUri)
|
| 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
null and absolute newUri parameter.
newUri - the URI to use in creation.
IllegalArgumentException - if newUri is null or
not absolute
protected AbstractURIReference(URI newUri,
boolean validate)
throws IllegalArgumentException
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 URIReferenceURI identifying this resource.public void accept(TypedNodeVisitor visitor)
accept in interface TypedNodeVisitablevisitor - the object doing the visiting.public int hashCode()
URIReference
hashCode in interface URIReferencehashCode in class Objectpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
URIReference
equals in interface URIReferenceequals in class Objectobj - the reference object with which to compare.
public static void validateURI(URI newUri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||