FileDocCategorySizeDatePackage
HomeJDOM.javaAPI DocExample655Sun Sep 02 14:59:04 BST 2001com.oreilly.forum.xml

HomeJDOM

public class HomeJDOM extends Object
Produce JDOM data for the home page.

Fields Summary
Constructors Summary
private HomeJDOM()

    
Methods Summary
public static ElementproduceElement(java.util.Iterator boards)

param
boards an iterator of BoardSummary objects.

        Element homeElem = new Element("home");
        while (boards.hasNext()) {
            BoardSummary curBoard = (BoardSummary) boards.next();
            homeElem.addContent(BoardSummaryJDOM.produceElement(curBoard));
        }

        return homeElem;