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

E22562-01

oracle.apps.fnd.applcore.flex.runtime.util.common
Class SegmentLabel.ValidationRuleExpression

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.SegmentLabel.ValidationRuleExpression
Enclosing class:
SegmentLabel

public static final class SegmentLabel.ValidationRuleExpression
extends java.lang.Object

A validation rule expression.


Nested Class Summary
static interface SegmentLabel.ValidationRuleExpression.BoundValue
          A bound value.
static class SegmentLabel.ValidationRuleExpression.BoundValueKind
          Bound value kind.
 
Constructor Summary
SegmentLabel.ValidationRuleExpression(java.lang.String expr)
          Constructs a validation rule expression.
 
Method Summary
 java.util.List<SegmentLabel.ValidationRuleExpression.BoundValue> getBoundValues()
          Gets the list of bound values in this expression.
 java.lang.String getExpression()
          Gets the expression.
 SegmentLabel.ValidationRuleExpression replaceValueAttributeTokens(java.util.Map<java.lang.String,java.lang.String> replacements)
          Replaces value attribute tokens with Strings.
 SegmentLabel.ValidationRuleExpression replaceValueToken(java.lang.String replacement)
          Replaces all occurrences of the value token with a String.
 SegmentLabel.ValidationRuleExpression resolveBoundValues(java.util.Map<java.lang.Integer,java.lang.String> replacements)
          Resolves the bound values in this expression.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentLabel.ValidationRuleExpression

public SegmentLabel.ValidationRuleExpression(java.lang.String expr)
Constructs a validation rule expression.

Parameters:
expr - a validation rule expression
Throws:
java.lang.IllegalArgumentException - if the given expression is null
Method Detail

getExpression

public java.lang.String getExpression()
Gets the expression.

Returns:
the expression

getBoundValues

public java.util.List<SegmentLabel.ValidationRuleExpression.BoundValue> getBoundValues()
Gets the list of bound values in this expression.

Returns:
the list of bound values

resolveBoundValues

public SegmentLabel.ValidationRuleExpression resolveBoundValues(java.util.Map<java.lang.Integer,java.lang.String> replacements)
Resolves the bound values in this expression.

Parameters:
replacements - the replacement Strings. The keys are the positions of the bound values.
Returns:
the resolved expression
Throws:
java.lang.NullPointerException - if the given map is null

replaceValueToken

public SegmentLabel.ValidationRuleExpression replaceValueToken(java.lang.String replacement)
Replaces all occurrences of the value token with a String.

Parameters:
replacement - the replacement String
Returns:
the expression where the value tokens are replaced with the given String

replaceValueAttributeTokens

public SegmentLabel.ValidationRuleExpression replaceValueAttributeTokens(java.util.Map<java.lang.String,java.lang.String> replacements)
Replaces value attribute tokens with Strings.

Parameters:
replacements - the replacement Strings. The keys are value attribute codes while the values are the corresponding replacement Strings
Returns:
the expression where value attribute tokens are replaced with the given Strings

toString

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

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

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.