eu.etaxonomy.cdm.io.common
Class ImportStateBase<CONFIG extends ImportConfiguratorBase,IO extends CdmImportBase>

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.IoStateBase<CONFIG,IO>
      extended by eu.etaxonomy.cdm.io.common.ImportStateBase<CONFIG,IO>
Direct Known Subclasses:
Abcd206ImportState, DbImportStateBase, DefaultImportState, DwcaImportState, EndnoteImportState, ExcelImportState, IkeyPlusImportState, JaxbImportState, SpecimenSynthesysExcelImportState, TaxonXImportState, TcsRdfImportState, TcsXmlImportState, XmlImportState

public abstract class ImportStateBase<CONFIG extends ImportConfiguratorBase,IO extends CdmImportBase>
extends IoStateBase<CONFIG,IO>

Version:
1.0
Author:
a.mueller

Field Summary
protected  IService<CdmBase> service
           
protected  Map<String,MapWrapper<? extends CdmBase>> stores
           
 
Constructor Summary
protected ImportStateBase(CONFIG config)
           
 
Method Summary
 int countTrees()
           
 int countTreeUuids()
           
 AnnotationType getAnnotationType(UUID uuid)
           
 ExtensionType getExtensionType(UUID uuid)
           
 Feature getFeature(UUID uuid)
           
 Language getLanguage(UUID uuid)
           
 MarkerType getMarkerType(UUID uuid)
           
 MeasurementUnit getMeasurementUnit(UUID uuid)
           
 Modifier getModifier(UUID uuid)
           
 NamedArea getNamedArea(UUID uuid)
           
 NamedAreaLevel getNamedAreaLevel(UUID uuid)
           
 PresenceTerm getPresenceTerm(UUID uuid)
           
 Rank getRank(UUID uuid)
           
 ReferenceSystem getReferenceSystem(UUID uuid)
           
 State getStateTerm(UUID uuid)
           
 StatisticalMeasure getStatisticalMeasure(UUID uuid)
           
 MapWrapper<? extends CdmBase> getStore(String storeLabel)
           
 Map<String,MapWrapper<? extends CdmBase>> getStores()
           
 TaxonRelationshipType getTaxonRelationshipType(UUID uuid)
           
 IInputTransformer getTransformer()
           
 Classification getTree(Object ref)
           
 UUID getTreeUuid(Reference ref)
           
 UUID getTreeUuidByIntTreeKey(int treeKey)
           
 UUID getTreeUuidByTreeKey(String treeKey)
           
 boolean isCheck()
          Returns true, if this import is in validation state.
 void putAnnotationType(AnnotationType annotationType)
           
 void putClassificationUuid(String treeKey, Classification tree)
           
 void putClassificationUuidInt(int classificationKeyId, Classification classification)
          Adds a classification uuid to the classification uuid map, which maps a key for the classification to its UUID in the CDM
 void putExtensionType(ExtensionType extensionType)
           
 void putFeature(Feature feature)
           
 void putLanguage(Language language)
           
 void putMarkerType(MarkerType markerType)
           
 void putMeasurementUnit(MeasurementUnit unit)
           
 void putModifier(Modifier unit)
           
 void putNamedArea(NamedArea namedArea)
           
 void putNamedAreaLevel(NamedAreaLevel namedAreaLevel)
           
 void putPresenceTerm(PresenceTerm presenceTerm)
           
 void putRank(Rank rank)
           
 void putReferenceSystem(ReferenceSystem referenceSystem)
           
 void putStateTerm(State stateTerm)
           
 void putStatisticalMeasure(StatisticalMeasure unit)
           
 void putTaxonRelationshipType(TaxonRelationshipType relType)
           
 void putTree(Object ref, Classification tree)
           
 void putTreeUuid(Reference ref, Classification tree)
           
 void setCheck(boolean isCheck)
           
 void setStores(Map<String,MapWrapper<? extends CdmBase>> stores)
           
 void setTransformer(IInputTransformer transformer)
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.IoStateBase
getConfig, getCurrentIO, initialize, isSuccess, setConfig, setCurrentIO, setSuccess, setUnsuccessfull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected IService<CdmBase> service

stores

protected Map<String,MapWrapper<? extends CdmBase>> stores
Constructor Detail

ImportStateBase

protected ImportStateBase(CONFIG config)
Method Detail

getStores

public Map<String,MapWrapper<? extends CdmBase>> getStores()
Returns:
the stores

setStores

public void setStores(Map<String,MapWrapper<? extends CdmBase>> stores)
Parameters:
stores - the stores to set

getStore

public MapWrapper<? extends CdmBase> getStore(String storeLabel)

getTree

public Classification getTree(Object ref)
Returns:
the treeMap

putTree

public void putTree(Object ref,
                    Classification tree)
Parameters:
treeMap - the treeMap to set

countTrees

public int countTrees()

getTreeUuid

public UUID getTreeUuid(Reference ref)
Returns:
the treeUuid

putTreeUuid

public void putTreeUuid(Reference ref,
                        Classification tree)

countTreeUuids

public int countTreeUuids()

putClassificationUuidInt

public void putClassificationUuidInt(int classificationKeyId,
                                     Classification classification)
Adds a classification uuid to the classification uuid map, which maps a key for the classification to its UUID in the CDM

Parameters:
classificationKeyId -
classification -

putClassificationUuid

public void putClassificationUuid(String treeKey,
                                  Classification tree)

getTreeUuidByIntTreeKey

public UUID getTreeUuidByIntTreeKey(int treeKey)

getTreeUuidByTreeKey

public UUID getTreeUuidByTreeKey(String treeKey)

getExtensionType

public ExtensionType getExtensionType(UUID uuid)

putExtensionType

public void putExtensionType(ExtensionType extensionType)

getMarkerType

public MarkerType getMarkerType(UUID uuid)

putMarkerType

public void putMarkerType(MarkerType markerType)

getAnnotationType

public AnnotationType getAnnotationType(UUID uuid)

putAnnotationType

public void putAnnotationType(AnnotationType annotationType)

getNamedArea

public NamedArea getNamedArea(UUID uuid)

putNamedArea

public void putNamedArea(NamedArea namedArea)

getNamedAreaLevel

public NamedAreaLevel getNamedAreaLevel(UUID uuid)

putNamedAreaLevel

public void putNamedAreaLevel(NamedAreaLevel namedAreaLevel)

getRank

public Rank getRank(UUID uuid)

putRank

public void putRank(Rank rank)

getStateTerm

public State getStateTerm(UUID uuid)

putStateTerm

public void putStateTerm(State stateTerm)

getFeature

public Feature getFeature(UUID uuid)

putFeature

public void putFeature(Feature feature)

getMeasurementUnit

public MeasurementUnit getMeasurementUnit(UUID uuid)

putStatisticalMeasure

public void putStatisticalMeasure(StatisticalMeasure unit)

getStatisticalMeasure

public StatisticalMeasure getStatisticalMeasure(UUID uuid)

putMeasurementUnit

public void putMeasurementUnit(MeasurementUnit unit)

getModifier

public Modifier getModifier(UUID uuid)

putModifier

public void putModifier(Modifier unit)

getTaxonRelationshipType

public TaxonRelationshipType getTaxonRelationshipType(UUID uuid)

putTaxonRelationshipType

public void putTaxonRelationshipType(TaxonRelationshipType relType)

getPresenceTerm

public PresenceTerm getPresenceTerm(UUID uuid)

putPresenceTerm

public void putPresenceTerm(PresenceTerm presenceTerm)

getLanguage

public Language getLanguage(UUID uuid)

putLanguage

public void putLanguage(Language language)

getReferenceSystem

public ReferenceSystem getReferenceSystem(UUID uuid)

putReferenceSystem

public void putReferenceSystem(ReferenceSystem referenceSystem)

getTransformer

public IInputTransformer getTransformer()

setTransformer

public void setTransformer(IInputTransformer transformer)

isCheck

public boolean isCheck()
Returns true, if this import is in validation state. Flase otherwise

Returns:

setCheck

public void setCheck(boolean isCheck)
Parameters:
isCheck -
See Also:
isCheck


Copyright © 2007-2013 EDIT. All Rights Reserved.