org.kuali.student.contract.model.test.source
Class ValidationResultInfo

java.lang.Object
  extended by org.kuali.student.contract.model.test.source.ValidationResultInfo
All Implemented Interfaces:
Serializable, ValidationResult

public class ValidationResultInfo
extends Object
implements ValidationResult, Serializable

See Also:
Serialized Form

Nested Class Summary
static class ValidationResultInfo.Builder
           
 
Nested classes/interfaces inherited from interface org.kuali.student.contract.model.test.source.ValidationResult
ValidationResult.ErrorLevel
 
Method Summary
 String getElement()
          Get ????

Type: String

???

 Object getInvalidData()
          Invalid data causing the error or warning

Type: Object

 Integer getLevel()
          Get ????

Type: Integer

Returns the ValidationResult's error level

 String getMessage()
          Get ????

Type: String

???

 boolean isError()
          Convenience method.
 boolean isOk()
          Convenience method.
 boolean isWarn()
          Convenience method.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isOk

public boolean isOk()
Convenience method. Returns true if getErrorLevel() == ErrorLevel.OK

Specified by:
isOk in interface ValidationResult
Returns:
true if getErrorLevel() == ErrorLevel.OK

isWarn

public boolean isWarn()
Convenience method. Returns true if getErrorLevel() == ErrorLevel.WARN

Specified by:
isWarn in interface ValidationResult
Returns:
true if getErrorLevel() == ErrorLevel.WARN

isError

public boolean isError()
Convenience method. Returns true if getErrorLevel() == ErrorLevel.ERROR

Specified by:
isError in interface ValidationResult
Returns:
true if getErrorLevel() == ErrorLevel.ERROR

toString

public String toString()
Overrides:
toString in class Object

getMessage

public String getMessage()
Description copied from interface: ValidationResult
Get ????

Type: String

???

Specified by:
getMessage in interface ValidationResult

getElement

public String getElement()
Description copied from interface: ValidationResult
Get ????

Type: String

???

Specified by:
getElement in interface ValidationResult

getLevel

public Integer getLevel()
Description copied from interface: ValidationResult
Get ????

Type: Integer

Returns the ValidationResult's error level

Specified by:
getLevel in interface ValidationResult

getInvalidData

public Object getInvalidData()
Description copied from interface: ValidationResult
Invalid data causing the error or warning

Type: Object

Specified by:
getInvalidData in interface ValidationResult
Returns:
data causing the error or warning


Copyright © 2004–2014 The Kuali Foundation. All rights reserved.