Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.flex.runtime.resource
Class Translatable

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.resource.Translatable

public class Translatable
extends java.lang.Object

A string resource that is translatable and replicable.


Constructor Summary
Translatable(ReplicableResource source, java.util.Map<java.lang.String,java.lang.String> langToTranslationMap)
          Constructs a translatable string resource that is replicable.
Translatable(oracle.jbo.Row viewRow, java.lang.String viewAttrName, java.lang.String baseLanguage, java.lang.String rsColName, TranslationTable table, java.lang.String... keyValues)
          Constructs a translatable string resource based on a translation table.
Translatable(java.lang.String universalStr, java.util.List<java.lang.String> languages)
          Constructs a translatable string which is the same in all languages.
 
Method Summary
 ReplicableResource getSource()
          Gets the replicable resource that represents this translatable string.
 java.util.Map<java.lang.String,java.lang.String> getTranslations()
          Gets the translations.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Translatable

public Translatable(ReplicableResource source,
                    java.util.Map<java.lang.String,java.lang.String> langToTranslationMap)
Constructs a translatable string resource that is replicable.

Parameters:
source - the replicable resource
langToTranslationMap - the translations
Throws:
java.lang.IllegalArgumentException - if the given replicable resource is null

Translatable

public Translatable(oracle.jbo.Row viewRow,
                    java.lang.String viewAttrName,
                    java.lang.String baseLanguage,
                    java.lang.String rsColName,
                    TranslationTable table,
                    java.lang.String... keyValues)
Constructs a translatable string resource based on a translation table.

Parameters:
viewRow - the view row to fetch the translations
viewAttrName - the name of the view attribute that contains the translatable string. It is assumed the associated entity via "OA_TL_ENTITIES" contains an attribute of the same name.
baseLanguage - the base language code
rsColName - the name of the column where the resource is from
table - the translation table
keyValues - the key values to identify the row that contains the resource

Translatable

public Translatable(java.lang.String universalStr,
                    java.util.List<java.lang.String> languages)
Constructs a translatable string which is the same in all languages.

Parameters:
universalStr - the universal string
languages - the list of language codes
Method Detail

getSource

public final ReplicableResource getSource()
Gets the replicable resource that represents this translatable string.

Returns:
the replicable resource

getTranslations

public final java.util.Map<java.lang.String,java.lang.String> getTranslations()
Gets the translations.

Returns:
the map from language codes to translations; an empty map if no translations are available

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.