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(Class<?> resourceBundleClass,
String messageKey,
Object[] parameters,
Set<ModelPath> fieldPaths)
Create a new violation whose resource bundle is looked up relative to the
resourceBundleClass parameter. |
Violation(Set<ModelPath> fieldPaths,
String messageKey,
Object[] parameters)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
detach() |
Set<ModelPath> |
getDependentPaths() |
String |
getMessageKey() |
Object[] |
getParameters() |
Class<?> |
getResourceBundleClass() |
String |
toString() |
@Deprecated public Violation(Set<ModelPath> fieldPaths, String messageKey, Object[] parameters)
Violation(Set<ModelPath> fieldPaths, Class<?> resourceBundleClass, String messageKey, Object[] parameters)
fieldPaths
- List of ModelPath
s that led up to the violationmessageKey
- The key used for translationparameters
- Optional parameters for value substitution in translationspublic Violation(Class<?> resourceBundleClass, String messageKey, Object[] parameters, Set<ModelPath> fieldPaths)
resourceBundleClass
parameter.resourceBundleClass
- Resource bundle will be looked up relative to this classmessageKey
- The key used for translationparameters
- Optional parameters for value substitution in translationsfieldPaths
- List of ModelPath
s that led up to the violationCopyright © 2007-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.