示例#1
0
 protected void processImport(XSDImport xsdImport, Node parentNode) throws RepositoryException {
   logger.debug(
       "Import: '{0}' with location '{1}' ",
       xsdImport.getNamespace(), xsdImport.getSchemaLocation());
   Node importNode = parentNode.addNode(IMPORT, IMPORT);
   importNode.setProperty(XsdLexicon.NAMESPACE, xsdImport.getNamespace());
   importNode.setProperty(XsdLexicon.SCHEMA_LOCATION, xsdImport.getSchemaLocation());
   processNonSchemaAttributes(xsdImport, importNode);
 }
 private void parseNamespaceContainers(XSDSchema schema) {
   Iterator iterator = schema.getContents().iterator();
   while (iterator.hasNext()) {
     Object element = (Object) iterator.next();
     if (element instanceof XSDImport) {
       XSDImport importElement = (XSDImport) element;
       this.namespaceContainers.add(importElement.getNamespace());
     }
   }
 }