public class Violation
extends java.lang.Object
Constructor and Description |
---|
Violation(java.lang.String field,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getField() |
java.lang.String |
getMessage() |
void |
setField(java.lang.String field) |
void |
setMessage(java.lang.String message) |
public Violation(@NonNull java.lang.String field, @NonNull java.lang.String message)
field
- Field affected by the violationmessage
- message explaining the violation.@NonNull public java.lang.String getField()
public void setField(@NonNull java.lang.String field)
field
- Field affected by the violation@NonNull public java.lang.String getMessage()
public void setMessage(@NonNull java.lang.String message)
message
- message explaining the violation.