Package io.atlasmap.xml.module
Class XmlModule
- java.lang.Object
-
- io.atlasmap.core.BaseAtlasModule
-
- io.atlasmap.xml.module.XmlModule
-
- All Implemented Interfaces:
io.atlasmap.mxbean.AtlasModuleMXBean,io.atlasmap.spi.AtlasModule
public class XmlModule extends io.atlasmap.core.BaseAtlasModule
-
-
Constructor Summary
Constructors Constructor Description XmlModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.atlasmap.v2.FieldcloneField(io.atlasmap.v2.Field field)protected StringconvertFromXmlDocument(Document xml)Convert a target XML document into some format.protected DocumentconvertToXmlDocument(String source, boolean namespaced)Convert a source document into XML.protected io.atlasmap.spi.AtlasCollectionHelpercreateCollectionHelper(io.atlasmap.spi.AtlasFieldActionService fieldActionService)io.atlasmap.xml.v2.XmlFieldcreateField()protected XmlValidationServicecreateValidationService()protected io.atlasmap.xml.core.XmlIOHelpergetXmlIOHelper()voidinit()BooleanisSupportedField(io.atlasmap.v2.Field field)voidpopulateTargetField(io.atlasmap.spi.AtlasInternalSession session)voidprocessPostSourceExecution(io.atlasmap.spi.AtlasInternalSession session)voidprocessPostTargetExecution(io.atlasmap.spi.AtlasInternalSession session)voidprocessPreSourceExecution(io.atlasmap.spi.AtlasInternalSession session)voidprocessPreTargetExecution(io.atlasmap.spi.AtlasInternalSession session)voidprocessPreValidation(io.atlasmap.spi.AtlasInternalSession atlasSession)voidreadSourceValue(io.atlasmap.spi.AtlasInternalSession session)voidwriteTargetValue(io.atlasmap.spi.AtlasInternalSession session)-
Methods inherited from class io.atlasmap.core.BaseAtlasModule
applySourceFieldActions, applyTargetFieldActions, destroy, getClassLoader, getClassName, getCollectionHelper, getConversionService, getDataFormats, getDataSourceMetadata, getDocId, getDocName, getFieldActionService, getMode, getModeName, getName, getPackageNames, getSourceCount, getSourceErrorCount, getSourceMaxExecutionTime, getSourceMinExecutionTime, getSourceSuccessCount, getSourceTotalExecutionTime, getTargetCount, getTargetErrorCount, getTargetMaxExecutionTime, getTargetMinExecutionTime, getTargetSuccessCount, getTargetTotalExecutionTime, getUri, getUriDataType, getUriParameters, getUuid, getVersion, isAutomaticallyProcessOutputFieldActions, isSourceSupported, isStatisticsEnabled, isStatisticsSupported, isTargetSupported, listSupportedModes, processLookupField, processPostValidation, readAndResetStatistics, setAutomaticallyProcessOutputFieldActions, setClassLoader, setConversionService, setDataSourceMetadata, setDocId, setDocName, setFieldActionService, setMode, setStatisticsEnabled, setUri
-
-
-
-
Method Detail
-
init
public void init() throws io.atlasmap.api.AtlasException- Specified by:
initin interfaceio.atlasmap.spi.AtlasModule- Overrides:
initin classio.atlasmap.core.BaseAtlasModule- Throws:
io.atlasmap.api.AtlasException
-
processPreValidation
public void processPreValidation(io.atlasmap.spi.AtlasInternalSession atlasSession) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
createValidationService
protected XmlValidationService createValidationService()
-
processPreSourceExecution
public void processPreSourceExecution(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
convertToXmlDocument
protected Document convertToXmlDocument(String source, boolean namespaced) throws io.atlasmap.api.AtlasException
Convert a source document into XML. The modules extending this class can override this to convert some format into XML so that XML field reader can read it.- Parameters:
source- some document which can be converted to XML- Returns:
- converted
- Throws:
io.atlasmap.api.AtlasException
-
processPreTargetExecution
public void processPreTargetExecution(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
readSourceValue
public void readSourceValue(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
populateTargetField
public void populateTargetField(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Specified by:
populateTargetFieldin interfaceio.atlasmap.spi.AtlasModule- Overrides:
populateTargetFieldin classio.atlasmap.core.BaseAtlasModule- Throws:
io.atlasmap.api.AtlasException
-
createCollectionHelper
protected io.atlasmap.spi.AtlasCollectionHelper createCollectionHelper(io.atlasmap.spi.AtlasFieldActionService fieldActionService)
- Overrides:
createCollectionHelperin classio.atlasmap.core.BaseAtlasModule
-
writeTargetValue
public void writeTargetValue(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
processPostSourceExecution
public void processPostSourceExecution(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
processPostTargetExecution
public void processPostTargetExecution(io.atlasmap.spi.AtlasInternalSession session) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
convertFromXmlDocument
protected String convertFromXmlDocument(Document xml) throws io.atlasmap.api.AtlasException
Convert a target XML document into some format. The modules extending this class can override this to convert interim XML document written by XML field writer into final format.- Parameters:
xml- XML document written by XML field writer- Returns:
- converted
- Throws:
io.atlasmap.api.AtlasException
-
isSupportedField
public Boolean isSupportedField(io.atlasmap.v2.Field field)
- Specified by:
isSupportedFieldin interfaceio.atlasmap.spi.AtlasModule- Overrides:
isSupportedFieldin classio.atlasmap.core.BaseAtlasModule
-
cloneField
public io.atlasmap.v2.Field cloneField(io.atlasmap.v2.Field field) throws io.atlasmap.api.AtlasException- Throws:
io.atlasmap.api.AtlasException
-
createField
public io.atlasmap.xml.v2.XmlField createField()
-
getXmlIOHelper
protected io.atlasmap.xml.core.XmlIOHelper getXmlIOHelper()
-
-