@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public class RuntimeMessage extends Message implements RuntimeModelObject
Message
.
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion
Constructor and Description |
---|
RuntimeMessage()
Creates a new
RuntimeMessage instance. |
RuntimeMessage(Message message)
Creates a new
RuntimeMessage instance by deeply copying a given Message instance. |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears shared runtime state.
|
void |
gc()
Handles shared runtime state.
|
MessageFormat |
getJavaMessage(Locale locale)
Gets a Java
MessageFormat instance for a given locale. |
clone, getAny, getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getArguments, getName, getTemplate, isFinal, isOverride, setArguments, setFinal, setName, setOverride, setTemplate
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion
public RuntimeMessage(Message message)
RuntimeMessage
instance by deeply copying a given Message
instance.message
- The instance to copy.NullPointerException
- if message
is null
.@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public RuntimeMessage()
RuntimeMessage
instance.public MessageFormat getJavaMessage(Locale locale)
MessageFormat
instance for a given 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.
getJavaMessage
in class Message
locale
- The locale to get a Java MessageFormat
instance for.MessageFormat
instance for locale
.NullPointerException
- if locale
is null
.Message.getTemplate()
,
clear()
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.