org.progeeks.meta
Interface PropertyFormat

All Known Implementing Classes:
AbstractPropertyFormat, BeanFieldPropertyFormat, ClassPropertyFormat, DatePropertyFormat, DefaultListPropertyFormat, DefaultPropertyFormat, EdgeUserObjectFormat, FieldSubstitutionFormat, MetaFieldPropertyFormat, MonthFormat, MultiTypeFormat, PercentFormat, UrlQueryFormat

public interface PropertyFormat

Provides text formatting and parsing for a specific property type.

Version:
$Revision: 1.1 $
Author:
Paul Speed

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)
          Parses the text and converts it into an Object of the appropriate type.
 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.
 

Method Detail

format

java.lang.String format(java.lang.Object obj)
Returns the formatted String for the specified Object.


format

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.


parseObject

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.


parseObject

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.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.