Package org.apache.woden.wsdl20.xml

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


        }
        try {
            if (description == null) {

                Description description;
                DescriptionElement descriptionElement;
                if (wsdlURI != null && !"".equals(wsdlURI)) {
                    description = readInTheWSDLFile(wsdlURI);
                    descriptionElement = description.toElement();
                } else if (in != null) {
                    description = readInTheWSDLFile(in);
                    descriptionElement = description.toElement();
                } else {
                    throw new AxisFault("No resources found to read the wsdl");
                }

                savedTargetNamespace = descriptionElement.getTargetNamespace().toString();
                namespacemap = descriptionElement.getDeclaredNamespaces();
                this.description = description;

            }
            // Create the namespacemap
View Full Code Here


     */
    private void addDocumentation(AxisDescription axisDescription, DocumentableElement element) {
        DocumentationElement[] documentationElements = element.getDocumentationElements();
        String documentation = "";
        for (int i = 0; i < documentationElements.length; i++) {
            DocumentationElement documentationElement = documentationElements[i];
            XMLElement contentElement = documentationElement.getContent();
            Element content = (Element)contentElement.getSource();
            if (content != null) {
                documentation = documentation + DOM2Writer.nodeToString(content.getFirstChild());
            }
        }
View Full Code Here

            XMLElement docEl,
            DescriptionElement desc,
            DocumentableElement parent)
            throws WSDLException {

        DocumentationElement documentation = parent.addDocumentationElement();

        //TODO store docEl as below, or just extract any text?
        documentation.setContent(docEl);

        //Now parse any extensibility attributes or elements

        parseExtensionAttributes(docEl, DocumentationElement.class, documentation, desc);

        XMLElement[] children = docEl.getChildElements();
        XMLElement tempEl = null;

        for(int i=0; i<children.length; i++)
        {
            tempEl = children[i];
            documentation.addExtensionElement(
                    parseExtensionElement(DocumentationElement.class, documentation, tempEl, desc) );
        }

        return documentation;
    }
View Full Code Here

    private DocumentationElement parseDocumentation(XMLElement docEl,
                                                    DocumentableElement parent)
                                                    throws WSDLException
    {
        DocumentationElement documentation = parent.addDocumentationElement();
        documentation.setContent(docEl);
       
        //TODO parseExtensionAttributes(docEl, DocumentationElement.class, documentation, desc);
        //TODO parseExtensionElements(...)
       
        return documentation;
View Full Code Here

           
    private DocumentationElement parseDocumentation(XMLElement docEl,
                                                    DocumentableElement parent)
                                                    throws WSDLException
    {
        DocumentationElement documentation = parent.addDocumentationElement();
        documentation.setContent(docEl);
       
        //TODO parseExtensionAttributes(docEl, DocumentationElement.class, documentation, desc);
        //TODO parseExtensionElements(...)
       
        return documentation;
View Full Code Here

    private DocumentationElement parseDocumentation(XMLElement docEl,
                                                    DocumentableElement parent)
                                                    throws WSDLException
    {
        DocumentationElement documentation = parent.addDocumentationElement();
        documentation.setContent(docEl);
       
        //TODO parseExtensionAttributes(docEl, DocumentationElement.class, documentation, desc);
        //TODO parseExtensionElements(...)
       
        return documentation;
View Full Code Here

        reader.getErrorReporter().setErrorHandler(handler);
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
        DescriptionElement desc = descComp.toElement();
       
        DocumentationElement doc = null;
        UnknownExtensionElement ee = null;
       
        //wsdl:description
        doc = desc.getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:types
        doc=desc.getTypesElement().getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:interface
        doc=desc.getInterfaceElements()[0].getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:binding
        doc=desc.getBindingElements()[0].getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
       
        //wsdl:service
        doc=desc.getServiceElements()[0].getDocumentationElements()[0];
        ee = (UnknownExtensionElement)doc.getExtensionElements()[0];
        assertNull(ee.getElement().getNamespaceURI());
    }
View Full Code Here

    private void addDocumentation(AxisDescription axisDescription, DocumentableElement element) {
        DocumentationElement[] documentationElements = element.getDocumentationElements();
        String documentation = "";
        StringBuffer x;
        for (int i = 0; i < documentationElements.length; i++) {
            DocumentationElement documentationElement = documentationElements[i];
            Element content = (Element) documentationElement.getContent();
            if (content != null) {
                documentation = documentation + DOM2Writer.nodeToString(content.getFirstChild());
            }
        }
        if (!"".equals(documentation)) {
View Full Code Here

     */
    private void addDocumentation(AxisDescription axisDescription, DocumentableElement element) {
        DocumentationElement[] documentationElements = element.getDocumentationElements();
        String documentation = "";
        for (int i = 0; i < documentationElements.length; i++) {
            DocumentationElement documentationElement = documentationElements[i];
            XMLElement contentElement = documentationElement.getContent();
            Element content = (Element)contentElement.getSource();
            if (content != null) {
                documentation = documentation + DOM2Writer.nodeToString(content.getFirstChild());
            }
        }
View Full Code Here

     */
    private void addDocumentation(AxisDescription axisDescription, DocumentableElement element) {
        DocumentationElement[] documentationElements = element.getDocumentationElements();
        String documentation = "";
        for (int i = 0; i < documentationElements.length; i++) {
            DocumentationElement documentationElement = documentationElements[i];
            XMLElement contentElement = documentationElement.getContent();
            Element content = (Element)contentElement.getSource();
            if (content != null) {
                documentation = documentation + DOM2Writer.nodeToString(content.getFirstChild());
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.woden.wsdl20.xml.DocumentationElement

Copyright © 2018 www.massapicom. 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.