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

E10663-11

oracle.rules.sdk2.dictionary
Class PropertyTranslator

java.lang.Object
  extended by oracle.rules.sdk2.dictionary.PropertyTranslator
All Implemented Interfaces:
java.io.Serializable

public class PropertyTranslator
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class PropertyTranslator.Key
          The Key to the resource bundle.
static class PropertyTranslator.KVV
          Key Value1 Value2
 
Method Summary
static PropertyTranslator.Key aliasKey(DOID id)
          return the Key for the dictionary component id and alias property
static PropertyTranslator.Key descriptionKey(DOID id)
          return the Key for the dictionary component id and description property
 java.lang.String getAlias(DOID id)
          return the translated alias for the dictionary component
 java.util.List<PropertyTranslator.KVV> getAllTranslations()
          get a list of (key, value1, value2) objects.
 java.lang.String getDescription(DOID id)
          return the translated description for the dictionary component
 java.lang.String getTranslation(DOID id, java.lang.String propertyName)
          get translation of property of dictionary component
 java.util.List<PropertyTranslator.KVV> getUnsavedTranslations()
          get a list of (key, value1, value2) objects.
static PropertyTranslator.Key key(DOID id, java.lang.String propertyName)
          return the Key for the dictionary component id and property name
static PropertyTranslator.Key key(java.lang.String key)
          return the Key for the key String from the resource bundle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTranslation

public java.lang.String getTranslation(DOID id,
                                       java.lang.String propertyName)
get translation of property of dictionary component

Parameters:
id - DOID of dictionary component
propertyName -
Returns:
translation, or "" if not in bundle

getAlias

public java.lang.String getAlias(DOID id)
return the translated alias for the dictionary component

Parameters:
id - of the dictionary component
Returns:
translated alias or "" (if not found)

getDescription

public java.lang.String getDescription(DOID id)
return the translated description for the dictionary component

Parameters:
id - of the dictionary component
Returns:
translated description or "" (if not found)

getUnsavedTranslations

public java.util.List<PropertyTranslator.KVV> getUnsavedTranslations()
get a list of (key, value1, value2) objects. value1 is not null and is the unsaved value. value2 is the value from the resource bundle, and may be null

Returns:
list of KVV objects

getAllTranslations

public java.util.List<PropertyTranslator.KVV> getAllTranslations()
get a list of (key, value1, value2) objects. value1 is not null and is the untranslated value (from the RuleDictionary). value2 is the translated value from the resource bundle, and may be null

Returns:
list of KVV objects

key

public static PropertyTranslator.Key key(java.lang.String key)
return the Key for the key String from the resource bundle

Parameters:
key -
Returns:
Key

key

public static PropertyTranslator.Key key(DOID id,
                                         java.lang.String propertyName)
return the Key for the dictionary component id and property name

Parameters:
id -
propertyName -
Returns:
Key

aliasKey

public static PropertyTranslator.Key aliasKey(DOID id)
return the Key for the dictionary component id and alias property

Parameters:
id -
Returns:
Key

descriptionKey

public static PropertyTranslator.Key descriptionKey(DOID id)
return the Key for the dictionary component id and description property

Parameters:
id -
Returns:
Key

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.