Package io.atlasmap.xml.module
Class XmlModule
java.lang.Object
io.atlasmap.core.BaseAtlasModule
io.atlasmap.xml.module.XmlModule
- All Implemented Interfaces:
AtlasModuleMXBean
,AtlasModule
- Direct Known Subclasses:
DfdlModule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloneField
(Field field) protected String
Convert a target XML document into some format.protected Document
convertToXmlDocument
(String source, boolean namespaced) Convert a source document into XML.protected AtlasCollectionHelper
createCollectionHelper
(AtlasFieldActionService fieldActionService) protected XmlValidationService
protected XmlIOHelper
void
init()
isSupportedField
(Field field) void
populateTargetField
(AtlasInternalSession session) Populate target field value, usually by just copy from source field value.void
void
void
void
void
processPreValidation
(AtlasInternalSession atlasSession) void
readSourceValue
(AtlasInternalSession session) Read source field value from source document and store into source field object.void
writeTargetValue
(AtlasInternalSession session) Write target field value into target document.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
-
Constructor Details
-
XmlModule
public XmlModule()
-
-
Method Details
-
init
- Specified by:
init
in interfaceAtlasModule
- Overrides:
init
in classBaseAtlasModule
- Throws:
AtlasException
-
processPreValidation
- Throws:
AtlasException
-
createValidationService
-
processPreSourceExecution
- Throws:
AtlasException
-
convertToXmlDocument
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:
AtlasException
-
processPreTargetExecution
- Throws:
AtlasException
-
readSourceValue
Description copied from interface:AtlasModule
Read source field value from source document and store into source field object.- Parameters:
session
- current session- Throws:
AtlasException
- failed to read source value
-
populateTargetField
Description copied from interface:AtlasModule
Populate target field value, usually by just copy from source field value. Also apply type converters where it's needed.- Specified by:
populateTargetField
in interfaceAtlasModule
- Overrides:
populateTargetField
in classBaseAtlasModule
- Parameters:
session
- current session- Throws:
AtlasException
- failed to populate target field value
-
createCollectionHelper
- Overrides:
createCollectionHelper
in classBaseAtlasModule
-
writeTargetValue
Description copied from interface:AtlasModule
Write target field value into target document.- Parameters:
session
- current session- Throws:
AtlasException
- faield to write target field value
-
processPostSourceExecution
- Throws:
AtlasException
-
processPostTargetExecution
- Throws:
AtlasException
-
convertFromXmlDocument
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:
AtlasException
-
isSupportedField
- Specified by:
isSupportedField
in interfaceAtlasModule
- Overrides:
isSupportedField
in classBaseAtlasModule
-
cloneField
- Throws:
AtlasException
-
createField
-
getXmlIOHelper
-