|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.openedge.baritus.PopulatorRegistry
Registry for populators. Each instance of FormBeanBase has its own instance.
Constructor Summary | |
PopulatorRegistry(FormBeanCtrlBase formBeanCtrl)
construct registry with the current instance of FormBeanBase |
Method Summary | |
void |
addPopulator(java.util.regex.Pattern pattern,
FieldPopulator populator)
Register a custom populator that overrides the default population process for all request parameters that match the regular expression stored in the provided pattern. |
void |
addPopulator(java.lang.String fieldName,
FieldPopulator populator)
Register a field populator for the given fieldName. |
FieldPopulator |
getDefaultFieldPopulator()
get the default field populator |
FieldPopulator |
getFieldPopulator(java.lang.String fieldName)
get the field populator for the provided fieldName, null if none registered |
java.util.Map |
getFieldPopulators()
get the field populators |
java.util.Map |
getRegexFieldPopulators()
get the populators that were registered with regex patterns |
void |
removePopulator(java.util.regex.Pattern pattern)
Remove a populator that was registered for the provided pattern |
void |
removePopulator(java.lang.String fieldName)
de-register the field populator that was registered with the given fieldName |
void |
setDefaultFieldPopulator(FieldPopulator populator)
set the default field populator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PopulatorRegistry(FormBeanCtrlBase formBeanCtrl)
formBeanCtrl
- Method Detail |
public void addPopulator(java.lang.String fieldName, FieldPopulator populator)
fieldName
- name of fieldpopulator
- populator instancepublic void removePopulator(java.lang.String fieldName)
fieldName
- name of fieldpublic void addPopulator(java.util.regex.Pattern pattern, FieldPopulator populator)
pattern
- regex patternpopulator
- populator instancepublic void removePopulator(java.util.regex.Pattern pattern)
pattern
- regex patternpublic java.util.Map getRegexFieldPopulators()
public FieldPopulator getFieldPopulator(java.lang.String fieldName)
fieldName
- name of the field
public java.util.Map getFieldPopulators()
public FieldPopulator getDefaultFieldPopulator()
public void setDefaultFieldPopulator(FieldPopulator populator)
populator
- the default field populator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |