| Modifier | Constructor and Description | 
|---|---|
| protected  | SimpleIRI()Creates a new, un-initialized IRI. | 
| protected  | SimpleIRI(String iriString)Creates a new IRI from the supplied string. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o)Compares a IRI object to another object. | 
| String | getLocalName()Gets the local name part of this IRI. | 
| String | getNamespace()Gets the namespace part of this IRI. | 
| int | hashCode()The hash code of an IRI is defined as the hash code of its String-representation: toString().hashCode. | 
| protected void | setIRIString(String iriString) | 
| String | stringValue()Returns the String-value of a Value object. | 
| String | toString()Returns the String-representation of this IRI. | 
protected SimpleIRI()
set before
 the normal methods can be used.protected SimpleIRI(String iriString)
 Note that creating SimpleIRI objects directly via this constructor is not the recommended approach. Instead, use
 a ValueFactory (obtained from your repository or by using
 SimpleValueFactory.getInstance()) to create new IRI objects.
iriString - A String representing a valid, absolute IRI. May not be null.IllegalArgumentException - If the supplied IRI is not a valid (absolute) IRI.AbstractValueFactory.createIRI(String)protected void setIRIString(String iriString)
public String toString()
IRIpublic String stringValue()
ValueLiteral's label, a
 IRI's URI or a BNode's ID.stringValue in interface Valuepublic String getNamespace()
IRIgetNamespace in interface IRIgetNamespace in interface URIpublic String getLocalName()
IRIgetLocalName in interface IRIgetLocalName in interface URIpublic boolean equals(Object o)
IRIpublic int hashCode()
IRICopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.