Package io.atlasmap.builder
Class DefaultAtlasMappingBuilder
java.lang.Object
io.atlasmap.builder.DefaultAtlasMappingBuilder
- All Implemented Interfaces:
AtlasMappingBuilder
A base
AtlasMappingBuilder with some common utility methods.
In most cases user can extend this class and just implement processMapping().- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGetDefaultAtlasSession.voidprocess()Define custom mapping logic.abstract voidDefine custom mapping logic.readConstant(String name) readProperty(String scope, String name) voidsetAtlasSession(AtlasSession session) SetAtlasSession.void
-
Constructor Details
-
DefaultAtlasMappingBuilder
public DefaultAtlasMappingBuilder()
-
-
Method Details
-
read
- Throws:
AtlasException
-
readConstant
- Throws:
AtlasException
-
readProperty
- Throws:
AtlasException
-
write
- Throws:
AtlasException
-
process
public void process()Description copied from interface:AtlasMappingBuilderDefine custom mapping logic. User can implement this interface and define custom mapping logic in this method.- Specified by:
processin interfaceAtlasMappingBuilder
-
processMapping
Define custom mapping logic. User can extend this class and implement custom mapping logic in this method. The thrown Exception will be catched inprocess()and added as an Audit.- Throws:
Exception- Indicate mapping error to be recorded as an Audit
-
setAtlasSession
Description copied from interface:AtlasMappingBuilderSetAtlasSession.- Specified by:
setAtlasSessionin interfaceAtlasMappingBuilder- Parameters:
session-AtlasSession- Throws:
AtlasException
-
getAtlasSession
GetDefaultAtlasSession.- Returns:
AtlasSession.
-
addAudit
-