コード例 #1
0
ファイル: XsdReader.java プロジェクト: kcrimson/modeshape
 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);
 }
コード例 #2
0
 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());
     }
   }
 }