
@Generated(value="org.jomc.tools.SourceFileProcessor 1.6", comments="See http://www.jomc.org/jomc/1.6/jomc-tools-1.6") public class RuntimeMessages extends Messages implements RuntimeModelObject
Messages.
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion| Constructor and Description |
|---|
RuntimeMessages()
Creates a new
RuntimeMessages instance. |
RuntimeMessages(Messages messages)
Creates a new
RuntimeMessages instance by deeply copying a given Messages instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears shared runtime state.
|
void |
gc()
Handles shared runtime state.
|
Message |
getMessage(String name)
Gets a message for a given name from the list of messages.
|
MessageReference |
getReference(String name)
Gets a message reference for a given name from the list of references.
|
clone, getMessage, getReferencegetAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersionpublic RuntimeMessages(Messages messages)
RuntimeMessages instance by deeply copying a given Messages instance.messages - The instance to copy.NullPointerException - if messages is null.@Generated(value="org.jomc.tools.SourceFileProcessor 1.6", comments="See http://www.jomc.org/jomc/1.6/jomc-tools-1.6") public RuntimeMessages()
RuntimeMessages instance.public Message getMessage(String name)
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.
getMessage in class Messagesname - The name of the message to return.null, if no such message is found.NullPointerException - if name is null.Messages.getMessage(),
Message.getName(),
clear()public MessageReference getReference(String name)
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.
getReference in class Messagesname - The name of the message reference to return.null, if no such reference is found.NullPointerException - if name is null.Messages.getReference(),
MessageReference.getName(),
clear()public void gc()
RuntimeModelObjectgc in interface RuntimeModelObjectpublic void clear()
RuntimeModelObjectclear in interface RuntimeModelObjectCopyright © 2005–2014 The JOMC Project. All rights reserved.