Package org.apache.woden

Examples of org.apache.woden.XMLElement


     * Helper method for readWSDL(WSDLSource)
     */
    private Description readWSDL(String wsdlURL, Element docEl)
        throws WSDLException {
       
      XMLElement descEl = createXMLElement(docEl);
        DescriptionElement descElem = parseDescription(wsdlURL, descEl, null);
        Description descComp = descElem.toComponent();
                 
        //TODO if schema errors, don't do any further validation (i.e. assertions assume WSDL is schema valid)
       
View Full Code Here


          Element schemaElem = schemaDoc.
              createElementNS(SchemaConstants.NS_STRING_SCHEMA, SchemaConstants.ELEM_IMPORT);
          schemaElem.setAttribute(SchemaConstants.ATTR_NAMESPACE, SchemaConstants.NS_STRING_SCHEMA);
          schemaElem.setAttribute(SchemaConstants.ATTR_SCHEMA_LOCATION, resolveURI("http://www.w3.org/2001/XMLSchema.xsd"));
         
          XMLElement xmlEl = createXMLElement(schemaElem);
          desc.getTypesElement().addSchema(parseSchemaImport(xmlEl, desc));
        }
        catch(Exception e)
        {
          System.out.println("A problem was encountered while creating the build in XML schema types: " + e);
View Full Code Here

               
                //cannot continue without a <description> element
                return null;
            }
           
            XMLElement descEl = createXMLElement(docEl);
           
            referencedDesc = parseDescription(locationStr,
                                          descEl,
                                              wsdlModules);
           
View Full Code Here

        XmlSchema actualSchemaDef = schema.getSchemaDefinition();
        assertEquals("Unexpected XmlSchema", expectedSchemaDef, actualSchemaDef);
    }

    public void testSetGetXMLElement() throws Exception {
        XMLElement expectedEl = null;
        expectedEl = new DOMXMLElement(new ErrorReporterImpl());
        Schema schema = new ImportedSchemaImpl();
        schema.setXMLElement(expectedEl);
        XMLElement actualEl = schema.getXMLElement();
        assertEquals("Unexpected XMLElement", expectedEl, actualEl);
    }
View Full Code Here

       
        //check that the doc element is empty when first created
        assertNull(docElem.getContent());
       
        //test the setter and getter methods for doc elem content
        XMLElement xmlel = new TestXMLElement();
        docElem.setContent(xmlel);
        assertEquals(xmlel, docElem.getContent());
    }
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());
            }
        }
        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());
            }
        }
        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());
            }
        }
        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());
            }
        }
        if (!"".equals(documentation)) {
View Full Code Here

     * Helper method for readWSDL(WSDLSource)
     */
    private Description readWSDL(String wsdlURL, Element docEl)
        throws WSDLException {
       
      XMLElement descEl = createXMLElement(docEl);
        DescriptionElement descElem = parseDescription(wsdlURL, descEl, null);
        Description descComp = descElem.toComponent();
                 
        //TODO if schema errors, don't do any further validation (i.e. assertions assume WSDL is schema valid)
       
View Full Code Here

TOP

Related Classes of org.apache.woden.XMLElement

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.