Extension SDK 10.1.2

oracle.ide.controls
Interface AbstractPicker.PickerResultValidator

All Known Implementing Classes:
ClassBuilderPanel.ClassValidator
Enclosing interface:
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

public boolean isResultValid(java.lang.Object result)
Whether the specified browse result is a valid value.

Parameters:
result - the value to validate.

getInvalidValueMsg

public 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.

Extension SDK

 

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