
@Generated(value="org.jomc.tools.SourceFileProcessor 1.4", comments="See http://www.jomc.org/jomc/1.4/jomc-tools-1.4") public class RuntimeTexts extends Texts implements RuntimeModelObject
Texts.
defaultLanguage, text| Constructor and Description |
|---|
RuntimeTexts()
Creates a new
RuntimeTexts instance. |
RuntimeTexts(Texts texts)
Creates a new
RuntimeTexts instance by deeply copying a given Texts instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears shared runtime state.
|
void |
gc()
Handles shared runtime state.
|
Text |
getText(Locale locale)
Gets a text for a given language from the list of texts.
|
Text |
getText(String language)
Gets a text for a given language from the list of texts.
|
clone, getDefaultLanguage, getText, setDefaultLanguagepublic RuntimeTexts(Texts texts)
RuntimeTexts instance by deeply copying a given Texts instance.texts - The instance to copy.NullPointerException - if texts is null.@Generated(value="org.jomc.tools.SourceFileProcessor 1.4", comments="See http://www.jomc.org/jomc/1.4/jomc-tools-1.4") public RuntimeTexts()
RuntimeTexts instance.public Text getText(String language)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear() must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getText in class Textslanguage - The language of the text to return.NullPointerException - if language is null.Texts.getText(),
Texts.getDefaultLanguage(),
Text.getLanguage(),
clear()public Text getText(Locale locale)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear() must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getText in class Textslocale - The locale of the text to return.NullPointerException - if locale is null.Texts.getText(),
Texts.getDefaultLanguage(),
Text.getLanguage(),
clear()public void gc()
RuntimeModelObjectgc in interface RuntimeModelObjectpublic void clear()
RuntimeModelObjectclear in interface RuntimeModelObjectCopyright © 2005-2013 The JOMC Project. All Rights Reserved.