public interface HybrisConstraintViolation
ConstraintViolation and provides additionally informations about the
validation violation.| Modifier and Type | Method and Description |
|---|---|
AbstractConstraintModel |
getConstraintModel()
Gets the constraint model which was used for validation.
|
ConstraintViolation |
getConstraintViolation() |
String |
getLocalizedMessage()
Gets a localized message for this violation.
|
String |
getMessageTemplate()
Gets the message template from the original
ConstraintViolation. |
String |
getModelName()
Gets the name of the model which causes the violation.
|
String |
getProperty()
Gets the
property path from the ConstraintViolation as string. |
String |
getQualifier()
Gets the qualifier in the style
getTypeName()+"."+getProperty(). |
String |
getTypeName()
Gets the name of the model which causes the violation.
|
Severity |
getViolationSeverity()
Gets severity enum of the violation.
|
ConstraintViolation getConstraintViolation()
ConstraintViolationString getProperty()
property path from the ConstraintViolation as string.property path from the ConstraintViolation as stringString getModelName()
String getTypeName()
String getQualifier()
getTypeName()+"."+getProperty().getTypeName()+"."+getProperty()String getMessageTemplate()
ConstraintViolation.ConstraintViolationAbstractConstraintModel getConstraintModel()
AbstractConstraintModelString getLocalizedMessage()
Severity getViolationSeverity()
Severity.ERROR.Copyright © 2017 SAP SE. All Rights Reserved.