org.kuali.student.r2.common.infc
Interface ValidationResult

All Known Implementing Classes:
ValidationResultInfo

public interface ValidationResult


Nested Class Summary
static class ValidationResult.ErrorLevel
           
 
Method Summary
 String getElement()
          Identifies the element (field) that is the focus of the validation.
 ValidationResult.ErrorLevel getLevel()
          Indicates the severity of the validation result.
 String getMessage()
          Message explaining this validation result If an error it is an an error message.
 

Method Detail

getMessage

String getMessage()
Message explaining this validation result If an error it is an an error message. TODO: decide if this is a key that then gets resolved into a real localized message using the message service or the final localized message itself


getElement

String getElement()
Identifies the element (field) that is the focus of the validation. Uses xpath (dot) notation to navigate to the field, for example: officialIdentifier.code TODO: find out how repeating substructures are handled in this notation, with [n] occurrence brackets?


getLevel

ValidationResult.ErrorLevel getLevel()
Indicates the severity of the validation result. 0=OK 1=WARN 2=ERROR



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