Package org.apache.woden.internal

Examples of org.apache.woden.internal.DOMXMLElement


        return null;
    }
   
    //Private methods
    private static XMLElement createXMLElement(Element element, ErrorReporter errorReporter) {
        DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
        domXMLElement.setSource(element);
        return domXMLElement;
    }
View Full Code Here


      elem = null;
  }

  public void testGetFirstChildElement() throws WSDLException {

      DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
      domXMLElement.setSource(elem);
      assertNotNull(domXMLElement.getFirstChildElement());
  }
View Full Code Here

  */

    public void testGetAttributeValue() throws WSDLException {
        //The <binding> element in the hotelReservation WSDL has many attributes
       //So, let's test with that element
       DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
       domXMLElement.setSource(elem);
       Object obj;
       Element tempEl;
       if ((obj = domXMLElement.getFirstChildElement().getSource()) instanceof Element){
           tempEl = (Element)obj;
           while (tempEl != null){
                 if (DOMQNameUtils.matches(Constants.Q_ELEM_BINDING, tempEl)){
                     domXMLElement.setSource(tempEl);
                     assertNotNull(domXMLElement.getAttributeValue("name"));
                 }
               tempEl = DOMUtils.getNextSiblingElement(tempEl);
           }
       }
    }
View Full Code Here

           }
       }
    }

    public void testGetQName() throws WSDLException {
        DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
        domXMLElement.setSource(elem);
        Object obj;
        Element tempEl;
        if ((obj = domXMLElement.getSource()) instanceof Element){
            tempEl = (Element)obj;
            while (tempEl != null){
                  if (DOMQNameUtils.matches(Constants.Q_ELEM_BINDING, tempEl)){
                      domXMLElement.setSource(tempEl);
                      assertNotNull(domXMLElement.getQName("wsoap:protocol"));
                  }
                tempEl = DOMUtils.getNextSiblingElement(tempEl);
            }
        }
    }
View Full Code Here

        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

      elem = null;
  }

  public void testGetFirstChildElement() throws WSDLException {

      DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
      domXMLElement.setSource(elem);
      assertNotNull(domXMLElement.getFirstChildElement());
  }
View Full Code Here

  */

    public void testGetAttributeValue() throws WSDLException {
        //The <binding> element in the hotelReservation WSDL has many attributes
       //So, let's test with that element
       DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
       domXMLElement.setSource(elem);
       Object obj;
       Element tempEl;
       if ((obj = domXMLElement.getFirstChildElement().getSource()) instanceof Element){
           tempEl = (Element)obj;
           while (tempEl != null){
                 if (DOMQNameUtils.matches(Constants.Q_ELEM_BINDING, tempEl)){
                     domXMLElement.setSource(tempEl);
                     assertNotNull(domXMLElement.getAttributeValue("name"));
                 }
               tempEl = DOMUtils.getNextSiblingElement(tempEl);
           }
       }
    }
View Full Code Here

           }
       }
    }

    public void testGetQName() throws WSDLException {
        DOMXMLElement domXMLElement = new DOMXMLElement(errorReporter);
        domXMLElement.setSource(elem);
        Object obj;
        Element tempEl;
        if ((obj = domXMLElement.getSource()) instanceof Element){
            tempEl = (Element)obj;
            while (tempEl != null){
                  if (DOMQNameUtils.matches(Constants.Q_ELEM_BINDING, tempEl)){
                      domXMLElement.setSource(tempEl);
                      assertNotNull(domXMLElement.getQName("wsoap:protocol"));
                  }
                tempEl = DOMUtils.getNextSiblingElement(tempEl);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.woden.internal.DOMXMLElement

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.