Package oracle.rules.sdk2.dictionary
Class VerbalChoiceImpl
java.lang.Object
oracle.rules.sdk2.dictionary.AbstractChoiceImpl
oracle.rules.sdk2.dictionary.AbstractVerbalChoice
oracle.rules.sdk2.dictionary.VerbalChoiceImpl
- All Implemented Interfaces:
Serializable,Cloneable,Choice,VerbalChoice
- Since:
- 12.1.2
- Author:
- Ganesh RK
- 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 TypeMethodDescriptionstatic VerbalChoiceImplcopy(VerbalChoiceImpl from) getParameterValue(DSLParameter parameter) A list of VerbalChoices that are similar to this choice.Get the translated value of the choice, or null if none.getValue(boolean translate) Get the value of the choicebooleanCheck if the VerbalChoice has any required parametersvoidinitParameterValue(DSLParameter parameter, String value) voidinitParameterValue(DSLParameter parameter, Choice choice) voidinitParameterValue(DSLParameter parameter, Expression expression) booleanDoes this VerbalChoice represent a new Definitionstatic VerbalChoicenewVerbalChoice(String value) static VerbalChoicenewVerbalChoice(DSL dsl) voidsetAsNewDefinition(boolean isNewDefinition) voidvoidMethods inherited from class oracle.rules.sdk2.dictionary.AbstractVerbalChoice
addExpression, addExpression, canAddExpression, canRemoveExpression, equals, getDictionary, getName, getTranslatedName, getVerbalChoiceTokenizer, getVerbalValue, hashCode, removeExpression, 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
-
newVerbalChoice
-
newVerbalChoice
-
copy
-
getValue
Description copied from interface:ChoiceGet the value of the choice- Specified by:
getValuein interfaceChoice- Overrides:
getValuein classAbstractChoiceImpl- Parameters:
translate- flag to translate the value- Returns:
- value
-
getTranslatedValue
Description copied from interface:ChoiceGet the translated value of the choice, or null if none.- Specified by:
getTranslatedValuein interfaceChoice- Overrides:
getTranslatedValuein classAbstractChoiceImpl- Returns:
- translated value, or null
-
setVerbalRuleComponent
-
getVerbalRuleComponent
-
isNewDefinition
public boolean isNewDefinition()Description copied from interface:VerbalChoiceDoes this VerbalChoice represent a new Definition- Specified by:
isNewDefinitionin interfaceVerbalChoice- Overrides:
isNewDefinitionin classAbstractVerbalChoice- Returns:
- true if the VerbalChoice represents a new Definition, false otherwise
-
setAsNewDefinition
public void setAsNewDefinition(boolean isNewDefinition) -
hasParameters
public boolean hasParameters()Description copied from interface:VerbalChoiceCheck if the VerbalChoice has any required parameters- Returns:
- true if the VerbalChoice has any parameters, false otherwise
-
initParameterValue
-
initParameterValue
-
initParameterValue
-
setParameterValue
-
getParameterValue
-
getSimilarChoices
Description copied from interface:VerbalChoiceA list of VerbalChoices that are similar to this choice. If the VerbalChoice is for a SimpleTest, the returned list would be the choices with the same left and right expressions, with different operators. If the VerbalChoice is for an Action, this may not be relevant.- Returns:
- a list of similar VerbalChoices
-