Examples of IncludeElement


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

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

        IncludeElement include = desc.addIncludeElement();

        String locationURI = includeEl.getAttributeValue(Constants.ATTR_LOCATION);

        parseExtensionAttributes(includeEl, IncludeElement.class, include, desc);

        if(locationURI != null)
        {
            URI resolvedLocationURI = resolveURI(getURI(locationURI));
            include.setLocation(resolvedLocationURI);
            DescriptionElement includedDesc =
                getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
            include.setDescriptionElement(includedDesc);
        }

        return include;
    }
View Full Code Here

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

        if(schemaDef == null) {
            //Check if any WSDL includes 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.
            IncludeElement[] includes = desc.getIncludeElements();
            for(int i=0; i<includes.length; i++) {
                IncludeElement includeElem = (IncludeElement) includes[i];
                DescriptionElement nestedDesc = includeElem.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.IncludeElement

        if(schemaDef == null) {
            //Check if any WSDL includes 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.
            IncludeElement[] includes = desc.getIncludeElements();
            for(int i=0; i<includes.length; i++) {
                IncludeElement includeElem = (IncludeElement) includes[i];
                DescriptionElement nestedDesc = includeElem.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.IncludeElement

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

        IncludeElement include = desc.addIncludeElement();

        String locationURI = includeEl.getAttributeValue(Constants.ATTR_LOCATION);

        parseExtensionAttributes(includeEl, IncludeElement.class, include, desc);

        if(locationURI != null)
        {
            URI resolvedLocationURI = resolveURI(getURI(locationURI));
            include.setLocation(resolvedLocationURI);
            DescriptionElement includedDesc =
                getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
            include.setDescriptionElement(includedDesc);
        }

        return include;
    }
View Full Code Here

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

            String tagName =
                DOMUtils.getQualifiedValue(Constants.NS_URI_WSDL20,
                           Constants.ELEM_INCLUDE,
                           des);
            for(int ind=0;ind<includes.length;ind++){
                IncludeElement includeEle = includes[ind];
                if (includeEle!=null){
                    pw.print("  <" + tagName);

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

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

            String tagName =
                OMUtils.getQualifiedValue(Constants.NS_URI_WSDL20,
                           Constants.ELEM_INCLUDE,
                           des);
            for(int ind=0;ind<includes.length;ind++){
                IncludeElement includeEle = includes[ind];
                if (includeEle!=null){
                    pw.print("  <" + tagName);

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

Examples of org.jibx.binding.model.IncludeElement

        for (Iterator iter = binding.topChildIterator(); iter.hasNext();) {
            ElementBase child = (ElementBase)iter.next();
            if (child.type() == ElementBase.INCLUDE_ELEMENT) {
               
                // recurse to process included binding definitions
                IncludeElement include = (IncludeElement)child;
                collectTopLevelComponents(include.getBinding(), defaultns,
                    elementMap, complexTypeMap, simpleTypeMap, bindingMap);
               
            } else if (child.type() == ElementBase.FORMAT_ELEMENT) {
               
                // register named formats as simple type conversions
View Full Code Here

Examples of org.jibx.binding.model.IncludeElement

        for (Iterator iter = binding.topChildIterator(); iter.hasNext();) {
            ElementBase child = (ElementBase)iter.next();
            if (child.type() == ElementBase.INCLUDE_ELEMENT) {

                // recurse to process included binding definitions
                IncludeElement include = (IncludeElement)child;
                collectTopLevelComponents(include.getBinding(), defaultns,
                                          elementMap, complexTypeMap, simpleTypeMap, bindingMap);

            } else if (child.type() == ElementBase.FORMAT_ELEMENT) {

                // register named formats as simple type conversions
View Full Code Here

Examples of org.jibx.binding.model.IncludeElement

        for (Iterator iter = binding.topChildIterator(); iter.hasNext();) {
            ElementBase child = (ElementBase)iter.next();
            if (child.type() == ElementBase.INCLUDE_ELEMENT) {

                // recurse to process included binding definitions
                IncludeElement include = (IncludeElement)child;
                collectTopLevelComponents(include.getBinding(), defaultns,
                                          elementMap, complexTypeMap, simpleTypeMap, bindingMap);

            } else if (child.type() == ElementBase.FORMAT_ELEMENT) {

                // register named formats as simple type conversions
View Full Code Here

Examples of org.jibx.binding.model.IncludeElement

        for (Iterator iter = binding.topChildIterator(); iter.hasNext();) {
            ElementBase child = (ElementBase)iter.next();
            if (child.type() == ElementBase.INCLUDE_ELEMENT) {

                // recurse to process included binding definitions
                IncludeElement include = (IncludeElement)child;
                if(include.getBinding() != null) {
                    collectTopLevelComponents(include.getBinding(), defaultns,
                                            elementMap, complexTypeMap, simpleTypeMap, bindingMap);
                }

            } else if (child.type() == ElementBase.FORMAT_ELEMENT) {
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.