Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.NameDuplicationException


        if ((container != null)) {
            ComponentEntity another = container.getEntity(name);

            if ((another != null) && (another != this)) {
                throw new NameDuplicationException(container,
                        "Name duplication: " + name);
            }
        }

        super.setName(name);
View Full Code Here


        if ((container != null)) {
            Port another = container.getPort(name);

            if ((another != null) && (another != this)) {
                throw new NameDuplicationException(container,
                        "Name duplication: " + name);
            }
        }

        super.setName(name);
View Full Code Here

        if ((container != null)) {
            ComponentRelation another = container.getRelation(name);

            if ((another != null) && (another != this)) {
                throw new NameDuplicationException(container,
                        "Name duplication: " + name);
            }
        }

        super.setName(name);
View Full Code Here

            if (library == null) {
                throw new InternalErrorException("Save in library failed. "
                        + "libraryEffigy.getModel() returned null.");
            }
            if (library.getEntity(entity.getName()) != null) {
                throw new NameDuplicationException(
                        entity,
                        "Save In Library failed: An object"
                                + " already exists in the user library with name "
                                + "\"" + entity.getName() + "\".");
            }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.NameDuplicationException

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.