ThinkUI Data Generator 1.0.2 API

thinkui.db.io
Interface FormatFactory

All Known Implementing Classes:
AbstractFormatFactory

public interface FormatFactory

Interface for all format factory.


Method Summary
 java.text.Format createFormat(Attribute attribute)
          Creates the Format to format values for the given attribute.
 java.lang.String[] getFormatAttrNames()
          Returns the attribute names to use to get the arguments for the Format or null.
 java.lang.String getFormatPattern()
          Returns the pattern to initialize the created Format object or null.
 java.lang.String getFormatType()
          Returns the type of Format to use or null
 void setFormatAttrNames(java.lang.String[] formatAttrNames)
          Sets the format argument attribute names.
 void setFormatPattern(java.lang.String pattern)
          Sets the pattern to initialize the created Format object.
 void setFormatType(java.lang.String formatType)
          Sets the Format type to create.
 

Method Detail

createFormat

public java.text.Format createFormat(Attribute attribute)
Creates the Format to format values for the given attribute.

Parameters:
attribute - The attribute to create the Format object.
Returns:
The text Format object for formatting values for the attribute.

getFormatAttrNames

public java.lang.String[] getFormatAttrNames()
Returns the attribute names to use to get the arguments for the Format or null.

Returns:
the format argument attribute names.

getFormatPattern

public java.lang.String getFormatPattern()
Returns the pattern to initialize the created Format object or null.

Returns:
the pattern for the format or null.

getFormatType

public java.lang.String getFormatType()
Returns the type of Format to use or null

Returns:
the type of the format or null.

setFormatAttrNames

public void setFormatAttrNames(java.lang.String[] formatAttrNames)
Sets the format argument attribute names. Typically, the specified arguments are "hidden" attributes that are used in a MessageFormat to generate a String value that consists of multiple generated values.


setFormatPattern

public void setFormatPattern(java.lang.String pattern)
Sets the pattern to initialize the created Format object. If no pattern is explicitly specified, it will be up to the factory to generate the pattern as appropriate.


setFormatType

public void setFormatType(java.lang.String formatType)
Sets the Format type to create. If no type is explicitly specified, it will be up to the factory to generate the Format as appropriate for the specified attribute.


ThinkUI Data Generator 1.0.2 API

Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.