Package org.jboss.dna.jcr.nodetype

Examples of org.jboss.dna.jcr.nodetype.NodeTypeExistsException


                if (internalName == null || internalName.getLocalName().length() == 0) {
                    throw new InvalidNodeTypeDefinitionException(JcrI18n.invalidNodeTypeName.text());
                }

                if (nodeTypes.containsKey(internalName)) {
                    throw new NodeTypeExistsException(internalName,
                                                      JcrI18n.nodeTypeAlreadyExists.text(internalName.getString(namespaces)));
                }

                List<JcrNodeType> supertypes = supertypesFor(nodeTypeNode, typesPendingRegistration);
                // No need to re-parse the supertypes
View Full Code Here


                if (internalName == null || internalName.getLocalName().length() == 0) {
                    throw new InvalidNodeTypeDefinitionException(JcrI18n.invalidNodeTypeName.text());
                }

                if (nodeTypes.containsKey(internalName)) {
                    throw new NodeTypeExistsException(internalName,
                                                      JcrI18n.nodeTypeAlreadyExists.text(internalName.getString(namespaces)));
                }

                List<JcrNodeType> supertypes = supertypesFor(nodeTypeNode, typesPendingRegistration);
                // No need to re-parse the supertypes
View Full Code Here

TOP

Related Classes of org.jboss.dna.jcr.nodetype.NodeTypeExistsException

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.