|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owl.model.OWLOntologyFormat
org.semanticweb.owl.vocab.NamespaceOWLOntologyFormat
public class NamespaceOWLOntologyFormat
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 20-Feb-2007
Constructor Summary | |
---|---|
NamespaceOWLOntologyFormat()
|
Method Summary | |
---|---|
void |
addPrefixNamespaceMapping(java.lang.String prefix,
java.lang.String namespace)
A convenience method to add a namespace mapping |
boolean |
containsPrefixMapping(java.lang.String prefix)
Determines if this manager knows about a given namespace prefix and it contains a (non-null) mapping for the prefix. |
java.lang.String |
getDefaultNamespace()
Gets the default namespace. |
java.lang.String |
getNamespace(java.lang.String prefix)
Gets the namespace that is bound to a particular prefix. |
java.util.Map<java.lang.String,java.lang.String> |
getNamespaceMap()
Gets a map that maps prefixes to namespaces. |
java.util.Map<java.lang.String,java.lang.String> |
getNamespacesByPrefixMap()
Gets a map that maps namespace prefixes to namespaces |
java.net.URI |
getURI(java.lang.String curi)
Gets the URI for a given CURI. |
void |
setDefaultNamespace(java.lang.String namespace)
Sets the default namespace. |
Methods inherited from class org.semanticweb.owl.model.OWLOntologyFormat |
---|
equals, getParameter, hashCode, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamespaceOWLOntologyFormat()
Method Detail |
---|
public void addPrefixNamespaceMapping(java.lang.String prefix, java.lang.String namespace)
prefix
- The prefix which maps to a namespacenamespace
- The namespacepublic void setDefaultNamespace(java.lang.String namespace)
namespace
- The namespace to be set.public boolean containsPrefixMapping(java.lang.String prefix)
NamespaceManager
containsPrefixMapping
in interface NamespaceManager
prefix
- The prefix to be tested for.
true
if the manager knows about this prefix and there is a non-null mapping for this
prefix.public java.util.Map<java.lang.String,java.lang.String> getNamespacesByPrefixMap()
public java.lang.String getDefaultNamespace()
NamespaceManager
getDefaultNamespace
in interface NamespaceManager
public java.util.Map<java.lang.String,java.lang.String> getNamespaceMap()
NamespaceManager
getNamespaceMap
in interface NamespaceManager
public java.lang.String getNamespace(java.lang.String prefix)
NamespaceManager
getDefaultNamespace()
method.
getNamespace
in interface NamespaceManager
prefix
- The namespace prefix. A string that represents a namespace prefix of the namespace to be retrieved.
Note that specifying the empty string is the same as asking for the default namespace (see the
getDefaultNamespace() method).
null
if there is no namespace bound to this prefix, or the prefix doesn't
exist.public java.net.URI getURI(java.lang.String curi)
NamespaceManager
getURI
in interface NamespaceManager
curi
- The CURI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |