org.kuali.rice.krad.datadictionary.validation.result
Class DictionaryValidationResult

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.result.DictionaryValidationResult

public class DictionaryValidationResult
extends Object

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private  Map<String,EntryValidationResult> entryValidationResultMap
           
private  ErrorLevel errorLevel
           
private  Iterator<ConstraintValidationResult> iterator
           
private  int numberOfErrors
           
private  int numberOfWarnings
           
 
Constructor Summary
DictionaryValidationResult()
           
 
Method Summary
 void addConstraintValidationResult(AttributeValueReader attributeValueReader, ConstraintValidationResult constraintValidationResult)
           
 ConstraintValidationResult addError(AttributeValueReader attributeValueReader, String constraintName, String errorKey, String... errorParameters)
           
 ConstraintValidationResult addNoConstraint(AttributeValueReader attributeValueReader, String constraintName)
           
 ConstraintValidationResult addSkipped(AttributeValueReader attributeValueReader, String constraintName)
           
 ConstraintValidationResult addSuccess(AttributeValueReader attributeValueReader, String constraintName)
           
 ConstraintValidationResult addWarning(AttributeValueReader attributeValueReader, String constraintName, String errorKey, String... errorParameters)
           
private  ConstraintValidationResult getConstraintValidationResult(String entryName, String attributeName, String attributePath, String constraintName)
           
protected  EntryValidationResult getEntryValidationResult(String entryName)
           
 ErrorLevel getErrorLevel()
           
 int getNumberOfErrors()
           
 int getNumberOfWarnings()
           
 Iterator<ConstraintValidationResult> iterator()
           
 void setErrorLevel(ErrorLevel errorLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryValidationResultMap

private Map<String,EntryValidationResult> entryValidationResultMap

errorLevel

private ErrorLevel errorLevel

numberOfErrors

private int numberOfErrors

numberOfWarnings

private int numberOfWarnings

iterator

private Iterator<ConstraintValidationResult> iterator
Constructor Detail

DictionaryValidationResult

public DictionaryValidationResult()
Method Detail

addConstraintValidationResult

public void addConstraintValidationResult(AttributeValueReader attributeValueReader,
                                          ConstraintValidationResult constraintValidationResult)

addError

public ConstraintValidationResult addError(AttributeValueReader attributeValueReader,
                                           String constraintName,
                                           String errorKey,
                                           String... errorParameters)

addWarning

public ConstraintValidationResult addWarning(AttributeValueReader attributeValueReader,
                                             String constraintName,
                                             String errorKey,
                                             String... errorParameters)

addSuccess

public ConstraintValidationResult addSuccess(AttributeValueReader attributeValueReader,
                                             String constraintName)

addSkipped

public ConstraintValidationResult addSkipped(AttributeValueReader attributeValueReader,
                                             String constraintName)

addNoConstraint

public ConstraintValidationResult addNoConstraint(AttributeValueReader attributeValueReader,
                                                  String constraintName)

iterator

public Iterator<ConstraintValidationResult> iterator()

getEntryValidationResult

protected EntryValidationResult getEntryValidationResult(String entryName)

getConstraintValidationResult

private ConstraintValidationResult getConstraintValidationResult(String entryName,
                                                                 String attributeName,
                                                                 String attributePath,
                                                                 String constraintName)

getErrorLevel

public ErrorLevel getErrorLevel()
Returns:
the errorLevel

setErrorLevel

public void setErrorLevel(ErrorLevel errorLevel)
Parameters:
errorLevel - the errorLevel to set

getNumberOfErrors

public int getNumberOfErrors()
Returns:
the numberOfErrors

getNumberOfWarnings

public int getNumberOfWarnings()
Returns:
the numberOfWarnings


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.