Package org.apache.stanbol.ontologymanager.servicesapi.collector

Examples of org.apache.stanbol.ontologymanager.servicesapi.collector.DuplicateIDException


    @Override
    public synchronized void registerScope(Scope scope) throws DuplicateIDException {
        if (scope == null) throw new IllegalArgumentException("scope cannot be null.");
        String id = scope.getID();
        if (this.containsScope(id)) throw new DuplicateIDException(id,
                "Scope registry already contains ontology scope with ID " + id);
        // if (this.containsScope(id)) {
        // if (scope != getScope(id)) {
        // log.warn("Overriding different scope with same ID {}", id);
        // super.registerScope(scope);
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.servicesapi.collector.DuplicateIDException

Copyright © 2018 www.massapicom. 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.