Package org.hippoecm.frontend.validation
Class Violation
java.lang.Object
org.hippoecm.frontend.validation.Violation
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
Validation constraint violation. Provides the list of
ModelPath
s that
led up to the violation and three parameters that can be used to generate a translated description of the violation.
These parameters are a message key, an array of parameters for value substitution in the translation and a
resourceBundleClass to specify the location of the resource bundle.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
org.apache.wicket.model.IModel<String>
void
setFeedbackScope
(FeedbackScope feedbackScope) toString()
-
Constructor Details
-
Violation
Create a new violation with the specified message. The scope of this violation will beValidationScope.DOCUMENT
- Parameters:
fieldPaths
- list ofModelPath
s that led up to the violationmessageModel
- a model of the message to be shown to the user
-
Violation
public Violation(Set<ModelPath> fieldPaths, org.apache.wicket.model.IModel<String> message, FeedbackScope feedbackScope)
-
-
Method Details