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
public class SimpleNamespace extends AbstractNamespace
A default implementation of theNamespaceinterface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleNamespace(String prefix, String name)Creates a new Namespace object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name of the namespace.StringgetPrefix()Gets the prefix of the namespace.voidsetName(String name)Sets the name of the namespace.voidsetPrefix(String prefix)Sets the prefix of the namespace.-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractNamespace
compareTo, equals, hashCode, toString
-
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
Gets the prefix of the namespace.- Returns:
- prefix of the namespace
-
setPrefix
public void setPrefix(String prefix)
Sets the prefix of the namespace.- Parameters:
prefix- The (new) prefix for this namespace.
-
getName
public String getName()
Gets the name of the namespace.- Returns:
- name of the namespace
-
setName
public void setName(String name)
Sets the name of the namespace.- Parameters:
name- The (new) name for this namespace.
-
-