Package oracle.rules.sdk2.ruleset
Class SimpleTestPermutedChoice
java.lang.Object
oracle.rules.sdk2.dictionary.AbstractChoiceImpl
oracle.rules.sdk2.dictionary.AbstractVerbalChoice
oracle.rules.sdk2.ruleset.AbstractPermutedChoice
oracle.rules.sdk2.ruleset.SimpleTestPermutedChoice
- All Implemented Interfaces:
Serializable,Cloneable,Choice,VerbalChoice
- Since:
- 12.1.2
- Author:
- gopandey
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.rules.sdk2.dictionary.Choice
Choice.Kind -
Field Summary
Fields inherited from interface oracle.rules.sdk2.dictionary.VerbalChoice
VERBAL_CHOICE_EXPR, VERBAL_CHOICE_TYPE, VERBAL_CHOICE_VAR -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAlternateOperators(String... alternateOperators) voidaddExpression(String paramValue) Adds an Expression to the VerbalChoice if and only ifVerbalChoice.canAddExpression()is true.voidaddExpression(Choice paramValue) Adds an Expression to the VerbalChoice if and only ifVerbalChoice.canAddExpression()is true.booleanCan be used to check if Expressions can be added to this VerbalChoicebooleanCan be used to check if Expressions can be removed from this VerbalChoicebooleanstatic SimpleTestPermutedChoicenewPermutedChoice(String operator, SimpleTest dc) static SimpleTestPermutedChoicevoidRemoves an expression from the VerbalChoice if and only ifVerbalChoice.canRemoveExpression(oracle.rules.sdk2.dictionary.VerbalChoiceToken)is true and there are more than two Expressions.Methods inherited from class oracle.rules.sdk2.ruleset.AbstractPermutedChoice
getAEReferences, getPermutedPropertyChoice, getPermutedPropertyNames, getSimilarChoices, getTranslatedValue, getValue, hasParametersMethods inherited from class oracle.rules.sdk2.dictionary.AbstractVerbalChoice
equals, getDictionary, getName, getTranslatedName, getVerbalChoiceTokenizer, getVerbalValue, hashCode, isNewDefinition, toStringMethods inherited from class oracle.rules.sdk2.dictionary.AbstractChoiceImpl
getAltValue, getChildren, getDefinition, getDescription, getDescription, getID, getKind, getListContentType, getListContentType, getListContentTypeID, getLiteralValue, getName, getParent, getTranslatedName, getTranslatedValue, getType, getType, getTypeID, getValue, getVerbalValue, isAssignable, isAssignablePrefix, isExpanded, isGlobal, isQualified, isSelectable, isStatic, isTestable, setDefinition, setName, setSelectableMethods inherited from interface oracle.rules.sdk2.dictionary.Choice
getAltValue, getChildren, getDefinition, getDescription, getDescription, getID, getKind, getListContentType, getListContentType, getListContentTypeID, getLiteralValue, getName, getParent, getTranslatedName, getTranslatedValue, getType, getType, getTypeID, getValue, getVerbalValue, isAssignable, isAssignablePrefix, isExpanded, isGlobal, isQualified, isSelectable, isStatic, isTestable
-
Method Details
-
newPermutedChoice
-
newPermutedChoice
-
canAddExpression
public boolean canAddExpression()Description copied from interface:VerbalChoiceCan be used to check if Expressions can be added to this VerbalChoice- Specified by:
canAddExpressionin interfaceVerbalChoice- Overrides:
canAddExpressionin classAbstractVerbalChoice- Returns:
- true if this VerbalChoice is for a SimpleTest and has the [in] operator, false otherwise
-
canRemoveExpression
Description copied from interface:VerbalChoiceCan be used to check if Expressions can be removed from this VerbalChoice- Specified by:
canRemoveExpressionin interfaceVerbalChoice- Overrides:
canRemoveExpressionin classAbstractVerbalChoice- Parameters:
token- Token representing the Expression to be removed- Returns:
- true if this VerbalChoice is for a SimpleTest and has the [in] operator and has more than 2 expressions, false otherwise
-
addExpression
Description copied from interface:VerbalChoiceAdds an Expression to the VerbalChoice if and only ifVerbalChoice.canAddExpression()is true. Else, this is a no-op. Adding an Expression resets the VerbalChoice. To obtain the new display value for the VerbalChoice, MUST iterate through theVerbalChoiceTokenizerfrom the beginning- Specified by:
addExpressionin interfaceVerbalChoice- Overrides:
addExpressionin classAbstractVerbalChoice- Parameters:
paramValue- Expression Value
-
addExpression
Description copied from interface:VerbalChoiceAdds an Expression to the VerbalChoice if and only ifVerbalChoice.canAddExpression()is true. Else, this is a no-op. Adding an Expression resets the VerbalChoice. To obtain the new display value for the VerbalChoice, MUST iterate through theVerbalChoiceTokenizerfrom the beginning- Specified by:
addExpressionin interfaceVerbalChoice- Overrides:
addExpressionin classAbstractVerbalChoice- Parameters:
paramValue- Choice representing the Expression Value
-
removeExpression
Description copied from interface:VerbalChoiceRemoves an expression from the VerbalChoice if and only ifVerbalChoice.canRemoveExpression(oracle.rules.sdk2.dictionary.VerbalChoiceToken)is true and there are more than two Expressions. Else, this is a no-op. Removing an Expression resets the VerbalChoice. To obtain the new display value for the VerbalChoice, MUST iterate through theVerbalChoiceTokenizerfrom the beginning- Specified by:
removeExpressionin interfaceVerbalChoice- Overrides:
removeExpressionin classAbstractVerbalChoice- Parameters:
token- Token representing the Expression to be removed
-
getAlternateChoices
- Overrides:
getAlternateChoicesin classAbstractPermutedChoice
-
isPattern
public boolean isPattern() -
addAlternateOperators
-