Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.model.impl
Class OWLNamespaceManager

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.model.impl.AbstractNamespaceManager
      extended by edu.stanford.smi.protegex.owl.model.impl.OWLNamespaceManager
All Implemented Interfaces:
NamespaceManager, NamespaceMap

public class OWLNamespaceManager
extends AbstractNamespaceManager

A NamespaceManager that maintains the prefix information by means of the values of the corresponding slot in the default OWLOntology of the knowledge base.

Author:
Holger Knublauch

Field Summary
static String DEFAULT_DEFAULT_BASE
           
static String DEFAULT_DEFAULT_NAMESPACE
           
 
Fields inherited from class edu.stanford.smi.protegex.owl.model.impl.AbstractNamespaceManager
owlModel
 
Constructor Summary
OWLNamespaceManager()
           
 
Method Summary
 String getDefaultNamespace()
           
 String getNamespaceForPrefix(String prefix)
           
 String getPrefix(String namespace)
           
 Collection getPrefixes()
           
 void init(OWLModel owlModel)
           
 boolean isModifiable(String prefix)
           
static boolean isValidPrefix(String prefix)
           
 void removePrefix(String prefix)
           
 void setDefaultNamespace(String value)
           
 void setModifiable(String prefix, boolean value)
           
 void setPrefix(String namespace, String prefix)
           
 void update()
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.model.impl.AbstractNamespaceManager
addNamespaceManagerListener, getListeners, removeNamespaceManagerListener, setDefaultNamespace, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DEFAULT_BASE

public static final String DEFAULT_DEFAULT_BASE
See Also:
Constant Field Values

DEFAULT_DEFAULT_NAMESPACE

public static final String DEFAULT_DEFAULT_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

OWLNamespaceManager

public OWLNamespaceManager()
Method Detail

getDefaultNamespace

public String getDefaultNamespace()

getNamespaceForPrefix

public String getNamespaceForPrefix(String prefix)

getPrefix

public String getPrefix(String namespace)

getPrefixes

public Collection getPrefixes()

init

public void init(OWLModel owlModel)
Specified by:
init in interface NamespaceManager
Overrides:
init in class AbstractNamespaceManager

isModifiable

public boolean isModifiable(String prefix)

isValidPrefix

public static boolean isValidPrefix(String prefix)

removePrefix

public void removePrefix(String prefix)

setDefaultNamespace

public void setDefaultNamespace(String value)

setModifiable

public void setModifiable(String prefix,
                          boolean value)

setPrefix

public void setPrefix(String namespace,
                      String prefix)

update

public void update()

Protégé-OWL 3.3.1

Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.