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

E22562-05

oracle.apps.fnd.applcore.dt.attachments.component.metadata.validator
Class Definition

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.attachments.component.metadata.validator.Definition
All Implemented Interfaces:
oracle.adfdt.view.ui.editor.DefinitionValidator

public class Definition
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 attachment datasource is used.

Author:
Pallavi Palparthy <pallavi.palparthy@oracle.com>

Constructor Summary
Definition(java.lang.String attachmentType, 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 Attachment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Definition

public Definition(java.lang.String attachmentType,
                  java.lang.String reason)
Construct the class.

Parameters:
attachmentType - String value
reason - error message to give user if they do not select a attachment
Method Detail

validateDefinition

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

Specified by:
validateDefinition in interface oracle.adfdt.view.ui.editor.DefinitionValidator
Parameters:
namedDefinition - definition to check the VO name to be AttachmentsVO 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 the VO name to be AttachmentsVO 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-05

Copyright © 2012 Oracle. All Rights Reserved.