org.lexgrid.loader.processor
Class SortingListProcessor<I,O>

java.lang.Object
  extended by org.lexgrid.loader.processor.AbstractParameterPassingListProcessor<I,O>
      extended by org.lexgrid.loader.processor.SortingListProcessor<I,O>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<java.util.List<I>,java.util.List<O>>
Direct Known Subclasses:
EntityPropertyListProcessor

public class SortingListProcessor<I,O>
extends AbstractParameterPassingListProcessor<I,O>

The Class SortingListProcessor.

Author:
Kevin Peterson

Constructor Summary
SortingListProcessor()
           
 
Method Summary
protected  java.util.List<O> afterProcessing(java.util.List<O> processedItems, java.util.List<I> originalItems)
          After processing.
protected  java.util.List<I> beforeProcessing(java.util.List<I> items)
          Before processing.
 java.util.Comparator<I> getPropertyComparator()
          Gets the property comparator.
 void setPropertyComparator(java.util.Comparator<I> propertyComparator)
          Sets the property comparator.
 
Methods inherited from class org.lexgrid.loader.processor.AbstractParameterPassingListProcessor
getDelegate, process, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortingListProcessor

public SortingListProcessor()
Method Detail

beforeProcessing

protected java.util.List<I> beforeProcessing(java.util.List<I> items)
Description copied from class: AbstractParameterPassingListProcessor
Before processing.

Specified by:
beforeProcessing in class AbstractParameterPassingListProcessor<I,O>
Parameters:
items - the items
Returns:
the list< i>

afterProcessing

protected java.util.List<O> afterProcessing(java.util.List<O> processedItems,
                                            java.util.List<I> originalItems)
Description copied from class: AbstractParameterPassingListProcessor
After processing.

Specified by:
afterProcessing in class AbstractParameterPassingListProcessor<I,O>
Parameters:
processedItems - the processed items
originalItems - the original items
Returns:
the list< o>

getPropertyComparator

public java.util.Comparator<I> getPropertyComparator()
Gets the property comparator.

Returns:
the property comparator

setPropertyComparator

public void setPropertyComparator(java.util.Comparator<I> propertyComparator)
Sets the property comparator.

Parameters:
propertyComparator - the new property comparator

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.