Examples of DescriptionElement


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

        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.DescriptionElement

    buildBindings(desc);
    buildServices(desc);

    IncludeElement[] includes = desc.getIncludeElements();
    for (int i = 0; i < includes.length; i++) {
      DescriptionElement inclDesc = includes[i].getDescriptionElement();
      if (inclDesc != null) {
        initComponents((DescriptionImpl) inclDesc);
      }
    }

    ImportElement[] imports = desc.getImportElements();
    for (int i = 0; i < imports.length; i++) {
      DescriptionElement impDesc = imports[i].getDescriptionElement();
      if (impDesc != null) {
        initComponents((DescriptionImpl) impDesc);
      }
    }
  }
View Full Code Here

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

            }
        }
       
        //process the schema components declared within any included descriptions
        IncludeElement[] includes = desc.getIncludeElements();
        DescriptionElement includedDesc;
        for(int i = 0; i < includes.length; i++)
        {
            includedDesc = includes[i].getDescriptionElement();
            if(includedDesc != null)
            {
                buildElementsAndTypes((DescriptionImpl)includedDesc);
            }
        }
       
        //process the schema components declared within any imported descriptions
        ImportElement[] imports = desc.getImportElements();
        DescriptionElement importedDesc;
        for(int i = 0; i < imports.length; i++)
        {
            importedDesc = imports[i].getDescriptionElement();
            if(importedDesc != null)
            {
View Full Code Here

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

       
        //walk the parts of the xml tree not represented in the component model, calling checkAssertions
        //method for each element.
        // - i.e. description(s), import, include, types, documentation?
       
        DescriptionElement descElem = description.toElement();
       
        checkAssertions(DescriptionElement.class, descElem);
       
        //check assertions for the Description component
       
View Full Code Here

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

       
        //nested interfaces
        List nestedDescs = new Vector(getNestedDescriptions());
        for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
        {
            DescriptionElement desc = (DescriptionElement)i.next();
            InterfaceElement[] interfaces = desc.getInterfaceElements();
            for(int j=0; j<interfaces.length; j++)
            {
                Interface intface = (Interface)interfaces[j];
                if(!containsComponent(intface, allInterfaces)) {
                    ((InterfaceImpl)intface).setDescriptionComponent(this);
View Full Code Here

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

       
        //nested bindings
        List nestedDescs = new Vector(getNestedDescriptions());
        for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
        {
            DescriptionElement desc = (DescriptionElement)i.next();
            BindingElement[] bindings = desc.getBindingElements();
            for(int j=0; j<bindings.length; j++)
            {
                Binding binding = (Binding)bindings[j];
                if(!containsComponent(binding, allBindings)) {
                    ((BindingImpl)binding).setDescriptionComponent(this);
View Full Code Here

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

       
        //nested services
        List nestedDescs = new Vector(getNestedDescriptions());
        for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
        {
            DescriptionElement desc = (DescriptionElement)i.next();
            ServiceElement[] services = desc.getServiceElements();
            for(int j=0; j<services.length; j++)
            {
                Service service = (Service)services[j];
                if(!containsComponent(service, allServices)) {
                    ((ServiceImpl)service).setDescriptionComponent(this);
View Full Code Here

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

        //imports are non-transitive, so just get the directly imported descriptions
        //and any includes within them.
        ImportElement[] imports = getImportElements();
        for(int i = 0; i < imports.length; i++)
        {
            DescriptionElement desc = imports[i].getDescriptionElement();
            if(desc != null) {
                descs.add(desc);
                collectIncludedDescriptions(descs, desc);
            }
        }
View Full Code Here

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

    private void collectIncludedDescriptions(List descs, DescriptionElement desc)
    {
        IncludeElement[] includes = desc.getIncludeElements();
        for(int i = 0; i < includes.length; i++)
        {
            DescriptionElement includedDesc = includes[i].getDescriptionElement();
            if(includedDesc != null && !descs.contains(includedDesc))
            {
                descs.add(includedDesc);
            }
            collectIncludedDescriptions(descs, includedDesc);
View Full Code Here

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

            WSDLElement parent = ((NestedElement) wElem).getParentElement();
            return getTargetNamespaceAndPrefix(parent);
        }
       
        //We have a description element
        DescriptionElement desc = ((DescriptionElement) wElem);
       
        //Find its target name and prefix.
        String[] namespace = new String[] {emptyString, emptyString};
        URI tns = desc.getTargetNamespace();
        if (tns != null) {
            namespace[0] = tns.toString();
            String prefix = desc.getNamespacePrefix(tns);
            if(prefix != null) {
                namespace[1] = prefix;
            }
        }
        return namespace;
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.