org.coode.xml
Class OWLOntologyXMLNamespaceManager

java.lang.Object
  extended by org.coode.xml.XMLWriterNamespaceManager
      extended by org.coode.xml.OWLOntologyXMLNamespaceManager

public class OWLOntologyXMLNamespaceManager
extends XMLWriterNamespaceManager

Author: Matthew Horridge
The University Of Manchester
Medical Informatics Group
Date: 30-May-2006

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm

Developed as part of the CO-ODE project http://www.co-ode.org

The OWLOntologyNamespaceManager wraps a NamespaceManager (OWLOntologyFormat). In the case where the appropriate prefixes and mappings don't exist in the NamespaceManager (OWLOntologyFormat) this manager will create them.


Constructor Summary
OWLOntologyXMLNamespaceManager(OWLOntologyManager man, OWLOntology ontology)
           
OWLOntologyXMLNamespaceManager(OWLOntologyManager man, OWLOntology ontology, OWLOntologyFormat format)
           
 
Method Summary
protected  java.util.Set<OWLEntity> getEntitiesThatRequireNamespaces()
           
protected  OWLOntology getOntology()
           
 java.lang.String getQName(java.lang.String name)
          Gets a QName for a full URI.
 
Methods inherited from class org.coode.xml.XMLWriterNamespaceManager
addWellKnownNamespace, createPrefixForNamespace, getDefaultNamespace, getDefaultPrefix, getNamespaceForPrefix, getNamespaces, getPrefixes, getPrefixForNamespace, getPrefixNamespaceMap, setDefaultNamespace, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLOntologyXMLNamespaceManager

public OWLOntologyXMLNamespaceManager(OWLOntologyManager man,
                                      OWLOntology ontology)

OWLOntologyXMLNamespaceManager

public OWLOntologyXMLNamespaceManager(OWLOntologyManager man,
                                      OWLOntology ontology,
                                      OWLOntologyFormat format)
Method Detail

getOntology

protected OWLOntology getOntology()

getEntitiesThatRequireNamespaces

protected java.util.Set<OWLEntity> getEntitiesThatRequireNamespaces()

getQName

public java.lang.String getQName(java.lang.String name)
Gets a QName for a full URI.

Overrides:
getQName in class XMLWriterNamespaceManager
Parameters:
name - The name which represents the full name.
Returns:
The QName representation or null if a QName could not be generated.