Package com.alexgilleran.icesoap.xml.impl

Examples of com.alexgilleran.icesoap.xml.impl.XMLTextNodeImpl


  /**
   * {@inheritDoc}
   */
  @Override
  protected XMLTextNodeImpl constructElement(String namespace, String name) {
    return new XMLTextNodeImpl(namespace, name, DEFAULT_VALUE);
  }
View Full Code Here


    assertEquals(expected, getXMLObject().toString());
  }

  @Test
  public void testNullValue() {
    XMLTextNode node = new XMLTextNodeImpl(null, "name", null);
    node.declarePrefix(XMLNode.NS_PREFIX_XSI, XMLNode.NS_URI_XSI);

    assertEquals(
        "<name xsi:nil=\"true\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" />",
        node.toString());
  }
View Full Code Here

        ((XMLNode) getXMLObject().getChildNodes().get(0))
            .getNamespace());

    // Add a text element
    getXMLObject().addElement(
        new XMLTextNodeImpl(namespace2, name2, value2));

    // Assert that there are now two elements
    assertEquals(2, getXMLObject().getChildNodes().size());

    // Check that the details of the first element is still correct
View Full Code Here

TOP

Related Classes of com.alexgilleran.icesoap.xml.impl.XMLTextNodeImpl

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.