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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneField(Field field) protected StringConvert a target XML document into some format.protected DocumentconvertToXmlDocument(String source, boolean namespaced) Convert a source document into XML.protected AtlasCollectionHelpercreateCollectionHelper(AtlasFieldActionService fieldActionService) protected XmlValidationServiceprotected XmlIOHelpervoidinit()isSupportedField(Field field) voidpopulateTargetField(AtlasInternalSession session) Populate target field value, usually by just copy from source field value.voidvoidvoidvoidvoidprocessPreValidation(AtlasInternalSession atlasSession) voidreadSourceValue(AtlasInternalSession session) Read source field value from source document and store into source field object.voidwriteTargetValue(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:
initin interfaceAtlasModule- Overrides:
initin 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:AtlasModuleRead 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:AtlasModulePopulate target field value, usually by just copy from source field value. Also apply type converters where it's needed.- Specified by:
populateTargetFieldin interfaceAtlasModule- Overrides:
populateTargetFieldin classBaseAtlasModule- Parameters:
session- current session- Throws:
AtlasException- failed to populate target field value
-
createCollectionHelper
- Overrides:
createCollectionHelperin classBaseAtlasModule
-
writeTargetValue
Description copied from interface:AtlasModuleWrite 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:
isSupportedFieldin interfaceAtlasModule- Overrides:
isSupportedFieldin classBaseAtlasModule
-
cloneField
- Throws:
AtlasException
-
createField
-
getXmlIOHelper
-