Package nl.gx.forms.wmpformapi.api
Interface BasicFormLogicComponent
-
- All Known Subinterfaces:
CompositeFormLogicComponent
,ConditionalComponent
,FormHandler
,FormLogicComponent
,FormRouter
,FormValidator
,FragmentValidator
- All Known Implementing Classes:
SimpleFragmentValidator
public interface BasicFormLogicComponent
Basic FormLogicComponent. All FormLogicComponents should implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<BasicLanguageLabelMapping>
getCustomLanguageLabelMapping()
Returns the list of language labels that have been overridden.FormLogicComponentDefinition
getFormLogicComponentDefinition()
Returns the definition for this BasicFormLogicComponent.Map<String,String>
getLanguageLabelsMapping(String locale, int webid)
Returns the mapping of error codes to language labels for the specified locale and website.List<BasicParameter>
getParameters()
Returns the list of parameters for this FormLogicComponent.
-
-
-
Method Detail
-
getFormLogicComponentDefinition
FormLogicComponentDefinition getFormLogicComponentDefinition()
Returns the definition for this BasicFormLogicComponent. The definition describes the properties of this type of FormLogicComponent.- Returns:
- the definition for this BasicFormLogicComponent
-
getCustomLanguageLabelMapping
List<BasicLanguageLabelMapping> getCustomLanguageLabelMapping()
Returns the list of language labels that have been overridden.- Returns:
- the list of custom language labels
-
getParameters
List<BasicParameter> getParameters()
Returns the list of parameters for this FormLogicComponent.- Returns:
- the list of parameters
-
getLanguageLabelsMapping
Map<String,String> getLanguageLabelsMapping(String locale, int webid)
Returns the mapping of error codes to language labels for the specified locale and website. In order to retrieve the global mapping, use webid=-1.- Parameters:
locale
- the locale for which to retrieve the language labels mappingwebid
- the website for which to retrieve the mapping (or -1 for the global mapping)- Returns:
- a Map from error codes to language label keys, or
null
if the requested locale/webid could not be found.
-
-