|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moremotion.resource.ResourceBundle
public class ResourceBundle
Represents a Resource Bundle that contains resources in one single language. The resource bundles are loaded by the resource manager from resource files that have ".res" extension under the "/WEB-INF/MM-INF/resources" folder.
Constructor Summary | |
---|---|
ResourceBundle(java.util.Properties source,
long lastModified)
Creates a ResourceBundle |
|
ResourceBundle(java.lang.String dsname,
javax.servlet.ServletContext context,
java.lang.String language)
Creates a ResourceBundle |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of this resource bundle. |
java.lang.String |
getResourceText(java.lang.String resourceId)
Returns the text of the specified resource. |
boolean |
isModified(long lastModified)
Returns whether or not the resource file is modified. |
static void |
main(java.lang.String[] args)
|
void |
setName(java.lang.String name)
Sets the name of this resource bundle. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceBundle(java.util.Properties source, long lastModified)
source
- Properties object that contains the resource ids and resource messages.lastModified
- Last time the resource files is modified.public ResourceBundle(java.lang.String dsname, javax.servlet.ServletContext context, java.lang.String language)
dsname
- the name of the datasource that keeps the resourcesMethod Detail |
---|
public void setName(java.lang.String name)
public java.lang.String getName()
public java.lang.String getResourceText(java.lang.String resourceId)
public boolean isModified(long lastModified)
lastModified
- The last modified date of the resource file.
true
if modified, false
otherwise.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |