Examples of XSDImport


Examples of org.eclipse.xsd.XSDImport

                    XSDSchemaContent content = (XSDSchemaContent) i.next();
                    content.setElement(null);
                   
                    //check for import of gml, skip over since we already imported it
                    if ( content instanceof XSDImport ) {
                        XSDImport imprt = (XSDImport) content;
                        if ( gmlNamespace.equals( imprt.getNamespace() ) ) {
                            i.remove();
                        }
                    }
                   
                    //check for duplicated elements and types
View Full Code Here

Examples of org.eclipse.xsd.XSDImport

                    params.put("typeName", typeNames.toString().trim());
   
                    String schemaLocation = buildURL(baseUrl, "wfs", params, URLType.RESOURCE);
                    String namespace = catalog.getNamespaceByPrefix(prefix).getURI();
   
                    XSDImport imprt = factory.createXSDImport();
                    imprt.setNamespace(namespace);
                    imprt.setSchemaLocation(schemaLocation);
   
                    schema.getContents().add(imprt);
                }
            }
        }
View Full Code Here

Examples of org.eclipse.xsd.XSDImport

//        }
        return schema;
    }

    protected void importGMLSchema(XSDSchema schema, XSDFactory factory, String baseUrl) {
        XSDImport imprt = factory.createXSDImport();
        imprt.setNamespace(gmlNamespace);
        imprt.setSchemaLocation(ResponseUtils.buildSchemaURL(baseUrl, gmlSchemaLocation));

        XSDSchema gmlSchema = gmlSchema();
        imprt.setResolvedSchema(gmlSchema);
       
        schema.getContents().add(imprt);

    }
View Full Code Here

Examples of org.eclipse.xsd.XSDImport

     *            List of already imported name spaces
     */
    private void addImport(XSDSchema schema, XSDFactory factory, String nsURI, String schemaURI,
            List<String> importedNamespaces) {
        if (!importedNamespaces.contains(nsURI)) {
            XSDImport xsdImport = factory.createXSDImport();
            xsdImport.setNamespace(nsURI);
            xsdImport.setSchemaLocation((String) schemaURI);
            schema.getContents().add(xsdImport);
            importedNamespaces.add(nsURI);
        }
    }
View Full Code Here

Examples of org.eclipse.xsd.XSDImport

                    XSDSchemaContent content = (XSDSchemaContent) i.next();
                    content.setElement(null);
                   
                    //check for import of gml, skip over since we already imported it
                    if ( content instanceof XSDImport ) {
                        XSDImport imprt = (XSDImport) content;
                        if ( gmlNamespace.equals( imprt.getNamespace() ) ) {
                            i.remove();
                        }
                    }
                   
                    //check for duplicated elements and types
View Full Code Here

Examples of org.eclipse.xsd.XSDImport

            }
        }
       
        @Override
        protected void importGMLSchema(XSDSchema schema, XSDFactory factory, String baseUrl) {
            XSDImport imprt;
            try {
                imprt = factory.createXSDImport();
                imprt.setNamespace( WFS.getInstance().getSchema().getTargetNamespace() );
                imprt.setSchemaLocation(ResponseUtils.buildSchemaURL(baseUrl, gmlSchemaLocation));
                imprt.setResolvedSchema(WFS.getInstance().getSchema());
                schema.getContents().add( imprt );
               
                schema.getQNamePrefixToNamespaceMap().put("wfs", WFS.NAMESPACE);
                //imprt = Schemas.importSchema(schema, WFS.getInstance().getSchema());
                ((XSDSchemaImpl)WFS.getInstance().getSchema()).imported(imprt);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.