com.cafesoft.core.field
Class FieldTypes

java.lang.Object
  |
  +--com.cafesoft.core.field.FieldTypes

public final class FieldTypes
extends Object

Support class that maintains the FieldType objects that are available for application use. This class provides lookup methods, as well as, methods to retrieve all of the available FieldType objects. This class is a Singleton and cannot be instantiated directly. To access use the following code: FieldTypes.getInstance()

Since:
8/12/03
See Also:
FieldType

Method Summary
 FieldType[] getArray()
          Get an array of FieldTypes.
 Enumeration getEnumeration()
          Get an enumeration of FieldTypes.
 FieldType getFieldType(String fieldTypeName)
          Get the FieldType that matches the given name.
static FieldTypes getInstance()
          Get instance of FieldTypes class.
 Iterator getIterator()
          Get an iterator of FieldTypes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final FieldTypes getInstance()
Get instance of FieldTypes class.

Returns:
the single instance of the FieldTypes class.

getIterator

public final Iterator getIterator()
Get an iterator of FieldTypes.

Returns:
an Iterator of FieldTypes.

getEnumeration

public final Enumeration getEnumeration()
Get an enumeration of FieldTypes.

Returns:
an Enumeration of FieldTypes.

getArray

public final FieldType[] getArray()
Get an array of FieldTypes.

Returns:
an array of FieldTypes

getFieldType

public FieldType getFieldType(String fieldTypeName)
                       throws FieldException
Get the FieldType that matches the given name.

Parameters:
fieldTypeName - the name of the FieldType object to try and match.
Returns:
the actual FieldType object that is contains that name.
Throws:
FieldException - if a FieldType of the given name does not exist.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.