|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.format.AbstractPropertyFormat
org.progeeks.meta.format.DefaultListPropertyFormat
public class DefaultListPropertyFormat
Default implementation for converting a list of objects to and from text data. This assumes that the values' have a useful toString() method. This formatter can only be used for rendering.
Constructor Summary | |
---|---|
DefaultListPropertyFormat(PropertyFormat valueFormat,
java.lang.String delimiter)
Creates a property format object that will output a list of values by converting them individually with the specified property format object and then appending them together separated by the specified delimiter. |
Method Summary | |
---|---|
java.lang.String |
format(java.lang.Object obj)
Returns the formatted String for the specified Object. |
java.lang.StringBuffer |
format(java.lang.Object obj,
java.lang.StringBuffer appendTo)
Appends the formatted string to the specified StringBuffer and returns the supplied StringBuffer. |
java.lang.Object |
parseObject(java.lang.String source,
int index)
Parses the text starting at the specified index and converts it into an Object of the appropriate type. |
java.lang.String |
toString()
String summary. |
Methods inherited from class org.progeeks.meta.format.AbstractPropertyFormat |
---|
parseObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultListPropertyFormat(PropertyFormat valueFormat, java.lang.String delimiter)
Method Detail |
---|
public java.lang.String format(java.lang.Object obj)
format
in interface PropertyFormat
format
in class AbstractPropertyFormat
public java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer appendTo)
format
in interface PropertyFormat
format
in class AbstractPropertyFormat
public java.lang.Object parseObject(java.lang.String source, int index)
parseObject
in interface PropertyFormat
parseObject
in class AbstractPropertyFormat
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |