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

E10663-11

oracle.rules.sdk2.dictionary
Class TranslatedProperty

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChoosableProperty

public class TranslatedProperty
extends SettableProperty<java.lang.String>

A Translated property is a settable String-valued property.

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
 
Constructor Summary
TranslatedProperty(DictionaryComponent containingComponent, java.lang.String propertyName)
           
TranslatedProperty(DictionaryComponent containingComponent, java.lang.String propertyName, java.lang.String propertyIdName)
           
 
Method Summary
 java.lang.String getDiffValue(boolean translate)
          get (possibly translated) diff value
 java.lang.String[] getOptions()
          Get the valid key (untranslated) values for the property
 java.lang.String[] getTranslatedOptions()
          Get the translated values for the property
 java.lang.String getTranslatedValue()
          Get translated property value.
 java.lang.String getValue(boolean translate)
          Get property value, optionally translated
 void setTranslatedValue(java.lang.String translatedValue)
          the following code fragment is always a no-op: setTranslatedValue(getValue(true))
 
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
 

Constructor Detail

TranslatedProperty

public TranslatedProperty(DictionaryComponent containingComponent,
                          java.lang.String propertyName,
                          java.lang.String propertyIdName)

TranslatedProperty

public TranslatedProperty(DictionaryComponent containingComponent,
                          java.lang.String propertyName)
Method Detail

getValue

public java.lang.String getValue(boolean translate)
Get property value, optionally translated

Returns:
String value

getTranslatedValue

public java.lang.String getTranslatedValue()
Get translated property value. Default implementation uses the dictionary string translator. Override if needed.

Returns:
translated value, or "" if none

setTranslatedValue

public void setTranslatedValue(java.lang.String translatedValue)
the following code fragment is always a no-op: setTranslatedValue(getValue(true))


getOptions

public java.lang.String[] getOptions()
Get the valid key (untranslated) values for the property

Returns:
String[] of valid values

getTranslatedOptions

public java.lang.String[] getTranslatedOptions()
Get the translated values for the property

Returns:
String[] of valid values

getDiffValue

public java.lang.String getDiffValue(boolean translate)
get (possibly translated) diff value

Parameters:
translate - flag
Returns:
translated diff value, or diff value
See Also:
TranslatedProperty.getTranslatedDiffValue()

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.