com.partnersoft.data.validation
Class ValidationErrorList

java.lang.Object
  extended by 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

Constructor Summary
ValidationErrorList()
           
ValidationErrorList(Cog state)
           
 
Method Summary
 void addAll(ValidationErrorList nother)
           
 void addError(java.lang.String moduleName, java.lang.String severity, java.lang.String message)
           
 void clearErrorsForModule(java.lang.String moduleName)
           
 ValidationErrorList copy()
           
 java.util.List<ValidationError> getErrors()
           
 java.util.List<ValidationError> listErrorsForModule(java.lang.String moduleName)
           
 void setErrors(java.util.List<ValidationError> newErrors)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationErrorList

public ValidationErrorList()

ValidationErrorList

public ValidationErrorList(Cog state)
Method Detail

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)