Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

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

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.InterSegmentValidator
      extended by oracle.apps.fnd.applcore.flex.runtime.util.common.RangeValidator

public class RangeValidator
extends InterSegmentValidator

Validator that checks whether the value a segment is greater than or equal to the value of another segment.


Constructor Summary
RangeValidator(SegmentDef lowSeg, SegmentDef highSeg)
          Constructs a range validator.
 
Method Summary
 java.lang.String getExpression(java.util.Map<SegmentDef,java.lang.String> segToAttrExprMap)
          Gets the expression for this inter-segment validation.
 java.lang.String getMessageKey()
          Gets the key of the message.
 java.util.Map<java.lang.String,java.lang.String> getMessageTokens()
          Gets the tokens in the message.
 java.util.Map<java.lang.String,java.lang.String> getMessageTokens(java.util.Map<SegmentDef,java.lang.String> segToPromptExprMap)
          Gets the message tokens.
 java.lang.String getResourceBundleID()
          Gets the ID of the resource bundle where the messages are defined.
 java.util.List<SegmentDef> getSegments()
          Gets the segments involved in this validator.
 boolean isGlobal()
          Returns true if this validator involves only global segments.
protected  void setMessageKey(java.lang.String key)
          Sets the key of the message.
protected  void setMessageToken(java.lang.String token, java.lang.String expr)
          Sets a message token.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeValidator

public RangeValidator(SegmentDef lowSeg,
                      SegmentDef highSeg)
Constructs a range validator.

Parameters:
lowSeg - the low segment
highSeg - the high segment
Throws:
java.lang.IllegalArgumentException - if the low or high segment is null
java.lang.NullPointerException - if the low segment has no validator
Method Detail

getExpression

public java.lang.String getExpression(java.util.Map<SegmentDef,java.lang.String> segToAttrExprMap)
Description copied from class: InterSegmentValidator
Gets the expression for this inter-segment validation.

The implementation should use only the get method of the given map. Unless indicated otherwise, all other methods of the map may result in UnsupportedOperationException or undefined behavior.

Specified by:
getExpression in class InterSegmentValidator
Parameters:
segToAttrExprMap - the map from segments to their attribute expressions
Returns:
the expression for this inter-segment validation

isGlobal

public boolean isGlobal()
Description copied from class: InterSegmentValidator
Returns true if this validator involves only global segments.

Specified by:
isGlobal in class InterSegmentValidator
Returns:
true if this validator involves only global segments

getSegments

public java.util.List<SegmentDef> getSegments()
Description copied from class: InterSegmentValidator
Gets the segments involved in this validator.

Specified by:
getSegments in class InterSegmentValidator
Returns:
the segments involved in this validator

getMessageTokens

public java.util.Map<java.lang.String,java.lang.String> getMessageTokens(java.util.Map<SegmentDef,java.lang.String> segToPromptExprMap)
Description copied from class: InterSegmentValidator
Gets the message tokens.

The implementation should use only the get method of the given map. Unless indicated otherwise, all other methods of the map may result in UnsupportedOperationException or undefined behavior.

Specified by:
getMessageTokens in class InterSegmentValidator
Parameters:
segToPromptExprMap - the map from the segments to the expressions of their prompts
Returns:
the message tokens

getResourceBundleID

public java.lang.String getResourceBundleID()
Gets the ID of the resource bundle where the messages are defined.

Returns:
the ID of the resource bundle

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMessageKey

public java.lang.String getMessageKey()
Gets the key of the message.

Returns:
the key of the message

setMessageKey

protected void setMessageKey(java.lang.String key)
Sets the key of the message.

Parameters:
key - the key of the message

getMessageTokens

public java.util.Map<java.lang.String,java.lang.String> getMessageTokens()
Gets the tokens in the message.

Returns:
the tokens in the message

setMessageToken

protected void setMessageToken(java.lang.String token,
                               java.lang.String expr)
Sets a message token.

Parameters:
token - the name of the token
expr - the expression

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.