public abstract class ImportStateBase<CONFIG extends ImportConfiguratorBase,IO extends CdmImportBase> extends IoStateBase<CONFIG,IO,ImportResult>
Modifier and Type | Field and Description |
---|---|
protected IService<CdmBase> |
service |
protected java.util.Map<java.lang.String,MapWrapper<? extends CdmBase>> |
stores |
config
Modifier | Constructor and Description |
---|---|
protected |
ImportStateBase(CONFIG config) |
Modifier and Type | Method and Description |
---|---|
int |
countTrees() |
int |
countTreeUuids() |
AnnotationType |
getAnnotationType(java.util.UUID uuid) |
ExtensionType |
getExtensionType(java.util.UUID uuid) |
Feature |
getFeature(java.util.UUID uuid) |
DefinedTerm |
getIdentifierType(java.util.UUID uuid) |
DefinedTerm |
getKindOfUnit(java.util.UUID uuid) |
Language |
getLanguage(java.util.UUID uuid) |
MarkerType |
getMarkerType(java.util.UUID uuid) |
MeasurementUnit |
getMeasurementUnit(java.util.UUID uuid) |
DefinedTerm |
getModifier(java.util.UUID uuid) |
NamedArea |
getNamedArea(java.util.UUID uuid) |
NamedAreaLevel |
getNamedAreaLevel(java.util.UUID uuid) |
NomenclaturalStatusType |
getNomenclaturalStatusType(java.util.UUID uuid) |
PresenceAbsenceTerm |
getPresenceAbsenceTerm(java.util.UUID uuid) |
Rank |
getRank(java.util.UUID uuid) |
ReferenceSystem |
getReferenceSystem(java.util.UUID uuid) |
byte[] |
getReportAsByteArray()
Returns the import report as a byte array
|
State |
getStateTerm(java.util.UUID uuid) |
StatisticalMeasure |
getStatisticalMeasure(java.util.UUID uuid) |
java.lang.Object |
getStatusItem(java.lang.String key) |
MapWrapper<? extends CdmBase> |
getStore(java.lang.String storeLabel) |
java.util.Map<java.lang.String,MapWrapper<? extends CdmBase>> |
getStores() |
TaxonRelationshipType |
getTaxonRelationshipType(java.util.UUID uuid) |
TermVocabulary<?> |
getTermedVocabulary(java.util.UUID uuid) |
IInputTransformer |
getTransformer() |
Classification |
getTree(java.lang.Object ref) |
java.util.UUID |
getTreeUuid(Reference ref) |
java.util.UUID |
getTreeUuidByIntTreeKey(int treeKey) |
java.util.UUID |
getTreeUuidByTreeKey(java.lang.String treeKey) |
boolean |
isCheck()
Returns true, if this import is in validation state.
|
boolean |
isSuccess() |
void |
putAnnotationType(AnnotationType annotationType) |
void |
putClassificationUuid(java.lang.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 |
putIdentifierType(DefinedTerm identifierType) |
void |
putKindOfUnit(DefinedTerm unit) |
void |
putLanguage(Language language) |
void |
putMarkerType(MarkerType markerType) |
void |
putMeasurementUnit(MeasurementUnit unit) |
void |
putModifier(DefinedTerm unit) |
void |
putNamedArea(NamedArea namedArea) |
void |
putNamedAreaLevel(NamedAreaLevel namedAreaLevel) |
void |
putNomenclaturalStatusType(NomenclaturalStatusType feature) |
void |
putPresenceAbsenceTerm(PresenceAbsenceTerm presenceTerm) |
void |
putRank(Rank rank) |
void |
putReferenceSystem(ReferenceSystem referenceSystem) |
void |
putStateTerm(State stateTerm) |
void |
putStatisticalMeasure(StatisticalMeasure unit) |
void |
putStatusItem(java.lang.String key,
java.lang.Object statusItem) |
void |
putTaxonRelationshipType(TaxonRelationshipType relType) |
void |
putTermedVocabularyMap(TermVocabulary<?> termedVocabulary) |
void |
putTree(java.lang.Object ref,
Classification tree) |
void |
putTreeUuid(Reference ref,
Classification tree) |
void |
resetUuidTermMaps()
Resets (empties) all maps which map a uuid to a
term . |
void |
setCheck(boolean isCheck) |
void |
setStores(java.util.Map<java.lang.String,MapWrapper<? extends CdmBase>> stores) |
void |
setSuccess(boolean success) |
void |
setTransformer(IInputTransformer transformer) |
void |
setUnsuccessfull() |
getConfig, getCurrentIO, getResult, initialize, setConfig, setCurrentIO, setResult
protected java.util.Map<java.lang.String,MapWrapper<? extends CdmBase>> stores
protected ImportStateBase(CONFIG config)
public void resetUuidTermMaps()
term
.
This is usually needed when a a new transaction is opened and user defined terms are reused.public java.util.Map<java.lang.String,MapWrapper<? extends CdmBase>> getStores()
public void setStores(java.util.Map<java.lang.String,MapWrapper<? extends CdmBase>> stores)
public MapWrapper<? extends CdmBase> getStore(java.lang.String storeLabel)
public Classification getTree(java.lang.Object ref)
public void putTree(java.lang.Object ref, Classification tree)
public int countTrees()
public java.util.UUID getTreeUuid(Reference ref)
public void putTreeUuid(Reference ref, Classification tree)
public int countTreeUuids()
public void putClassificationUuidInt(int classificationKeyId, Classification classification)
classificationKeyId
- classification
- public void putClassificationUuid(java.lang.String treeKey, Classification tree)
public java.util.UUID getTreeUuidByIntTreeKey(int treeKey)
public java.util.UUID getTreeUuidByTreeKey(java.lang.String treeKey)
public DefinedTerm getIdentifierType(java.util.UUID uuid)
public void putIdentifierType(DefinedTerm identifierType)
public ExtensionType getExtensionType(java.util.UUID uuid)
public void putExtensionType(ExtensionType extensionType)
public MarkerType getMarkerType(java.util.UUID uuid)
public void putMarkerType(MarkerType markerType)
public AnnotationType getAnnotationType(java.util.UUID uuid)
public void putAnnotationType(AnnotationType annotationType)
public NamedArea getNamedArea(java.util.UUID uuid)
public void putNamedArea(NamedArea namedArea)
public NamedAreaLevel getNamedAreaLevel(java.util.UUID uuid)
public void putNamedAreaLevel(NamedAreaLevel namedAreaLevel)
public Rank getRank(java.util.UUID uuid)
public void putRank(Rank rank)
public State getStateTerm(java.util.UUID uuid)
public void putStateTerm(State stateTerm)
public Feature getFeature(java.util.UUID uuid)
public void putFeature(Feature feature)
public NomenclaturalStatusType getNomenclaturalStatusType(java.util.UUID uuid)
public void putNomenclaturalStatusType(NomenclaturalStatusType feature)
public DefinedTerm getKindOfUnit(java.util.UUID uuid)
public void putKindOfUnit(DefinedTerm unit)
public MeasurementUnit getMeasurementUnit(java.util.UUID uuid)
public void putMeasurementUnit(MeasurementUnit unit)
public void putStatisticalMeasure(StatisticalMeasure unit)
public StatisticalMeasure getStatisticalMeasure(java.util.UUID uuid)
public DefinedTerm getModifier(java.util.UUID uuid)
public void putModifier(DefinedTerm unit)
public TaxonRelationshipType getTaxonRelationshipType(java.util.UUID uuid)
public void putTaxonRelationshipType(TaxonRelationshipType relType)
public PresenceAbsenceTerm getPresenceAbsenceTerm(java.util.UUID uuid)
public void putPresenceAbsenceTerm(PresenceAbsenceTerm presenceTerm)
public Language getLanguage(java.util.UUID uuid)
public void putLanguage(Language language)
public ReferenceSystem getReferenceSystem(java.util.UUID uuid)
public void putReferenceSystem(ReferenceSystem referenceSystem)
public TermVocabulary<?> getTermedVocabulary(java.util.UUID uuid)
public void putTermedVocabularyMap(TermVocabulary<?> termedVocabulary)
public java.lang.Object getStatusItem(java.lang.String key)
public void putStatusItem(java.lang.String key, java.lang.Object statusItem)
public IInputTransformer getTransformer()
public void setTransformer(IInputTransformer transformer)
public boolean isCheck()
public void setCheck(boolean isCheck)
isCheck
- isCheck
public void setSuccess(boolean success)
public void setUnsuccessfull()
public boolean isSuccess()
public byte[] getReportAsByteArray()
Copyright © 2007-2020 EDIT. All Rights Reserved.