Package com.topologi.diffx.xml

Examples of com.topologi.diffx.xml.IllegalCloseElementException


        deNude();
      }
      // now we can close the element
      Element elt = popElement();
      // we reached the end of the document too early
      if (elt == ROOT) throw new IllegalCloseElementException();
      // the element contains text / has children
      if (elt.hasChildren) {
        indent();
      }
      this.handler.endElement(elt.uri, elt.name, getQName(elt.uri, elt.name));
View Full Code Here


   *
   * @throws DOMException If thrown by method invoked on the underlying DOM document
   */
  public void closeElement() throws DOMException, IllegalCloseElementException {
    if (this.currentElement.getNodeType() == Node.DOCUMENT_NODE)
      throw new IllegalCloseElementException();
    this.depth--;
    this.isNude = false;
    Boolean hasChildren = this.childrenFlags.remove(this.childrenFlags.size() - 1);
    if (hasChildren.booleanValue()) {
      indent();
View Full Code Here

TOP

Related Classes of com.topologi.diffx.xml.IllegalCloseElementException

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.