|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.forms.DefaultFormMapper
A FormMapFilter is used to provide a control what elements get mapped in a form
Field Summary | |
protected boolean |
iterateOverParams
|
protected static org.apache.log4j.Logger |
localLogger
|
protected Map |
mappedElements
|
Constructor Summary | |
DefaultFormMapper()
|
Method Summary | |
protected Object |
_mapElement(FormMap fm,
FormElement element,
Object origVal)
Actually map a value to a form element. |
protected FormElement |
getElementForMapping(FormMap fm,
String paramKey)
This method is used by the mapping process to look up FormElements. |
Map |
getElements()
Returns a map containing all elements mapped by this mapper (will return an empty map if the form has not been mapped yet) |
protected boolean |
isNull(Object val)
This method defines what the FormMap identifies as null-value. |
FormElement |
mapElement(FormMap fm,
String key,
Object origVal)
Map an individual element |
FormMap |
mapForm(FormMap fm,
Map paramMap)
Map a whole form |
protected void |
postMap()
Invoked after mapping is completed |
protected void |
preMap()
Invoked before mapping begins |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.log4j.Logger localLogger
protected Map mappedElements
protected boolean iterateOverParams
Constructor Detail |
public DefaultFormMapper()
Method Detail |
public FormMap mapForm(FormMap fm, Map paramMap)
mapForm
in interface FormMapper
public FormElement mapElement(FormMap fm, String key, Object origVal)
mapElement
in interface FormMapper
protected Object _mapElement(FormMap fm, FormElement element, Object origVal)
public Map getElements()
getElements
in interface FormMapper
protected void preMap()
protected FormElement getElementForMapping(FormMap fm, String paramKey)
protected void postMap()
protected boolean isNull(Object val)
val
- The value from request or statemap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |