com.cc.framework.taglib.forms
Class ForEachTag.FEIterator
java.lang.Object
com.cc.framework.taglib.forms.ForEachTag.FEIterator
- All Implemented Interfaces:
- ForEachTag.ForEachIterator
- Enclosing class:
- ForEachTag
- protected class ForEachTag.FEIterator
- extends java.lang.Object
- implements ForEachTag.ForEachIterator
Wrapper for Iterator classes
- Author:
- Harald Schulz
Field Summary |
private java.lang.Object |
bean
|
private int |
index
|
private java.util.Iterator |
iter
|
Method Summary |
java.lang.Object |
getBean()
|
java.lang.Object |
getIndex()
|
java.lang.String |
getPropertyAccessor(java.lang.String propertyName)
Creates the property name that should be used to access the bean with
the BeanUtils framework. |
boolean |
isDone()
|
void |
next()
proceed to the next iteration element |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iter
private java.util.Iterator iter
bean
private java.lang.Object bean
index
private int index
ForEachTag.FEIterator
public ForEachTag.FEIterator(java.util.Iterator iter)
- Constructor
- Parameters:
iter
- the nested iterator
getBean
public java.lang.Object getBean()
- Specified by:
getBean
in interface ForEachTag.ForEachIterator
- Returns:
- the current iteration element
- See Also:
ForEachTag.ForEachIterator.getBean()
getIndex
public java.lang.Object getIndex()
- Specified by:
getIndex
in interface ForEachTag.ForEachIterator
- Returns:
- the current iteration index
- See Also:
ForEachTag.ForEachIterator.getIndex()
getPropertyAccessor
public java.lang.String getPropertyAccessor(java.lang.String propertyName)
- Description copied from interface:
ForEachTag.ForEachIterator
- Creates the property name that should be used to access the bean with
the BeanUtils framework.
- Specified by:
getPropertyAccessor
in interface ForEachTag.ForEachIterator
- Parameters:
propertyName
- the raw property name
- Returns:
- property accessor
- See Also:
ForEachTag.ForEachIterator.getPropertyAccessor(java.lang.String)
isDone
public boolean isDone()
- Specified by:
isDone
in interface ForEachTag.ForEachIterator
- Returns:
true
when the iterator has reached its end- See Also:
ForEachTag.ForEachIterator.isDone()
next
public void next()
- Description copied from interface:
ForEachTag.ForEachIterator
- proceed to the next iteration element
- Specified by:
next
in interface ForEachTag.ForEachIterator
- See Also:
ForEachTag.ForEachIterator.next()
Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.