Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.1.5)

E22563-01

oracle.apps.fnd.applcp.migrate.modeler.common
Class ValidationRule

java.lang.Object
  extended by oracle.apps.fnd.applcp.migrate.modeler.common.ValidationRule

public class ValidationRule
extends java.lang.Object

A validation rule.


Field Summary
static java.lang.String VALUE_TOKEN
          The token that represents the value to be validated.
 
Constructor Summary
protected ValidationRule(java.lang.String expression)
          Constructs a validation rule with an expression.
 
Method Summary
 java.lang.String getExpression()
          Gets the expression associated with this rule.
 java.lang.String getMessageKey()
          Gets the key of the error/warning message displayed when validation fails.
 java.util.Map<java.lang.String,java.lang.String> getMessageTokens()
          Gets the tokens in the message.
 java.lang.String getResolvedExpression(java.lang.String tokenValue)
          Gets the expression with the value token resolved.
 java.lang.String getResourceBundleID()
          Gets the ID of the resource bundle where the messages are defined.
protected  void setMessageKey(java.lang.String key)
          Sets the key of the error/warning message displayed when validation fails.
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
 

Field Detail

VALUE_TOKEN

public static final java.lang.String VALUE_TOKEN
The token that represents the value to be validated.

See Also:
Constant Field Values
Constructor Detail

ValidationRule

protected ValidationRule(java.lang.String expression)
Constructs a validation rule with an expression.

Parameters:
expression - the expression
Method Detail

getExpression

public java.lang.String getExpression()
Gets the expression associated with this rule.

Returns:
the expression

getResolvedExpression

public java.lang.String getResolvedExpression(java.lang.String tokenValue)
Gets the expression with the value token resolved.

Parameters:
tokenValue - the actual identifier that represents the value
Returns:
the resolved expression

getMessageKey

public java.lang.String getMessageKey()
Gets the key of the error/warning message displayed when validation fails.

Returns:
the key of the error/warning message

setMessageKey

protected void setMessageKey(java.lang.String key)
Sets the key of the error/warning message displayed when validation fails.

Parameters:
key - the key of the error/warning 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 Enterprise Scheduler Service
11g Release 1 (11.1.1.5)

E22563-01

Copyright © 2011 Oracle. All Rights Reserved.