Package org.eclipse.rdf4j.model.impl
Class SimpleIRI
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractIRI
-
- org.eclipse.rdf4j.model.impl.SimpleIRI
-
- All Implemented Interfaces:
Serializable
,IRI
,Resource
,Value
public class SimpleIRI extends AbstractIRI
The default implementation of theIRI
interface.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalName()
String
getNamespace()
protected void
setIRIString(String iriString)
String
stringValue()
-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractIRI
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
-
-
-
Constructor Detail
-
SimpleIRI
protected SimpleIRI()
Creates a new, un-initialized IRI. This IRI's string value needs to beset
before the normal methods can be used.
-
SimpleIRI
protected SimpleIRI(String iriString)
Creates a new IRI from the supplied string.Note that creating SimpleIRI objects directly via this constructor is not the recommended approach. Instead, use a
ValueFactory
(obtained from your repository or by usingSimpleValueFactory.getInstance()
) to create new IRI objects.- Parameters:
iriString
- A String representing a valid, absolute IRI. May not benull
.- Throws:
IllegalArgumentException
- If the supplied IRI is not a valid (absolute) IRI.- See Also:
SimpleValueFactory.createIRI(String)
-
-
Method Detail
-
setIRIString
protected void setIRIString(String iriString)
-
stringValue
public String stringValue()
- Specified by:
stringValue
in interfaceValue
- Overrides:
stringValue
in classAbstractIRI
-
getNamespace
public String getNamespace()
-
getLocalName
public String getLocalName()
-
-