Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

oracle.apps.fnd.applcore.trees.validator
Class ValidationResult

java.lang.Object
  extended by oracle.apps.fnd.applcore.trees.validator.ValidationResult

public class ValidationResult
extends java.lang.Object

Run Time representation of the Validation Result on executing a validator.

Author:
Abhay K Kumar <abhay.k.kumar@oracle.com>

Nested Class Summary
static class ValidationResult.Result
          Types of validation results.
 
Constructor Summary
ValidationResult()
          Constructor for ValidationResult.
 
Method Summary
 java.lang.String getCorrectionUI()
          Getter for Correction Page.
 java.lang.String getCorrectiveAction()
          Getter for Corrective action to launch correction UI.
 java.lang.String getDetailMessage()
           
 java.lang.String getMessage()
          Returns the translated message represented by this validation result.
 java.lang.String getMessageCode()
          Returns the code for the given message.
 ValidationResult.Result getResult()
          Returns the validation result.
 Validator getValidator()
          Gets the validator associated with this Validation Result.
 boolean isFail()
          Gets whether validation failed.
 boolean isPass()
          Gets whether validation passed.
 void setCorrectionUI(java.lang.String correctionUI)
          Setter for Correction Page.
 void setCorrectiveAction(java.lang.String correctiveAction)
          Setter for Corrective action to launch correction UI.
 void setDetailMessage(java.lang.String detailMessage)
           
 void setMessage(java.lang.String code, java.lang.Object[] params)
          Sets the validation result message.
 void setResult(ValidationResult.Result result)
          Sets the result for the validation.
 void setValidator(Validator validator)
          Sets the validator object also along with the Validation Result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationResult

public ValidationResult()
Constructor for ValidationResult.

Method Detail

setResult

public void setResult(ValidationResult.Result result)
Sets the result for the validation.

Parameters:
result - the validation result

getResult

public ValidationResult.Result getResult()
Returns the validation result.

Returns:
ValidationResult.Result the validation result.

isPass

public boolean isPass()
Gets whether validation passed.

Returns:
whether validation passed

isFail

public boolean isFail()
Gets whether validation failed.

Returns:
whether validation failed

setValidator

public void setValidator(Validator validator)
Sets the validator object also along with the Validation Result.

Parameters:
validator - Validator instance
See Also:
Validator

getValidator

public Validator getValidator()
Gets the validator associated with this Validation Result.

Returns:
Validator object
See Also:
Validator

setCorrectionUI

public void setCorrectionUI(java.lang.String correctionUI)
Setter for Correction Page.

Parameters:
correctionUI - as String

getCorrectionUI

public java.lang.String getCorrectionUI()
Getter for Correction Page.

Returns:
correctionUI as String

setCorrectiveAction

public void setCorrectiveAction(java.lang.String correctiveAction)
Setter for Corrective action to launch correction UI.

Parameters:
correctiveAction - as String

getCorrectiveAction

public java.lang.String getCorrectiveAction()
Getter for Corrective action to launch correction UI.

Returns:
correctiveAction as String

setMessage

public void setMessage(java.lang.String code,
                       java.lang.Object[] params)
Sets the validation result message. This is a key into the validation message bundle along with the message parameters.

Parameters:
code - the validation result code
params - the validation result parameters

getMessage

public java.lang.String getMessage()
Returns the translated message represented by this validation result.

Returns:
Message as String

getMessageCode

public java.lang.String getMessageCode()
Returns the code for the given message.

Returns:
Message as String

setDetailMessage

public void setDetailMessage(java.lang.String detailMessage)

getDetailMessage

public java.lang.String getDetailMessage()

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-05

Copyright © 2012 Oracle. All Rights Reserved.