ThinkUI Data Generator 1.0.2 API

thinkui.db.io
Class AbstractFormatFactory

java.lang.Object
  extended bythinkui.db.io.AbstractFormatFactory
All Implemented Interfaces:
FormatFactory
Direct Known Subclasses:
DefaultFormatFactory

public abstract class AbstractFormatFactory
extends java.lang.Object
implements FormatFactory

Abstract implementation of the FormatFactory interface.


Constructor Summary
AbstractFormatFactory()
           
 
Method Summary
 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 formatPattern)
          Sets the pattern to initialize the created Format object.
 void setFormatType(java.lang.String formatType)
          Sets the Format type to create.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface thinkui.db.io.FormatFactory
createFormat
 

Constructor Detail

AbstractFormatFactory

public AbstractFormatFactory()
Method Detail

getFormatAttrNames

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

Specified by:
getFormatAttrNames in interface FormatFactory
Returns:
the format argument attribute names.

getFormatPattern

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

Specified by:
getFormatPattern in interface FormatFactory
Returns:
the pattern for the format or null.

getFormatType

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

Specified by:
getFormatType in interface FormatFactory
Returns:
the type of the format or null.

setFormatAttrNames

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

Specified by:
setFormatAttrNames in interface FormatFactory

setFormatPattern

public final void setFormatPattern(java.lang.String formatPattern)
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.

Specified by:
setFormatPattern in interface FormatFactory

setFormatType

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

Specified by:
setFormatType in interface FormatFactory

ThinkUI Data Generator 1.0.2 API

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