Class AttributeDefaultFormValidator
- java.lang.Object
-
- org.zkoss.bind.validator.AbstractValidator
-
- org.openforis.collect.designer.form.validator.BaseValidator
-
- org.openforis.collect.designer.form.validator.FormValidator
-
- org.openforis.collect.designer.form.validator.AttributeDefaultFormValidator
-
- All Implemented Interfaces:
org.zkoss.bind.Validator
public class AttributeDefaultFormValidator extends FormValidator
- Author:
- S. Ricci
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCANNOT_SPECIFY_BOTH_VALUE_AND_EXPRESSION_MESSAGE_KEYprotected static StringCONDITION_FIELDprotected static StringEXPRESSION_FIELDprotected static StringFIELD_REQUIRED_MESSAGE_KEYprotected static StringVALUE_FIELDprotected static StringVALUE_OR_EXPRESSION_REQUIRED_MESSAGE_KEY-
Fields inherited from class org.openforis.collect.designer.form.validator.FormValidator
blocking, CIRCULAR_REFERENCE_IN_EXPRESSION_MESSAGE_KEY, INVALID_EXPRESSION_MESSAGE_KEY, RESERVED_NAME_MESSAGE_KEY
-
Fields inherited from class org.openforis.collect.designer.form.validator.BaseValidator
GREATER_THAN_EQUAL_MESSAGE_KEY, GREATER_THAN_MESSAGE_KEY, INTERNAL_NAME_INVALID_VALUE_ERROR_KEY, INVALID_URI_MESSAGE_KEY, ITEM_NAME_ALREADY_DEFINED_MESSAGE_KEY, LESS_THAN_EQUAL_MESSAGE_KEY, LESS_THAN_MESSAGE_KEY
-
-
Constructor Summary
Constructors Constructor Description AttributeDefaultFormValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodeDefinitiongetContextNode(org.zkoss.bind.ValidationContext ctx)protected voidinternalValidate(org.zkoss.bind.ValidationContext ctx)-
Methods inherited from class org.openforis.collect.designer.form.validator.FormValidator
afterValidate, getExpressionValidator, getFieldNames, getMessage, isBlocking, isEditingItem, normalizeMessageArgument, normalizeMessageArguments, validate, validateBooleanExpressionField, validateExpression, validateExpressionField, validateExpressionField, validateNameNotReserved, validatePathExpressionField, validateValueExpressionField, validateValueExpressionField
-
Methods inherited from class org.openforis.collect.designer.form.validator.BaseValidator
createCompareMessage, getNumericValue, getProperties, getValue, getValue, getValueWithDefault, getVM, isNumber, isNumber, validateGreaterThan, validateGreaterThan, validateGreaterThan, validateGreaterThan, validateInternalName, validateInternalName, validateLessThan, validateLessThan, validateLessThan, validateLessThan, validateRegEx, validateRegEx, validateRegEx, validateRegEx, validateRegExValue, validateRequired, validateRequired, validateRequired, validateUri
-
-
-
-
Field Detail
-
VALUE_OR_EXPRESSION_REQUIRED_MESSAGE_KEY
protected static final String VALUE_OR_EXPRESSION_REQUIRED_MESSAGE_KEY
- See Also:
- Constant Field Values
-
CANNOT_SPECIFY_BOTH_VALUE_AND_EXPRESSION_MESSAGE_KEY
protected static final String CANNOT_SPECIFY_BOTH_VALUE_AND_EXPRESSION_MESSAGE_KEY
- See Also:
- Constant Field Values
-
FIELD_REQUIRED_MESSAGE_KEY
protected static final String FIELD_REQUIRED_MESSAGE_KEY
- See Also:
- Constant Field Values
-
VALUE_FIELD
protected static final String VALUE_FIELD
- See Also:
- Constant Field Values
-
EXPRESSION_FIELD
protected static final String EXPRESSION_FIELD
- See Also:
- Constant Field Values
-
CONDITION_FIELD
protected static final String CONDITION_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
internalValidate
protected void internalValidate(org.zkoss.bind.ValidationContext ctx)
- Specified by:
internalValidatein classFormValidator
-
getContextNode
protected NodeDefinition getContextNode(org.zkoss.bind.ValidationContext ctx)
-
-