|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--freemarker.ext.beans.BeanModelBase | +--freemarker.ext.beans.BeanModel | +--freemarker.ext.beans.EnumerationModel
A class that adds TemplateModelIterator
functionality to the
Enumeration
interface implementers.
Fields inherited from class freemarker.ext.beans.BeanModel |
TYPE_ARRAY, TYPE_COLLECTION, TYPE_ENUMERATION, TYPE_ITERATOR, TYPE_MAP, TYPE_OBJECT, TYPE_OBJECT_BASE, TYPE_RESOURCE_BUNDLE |
Constructor Summary | |
EnumerationModel(java.util.Enumeration enumeration)
Creates a new model that wraps the specified enumeration object. |
Method Summary | |
static EnumerationModel |
getInstance(java.util.Enumeration object)
Returns a model wrapping the specified enumeration object. |
int |
getType()
Returns the type of this object (which is TYPE_ENUMERATION) |
boolean |
hasNext()
|
TemplateModel |
next()
Calls Iterator.next() . |
Methods inherited from class freemarker.ext.beans.BeanModel |
get, getAsString, getInstance, getInstance, getObject, invokeGenericGet, isEmpty |
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 EnumerationModel(java.util.Enumeration enumeration)
object
- the enumeration object to wrap into a model.Method Detail |
public static final EnumerationModel getInstance(java.util.Enumeration object)
public int getType()
getType
in class BeanModel
public TemplateModel next()
Iterator.next()
.next
in interface TemplateModelIterator
public boolean hasNext()
hasNext
in interface TemplateModelIterator
freemarker.template.TemplateModelIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |