org.apache.clerezza.rdf.core
Class UriRef

java.lang.Object
  extended by org.apache.clerezza.rdf.core.UriRef
All Implemented Interfaces:
NonLiteral, Resource

public class UriRef
extends Object
implements NonLiteral

Represents an RDF URI Reference RDF URI References are defined in section 6.4 RDF URI References of http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#section-Graph-URIref Note that an RDF URI Reference is not the same as defined by RFC3986, RDF URI References support most unicode characters

Author:
reto

Constructor Summary
UriRef(String unicodeString)
           
 
Method Summary
 boolean equals(Object obj)
          Returns true iff obj == UriRef
 String getUnicodeString()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UriRef

public UriRef(String unicodeString)
Method Detail

getUnicodeString

public String getUnicodeString()
Returns:
the unicode string that produces the URI

equals

public boolean equals(Object obj)
Returns true iff obj == UriRef

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if obj is an instanceof UriRef with the same unicode-string, false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
5 + the hashcode of the string

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.