org.enhydra.barracuda.core.forms
Class FormType

java.lang.Object
  |
  +--org.enhydra.barracuda.core.forms.FormType

public abstract class FormType
extends java.lang.Object

This class defines all valid FormTypes. Currently we support:

Since:
1.0
Version:
%I%, %G%
Author:
Chris Webb
, Diez Roggisch , Iman L. Crawford , Christian Cryder , Jacob Kjome

Field Summary
static FormType BIG_DECIMAL
           
static FormType BOOLEAN
           
static FormType DATE
           
static FormType DOUBLE
           
static FormType FLOAT
           
static FormType INTEGER
           
static FormType LONG
           
static FormType SHORT
           
static FormType STRING
           
 
Constructor Summary
protected FormType()
          Protected constructor to prevent external instantiation.
 
Method Summary
abstract  java.lang.Class getFormClass()
          Returns the class associated with this particular form type.
 java.lang.Object parse(java.lang.String origVal)
          Parses an object based on the specific form type.
abstract  java.lang.Object parse(java.lang.String origVal, java.util.Locale loc)
          Parses an object based on the specific form type.
 java.lang.String toString()
          Returns a string representation of this particular formt type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STRING

public static FormType STRING

BOOLEAN

public static FormType BOOLEAN

INTEGER

public static FormType INTEGER

LONG

public static FormType LONG

SHORT

public static FormType SHORT

DOUBLE

public static FormType DOUBLE

FLOAT

public static FormType FLOAT

BIG_DECIMAL

public static FormType BIG_DECIMAL

DATE

public static FormType DATE
Constructor Detail

FormType

protected FormType()
Protected constructor to prevent external instantiation. Cannot be private because we would be unable to call the constructor from a sub-class.

Method Detail

getFormClass

public abstract java.lang.Class getFormClass()
Returns the class associated with this particular form type.


parse

public java.lang.Object parse(java.lang.String origVal)
                       throws ParseException
Parses an object based on the specific form type.

ParseException

parse

public abstract java.lang.Object parse(java.lang.String origVal,
                                       java.util.Locale loc)
                                throws ParseException
Parses an object based on the specific form type.

ParseException

toString

public java.lang.String toString()
Returns a string representation of this particular formt type.

Overrides:
toString in class java.lang.Object


Copyright © 2001 Enhydra.org