Package org.hippoecm.frontend.validation
Interface IFieldValidator
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,Serializable
public interface IFieldValidator
extends org.apache.wicket.util.io.IClusterable
Interface implemented by the CMS validation mechanism to enable custom validators to check values and report
violations.
-
Method Summary
Modifier and TypeMethodDescriptionnewValueViolation
(org.apache.wicket.model.IModel childModel, org.apache.wicket.model.IModel<String> message, FeedbackScope scope) Create a Violation object with field and scope information.
-
Method Details
-
getFieldDescriptor
IFieldDescriptor getFieldDescriptor() -
getFieldType
ITypeDescriptor getFieldType() -
newValueViolation
Violation newValueViolation(org.apache.wicket.model.IModel childModel, org.apache.wicket.model.IModel<String> message, FeedbackScope scope) throws ValidationException Create a Violation object with field and scope information.- Parameters:
childModel
- the JcrPropertyValueModel or JcrNodeModel of the childNode
message
- model containing the message to be shown to the userscope
- to indicate the level the validation applies to- Throws:
ValidationException
- when information to validate is not available
-