com.swfm.mica.core
Class MiContainerIterator

java.lang.Object
  extended bycom.swfm.mica.core.MiContainerIterator
All Implemented Interfaces:
MiiIterator

public class MiContainerIterator
extends java.lang.Object
implements MiiIterator

This class iterates over parts of a MiContainer. It is used by the MiEditorIterator to iterate through parts of each editor layer.

Version:
%I% %G%
Author:
Michael L. Davis

Constructor Summary
MiContainerIterator(MiPart container)
          Contructs a new MiContainerIterator.
MiContainerIterator(MiPart container, boolean startAtBeginning, boolean iterateIntoPartsOfParts, boolean iteratateIntoAttachmentsOfParts)
          Contructs a new MiContainerIterator.
 
Method Summary
 MiPart getNext()
          Gets the next part.
 MiPart getPrevious()
          Gets the previous part.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiContainerIterator

public MiContainerIterator(MiPart container)
Contructs a new MiContainerIterator.

Parameters:
container - the container to iterate through

MiContainerIterator

public MiContainerIterator(MiPart container,
                           boolean startAtBeginning,
                           boolean iterateIntoPartsOfParts,
                           boolean iteratateIntoAttachmentsOfParts)
Contructs a new MiContainerIterator.

Parameters:
container - the container to iterate through
startAtBeginning - true if the internal cursor is set to the first part in the container
iterateIntoPartsOfParts - true if parts of parts are iterated through
iteratateIntoAttachmentsOfParts - true if attachments of parts are iterated through
Method Detail

getNext

public MiPart getNext()
Gets the next part. Null is returned if there are no more parts.

Specified by:
getNext in interface MiiIterator
Returns:
the next part

getPrevious

public MiPart getPrevious()
Gets the previous part. Null is returned if there are no previous parts.

Specified by:
getPrevious in interface MiiIterator
Returns:
the previous part