net.sf.mmm.util.pojo.descriptor.impl
Class PojoFieldIntrospectorImpl.PojoFieldIterator

java.lang.Object
  extended by net.sf.mmm.util.collection.base.AbstractIterator<Field>
      extended by net.sf.mmm.util.pojo.descriptor.impl.PojoFieldIntrospectorImpl.PojoFieldIterator
All Implemented Interfaces:
Iterator<Field>
Enclosing class:
PojoFieldIntrospectorImpl

public class PojoFieldIntrospectorImpl.PojoFieldIterator
extends AbstractIterator<Field>

This inner class iterates the fields of a given pojo-type according to the visibility.


Field Summary
private  Class<?> currentClass
          the current class
private  Field[] fields
          the fields.
private  int index
          the current index of fields.
 
Constructor Summary
protected PojoFieldIntrospectorImpl.PojoFieldIterator(Class<?> pojoClass)
          The constructor.
 
Method Summary
protected  Field findNext()
          This method tries to find the next element.
 
Methods inherited from class net.sf.mmm.util.collection.base.AbstractIterator
findFirst, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentClass

private Class<?> currentClass
the current class


fields

private Field[] fields
the fields.


index

private int index
the current index of fields.

Constructor Detail

PojoFieldIntrospectorImpl.PojoFieldIterator

protected PojoFieldIntrospectorImpl.PojoFieldIterator(Class<?> pojoClass)
The constructor.

Parameters:
pojoClass - is the class for which the property-accessors should be iterated.
Method Detail

findNext

protected Field findNext()
This method tries to find the next element.

Specified by:
findNext in class AbstractIterator<Field>
Returns:
the next element or null if done.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.