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 InterSegmentValidator

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

public abstract class InterSegmentValidator
extends java.lang.Object

Validation among segments within a context.


Constructor Summary
InterSegmentValidator()
           
 
Method Summary
abstract  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.
abstract  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.
abstract  java.util.List<SegmentDef> getSegments()
          Gets the segments involved in this validator.
abstract  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterSegmentValidator

public InterSegmentValidator()
Method Detail

getExpression

public abstract java.lang.String getExpression(java.util.Map<SegmentDef,java.lang.String> segToAttrExprMap)
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.

Parameters:
segToAttrExprMap - the map from segments to their attribute expressions
Returns:
the expression for this inter-segment validation

getMessageTokens

public abstract java.util.Map<java.lang.String,java.lang.String> getMessageTokens(java.util.Map<SegmentDef,java.lang.String> segToPromptExprMap)
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.

Parameters:
segToPromptExprMap - the map from the segments to the expressions of their prompts
Returns:
the message tokens

isGlobal

public abstract boolean isGlobal()
Returns true if this validator involves only global segments.

Returns:
true if this validator involves only global segments

getSegments

public abstract java.util.List<SegmentDef> getSegments()
Gets the segments involved in this validator.

Returns:
the segments involved in this validator

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

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

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.