Package org.apache.rat.report.xml.writer

Examples of org.apache.rat.report.xml.writer.OperationNotAllowedException


     * or after the first element has been closed
     */
    public IXmlWriter closeElement() throws IOException {
        if (elementNames.isEmpty()) {
            if (elementsWritten) {
                throw new OperationNotAllowedException("Root element has already been closed.");
            } else {
                throw new OperationNotAllowedException("Close called before an element has been opened.");           
            }
        }
        final CharSequence elementName = (CharSequence) elementNames.pop();
        if (inElement) {
            writer.write('/');
View Full Code Here


     * if called before any call to {@link #openElement}
     */
    public IXmlWriter closeDocument() throws IOException {
        if (elementNames.isEmpty()) {
            if (!elementsWritten) {
                throw new OperationNotAllowedException("Close called before an element has been opened.");           
            }
        }
        while(!elementNames.isEmpty()) {
            closeElement();
        }
View Full Code Here

TOP

Related Classes of org.apache.rat.report.xml.writer.OperationNotAllowedException

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.