org.lexevs.dao.database.constants.classifier.mapping
Class AbstractMappingClassifier<I,O>

java.lang.Object
  extended by org.lexevs.dao.database.constants.classifier.mapping.AbstractMappingClassifier<I,O>
All Implemented Interfaces:
org.springframework.batch.classify.Classifier<I,O>
Direct Known Subclasses:
ClassToStringMappingClassifier, StringToClassMappingClassifier

public abstract class AbstractMappingClassifier<I,O>
extends java.lang.Object
implements org.springframework.batch.classify.Classifier<I,O>

The Class AbstractMappingClassifier.

Author:
Kevin Peterson

Constructor Summary
AbstractMappingClassifier()
           
 
Method Summary
protected  java.util.Map<java.lang.Class<? extends URIMap>,java.lang.String> buildMap()
          Builds the map.
 O classify(I item)
           
protected abstract  O doClassify(I item, java.util.Map<java.lang.Class<? extends URIMap>,java.lang.String> mappngs)
          Do classify.
protected  java.lang.RuntimeException getException(java.lang.Object item)
          Gets the exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMappingClassifier

public AbstractMappingClassifier()
Method Detail

classify

public O classify(I item)
Specified by:
classify in interface org.springframework.batch.classify.Classifier<I,O>

getException

protected java.lang.RuntimeException getException(java.lang.Object item)
Gets the exception.

Parameters:
item - the item
Returns:
the exception

doClassify

protected abstract O doClassify(I item,
                                java.util.Map<java.lang.Class<? extends URIMap>,java.lang.String> mappngs)
Do classify.

Parameters:
item - the item
mappngs - the mappngs
Returns:
the o

buildMap

protected java.util.Map<java.lang.Class<? extends URIMap>,java.lang.String> buildMap()
Builds the map.

Returns:
the map< class, string>

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.