Example usage for com.jgoodies.validation.message SimpleValidationMessage SimpleValidationMessage

List of usage examples for com.jgoodies.validation.message SimpleValidationMessage SimpleValidationMessage

Introduction

In this page you can find the example usage for com.jgoodies.validation.message SimpleValidationMessage SimpleValidationMessage.

Prototype

public SimpleValidationMessage(String text, Severity severity) 

Source Link

Document

Constructs a simple validation message for the given text and message severity.

Usage

From source file:org.archiviststoolkit.util.ATPropertyValidationSupport.java

License:Open Source License

public void addSimple(String text, Severity severity) {
    getResult().add(new SimpleValidationMessage(text, severity));
}

From source file:org.archiviststoolkit.util.ATPropertyValidationSupport.java

License:Open Source License

public void addSimpleError(String text) {
    getResult().add(new SimpleValidationMessage(text, Severity.ERROR));
}

From source file:org.archiviststoolkit.util.ATPropertyValidationSupport.java

License:Open Source License

public void addSimpleWarning(String text) {
    getResult().add(new SimpleValidationMessage(text, Severity.WARNING));
}