Examples of ImportElement


Examples of org.apache.woden.wsdl20.xml.ImportElement

            XMLElement importEl,
            DescriptionElement desc,
            Map wsdlModules)
            throws WSDLException {

        ImportElement imp = desc.addImportElement();

        String namespaceURI = importEl.getAttributeValue(Constants.ATTR_NAMESPACE);
        String locationURI = importEl.getAttributeValue(Constants.ATTR_LOCATION);

        parseExtensionAttributes(importEl, ImportElement.class, imp, desc);

        if(namespaceURI != null)
        {
            //TODO handle missing namespace attribute (REQUIRED attr)
            imp.setNamespace(getURI(namespaceURI));
        }

        if(locationURI != null)
        {
            //TODO handle missing locationURI (OPTIONAL attr)
            URI resolvedLocationURI = resolveURI(getURI(locationURI));
            imp.setLocation(resolvedLocationURI);
            DescriptionElement importedDesc =
                getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
            imp.setDescriptionElement(importedDesc);
        }

        return imp;
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.ImportElement

        if(schemaDef == null) {
            //Check if any WSDL imports contain a schema with this namespace.
            //TODO there may be multiple schemas that this namespace import could resolve to. This is a temporary solution pending WODEN- post M7.
            ImportElement[] imports = desc.getImportElements();
            for(int i=0; i<imports.length; i++) {
                ImportElement importElem = (ImportElement) imports[i];
                DescriptionElement nestedDesc = importElem.getDescriptionElement();
                if(nestedDesc != null) {
                    TypesElement typesElem = nestedDesc.getTypesElement();
                    if(typesElem != null) {
                        Schema[] schemas = typesElem.getSchemas(schema.getNamespace());
                        for(int j=0; j<schemas.length; j++) {
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.ImportElement

        if(schemaDef == null) {
            //Check if any WSDL imports contain a schema with this namespace.
            //TODO there may be multiple schemas that this namespace import could resolve to. This is a temporary solution pending WODEN- post M7.
            ImportElement[] imports = desc.getImportElements();
            for(int i=0; i<imports.length; i++) {
                ImportElement importElem = (ImportElement) imports[i];
                DescriptionElement nestedDesc = importElem.getDescriptionElement();
                if(nestedDesc != null) {
                    TypesElement typesElem = nestedDesc.getTypesElement();
                    if(typesElem != null) {
                        Schema[] schemas = typesElem.getSchemas(schema.getNamespace());
                        for(int j=0; j<schemas.length; j++) {
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.ImportElement

            XMLElement importEl,
            DescriptionElement desc,
            Map wsdlModules)
            throws WSDLException {

        ImportElement imp = desc.addImportElement();

        String namespaceURI = importEl.getAttributeValue(Constants.ATTR_NAMESPACE);
        String locationURI = importEl.getAttributeValue(Constants.ATTR_LOCATION);

        parseExtensionAttributes(importEl, ImportElement.class, imp, desc);

        if(namespaceURI != null)
        {
            //TODO handle missing namespace attribute (REQUIRED attr)
            imp.setNamespace(getURI(namespaceURI));
        }

        if(locationURI != null)
        {
            //TODO handle missing locationURI (OPTIONAL attr)
            URI resolvedLocationURI = resolveURI(getURI(locationURI));
            imp.setLocation(resolvedLocationURI);
            DescriptionElement importedDesc =
                getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
            imp.setDescriptionElement(importedDesc);
        }

        return imp;
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.ImportElement

            String tagName =
                DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20,
                           Constants.ELEM_IMPORT,
                           des);
            for(int ind=0;ind<imports.length;ind++){
                ImportElement importEle = imports[ind];
                if (importEle!=null){
                    pw.print("  <" + tagName);

                    String namespace = importEle.getNamespace().toString();
                    if (namespace != null){
                        DOMUtils.printAttribute(Constants.ATTR_NAMESPACE,
                                namespace,
                                pw);
                    }
                    String location = importEle.getLocation().toString();
                    if (location != null){
                        DOMUtils.printAttribute(Constants.ATTR_LOCATION,
                                location,
                                pw);
                    }
                    printExtensibilityAttributes(importEle.getExtensionAttributes(), importEle, pw);
                    pw.println('>');
                    printDocumentation(importEle.getDocumentationElements(), des, pw);
                    printExtensibilityElements(importEle.getClass(), importEle.getExtensionElements(), des, pw);
                    pw.println("  </" + tagName + '>');
                }
            }
        }
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.ImportElement

            String tagName =
                OMUtils.getQualifiedValue(Constants.NS_URI_WSDL20,
                           Constants.ELEM_IMPORT,
                           des);
            for(int ind=0;ind<imports.length;ind++){
                ImportElement importEle = imports[ind];
                if (importEle!=null){
                    pw.print("  <" + tagName);

                    String namespace = importEle.getNamespace().toString();
                    if (namespace != null){
                        OMUtils.printAttribute(Constants.ATTR_NAMESPACE,
                                namespace,
                                pw);
                    }
                    String location = importEle.getLocation().toString();
                    if (location != null){
                        OMUtils.printAttribute(Constants.ATTR_LOCATION,
                                location,
                                pw);
                    }
                    printExtensibilityAttributes(importEle.getExtensionAttributes(), importEle, pw);
                    pw.println('>');
                    printDocumentation(importEle.getDocumentationElements(), des, pw);
                    printExtensibilityElements(importEle.getClass(), importEle.getExtensionElements(), des, pw);
                    pw.println("  </" + tagName + '>');
                }
            }
        }
View Full Code Here

Examples of org.jibx.schema.elements.ImportElement

                        IncludeElement inc = new IncludeElement();
                        inc.setLocation(file);
                        m_schema.getSchemaChildren().add(inc);
                    }
                } else {
                    ImportElement imp = new ImportElement();
                    imp.setLocation(file);
                    imp.setNamespace(ns);
                    m_schema.getSchemaChildren().add(imp);
                    getPrefix(ns);
                }
                m_fixedSet.add(holder);
            }
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.