|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.model.Texts
org.jomc.ri.model.RuntimeTexts
@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public class RuntimeTexts
Runtime Texts
.
Field Summary |
---|
Fields inherited from class org.jomc.model.Texts |
---|
defaultLanguage, text |
Constructor Summary | |
---|---|
RuntimeTexts()
Creates a new RuntimeTexts instance. |
|
RuntimeTexts(Texts texts)
Creates a new RuntimeTexts instance by deeply copying a given Texts instance. |
Method Summary | |
---|---|
void |
clear()
Clears shared runtime state. |
void |
gc()
Handles shared runtime state. |
Text |
getText(String language)
Gets a text for a given language from the list of texts. |
Methods inherited from class org.jomc.model.Texts |
---|
clone, getDefaultLanguage, getText, setDefaultLanguage |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public RuntimeTexts()
RuntimeTexts
instance.
Method Detail |
---|
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 Texts
language
- The language of the text to return.
NullPointerException
- if language
is null
.Texts.getText()
,
Texts.getDefaultLanguage()
,
Text.getLanguage()
,
clear()
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |