|
||||||||||
| 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 | |
|---|---|
URIImpl(String uriString)
Creates a new URI from the supplied string. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compares a URI object to another object. |
String |
getLocalName()
Gets the local name of this URI. |
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. |
String |
stringValue()
Returns the String-value of a Value object. |
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 |
|---|
public URIImpl(String uriString)
uriString - A String representing a valid, absolute URI.
IllegalArgumentException - If the supplied URI is not a valid (absolute) URI.| Method Detail |
|---|
public String toString()
URI
toString in interface URItoString in class Objectpublic String stringValue()
ValueLiteral's label, a URI's URI or a BNode's ID.
stringValue in interface Valuepublic String getNamespace()
URI
getNamespace in interface URIpublic String getLocalName()
URI
getLocalName in interface URIpublic boolean equals(Object o)
URI
equals in interface URIequals in class 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 Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||