Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

oracle.rules.sdk2.dictionary
Class ChoosableProperty

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.DictionaryProperty<T>
      extended by oracle.rules.sdk2.dictionary.SettableProperty<java.lang.String>
          extended by oracle.rules.sdk2.dictionary.TranslatedProperty
              extended by oracle.rules.sdk2.dictionary.ChoosableProperty
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Action.FormProperty, Action.TargetProperty, AliasRefProperty, Expression.ExpressionValueProperty, Pattern.FactPathProperty

public class ChoosableProperty
extends TranslatedProperty

A Choosable property can be chosen using a Choice tree

See Also:
Serialized Form

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
 
Method Summary
 Choice getChoice()
          get current choice
 java.util.List<Choice> getChoices()
          return forest of valid choices
 java.util.List<Choice> getChoices(java.lang.String pattern)
          The pattern is compared with the translated value of the choice.
 java.lang.String[] getOptions(boolean translate)
           
 java.lang.String getTranslatedDiffValue()
          Get the translated value of the property accounting for diffs.
 java.lang.String[] getTranslatedOptions()
          Get the translated values for the property
 java.lang.String getTranslatedValue()
          Subclasses should override.
 void setChoice(Choice choice)
          set current choice setting to null sets the property value to ""
 void setTranslatedValue(java.lang.String translatedValue)
          Set translated property value.
 
Methods inherited from class oracle.rules.sdk2.dictionary.TranslatedProperty
getDiffValue, getOptions, getValue
 
Methods inherited from class oracle.rules.sdk2.dictionary.SettableProperty
getDiffValue, setValue
 
Methods inherited from class oracle.rules.sdk2.dictionary.DictionaryProperty
getDiff, getDiffs, getName, getValue, hasDiff
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChoices

public java.util.List<Choice> getChoices()
return forest of valid choices


getChoices

public java.util.List<Choice> getChoices(java.lang.String pattern)
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

public Choice getChoice()
get current choice


setChoice

public void setChoice(Choice choice)
set current choice setting to null sets the property value to ""


getTranslatedOptions

public java.lang.String[] getTranslatedOptions()
Description copied from class: TranslatedProperty
Get the translated values for the property

Overrides:
getTranslatedOptions in class TranslatedProperty
Returns:
String[] of valid values

getOptions

public java.lang.String[] getOptions(boolean translate)

getTranslatedDiffValue

public java.lang.String getTranslatedDiffValue()
Description copied from class: TranslatedProperty
Get the translated value of the property accounting for diffs. getTranslatedDiffValue should be used instead of TranslatedProperty.getTranslatedValue() when rendering this property in "diff mode". translatedDiffValue is rarely different from translatedValue. One case is if AdvancedMode has a diff, then the diff value is TRUE to force the UI to render Patterns, etc.

Returns:
translated value or "" if no translation

setTranslatedValue

public void setTranslatedValue(java.lang.String translatedValue)
Set translated property value. The translation must exist the following code fragment is always a no-op: setTranslatedValue(getValue(true))

Overrides:
setTranslatedValue in class TranslatedProperty
Parameters:
translatedValue -

getTranslatedValue

public java.lang.String getTranslatedValue()
Subclasses should override.

Overrides:
getTranslatedValue in class TranslatedProperty
Returns:
""

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.7)

E10663-11

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.