Class PluginVRuleModel
- java.lang.Object
-
- de.xima.fc.plugin.models.validation.PluginVRuleModel
-
- All Implemented Interfaces:
IPluginVRuleModel,Serializable
public class PluginVRuleModel extends Object implements IPluginVRuleModel
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginVRuleModel(IPluginValidationRule rule, Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKey()StringgetKeyDisplayName()LocalegetLocale()StringgetRegex()StringgetValidationErrorMsg()booleanisDeprecated()Whether this validation rule is deprecated.booleanisHasCustomValidationLogic()Gets whether this validation rule has custom server-side validation logic, in addition to theIPluginVRuleModel.getRegex().
-
-
-
Constructor Detail
-
PluginVRuleModel
public PluginVRuleModel(IPluginValidationRule rule, Locale locale)
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceIPluginVRuleModel
-
getKeyDisplayName
public String getKeyDisplayName()
- Specified by:
getKeyDisplayNamein interfaceIPluginVRuleModel
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceIPluginVRuleModel
-
getRegex
public String getRegex()
- Specified by:
getRegexin interfaceIPluginVRuleModel
-
getValidationErrorMsg
public String getValidationErrorMsg()
- Specified by:
getValidationErrorMsgin interfaceIPluginVRuleModel
-
isDeprecated
public boolean isDeprecated()
Description copied from interface:IPluginVRuleModelWhether this validation rule is deprecated. When true, the validation rule is visually shown as deprecated. Defaults to false.- Specified by:
isDeprecatedin interfaceIPluginVRuleModel- Returns:
- true if this validation rule is deprecated, false otherwise.
-
isHasCustomValidationLogic
public boolean isHasCustomValidationLogic()
Description copied from interface:IPluginVRuleModelGets whether this validation rule has custom server-side validation logic, in addition to theIPluginVRuleModel.getRegex().- Specified by:
isHasCustomValidationLogicin interfaceIPluginVRuleModel- Returns:
- Whether this rule has custom server-side validation logic.
-
-