| java.lang.Object jimm.datavision.ListWriter
ListWriter | public class ListWriter (Code) | | Writes the element of a list of
Writeable objects as XML.
author: Jim Menard, jimm@io.com |
writeList | public static void writeList(XMLWriter out, Collection list)(Code) | | Writes the elements of a list of Writeable objects as XML. Each object's
writeXML method is called.
Parameters: out - the writer Parameters: list - the collection of objects to write |
writeList | public static void writeList(XMLWriter out, Collection list, String name)(Code) | | Writes the elements of a list of Writeable objects as XML. An open tag is
written if name is not null , then each object's
writeXML method is called, then a closing tag is written if
needed. If the list is empty, nothing at all gets written.
Parameters: out - the writer Parameters: list - the collection of objects to write Parameters: name - the XML tag name to use; if null , no begin/endelement is written |
|
|