public interface ScopeRegistry extends ScopeEventListenable
| Modifier and Type | Method and Description |
|---|---|
void |
addScopeRegistrationListener(ScopeEventListener listener)
Deprecated.
|
void |
clearScopeRegistrationListeners()
Deprecated.
|
boolean |
containsScope(String scopeID) |
void |
deregisterScope(Scope scope)
Removes an ontology scope from this registry, thus deactivating the scope and all of its associated
spaces.
|
Set<Scope> |
getActiveScopes() |
Set<Scope> |
getRegisteredScopes()
Returns the set of registered ontology scopes.
|
Scope |
getScope(String scopeID)
Returns the unique ontology scope identified by the given ID.
|
Set<ScopeEventListener> |
getScopeRegistrationListeners()
Deprecated.
|
boolean |
isScopeActive(String scopeID) |
void |
registerScope(Scope scope)
Equivalent to
registerScope(scope, false). |
void |
registerScope(Scope scope,
boolean activate)
Adds an ontology scope to this registry, thus activating the scope if
activate is set and
(at a bare minumum) its core space. |
void |
removeScopeRegistrationListener(ScopeEventListener listener)
|
void |
setScopeActive(String scopeID,
boolean active) |
addScopeEventListener, clearScopeEventListeners, getScopeEventListeners, removeScopeEventListenervoid addScopeRegistrationListener(ScopeEventListener listener)
ScopeEventListenable.addScopeEventListener(ScopeEventListener)listener - the listener to be addedvoid clearScopeRegistrationListeners()
ScopeEventListenable.clearScopeEventListeners()boolean containsScope(String scopeID)
scopeID - scopeID is registered.void deregisterScope(Scope scope)
scopeDeregistered() method.scope - the ontology scope to be removedSet<Scope> getRegisteredScopes()
Scope getScope(String scopeID)
scopeID - the scope identifierSet<ScopeEventListener> getScopeRegistrationListeners()
ScopeEventListenable.getScopeEventListeners()boolean isScopeActive(String scopeID)
void registerScope(Scope scope) throws DuplicateIDException
registerScope(scope, false).scope - the ontology scope to be addedDuplicateIDExceptionvoid registerScope(Scope scope, boolean activate) throws DuplicateIDException
activate is set and
(at a bare minumum) its core space. All attached listeners should hear this registration on their
scopeRegistered() method.scope - the ontology scope to be addedDuplicateIDExceptionvoid removeScopeRegistrationListener(ScopeEventListener listener)
listener - the listener to be removedvoid setScopeActive(String scopeID, boolean active)
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.