Package org.eclipse.rdf4j.model
Class ModelNamespace
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractNamespace
-
- org.eclipse.rdf4j.model.ModelNamespace
-
class ModelNamespace extends AbstractNamespace
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringnameprivate java.lang.Stringprefixprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ModelNamespace(java.lang.String prefix, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name of the current namespace (i.e.java.lang.StringgetPrefix()Gets the prefix of the current 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 final java.lang.String prefix
-
name
private final java.lang.String name
-
-
Method Detail
-
getPrefix
public java.lang.String getPrefix()
Description copied from interface:NamespaceGets the prefix of the current namespace. The default namespace is represented by an empty prefix string.- Returns:
- prefix of namespace, or an empty string in case of the default namespace.
-
getName
public java.lang.String getName()
Description copied from interface:NamespaceGets the name of the current namespace (i.e. its IRI).- Returns:
- name of namespace
-
-