$URL: svn+ssh://christianc@svn.forge.objectweb.org/svnroot/barracudamvc/Barracuda2/trunk/WEB-INF/src_docs/architecture/comp/overview.html $ - $Revision: 125 $
Put all your content below this line

Form Model Requirements

This is something of a legacy document - it describes the initial set of requirements for the Barracuda Form Mapping & Validation layer, and may be helpful in understanding the underlying philosophy which drove subsequent design/implementation decisions. 

  1. 4 main entities:
    1. FormMap
    2. FormElement
    3. FormValidator
    4. ValidationExceptions
  2. Form Maps
    1. can contain any number of Form Elements
    2. may be associated with any number of form validators
    3. allow for easy retrieval of form element values in their designated type
    4. automatically maps HttpRequest String params to FormElements objects within the form map
    5. automatically validates a form and all its elements by invoking all associated validators
  3. Form Elements
    1. support types String, Integer, Boolean, Date, Long, Short, Double, Float
    2. track key, type, orig val, mapped val, validators
    3. also track whether or not an element is required in the form
    4. also track whether or not there may be multiple values for an element in the form (map to a List of proper types)
    5. allow for easy retrieval of form element values in their designated type
    6. may be associated with a form validators
  4. Form Validators
    1. can be associated with a Form or individual elements in a form
    2. able to contain other Validators (allowing you to associate multiple validations with a given form/element)
    3. create a suite of reusable validators for common validation needs
  5. ValidationExceptions
    1. provide the ability to nest validation exceptions
    2. allow for different validation strategies: stop on first err, or attempt all validations and collect a list of errors

 


Put all your content above this line

$Date: 2006-01-02 15:59:13 -0500 (Mon, 02 Jan 2006) $