|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.URIImpl
public class URIImpl
The default implementation of the URI interface.
| Constructor Summary | |
|---|---|
protected |
URIImpl()
Creates a new, unitialized URI. |
|
URIImpl(java.lang.String uriString)
Creates a new URI from the supplied string. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares a URI object to another object. |
java.lang.String |
getLocalName()
Gets the local name of this URI. |
java.lang.String |
getNamespace()
Gets the namespace of this URI. |
int |
hashCode()
The hash code of a URI is defined as the hash code of its String-representation: toString().hashCode. |
protected void |
setURIString(java.lang.String uriString)
|
java.lang.String |
stringValue()
Returns the String-value of a Value object. |
java.lang.String |
toString()
Returns the String-representation of this URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected URIImpl()
set before the normal methods can be used.
public URIImpl(java.lang.String uriString)
uriString - A String representing a valid, absolute URI.
java.lang.IllegalArgumentException - If the supplied URI is not a valid (absolute) URI.| Method Detail |
|---|
protected void setURIString(java.lang.String uriString)
public java.lang.String toString()
URI
toString in interface URItoString in class java.lang.Objectpublic java.lang.String stringValue()
ValueLiteral's label, a URI's URI or a BNode's ID.
stringValue in interface Valuepublic java.lang.String getNamespace()
URI
getNamespace in interface URIpublic java.lang.String getLocalName()
URI
getLocalName in interface URIpublic boolean equals(java.lang.Object o)
URI
equals in interface URIequals in class java.lang.Objecto - The object to compare this URI to.
URI
and their String-representations are equal, false
otherwise.public int hashCode()
URI
hashCode in interface URIhashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||