|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.xml.Dom4JXMLOutput
public class Dom4JXMLOutput
XMLOutput class to build all or part of a dom4j tree.
XMLOutput
Constructor Summary | |
---|---|
Dom4JXMLOutput(org.dom4j.Branch topLevel)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dom4JXMLOutput(org.dom4j.Branch topLevel)
topLevel
- the Document or Element that is the root of
the tree to be builtMethod Detail |
---|
public void beginDocument()
XMLOutput
beginDocument
in interface XMLOutput
public void openTag(java.lang.String tagName)
XMLOutput
openTag
in interface XMLOutput
tagName
- the tag namepublic void openTag(java.lang.String tagName, XMLAttributeList attributeList)
XMLOutput
openTag
in interface XMLOutput
tagName
- the tag nameattributeList
- the attributespublic void openCloseTag(java.lang.String tagName)
XMLOutput
openCloseTag
in interface XMLOutput
tagName
- the tag namepublic void openCloseTag(java.lang.String tagName, XMLAttributeList attributeList)
XMLOutput
openCloseTag
in interface XMLOutput
tagName
- the tag nameattributeList
- the attributespublic void startTag(java.lang.String tagName)
XMLOutput
startTag
in interface XMLOutput
tagName
- the tag namepublic void addAttribute(java.lang.String name, java.lang.String value)
XMLOutput
addAttribute
in interface XMLOutput
name
- the attribute name.value
- the attribute value, unescaped.public void stopTag(boolean close)
XMLOutput
stopTag
in interface XMLOutput
close
- true if the element has no content.public void closeTag(java.lang.String tagName)
XMLOutput
closeTag
in interface XMLOutput
tagName
- the tag namepublic void writeText(java.lang.String text)
XMLOutput
writeText
in interface XMLOutput
text
- the text to writepublic void writeCDATA(java.lang.String cdata)
XMLOutput
writeCDATA
in interface XMLOutput
cdata
- 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()
XMLOutput
finish
in interface XMLOutput
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |