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.
 
Method Summary
 boolean canCorrect()
          Returns true if the violation can be corrected
 void correct()
          Corrects the violation
 int getViolationSeverity()
          Severity of violation
 
Methods inherited from interface com.inline.feature.FeatureMessage
getFeature, getFormat, getMessage, getParameters
 

Field Detail

ERROR

public static final int ERROR
Severity constant.

WARNING

public static final int WARNING
Severity constant.
Method Detail

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