Package oracle.rules.sdk2.dictionary
Class ChoosableProperty
java.lang.Object
oracle.rules.sdk2.dictionary.DictionaryProperty<T>
oracle.rules.sdk2.dictionary.SettableProperty<String>
oracle.rules.sdk2.dictionary.TranslatedProperty
oracle.rules.sdk2.dictionary.ChoosableProperty
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Action.FormProperty,Action.TargetProperty,AliasRefProperty,Expression.ExpressionValueProperty,FactBinding.FactPathProperty
A Choosable property can be chosen using a Choice tree
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.SettableProperty
SettableProperty.Diff<T>Nested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryProperty
DictionaryProperty.DiffType -
Constructor Summary
ConstructorsConstructorDescriptionChoosableProperty(DictionaryComponent containingComponent, String propertyName, String propertyIdName) -
Method Summary
Modifier and TypeMethodDescriptionvoidget current choicereturn forest of valid choicesgetChoices(String pattern) The pattern is compared with the translated value of the choice.String[]getOptions(boolean translate) String[]Get the translated values for the propertySubclasses should override.voidset current choice setting to null sets the property value to ""voidsetTranslatedValue(String translatedValue) Set translated property value.Methods inherited from class oracle.rules.sdk2.dictionary.TranslatedProperty
getDiffValue, getOptions, getValueMethods inherited from class oracle.rules.sdk2.dictionary.SettableProperty
getDiffValue, getDiffValue, setValueMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryProperty
getContainedDiffs, getDiff, getDiffs, getName, getName, getTranslatedName, getValue, hasDiff, removeDiff
-
Constructor Details
-
ChoosableProperty
public ChoosableProperty(DictionaryComponent containingComponent, String propertyName, String propertyIdName)
-
-
Method Details
-
getTranslatedValue
Subclasses should override.- Overrides:
getTranslatedValuein classTranslatedProperty- Returns:
- ""
-
forceSync
public void forceSync() -
getChoices
return forest of valid choices -
getChoices
The pattern is compared with the translated value of the choice. This comparison is case insensitive The returned list contains matching choices only. If a choice matches the pattern, it's children are not filtered. Otherwise they are.- Parameters:
pattern-- Returns:
- a filtered forest of valid choices
-
getChoice
get current choice -
setChoice
set current choice setting to null sets the property value to "" -
getTranslatedOptions
Description copied from class:TranslatedPropertyGet the translated values for the property- Overrides:
getTranslatedOptionsin classTranslatedProperty- Returns:
- String[] of valid values
-
getOptions
-
setTranslatedValue
Set translated property value. The translation must exist the following code fragment is always a no-op:setTranslatedValue(getValue(true))- Overrides:
setTranslatedValuein classTranslatedProperty- Parameters:
translatedValue-
-