com.cc.framework.taglib.forms
Class ForEachTag.FEMapIterator

java.lang.Object
  extended bycom.cc.framework.taglib.forms.ForEachTag.FEMapIterator
All Implemented Interfaces:
ForEachTag.ForEachIterator
Enclosing class:
ForEachTag

protected class ForEachTag.FEMapIterator
extends java.lang.Object
implements ForEachTag.ForEachIterator

Iterator for map collections

Author:
Harald Schulz

Field Summary
private  java.lang.Object index
           
private  java.util.Iterator iter
           
private  java.util.Map map
           
 
Constructor Summary
ForEachTag.FEMapIterator(java.util.Map map)
          Constructor
 
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
 

Field Detail

map

private java.util.Map map

iter

private java.util.Iterator iter

index

private java.lang.Object index
Constructor Detail

ForEachTag.FEMapIterator

public ForEachTag.FEMapIterator(java.util.Map map)
Constructor

Parameters:
map - the underlying map object
Method Detail

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.