Package org.hippoecm.frontend.validation
Class ViolationUtils
- java.lang.Object
-
- org.hippoecm.frontend.validation.ViolationUtils
-
public class ViolationUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ViolationUtils.ViolationMessage
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getFieldViolationScript(String selector, ViolationUtils.ViolationMessage violation)
static Optional<ViolationUtils.ViolationMessage>
getFirstFieldViolation(IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel)
static String
getResetScript(String selector)
static Stream<ViolationUtils.ViolationMessage>
getViolationPerCompound(IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel)
static String
getViolationPerCompoundScript(String selector, IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel)
-
-
-
Method Detail
-
getFieldViolationScript
public static String getFieldViolationScript(String selector, ViolationUtils.ViolationMessage violation)
-
getViolationPerCompoundScript
public static String getViolationPerCompoundScript(String selector, IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel)
-
getFirstFieldViolation
public static Optional<ViolationUtils.ViolationMessage> getFirstFieldViolation(IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel)
-
getViolationPerCompound
public static Stream<ViolationUtils.ViolationMessage> getViolationPerCompound(IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel)
-
-