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.SimpleValueFactory#createIRI(String)}
protected void setIRIString(String iriString)
public String toString()
IRI
public String stringValue()
Value
Literal
's label, a
IRI
's URI or a BNode
's ID.stringValue
in interface Value
public String getNamespace()
IRI
getNamespace
in interface IRI
getNamespace
in interface URI
public String getLocalName()
IRI
getLocalName
in interface IRI
getLocalName
in interface URI
public boolean equals(Object o)
IRI
public int hashCode()
IRI
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.