Class SimpleFragmentValidator

    • Constructor Detail

      • SimpleFragmentValidator

        public SimpleFragmentValidator​(BasicFormInputFragment myBasicFormInputFragment,
                                       FragmentValidatorDefinition myDefinition)
        Constructor for SimpleFragmentValidator.
        myBasicFormInputFragment - the input to validate
        myDefinition - the FragmentValidatorDefinition that describes the validator
    • Method Detail

      • getLanguageLabelsMapping

        public 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.
        Specified by:
        getLanguageLabelsMapping in interface BasicFormLogicComponent
        locale - the locale for which to retrieve the language labels mapping
        webid - the website for which to retrieve the mapping (or -1 for the global mapping)
        a Map from error codes to language label keys, or null if the requested locale/webid could not be found.