org.enhydra.barracuda.contrib.sam.xmlform
Class XmlFormMap

java.lang.Object
  extended byorg.enhydra.barracuda.core.forms.DefaultFormMap
      extended byorg.enhydra.barracuda.contrib.dbroggisch.repopulation.ErrorFormMap
          extended byorg.enhydra.barracuda.contrib.dbroggisch.repopulation.RepopulationFormMap
              extended byorg.enhydra.barracuda.contrib.sam.xmlform.XmlFormMap
All Implemented Interfaces:
Contextual, FormMap, Model, StateMap, TemplateModel

public class XmlFormMap
extends RepopulationFormMap

Provide a FormMap based on a XML description


Field Summary
protected  Form form
           
protected  String formName
           
static String GROUP
           
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.enhydra.barracuda.contrib.dbroggisch.repopulation.RepopulationFormMap
_modelChilds, listeners, modelName, prefix, viewContext
 
Fields inherited from class org.enhydra.barracuda.contrib.dbroggisch.repopulation.ErrorFormMap
ERROR_PREFIX
 
Fields inherited from class org.enhydra.barracuda.core.forms.DefaultFormMap
defaultLoc, elements, localLogger, statemap, validators
 
Constructor Summary
XmlFormMap(ControlEventContext context, String formName, String name, DataObject dataObject)
          instatiate a new XML Form.
 
Method Summary
protected  FormValidator buildValidatorObject(Validator validator)
          recursivly called to construct a validator hierarchy.
 Form getForm()
           
protected  FormElement getFormElement(Element ele, String name)
          generate a FormElement for a given Element from the XML description
 
Methods inherited from class org.enhydra.barracuda.contrib.dbroggisch.repopulation.RepopulationFormMap
addModelListener, defineElement, defineElement, fireModelChanged, getChildModels, getItem, getItem, getName, getPrefix, getViewContext, map, map, map, processDirective, removeModelListener, setName, setPrefix, setViewContext
 
Methods inherited from class org.enhydra.barracuda.contrib.dbroggisch.repopulation.ErrorFormMap
addErrorComponent, getErrorComponent, validate
 
Methods inherited from class org.enhydra.barracuda.core.forms.DefaultFormMap
clearState, defineValidator, exists, getBooleanVal, getBooleanVal, getDateVal, getDateVal, getDoubleVal, getDoubleVal, getElement, getElements, getElementVals, getFloatVal, getFloatVal, getIntegerVal, getIntegerVal, getLongVal, getLongVal, getShortVal, getShortVal, getState, getStateKeys, getStateValues, getStringVal, getStringVal, getVal, getVals, isNull, map, map, map, map, map, mapElement, mapElement, putState, removeState, setVal, validateElements, validateForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

GROUP

public static final String GROUP
See Also:
Constant Field Values

formName

protected String formName

form

protected Form form
Constructor Detail

XmlFormMap

public XmlFormMap(ControlEventContext context,
                  String formName,
                  String name,
                  DataObject dataObject)
instatiate a new XML Form. First the XML Form description is loaded by calling XmlFormFactory. For each field, if required a validator is created and the pre-set values are set according the DataObject

Parameters:
formName - filename of the form, used to call XmlFormFactory
dataObject - DataObject associated with the form
name - internal name of the form
Method Detail

buildValidatorObject

protected FormValidator buildValidatorObject(Validator validator)
recursivly called to construct a validator hierarchy. Internally, the reflection API is used here


getFormElement

protected FormElement getFormElement(Element ele,
                                     String name)
generate a FormElement for a given Element from the XML description


getForm

public Form getForm()


Copyright © 2003 BarracudaMVC.org All Rights Reserved.