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

E22562-03

oracle.apps.fnd.applcore.dt.flex.component.metadata.creator
Class FlexBinderDefinitionValidator

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.flex.component.metadata.creator.FlexBinderDefinitionValidator
All Implemented Interfaces:
oracle.adfdt.view.ui.editor.DefinitionValidator

public class FlexBinderDefinitionValidator
extends java.lang.Object
implements oracle.adfdt.view.ui.editor.DefinitionValidator

Validation class used as a callback from the "Select a datasouce" window to ensure a flexfield datasource is used.

Author:
David Groves <david.groves@oracle.com>

Constructor Summary
FlexBinderDefinitionValidator(java.lang.String ffType, java.lang.String reason)
          Construct the class.
 
Method Summary
 java.lang.String generateReason(oracle.binding.meta.NamedDefinition namedDefinition)
          Obtain an error message for the failure obtained via validateDefinition(...).
 boolean validateDefinition(oracle.binding.meta.NamedDefinition namedDefinition)
          Validate the passed in named definition as a KFF or DFF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexBinderDefinitionValidator

public FlexBinderDefinitionValidator(java.lang.String ffType,
                                     java.lang.String reason)
Construct the class.

Parameters:
ffType - either KFF or DFF.
reason - error message to give user if they do not select a KFF or DFF collection.
Method Detail

validateDefinition

public boolean validateDefinition(oracle.binding.meta.NamedDefinition namedDefinition)
Validate the passed in named definition as a KFF or DFF.

Specified by:
validateDefinition in interface oracle.adfdt.view.ui.editor.DefinitionValidator
Parameters:
namedDefinition - definition to check, must have the "FND_ACFF_Type" property set appropriatly to pass.
Returns:
true if valid, false otherwise.

generateReason

public java.lang.String generateReason(oracle.binding.meta.NamedDefinition namedDefinition)
Obtain an error message for the failure obtained via validateDefinition(...).

Specified by:
generateReason in interface oracle.adfdt.view.ui.editor.DefinitionValidator
Parameters:
namedDefinition - definition to check, must have the "FND_ACFF_Type" property set appropriatly to pass.
Returns:
String to show to the user.

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

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.