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

E22562-02

oracle.apps.fnd.applcore.flex.runtime.util.common
Class Validator

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.Validator
Direct Known Subclasses:
ContextValidator, UomValidator, ValidatorCharacter, ValidatorNumber, ValidatorUtilDate

public class Validator
extends java.lang.Object

Stores information on how to validate a flexfield segment.


Constructor Summary
protected Validator(ValueSetUsage vsu)
          Constructs a validator.
 
Method Summary
 LOVDef getLOVDef(java.lang.String attrName, java.lang.Class attrType, java.lang.String lovViewDefName, LOVDef.DefObjectType objType)
          Gets the LOV definition based on the value-set definition.
 java.util.List<ValidationRule> getValidationRules(java.lang.Class attrType)
          Gets the validation rules based on the Java type of the attribute to be validated.
protected static Validator getValidator(ValueSetUsage vsu)
           
 ValueSetUsage getValueSetUsage()
          Gets the value-set usage associated with this validator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

protected Validator(ValueSetUsage vsu)
Constructs a validator.

Parameters:
vsu - the value-set usage
Throws:
java.lang.IllegalArgumentException - if the given value-set usage is null
Method Detail

getValidator

protected static Validator getValidator(ValueSetUsage vsu)

getValueSetUsage

public final ValueSetUsage getValueSetUsage()
Gets the value-set usage associated with this validator.

Returns:
the value-set usage

getLOVDef

public LOVDef getLOVDef(java.lang.String attrName,
                        java.lang.Class attrType,
                        java.lang.String lovViewDefName,
                        LOVDef.DefObjectType objType)
Gets the LOV definition based on the value-set definition.

Parameters:
attrName - the name of the attribute with which the LOV will be associated
attrType - the Java type of the attribute with which the LOV will be associated
lovViewDefName - the LOV view def name if this LOV is a custom LOV
objType - the type of the object where the LOV will be defined
Returns:
the LOV definition; null if the validation type is format-only
Throws:
java.lang.IllegalArgumentException - if the validator cannot be used on the given attribute type

getValidationRules

public java.util.List<ValidationRule> getValidationRules(java.lang.Class attrType)
Gets the validation rules based on the Java type of the attribute to be validated. This method never returns null.

Parameters:
attrType - the Java type of the attribute to be validated
Returns:
the validation rules; an empty list if no validation rules are defined

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

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.