|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.ajaxtags.xml.BaseXmlBuilder<V>
V - type of list elements (Item, TreeItem)public abstract class BaseXmlBuilder<V>
Helper class to build valid XML as a base for all XML builders.
| Constructor Summary | |
|---|---|
BaseXmlBuilder()
|
|
| Method Summary | |
|---|---|
BaseXmlBuilder<V> |
add(V item)
Add item to list. |
void |
clear()
Delete all items. |
V |
get(int index)
Return the item at index. |
String |
getEncoding()
|
protected List<V> |
getItems()
|
protected List<V> |
getList()
|
protected abstract String |
getXMLString()
|
boolean |
isEmpty()
Check if list contains no elements (is empty). |
void |
setEncoding(String encoding)
Set the XML encoding. |
protected void |
setList(List<V> list)
|
int |
size()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseXmlBuilder()
| Method Detail |
|---|
protected List<V> getList()
protected void setList(List<V> list)
public String getEncoding()
public void setEncoding(String encoding)
encoding - the XML encodingprotected List<V> getItems()
protected abstract String getXMLString()
toString()public String toString()
toString in class Objectpublic BaseXmlBuilder<V> add(V item)
item - the item to add
ArrayList.add(Object)public void clear()
public V get(int index)
index - the index
public boolean isEmpty()
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||