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

java.lang.Object
  extended by org.kuali.student.contract.model.test.source.ValidationResultInfo.Builder
All Implemented Interfaces:
ModelBuilder<ValidationResultInfo>, ValidationResult
Enclosing class:
ValidationResultInfo

public static class ValidationResultInfo.Builder
extends Object
implements ModelBuilder<ValidationResultInfo>, ValidationResult


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kuali.student.contract.model.test.source.ValidationResult
ValidationResult.ErrorLevel
 
Constructor Summary
ValidationResultInfo.Builder()
           
ValidationResultInfo.Builder(ValidationResult validationResultInfo)
           
 
Method Summary
 ValidationResultInfo build()
           
 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()
          Get ????

Type: boolean

Convenience method.

 boolean isOk()
          Get ????

Type: boolean

Convenience method.

 boolean isWarn()
          Get ????

Type: boolean

Convenience method.

 void setElement(String element)
           
 void setError(String message)
           
 void setInvalidData(Object invalidData)
           
 void setLevel(Integer level)
           
 void setMessage(String message)
           
 void setWarn(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationResultInfo.Builder

public ValidationResultInfo.Builder()

ValidationResultInfo.Builder

public ValidationResultInfo.Builder(ValidationResult validationResultInfo)
Method Detail

build

public ValidationResultInfo build()
Specified by:
build in interface ModelBuilder<ValidationResultInfo>

getElement

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

Type: String

???

Specified by:
getElement in interface ValidationResult

setElement

public void setElement(String element)

getLevel

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

Type: Integer

Returns the ValidationResult's error level

Specified by:
getLevel in interface ValidationResult

setLevel

public void setLevel(Integer level)

getMessage

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

Type: String

???

Specified by:
getMessage in interface ValidationResult

setMessage

public void setMessage(String message)

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

setInvalidData

public void setInvalidData(Object invalidData)

setError

public void setError(String message)

setWarn

public void setWarn(String message)

isOk

public boolean isOk()
Description copied from interface: ValidationResult
Get ????

Type: boolean

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

Specified by:
isOk in interface ValidationResult

isWarn

public boolean isWarn()
Description copied from interface: ValidationResult
Get ????

Type: boolean

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

Specified by:
isWarn in interface ValidationResult

isError

public boolean isError()
Description copied from interface: ValidationResult
Get ????

Type: boolean

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

Specified by:
isError in interface ValidationResult


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