| Constructor and Description | 
|---|
| Dom4JXMLOutput(org.dom4j.Branch topLevel)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAttribute(java.lang.String name,
            java.lang.String value)Add an attribute to a started tag. | 
| void | beginDocument()Begin the XML document. | 
| void | closeTag(java.lang.String tagName)Close tag with given name. | 
| void | finish()Finish writing XML output, closing any underlying resources (such as
 output streams). | 
| void | openCloseTag(java.lang.String tagName)Open and close tag with given name. | 
| void | openCloseTag(java.lang.String tagName,
            XMLAttributeList attributeList)Open and close tag with given name and given attributes. | 
| void | openTag(java.lang.String tagName)Open a tag with given name. | 
| void | openTag(java.lang.String tagName,
       XMLAttributeList attributeList)Open a tag with given name and given attributes. | 
| void | startTag(java.lang.String tagName)Start a tag, with the intention of adding attributes. | 
| void | stopTag(boolean close)End a started tag. | 
| void | write(XMLWriteable obj)Add given object to the tree. | 
| void | writeCDATA(java.lang.String cdata)Write a CDATA section to the XML document. | 
| void | writeCollection(java.util.Collection<? extends XMLWriteable> collection)Add a Collection of XMLWriteable objects to the tree. | 
| void | writeElementList(java.lang.String tagName,
                java.util.Collection<java.lang.String> listValues)Add a list of Strings to document as elements with given tag name to the
 tree. | 
| void | writeText(java.lang.String text)Write text to the XML document. | 
public Dom4JXMLOutput(org.dom4j.Branch topLevel)
topLevel - the Document or Element that is the root of the tree to be
            builtpublic void beginDocument()
XMLOutputbeginDocument in interface XMLOutputpublic void openTag(java.lang.String tagName)
XMLOutputpublic void openTag(java.lang.String tagName,
           XMLAttributeList attributeList)
XMLOutputpublic void openCloseTag(java.lang.String tagName)
XMLOutputopenCloseTag in interface XMLOutputtagName - the tag namepublic void openCloseTag(java.lang.String tagName,
                XMLAttributeList attributeList)
XMLOutputopenCloseTag in interface XMLOutputtagName - the tag nameattributeList - the attributespublic void startTag(java.lang.String tagName)
XMLOutputpublic void addAttribute(java.lang.String name,
                java.lang.String value)
XMLOutputaddAttribute in interface XMLOutputname - the attribute name.value - the attribute value, unescaped.public void stopTag(boolean close)
XMLOutputpublic void closeTag(java.lang.String tagName)
XMLOutputpublic void writeText(java.lang.String text)
XMLOutputpublic void writeCDATA(java.lang.String cdata)
XMLOutputwriteCDATA in interface XMLOutputcdata - the character data to writepublic void writeElementList(java.lang.String tagName,
                    java.util.Collection<java.lang.String> listValues)
tagName - the tag namelistValues - Collection of String values to addpublic void write(XMLWriteable obj)
obj - the objectpublic void writeCollection(java.util.Collection<? extends XMLWriteable> collection)
collection - Collection of XMLWriteable objectspublic void finish()
XMLOutputFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.