Examples of DocumentationElement


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

     */
    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

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

            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

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

    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

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

           
    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

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

    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

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

        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

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

    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

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

     */
    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

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

     */
    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

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

     */
    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
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.