java.lang.Object
org.progeeks.meta.format.AbstractPropertyFormat
- All Implemented Interfaces:
- org.progeeks.meta.PropertyFormat
- Direct Known Subclasses:
- DefaultListPropertyFormat, DefaultPropertyFormat
- public abstract class AbstractPropertyFormat
- extends java.lang.Object
- implements org.progeeks.meta.PropertyFormat
Base implementation that can be extended to more easily
provide property formatting support.
- Version:
- $Revision: 1.1 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPropertyFormat
public AbstractPropertyFormat()
format
public abstract java.lang.String format(java.lang.Object obj)
- Returns the formatted String for the specified Object.
- Specified by:
format in interface org.progeeks.meta.PropertyFormat
format
public 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.
- Specified by:
format in interface org.progeeks.meta.PropertyFormat
parseObject
public java.lang.Object parseObject(java.lang.String source)
- Parses the text and converts it into an Object of the
appropriate type. If this method is not supported then
an UnsupportedOperationException will be thrown.
- Specified by:
parseObject in interface org.progeeks.meta.PropertyFormat
parseObject
public abstract 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. If this method is
not supported then an UnsupportedOperationException will be
thrown.
- Specified by:
parseObject in interface org.progeeks.meta.PropertyFormat