uk.ac.ic.doc.automed.wrappers
Class SMRWrapperFactory

java.lang.Object
  extended by uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
      extended by uk.ac.ic.doc.automed.wrappers.SMRWrapperFactory

public class SMRWrapperFactory
extends AutoMedWrapperFactory

SMRWrapperFactory.java

Version:
1.0 Department of Computing, Imperial College
Author:
Duc M Le dmle@doc.ic.ac.uk

Field Summary
protected  Model model
           
protected  java.lang.String modelName
          The name of this model
protected  Construct root
           
protected  char separator
          The separator for this file
protected  Construct smrItem1
           
protected  Construct smrItem2
           
 
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
modelDef
 
Constructor Summary
SMRWrapperFactory()
          Creates a new instance of SMRWrapperFactory
 
Method Summary
 Schema createAutoMedSchema(AutoMedWrapper autoMedWrapper, java.lang.String str)
          Create the AutoMed schema for the SMRWrapper document There is really not much going on here because the SMR schema is not available
 Model getAutoMedModel()
          Return the AutoMed CSV model from the Automed MDR database In this case it is the same as the source model returned by getModel()
 Model getModel()
          Return the CSV model from the Automed MDR database
protected  AutoMedWrapper newAutoMedWrapper()
          Create a new empty wrapper instance that this wrapper factory is then able to populate.
protected  void populateSchema(AutoMedWrapper wrapper)
          Create an AutoMed schema for the SMR Again, since the SMR schema is not available there is nothing much we can do here
 
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
createSchema, getAttributeDomains, getModelDefinition, safeIQL, setAttributeDomains, setModelDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

separator

protected char separator
The separator for this file


modelName

protected java.lang.String modelName
The name of this model


model

protected Model model

root

protected Construct root

smrItem1

protected Construct smrItem1

smrItem2

protected Construct smrItem2
Constructor Detail

SMRWrapperFactory

public SMRWrapperFactory()
Creates a new instance of SMRWrapperFactory

Method Detail

getModel

public Model getModel()
               throws InconsistentException
Return the CSV model from the Automed MDR database

Specified by:
getModel in class AutoMedWrapperFactory
Throws:
InconsistentException

getAutoMedModel

public Model getAutoMedModel()
Return the AutoMed CSV model from the Automed MDR database In this case it is the same as the source model returned by getModel()

Specified by:
getAutoMedModel in class AutoMedWrapperFactory

createAutoMedSchema

public Schema createAutoMedSchema(AutoMedWrapper autoMedWrapper,
                                  java.lang.String str)
                           throws IntegrityException,
                                  NotFoundException
Create the AutoMed schema for the SMRWrapper document There is really not much going on here because the SMR schema is not available

Specified by:
createAutoMedSchema in class AutoMedWrapperFactory
Parameters:
autoMedWrapper -
str -
Returns:
Throws:
IntegrityException
NotFoundException

populateSchema

protected void populateSchema(AutoMedWrapper wrapper)
                       throws DataSourceException
Create an AutoMed schema for the SMR Again, since the SMR schema is not available there is nothing much we can do here

Specified by:
populateSchema in class AutoMedWrapperFactory
Throws:
DataSourceException

newAutoMedWrapper

protected AutoMedWrapper newAutoMedWrapper()
Description copied from class: AutoMedWrapperFactory
Create a new empty wrapper instance that this wrapper factory is then able to populate.

Specified by:
newAutoMedWrapper in class AutoMedWrapperFactory