com.inline.feature
Interface ConstraintViolation
- public interface ConstraintViolation
- extends FeatureMessage
ConstrainViolation is the kind of FeatureMessage that is produced
by features during the constraint validation process. The method creating
ConstraintViolations is Feature.getMessages(messageType)
.
Field Summary |
static int |
ERROR
Severity constant. |
static int |
WARNING
Severity constant. |
ERROR
public static final int ERROR
- Severity constant.
WARNING
public static final int WARNING
- Severity constant.
getViolationSeverity
public int getViolationSeverity()
- Severity of violation
canCorrect
public boolean canCorrect()
- Returns true if the violation can be corrected
correct
public void correct()
- Corrects the violation