org.lexgrid.loader.staging.processor
Class AbstractKeyValueProcessor<I>

java.lang.Object
  extended by org.lexgrid.loader.staging.processor.AbstractKeyValueProcessor<I>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<I,KeyValuePair>
Direct Known Subclasses:
AuiToCuiProcessor

public abstract class AbstractKeyValueProcessor<I>
extends java.lang.Object
implements org.springframework.batch.item.ItemProcessor<I,KeyValuePair>

The Class AbstractKeyValueProcessor.

Author:
Kevin Peterson

Constructor Summary
AbstractKeyValueProcessor()
           
 
Method Summary
abstract  java.lang.String getKey(I item)
          Gets the key.
abstract  java.lang.String getValue(I item)
          Gets the value.
 KeyValuePair process(I item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKeyValueProcessor

public AbstractKeyValueProcessor()
Method Detail

process

public KeyValuePair process(I item)
                     throws java.lang.Exception
Specified by:
process in interface org.springframework.batch.item.ItemProcessor<I,KeyValuePair>
Throws:
java.lang.Exception

getKey

public abstract java.lang.String getKey(I item)
Gets the key.

Parameters:
item - the item
Returns:
the key

getValue

public abstract java.lang.String getValue(I item)
Gets the value.

Parameters:
item - the item
Returns:
the value

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.