Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.progeeks.meta
Interface PropertyFormat  view PropertyFormat download PropertyFormat.java


public interface PropertyFormat

Provides text formatting and parsing for a specific property type.

Version:
$Revision: 1.1 $

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

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


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.


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.


parseObject

public 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.