edu.umd.cs.findbugs.xml

Class XMLOutputUtil

public abstract class XMLOutputUtil extends Object

Utility routines for writing to XMLOutput.

Author: David Hovemeyer

See Also: XMLOutput

Method Summary
static voidwriteCollection(XMLOutput xmlOutput, Collection<? extends XMLWriteable> collection)
Write a Collection of XMLWriteable objects.
static voidwriteElementList(XMLOutput xmlOutput, String tagName, Collection<String> listValues)
Write a list of Strings to document as elements with given tag name.
static voidwriteElementList(XMLOutput xmlOutput, String tagName, Iterator<String> listValueIterator)
Write a list of Strings to document as elements with given tag name.

Method Detail

writeCollection

public static void writeCollection(XMLOutput xmlOutput, Collection<? extends XMLWriteable> collection)
Write a Collection of XMLWriteable objects.

Parameters: xmlOutput the XMLOutput object to write to collection Collection of XMLWriteable objects

writeElementList

public static void writeElementList(XMLOutput xmlOutput, String tagName, Collection<String> listValues)
Write a list of Strings to document as elements with given tag name.

Parameters: xmlOutput the XMLOutput object to write to tagName the tag name listValues Collection of String values to write

writeElementList

public static void writeElementList(XMLOutput xmlOutput, String tagName, Iterator<String> listValueIterator)
Write a list of Strings to document as elements with given tag name.

Parameters: xmlOutput the XMLOutput object to write to tagName the tag name listValueIterator Iterator over String values to write

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.