org.jostraca.unit
Interface UnitProcessor

All Known Implementing Classes:
BasicUnitProcessor, DebugUnitProcessor

public interface UnitProcessor

Description:
A UnitProcessor takes a UnitList and creates a SectionSet. Units of unknown type are inserted verbatim.

See Also:
UnitList

Method Summary
 SectionSet process(UnitList pUnitList)
          Process a UnitList into a SectionSet.
 SectionSet process(UnitList pUnitList, SectionSet pSectionSet)
          A predefined SectionSet can be used.
 

Method Detail

process

public SectionSet process(UnitList pUnitList)
                   throws UnitException
Process a UnitList into a SectionSet. Contract: Units in UnitList are never null, UnitList always at initial position.

Parameters:
pUnitList - if null, throws IllegalArgumentException
Throws:
UnitException

process

public SectionSet process(UnitList pUnitList,
                          SectionSet pSectionSet)
                   throws UnitException
A predefined SectionSet can be used.

Parameters:
pSectionSet - if null, uses an empty SectionSet
Throws:
UnitException


Copyright © 2000-2002 Richard Rodger