Package org.eclipse.rdf4j.model.impl
Class SimpleNamespace
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractNamespace
org.eclipse.rdf4j.model.impl.SimpleNamespace
- All Implemented Interfaces:
Serializable
,Comparable<Namespace>
,Namespace
A default implementation of the
Namespace
interface.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractNamespace
compareTo, equals, hashCode, toString
-
Constructor Details
-
SimpleNamespace
Creates a new Namespace object.- Parameters:
prefix
- The namespace's prefix.name
- The namespace's name.
-
-
Method Details
-
getPrefix
Gets the prefix of the namespace.- Returns:
- prefix of the namespace
-
setPrefix
Sets the prefix of the namespace.- Parameters:
prefix
- The (new) prefix for this namespace.
-
getName
Gets the name of the namespace.- Returns:
- name of the namespace
-
setName
Sets the name of the namespace.- Parameters:
name
- The (new) name for this namespace.
-