Class ReadOnlyMessageIterator

java.lang.Object
ca.uhn.hl7v2.util.ReadOnlyMessageIterator
All Implemented Interfaces:
Iterator<Structure>

public class ReadOnlyMessageIterator extends Object implements Iterator<Structure>
Iterator though existing Stuctures in a message. No new repetitions or optional structures are created during iteration (in contrast to MessageIterator). Note that some structures are created during parsing, so the iteration may include structures which were not present in the original encoded message. If these are not desired they can be skipped using a FilterIterator. In fact to obtain an iterator only over populated segments (not groups or empty segments) use the factory method in this class.
Version:
$Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:27 $ by $Author: jamesagnew $
Author:
Bryan Tripp