Package io.atlasmap.core
Class DefaultAtlasSession
- java.lang.Object
-
- io.atlasmap.core.DefaultAtlasSession
-
- All Implemented Interfaces:
io.atlasmap.api.AtlasSession,io.atlasmap.spi.AtlasInternalSession
public class DefaultAtlasSession extends Object implements io.atlasmap.spi.AtlasInternalSession
-
-
Constructor Summary
Constructors Constructor Description DefaultAtlasSession(DefaultAtlasContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IntegererrorCount()DefaultAtlasContextgetAtlasContext()io.atlasmap.spi.AtlasPropertyStrategygetAtlasPropertyStrategy()io.atlasmap.v2.AuditsgetAudits()ConstantModulegetConstantModule()ObjectgetDefaultSourceDocument()ObjectgetDefaultTargetDocument()io.atlasmap.spi.AtlasFieldReadergetFieldReader(String docId)<T extends io.atlasmap.spi.AtlasFieldReader>
TgetFieldReader(String docId, Class<T> clazz)io.atlasmap.spi.AtlasFieldWritergetFieldWriter(String docId)<T extends io.atlasmap.spi.AtlasFieldWriter>
TgetFieldWriter(String docId, Class<T> clazz)io.atlasmap.v2.AtlasMappinggetMapping()Map<String,Object>getProperties()Deprecated.ObjectgetSourceDocument(String docId)Map<String,Object>getSourceDocumentMap()Map<String,Object>getSourceProperties()PropertyModulegetSourcePropertyModule()ObjectgetTargetDocument(String docId)Map<String,Object>getTargetDocumentMap()Map<String,Object>getTargetProperties()PropertyModulegetTargetPropertyModule()io.atlasmap.v2.ValidationsgetValidations()booleanhasErrors()booleanhasSourceDocument(String docId)booleanhasTargetDocument(String docId)booleanhasWarns()io.atlasmap.spi.AtlasInternalSession.Headhead()protected voidinitialize()io.atlasmap.spi.AtlasFieldReaderremoveFieldReader(String docId)io.atlasmap.spi.AtlasFieldWriterremoveFieldWriter(String docId)io.atlasmap.spi.AtlasModuleresolveModule(String docId)voidsetAtlasContext(io.atlasmap.api.AtlasContext atlasContext)voidsetAtlasPropertyStrategy(io.atlasmap.spi.AtlasPropertyStrategy strategy)voidsetAudits(io.atlasmap.v2.Audits audits)voidsetDefaultSourceDocument(Object sourceDoc)voidsetDefaultTargetDocument(Object targetDoc)voidsetFieldReader(String docId, io.atlasmap.spi.AtlasFieldReader reader)voidsetFieldWriter(String docId, io.atlasmap.spi.AtlasFieldWriter writer)voidsetSourceDocument(String docId, Object sourceDoc)voidsetTargetDocument(String docId, Object targetDoc)voidsetValidations(io.atlasmap.v2.Validations validations)IntegerwarnCount()
-
-
-
Constructor Detail
-
DefaultAtlasSession
public DefaultAtlasSession(DefaultAtlasContext context) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
-
Method Detail
-
initialize
protected void initialize()
-
getAtlasContext
public DefaultAtlasContext getAtlasContext()
- Specified by:
getAtlasContextin interfaceio.atlasmap.api.AtlasSession
-
setAtlasContext
public void setAtlasContext(io.atlasmap.api.AtlasContext atlasContext)
- Specified by:
setAtlasContextin interfaceio.atlasmap.api.AtlasSession
-
getMapping
public io.atlasmap.v2.AtlasMapping getMapping()
- Specified by:
getMappingin interfaceio.atlasmap.api.AtlasSession
-
getValidations
public io.atlasmap.v2.Validations getValidations()
- Specified by:
getValidationsin interfaceio.atlasmap.api.AtlasSession
-
setValidations
public void setValidations(io.atlasmap.v2.Validations validations)
- Specified by:
setValidationsin interfaceio.atlasmap.api.AtlasSession
-
getAudits
public io.atlasmap.v2.Audits getAudits()
- Specified by:
getAuditsin interfaceio.atlasmap.api.AtlasSession
-
setAudits
public void setAudits(io.atlasmap.v2.Audits audits)
- Specified by:
setAuditsin interfaceio.atlasmap.api.AtlasSession
-
getDefaultSourceDocument
public Object getDefaultSourceDocument()
- Specified by:
getDefaultSourceDocumentin interfaceio.atlasmap.api.AtlasSession
-
getSourceDocument
public Object getSourceDocument(String docId)
- Specified by:
getSourceDocumentin interfaceio.atlasmap.api.AtlasSession
-
hasSourceDocument
public boolean hasSourceDocument(String docId)
- Specified by:
hasSourceDocumentin interfaceio.atlasmap.api.AtlasSession
-
getSourceDocumentMap
public Map<String,Object> getSourceDocumentMap()
- Specified by:
getSourceDocumentMapin interfaceio.atlasmap.api.AtlasSession
-
getDefaultTargetDocument
public Object getDefaultTargetDocument()
- Specified by:
getDefaultTargetDocumentin interfaceio.atlasmap.api.AtlasSession
-
getTargetDocument
public Object getTargetDocument(String docId)
- Specified by:
getTargetDocumentin interfaceio.atlasmap.api.AtlasSession
-
hasTargetDocument
public boolean hasTargetDocument(String docId)
- Specified by:
hasTargetDocumentin interfaceio.atlasmap.api.AtlasSession
-
getTargetDocumentMap
public Map<String,Object> getTargetDocumentMap()
- Specified by:
getTargetDocumentMapin interfaceio.atlasmap.api.AtlasSession
-
setDefaultSourceDocument
public void setDefaultSourceDocument(Object sourceDoc)
- Specified by:
setDefaultSourceDocumentin interfaceio.atlasmap.api.AtlasSession
-
setSourceDocument
public void setSourceDocument(String docId, Object sourceDoc)
- Specified by:
setSourceDocumentin interfaceio.atlasmap.api.AtlasSession
-
setDefaultTargetDocument
public void setDefaultTargetDocument(Object targetDoc)
- Specified by:
setDefaultTargetDocumentin interfaceio.atlasmap.api.AtlasSession
-
setTargetDocument
public void setTargetDocument(String docId, Object targetDoc)
- Specified by:
setTargetDocumentin interfaceio.atlasmap.api.AtlasSession
-
getFieldReader
public io.atlasmap.spi.AtlasFieldReader getFieldReader(String docId)
- Specified by:
getFieldReaderin interfaceio.atlasmap.spi.AtlasInternalSession
-
getFieldReader
public <T extends io.atlasmap.spi.AtlasFieldReader> T getFieldReader(String docId, Class<T> clazz)
- Specified by:
getFieldReaderin interfaceio.atlasmap.spi.AtlasInternalSession
-
setFieldReader
public void setFieldReader(String docId, io.atlasmap.spi.AtlasFieldReader reader)
- Specified by:
setFieldReaderin interfaceio.atlasmap.spi.AtlasInternalSession
-
removeFieldReader
public io.atlasmap.spi.AtlasFieldReader removeFieldReader(String docId)
- Specified by:
removeFieldReaderin interfaceio.atlasmap.spi.AtlasInternalSession
-
getFieldWriter
public io.atlasmap.spi.AtlasFieldWriter getFieldWriter(String docId)
- Specified by:
getFieldWriterin interfaceio.atlasmap.spi.AtlasInternalSession
-
getFieldWriter
public <T extends io.atlasmap.spi.AtlasFieldWriter> T getFieldWriter(String docId, Class<T> clazz)
- Specified by:
getFieldWriterin interfaceio.atlasmap.spi.AtlasInternalSession
-
setFieldWriter
public void setFieldWriter(String docId, io.atlasmap.spi.AtlasFieldWriter writer)
- Specified by:
setFieldWriterin interfaceio.atlasmap.spi.AtlasInternalSession
-
removeFieldWriter
public io.atlasmap.spi.AtlasFieldWriter removeFieldWriter(String docId)
- Specified by:
removeFieldWriterin interfaceio.atlasmap.spi.AtlasInternalSession
-
head
public io.atlasmap.spi.AtlasInternalSession.Head head()
- Specified by:
headin interfaceio.atlasmap.spi.AtlasInternalSession
-
getProperties
@Deprecated public Map<String,Object> getProperties()
Deprecated.- Specified by:
getPropertiesin interfaceio.atlasmap.api.AtlasSession
-
getSourceProperties
public Map<String,Object> getSourceProperties()
- Specified by:
getSourcePropertiesin interfaceio.atlasmap.api.AtlasSession
-
getTargetProperties
public Map<String,Object> getTargetProperties()
- Specified by:
getTargetPropertiesin interfaceio.atlasmap.api.AtlasSession
-
getAtlasPropertyStrategy
public io.atlasmap.spi.AtlasPropertyStrategy getAtlasPropertyStrategy()
- Specified by:
getAtlasPropertyStrategyin interfaceio.atlasmap.api.AtlasSession
-
setAtlasPropertyStrategy
public void setAtlasPropertyStrategy(io.atlasmap.spi.AtlasPropertyStrategy strategy)
- Specified by:
setAtlasPropertyStrategyin interfaceio.atlasmap.api.AtlasSession
-
errorCount
public Integer errorCount()
- Specified by:
errorCountin interfaceio.atlasmap.api.AtlasSession
-
hasErrors
public boolean hasErrors()
- Specified by:
hasErrorsin interfaceio.atlasmap.api.AtlasSession
-
hasWarns
public boolean hasWarns()
- Specified by:
hasWarnsin interfaceio.atlasmap.api.AtlasSession
-
warnCount
public Integer warnCount()
- Specified by:
warnCountin interfaceio.atlasmap.api.AtlasSession
-
resolveModule
public io.atlasmap.spi.AtlasModule resolveModule(String docId)
- Specified by:
resolveModulein interfaceio.atlasmap.spi.AtlasInternalSession
-
getConstantModule
public ConstantModule getConstantModule()
-
getSourcePropertyModule
public PropertyModule getSourcePropertyModule()
-
getTargetPropertyModule
public PropertyModule getTargetPropertyModule()
-
-