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

java.lang.Object
  extended by org.lexgrid.loader.processor.CodingSchemeIdAwareProcessor
      extended by org.lexgrid.loader.processor.AbstractSupportedAttributeRegisteringProcessor<I,O>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<I,O>
Direct Known Subclasses:
EntityAssnsToEntityProcessor, EntityAssnToEQualsListProcessor, EntityAssnToEQualsProcessor, EntityPropertyProcessor, EntityPropertyQualifierProcessor

public abstract class AbstractSupportedAttributeRegisteringProcessor<I,O>
extends CodingSchemeIdAwareProcessor
implements org.springframework.batch.item.ItemProcessor<I,O>

The Class AbstractSupportedAttributeRegisteringProcessor.

Author:
Kevin Peterson

Constructor Summary
AbstractSupportedAttributeRegisteringProcessor()
           
 
Method Summary
abstract  O doProcess(I item)
          Do process.
 SupportedAttributeTemplate getSupportedAttributeTemplate()
          Gets the supported attribute template.
 boolean isRegisterSupportedAttributes()
          Checks if is register supported attributes.
 O process(I item)
           
protected abstract  void registerSupportedAttributes(SupportedAttributeTemplate s, O item)
          Register supported attributes.
 void setRegisterSupportedAttributes(boolean registerSupportedAttributes)
          Sets the register supported attributes.
 void setSupportedAttributeTemplate(SupportedAttributeTemplate supportedAttributeTemplate)
          Sets the supported attribute template.
 
Methods inherited from class org.lexgrid.loader.processor.CodingSchemeIdAwareProcessor
getCodingSchemeIdSetter, setCodingSchemeIdSetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSupportedAttributeRegisteringProcessor

public AbstractSupportedAttributeRegisteringProcessor()
Method Detail

process

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

doProcess

public abstract O doProcess(I item)
                     throws java.lang.Exception
Do process.

Parameters:
item - the item
Returns:
the o
Throws:
java.lang.Exception - the exception

registerSupportedAttributes

protected abstract void registerSupportedAttributes(SupportedAttributeTemplate s,
                                                    O item)
Register supported attributes.

Parameters:
s - the s
item - the item

getSupportedAttributeTemplate

public SupportedAttributeTemplate getSupportedAttributeTemplate()
Gets the supported attribute template.

Returns:
the supported attribute template

setSupportedAttributeTemplate

public void setSupportedAttributeTemplate(SupportedAttributeTemplate supportedAttributeTemplate)
Sets the supported attribute template.

Parameters:
supportedAttributeTemplate - the new supported attribute template

isRegisterSupportedAttributes

public boolean isRegisterSupportedAttributes()
Checks if is register supported attributes.

Returns:
true, if is register supported attributes

setRegisterSupportedAttributes

public void setRegisterSupportedAttributes(boolean registerSupportedAttributes)
Sets the register supported attributes.

Parameters:
registerSupportedAttributes - the new register supported attributes

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.