org.lexgrid.loader.rrf.processor
Class MrdocAssociationProcessor

java.lang.Object
  extended by org.lexgrid.loader.processor.CodingSchemeIdAwareProcessor
      extended by org.lexgrid.loader.rrf.processor.MrdocAssociationProcessor
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<java.util.List<Mrdoc>,java.util.List<CodingSchemeIdHolder<AssociationEntity>>>

public class MrdocAssociationProcessor
extends CodingSchemeIdAwareProcessor
implements org.springframework.batch.item.ItemProcessor<java.util.List<Mrdoc>,java.util.List<CodingSchemeIdHolder<AssociationEntity>>>

The Class MrdocAssociationProcessor.

Author:
Kevin Peterson

Constructor Summary
MrdocAssociationProcessor()
           
 
Method Summary
protected  AssociationEntity buildAssociationEntity(java.lang.String relationName, java.lang.String reverseName, java.lang.String expandedName)
          Builds the association.
 SupportedAttributeTemplate getSupportedAttributeTemplate()
          Gets the supported attribute template.
protected  boolean isTransitive(java.lang.String relationName)
          Checks if is transitive.
 java.util.List<CodingSchemeIdHolder<AssociationEntity>> process(java.util.List<Mrdoc> items)
           
 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

MrdocAssociationProcessor

public MrdocAssociationProcessor()
Method Detail

process

public java.util.List<CodingSchemeIdHolder<AssociationEntity>> process(java.util.List<Mrdoc> items)
                                                                throws java.lang.Exception
Specified by:
process in interface org.springframework.batch.item.ItemProcessor<java.util.List<Mrdoc>,java.util.List<CodingSchemeIdHolder<AssociationEntity>>>
Throws:
java.lang.Exception

buildAssociationEntity

protected AssociationEntity buildAssociationEntity(java.lang.String relationName,
                                                   java.lang.String reverseName,
                                                   java.lang.String expandedName)
Builds the association.

Parameters:
containerName - the container name
relationName - the relation name
reverseName - the reverse name
expandedName - the expanded name
Returns:
the association

isTransitive

protected boolean isTransitive(java.lang.String relationName)
Checks if is transitive.

Parameters:
relationName - the relation name
Returns:
true, if is transitive

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

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.