public final class Violation extends Object implements org.apache.wicket.model.IDetachable
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.Constructor and Description |
---|
Violation(Set<ModelPath> fieldPaths,
org.apache.wicket.model.IModel<String> messageModel)
Create a new violation with the specified message.
|
Violation(Set<ModelPath> fieldPaths,
org.apache.wicket.model.IModel<String> message,
FeedbackScope feedbackScope) |
Modifier and Type | Method and Description |
---|---|
void |
detach() |
Set<ModelPath> |
getDependentPaths() |
FeedbackScope |
getFeedbackScope() |
org.apache.wicket.model.IModel<String> |
getMessage() |
void |
setFeedbackScope(FeedbackScope feedbackScope) |
String |
toString() |
public Violation(Set<ModelPath> fieldPaths, org.apache.wicket.model.IModel<String> messageModel)
ValidationScope.DOCUMENT
fieldPaths
- list of ModelPath
s that led up to the violationmessageModel
- a model of the message to be shown to the userpublic Violation(Set<ModelPath> fieldPaths, org.apache.wicket.model.IModel<String> message, FeedbackScope feedbackScope)
public org.apache.wicket.model.IModel<String> getMessage()
public FeedbackScope getFeedbackScope()
public void setFeedbackScope(FeedbackScope feedbackScope)
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.