Package oracle.rules.sdk2.dictionary
Class TranslatedProperty
java.lang.Object
oracle.rules.sdk2.dictionary.DictionaryProperty<T>
oracle.rules.sdk2.dictionary.SettableProperty<String>
oracle.rules.sdk2.dictionary.TranslatedProperty
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ChoosableProperty
A Translated property is a settable String-valued property.
- 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
ConstructorsConstructorDescriptionTranslatedProperty(DictionaryComponent containingComponent, String propertyName) TranslatedProperty(DictionaryComponent containingComponent, String propertyName, String propertyIdName) -
Method Summary
Modifier and TypeMethodDescriptiongetDiffValue(boolean translate) get (possibly translated) diff valueString[]Get the valid key (untranslated) values for the propertyString[]Get the translated values for the propertyGet translated property value.getValue(boolean translate) Get property value, optionally translatedvoidsetTranslatedValue(String translatedValue) the following code fragment is always a no-op:setTranslatedValue(getValue(true))Methods 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
-
TranslatedProperty
public TranslatedProperty(DictionaryComponent containingComponent, String propertyName, String propertyIdName) -
TranslatedProperty
-
-
Method Details
-
getValue
Get property value, optionally translated- Returns:
- String value
-
getTranslatedValue
Get translated property value. Default implementation uses the dictionary string translator. Override if needed.- Returns:
- translated value, or "" if none
-
setTranslatedValue
the following code fragment is always a no-op:setTranslatedValue(getValue(true)) -
getOptions
Get the valid key (untranslated) values for the property- Returns:
- String[] of valid values
-
getTranslatedOptions
Get the translated values for the property- Returns:
- String[] of valid values
-
getDiffValue
get (possibly translated) diff value- Parameters:
translate- flag- Returns:
- translated diff value, or diff value
- See Also:
-
getTranslatedDiffValue()
-