|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.ext.beans2.StaticClassWrapper<T>
freemarker.ext.beans2.StaticEnumWrapper<T>
public class StaticEnumWrapper<T extends java.lang.Enum>
Wraps a static Enum class. Subclasses StaticClassWrapper to provide an Iterator model for all values of the enum.
| Field Summary |
|---|
| Fields inherited from class freemarker.ext.beans2.StaticClassWrapper |
|---|
clazz |
| Constructor Summary | |
|---|---|
StaticEnumWrapper()
Default constructor where a class is not provided initially. |
|
StaticEnumWrapper(java.lang.Class<T> clazz)
Constructor that takes am enum to be wrapped. |
|
| Method Summary | |
|---|---|
void |
releaseIterator(TemplateIteratorModel iterator)
Returns the used iterator to the enumeration. |
TemplateIteratorModel |
templateIterator()
Retrieves an iterator to iterate over this enumeration. |
| Methods inherited from class freemarker.ext.beans2.StaticClassWrapper |
|---|
get, getAsString, isEmpty, put, setClazz |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface freemarker.template.TemplateModel |
|---|
isEmpty |
| Constructor Detail |
|---|
public StaticEnumWrapper()
public StaticEnumWrapper(java.lang.Class<T> clazz)
clazz - the enum class to be wrapped| Method Detail |
|---|
public TemplateIteratorModel templateIterator()
throws TemplateModelException
templateIterator in interface TemplateListModel2TemplateModelException - the next item in the list can't be
retrieved, or no next item exists.public void releaseIterator(TemplateIteratorModel iterator)
Returns the used iterator to the enumeration.
releaseIterator in interface TemplateListModel2iterator - the iterator to be returned
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||