org.jboss.as.console.client.shared.general.validation.ValidationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.shared.general.validation;
import java.util.LinkedList;
import java.util.List;
/**
* @author Heiko Braun
* @date 11/15/11
*/
public class ValidationResult {
private List messages = new LinkedList ();
private boolean success;
public ValidationResult(boolean success) {
this.success = success;
}
public void addMessage(String message) {
messages.add(message);
}
public boolean isValid() {
return success;
}
public List getMessages() {
return messages;
}
}