|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.ext.beans2.ResourceBundleWrapper
public class ResourceBundleWrapper
Constructor Summary | |
---|---|
ResourceBundleWrapper()
|
|
ResourceBundleWrapper(java.util.ResourceBundle object)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
TemplateModel |
get(java.lang.String key)
Gets a value from the resource bundle. |
java.lang.Object |
getAsObject()
Return the underlying object to the reflection mechanism in the freemarker.ext.beans package. |
boolean |
isEmpty()
Is the resource bundle empty or null? |
void |
setObject(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceBundleWrapper()
public ResourceBundleWrapper(java.util.ResourceBundle object)
Method Detail |
---|
public void setObject(java.lang.Object object)
setObject
in interface ObjectWrapper
public java.lang.Object getAsObject() throws TemplateModelException
freemarker.ext.beans
package. Any variables, methods
or properties can be called directly via reflection.
getAsObject
in interface TemplateObjectModel
TemplateModelException
- the object could not be returnedpublic boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
true
if this object is empty, otherwise false
TemplateModelException
public TemplateModel get(java.lang.String key) throws TemplateModelException
get
in interface TemplateHashModel
key
- the name by which the TemplateModel
is identified in the template.
TemplateModel
referred to by the key,
or null
if not found.
TemplateModelException
- there was a problem getting the value
for the given keypublic java.lang.Object clone()
clone
in interface ObjectWrapper
clone
in class java.lang.Object
java.lang.RuntimeException
- the clone operation was not successful
java.lang.OutOfMemoryError
- if there is not enough memory.Cloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |