Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.ide.controls
Interface AbstractPicker.PickerResultValidator

Enclosing class:
AbstractPicker

public static interface AbstractPicker.PickerResultValidator

The interface defining Validators for AbstractPicker browse actions. The PickerResultValidator is responsible for two operations: validating a browse result; and providing an error message for invalid browse results.

For example, a validator used in conjunction with a Class Picker might verify that the Class picked implements a specific interface, and then provide an error message indicating that a Class does not implement that interface.


Method Summary
 java.lang.String getInvalidValueMsg(java.lang.Object value)
          Retrieve an error message detailing why the specified value is invalid.
 boolean isResultValid(java.lang.Object result)
          Whether the specified browse result is a valid value.

 

Method Detail

isResultValid

boolean isResultValid(java.lang.Object result)
Whether the specified browse result is a valid value.
Parameters:
result - the value to validate.

getInvalidValueMsg

java.lang.String getInvalidValueMsg(java.lang.Object value)
Retrieve an error message detailing why the specified value is invalid.
Parameters:
value - the invalid value.
Returns:
a String to be used as the error message.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.