|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.beans2.Wrapper
public class Wrapper
Wraps a given object, class or enum in a FM-Classic template model. An appropriate model will be determined and returned based on introspection of the supplied object or class.
Method Summary | ||
---|---|---|
static
|
wrap(java.lang.Class<T> clazz)
Wraps the given class or enum in a FM-Classic template model using reflection. |
|
static TemplateModel |
wrap(java.lang.Object object)
Wrap the given object in a FM-Classic template model using reflection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TemplateModel wrap(java.lang.Object object) throws java.lang.ClassCastException, java.lang.NullPointerException
object
- the object to be wrapped in a template model
java.lang.ClassCastException
java.lang.NullPointerException
public static <T> TemplateModel wrap(java.lang.Class<T> clazz)
clazz
- the class to be wrapped in a template model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |