Examples of NoSuchScopeException


Examples of org.apache.stanbol.ontologymanager.ontonet.api.scope.NoSuchScopeException

     * .ontology.OntologyScope)
     */
    @Override
    public synchronized void deregisterScope(OntologyScope scope) {
        String id = scope.getID();
        if (!containsScope(id)) throw new NoSuchScopeException(id);
        // For sure it is deactivated...
        setScopeActive(id, false);
        // activeScopeIRIs.remove(id);
        scopeMap.remove(id);
        fireScopeDeregistered(scope);
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.ontonet.api.scope.NoSuchScopeException

        return scopeListeners;
    }

    @Override
    public boolean isScopeActive(String scopeID) {
        if (!containsScope(scopeID)) throw new NoSuchScopeException(scopeID);
        return activeScopeIRIs.contains(scopeID);
    }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.ontonet.api.scope.NoSuchScopeException

        scopeListeners.remove(listener);
    }

    @Override
    public void setScopeActive(String scopeID, boolean active) {
        if (!containsScope(scopeID)) throw new NoSuchScopeException(scopeID);
        // Prevent no-changes from firing events.
        boolean previousStatus = isScopeActive(scopeID);
        OntologyScope scope = getScope(scopeID);
        if (active == previousStatus) return;
        if (active) {
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.scope.NoSuchScopeException

    }

    @Override
    public synchronized void deregisterScope(Scope scope) {
        String id = scope.getID();
        if (!containsScope(id)) throw new NoSuchScopeException(id);
        // For sure it is deactivated...
        setScopeActive(id, false);
        // activeScopeIRIs.remove(id);
        scopeMap.remove(id);
        fireScopeDeregistered(scope);
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.scope.NoSuchScopeException

        return new HashSet<ScopeEventListener>(listeners);
    }

    @Override
    public boolean isScopeActive(String scopeID) {
        if (!containsScope(scopeID)) throw new NoSuchScopeException(scopeID);
        return activeScopeIRIs.contains(scopeID);
    }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.scope.NoSuchScopeException

        removeScopeEventListener(listener);
    }

    @Override
    public void setScopeActive(String scopeID, boolean active) {
        if (!containsScope(scopeID)) throw new NoSuchScopeException(scopeID);
        // Prevent no-changes from firing events.
        boolean previousStatus = isScopeActive(scopeID);
        Scope scope = getScope(scopeID);
        if (active == previousStatus) return;
        if (active) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.