net.sourceforge.ajaxtags.xml
Class AjaxValueListXmlBuilder

java.lang.Object
  extended by net.sourceforge.ajaxtags.xml.BaseXmlBuilder<ValueItem>
      extended by net.sourceforge.ajaxtags.xml.AjaxValueListXmlBuilder
Direct Known Subclasses:
AjaxXmlBuilder

public abstract class AjaxValueListXmlBuilder
extends BaseXmlBuilder<ValueItem>

Helper class to build valid XML for ajax with more than one value.


Constructor Summary
AjaxValueListXmlBuilder()
           
 
Method Summary
 AjaxValueListXmlBuilder addItem(String name, boolean asCdata, String... value)
          Add an Item.
 AjaxValueListXmlBuilder addItem(String name, String... value)
          Add an Item with asCdata = false.
protected  String getXMLString()
          Build the XML string.
 
Methods inherited from class net.sourceforge.ajaxtags.xml.BaseXmlBuilder
add, clear, get, getEncoding, getItems, getList, isEmpty, setEncoding, setList, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AjaxValueListXmlBuilder

public AjaxValueListXmlBuilder()
Method Detail

addItem

public AjaxValueListXmlBuilder addItem(String name,
                                       boolean asCdata,
                                       String... value)
Add an Item.

Parameters:
name - the name
asCdata - true if so else false
value - a list of values
Returns:
the XML builder

addItem

public AjaxValueListXmlBuilder addItem(String name,
                                       String... value)
Add an Item with asCdata = false.

Parameters:
name - the name
value - a list of values
Returns:
the XML builder

getXMLString

protected String getXMLString()
Build the XML string.

Specified by:
getXMLString in class BaseXmlBuilder<ValueItem>
Returns:
the XML body, XML encoding is added by BaseXmlBuilder.toString()
See Also:
BaseXmlBuilder.getXMLString()


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.