com.partnersoft.data.validation
Class ValidationErrorList
java.lang.Object
com.partnersoft.data.validation.ValidationErrorList
- All Implemented Interfaces:
- Coggable, java.io.Serializable
public class ValidationErrorList
- extends java.lang.Object
- implements java.io.Serializable, Coggable
List of errors generated during validation. Designed for saving and loading via TOF or CogHeader.
Includes guid, severity level ("warn", "error", etc.), module name, and message.
Copyright 2008 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Paul Reavis
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidationErrorList
public ValidationErrorList()
ValidationErrorList
public ValidationErrorList(Cog state)
listErrorsForModule
public java.util.List<ValidationError> listErrorsForModule(java.lang.String moduleName)
clearErrorsForModule
public void clearErrorsForModule(java.lang.String moduleName)
addError
public void addError(java.lang.String moduleName,
java.lang.String severity,
java.lang.String message)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
toCog
public Cog toCog()
- Description copied from interface:
Coggable
- Returns the complete internal state of this object in the form of a
Cog.
- Specified by:
toCog in interface Coggable
- Returns:
- Cog representing the internal state of this object
getErrors
public java.util.List<ValidationError> getErrors()
setErrors
public void setErrors(java.util.List<ValidationError> newErrors)
copy
public ValidationErrorList copy()
addAll
public void addAll(ValidationErrorList nother)