Package org.hippoecm.frontend.validation
Class ViolationUtils
java.lang.Object
org.hippoecm.frontend.validation.ViolationUtils
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFieldViolationScript
(String selector, ViolationUtils.ViolationMessage violation) getFirstFieldViolation
(IFieldDescriptor field, org.apache.wicket.model.IModel<IValidationResult> validationModel) static String
getResetScript
(String selector) 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 Details
-
getResetScript
-
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)
-