public class DefaultListFormatter extends Object implements ListFormatter
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
buffer |
protected int |
itemNo |
static char |
ITEMNO_MARKER |
protected int |
length |
Constructor and Description |
---|
DefaultListFormatter(DefaultListFormatter _formatter) |
DefaultListFormatter(String _listBetween) |
DefaultListFormatter(String _listBefore,
String _listAfter) |
DefaultListFormatter(String _listBefore,
String _listBetween,
String _listAfter) |
DefaultListFormatter(String _emptyList,
String _singleListBefore,
String _singleListAfter,
String _multiListBefore,
String _multiListBetween,
String _multiListAfter) |
Modifier and Type | Method and Description |
---|---|
ListFormatter |
addItem(Object item) |
protected void |
doAppendItem(Object item) |
StringBuilder |
endList() |
StringBuilder |
getBuffer() |
Pattern |
getPattern() |
ListFormatter |
newList(StringBuilder _buffer,
int _length) |
public static final char ITEMNO_MARKER
protected StringBuilder buffer
protected int length
protected int itemNo
public DefaultListFormatter(DefaultListFormatter _formatter)
public DefaultListFormatter(String _listBetween)
public DefaultListFormatter(String _listBefore, String _listBetween, String _listAfter)
public ListFormatter newList(StringBuilder _buffer, int _length)
newList
in interface ListFormatter
public ListFormatter addItem(Object item)
addItem
in interface ListFormatter
protected void doAppendItem(Object item)
public StringBuilder endList()
endList
in interface ListFormatter
public StringBuilder getBuffer()
getBuffer
in interface ListFormatter
public Pattern getPattern()
getPattern
in interface ListFormatter
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.