Package org.apache.stanbol.ontologymanager.registry.api

Examples of org.apache.stanbol.ontologymanager.registry.api.IllegalRegistryCycleException


        setCache(cache);
    }

    @Override
    public void addChild(RegistryItem child) throws RegistryContentException {
        if (child instanceof Registry || child instanceof Library) throw new IllegalRegistryCycleException(
                this, child, RegistryOperation.ADD_CHILD);
        super.addChild(child);
    }
View Full Code Here


        super.addChild(child);
    }

    @Override
    public void addParent(RegistryItem parent) throws RegistryContentException {
        if (parent instanceof RegistryOntology || parent instanceof Library) throw new IllegalRegistryCycleException(
                this, parent, RegistryOperation.ADD_PARENT);
        super.addParent(parent);
    }
View Full Code Here

        setName(name);
    }

    @Override
    public void addChild(RegistryItem child) throws RegistryContentException {
        if (this.equals(child) || parents.values().contains(child)) throw new IllegalRegistryCycleException(
                this, child, RegistryOperation.ADD_CHILD);
        if (!children.values().contains(child)) {
            children.put(child.getIRI(), child);
            try {
                child.addParent(this);
View Full Code Here

        }
    }

    @Override
    public void addParent(RegistryItem parent) throws RegistryContentException {
        if (this.equals(parent) || children.values().contains(parent)) throw new IllegalRegistryCycleException(
                this, parent, RegistryOperation.ADD_PARENT);
        if (!parents.values().contains(parent)) {
            parents.put(parent.getIRI(), parent);
            try {
                parent.addChild(this);
View Full Code Here

        setCache(cache);
    }

    @Override
    public void addChild(RegistryItem child) throws RegistryContentException {
        if (child instanceof Registry || child instanceof Library) throw new IllegalRegistryCycleException(
                this, child, RegistryOperation.ADD_CHILD);
        super.addChild(child);
    }
View Full Code Here

        super.addChild(child);
    }

    @Override
    public void addParent(RegistryItem parent) throws RegistryContentException {
        if (parent instanceof RegistryOntology || parent instanceof Library) throw new IllegalRegistryCycleException(
                this, parent, RegistryOperation.ADD_PARENT);
        super.addParent(parent);
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.registry.api.IllegalRegistryCycleException

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.