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

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

public class ConstraintValidationResult
extends Object

This is a composite class for all the different members that need to be returned when a ConstraintProcessor processes a Constraint.

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

Constructor Summary
ConstraintValidationResult(String constraintName)
           
ConstraintValidationResult(String constraintName, ErrorLevel level)
           
 
Method Summary
 void addChild(ConstraintValidationResult child)
           
 String getAttributeName()
           
 String getAttributePath()
           
 List<ConstraintValidationResult> getChildren()
           
 String getConstraintLabelKey()
           
 String getConstraintName()
           
 String getEntryName()
           
 String getErrorKey()
           
 String[] getErrorParameters()
           
 ErrorLevel getStatus()
           
 void setAttributeName(String attributeName)
           
 void setAttributePath(String attributePath)
           
 void setConstraintLabelKey(String constraintLabelKey)
           
 void setConstraintName(String constraintName)
           
 void setEntryName(String entryName)
           
 void setError(String errorKey, String... errorParameters)
           
 void setErrorKey(String errorKey)
           
 void setErrorParameters(String[] errorParameters)
           
 void setStatus(ErrorLevel level)
           
 void setWarning(String errorKey, String... errorParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintValidationResult

public ConstraintValidationResult(String constraintName)

ConstraintValidationResult

public ConstraintValidationResult(String constraintName,
                                  ErrorLevel level)
Method Detail

addChild

public void addChild(ConstraintValidationResult child)

setError

public void setError(String errorKey,
                     String... errorParameters)

setWarning

public void setWarning(String errorKey,
                       String... errorParameters)

getStatus

public ErrorLevel getStatus()
Returns:
the level

setStatus

public void setStatus(ErrorLevel level)
Parameters:
level - the level to set

getErrorKey

public String getErrorKey()
Returns:
the errorKey

setErrorKey

public void setErrorKey(String errorKey)
Parameters:
errorKey - the errorKey to set

getErrorParameters

public String[] getErrorParameters()
Returns:
the errorParameters

setErrorParameters

public void setErrorParameters(String[] errorParameters)
Parameters:
errorParameters - the errorParameters to set

getEntryName

public String getEntryName()
Returns:
the entryName

setEntryName

public void setEntryName(String entryName)
Parameters:
entryName - the entryName to set

getAttributeName

public String getAttributeName()
Returns:
the attributeName

setAttributeName

public void setAttributeName(String attributeName)
Parameters:
attributeName - the attributeName to set

getConstraintName

public String getConstraintName()
Returns:
the constraintName

setConstraintName

public void setConstraintName(String constraintName)
Parameters:
constraintName - the constraintName to set

getChildren

public List<ConstraintValidationResult> getChildren()
Returns:
the children

getConstraintLabelKey

public String getConstraintLabelKey()
Returns:
the constraintLabelKey

setConstraintLabelKey

public void setConstraintLabelKey(String constraintLabelKey)
Parameters:
constraintLabelKey - the constraintLabelKey to set

getAttributePath

public String getAttributePath()
Returns:
the attributePath

setAttributePath

public void setAttributePath(String attributePath)
Parameters:
attributePath - the attributePath to set


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.