Package org.eclipse.rdf4j.model.impl
Class SimpleNamespace
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractNamespace
-
- org.eclipse.rdf4j.model.impl.SimpleNamespace
-
public class SimpleNamespace extends AbstractNamespace
A default implementation of theNamespace
interface.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
The namespace's name.private java.lang.String
prefix
The namespace's prefix.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SimpleNamespace(java.lang.String prefix, java.lang.String name)
Creates a new Namespace object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Gets the name of the namespace.java.lang.String
getPrefix()
Gets the prefix of the namespace.void
setName(java.lang.String name)
Sets the name of the namespace.void
setPrefix(java.lang.String prefix)
Sets the prefix of the namespace.-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractNamespace
compareTo, equals, hashCode, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
prefix
private java.lang.String prefix
The namespace's prefix.
-
name
private java.lang.String name
The namespace's name.
-
-
Method Detail
-
getPrefix
public java.lang.String getPrefix()
Gets the prefix of the namespace.- Returns:
- prefix of the namespace
-
setPrefix
public void setPrefix(java.lang.String prefix)
Sets the prefix of the namespace.- Parameters:
prefix
- The (new) prefix for this namespace.
-
getName
public java.lang.String getName()
Gets the name of the namespace.- Returns:
- name of the namespace
-
setName
public void setName(java.lang.String name)
Sets the name of the namespace.- Parameters:
name
- The (new) name for this namespace.
-
-