Class BitolMappingResult
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.mapping.BitolMappingResult
BitolMappingResult describes the outcome of cataloguing a Bitol document into open metadata: the unique identifier
of the element that represents the document, whether it was created, updated or removed, and any parts of the
document that could not be fully represented (for example a team member whose user identity is not known to Egeria,
or a data contract that is referenced but not yet catalogued).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe action taken on the element that represents the document. -
Constructor Summary
ConstructorsConstructorDescriptionBitolMappingResult(String kind, String documentId, String documentVersion, String qualifiedName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWarning(String warning) Record a part of the document that could not be fully represented.Return the action taken.Return the identifier from the document.Return the version from the document.Return the unique identifier of the element that represents the document.getKind()Return the kind of document.Return the qualified name used for the element that represents the document.Return the parts of the document that could not be fully represented.voidsetAction(BitolMappingResult.Action action) Set up the action taken.voidsetElementGUID(String elementGUID) Set up the unique identifier of the element that represents the document.toString()Standard toString method.
-
Constructor Details
-
BitolMappingResult
public BitolMappingResult(String kind, String documentId, String documentVersion, String qualifiedName) Constructor.- Parameters:
kind- kind of documentdocumentId- identifier from the documentdocumentVersion- version from the documentqualifiedName- qualified name used for the element that represents the document
-
-
Method Details
-
getKind
Return the kind of document.- Returns:
- DataContract or DataProduct
-
getDocumentId
Return the identifier from the document.- Returns:
- string
-
getDocumentVersion
Return the version from the document.- Returns:
- string
-
getQualifiedName
Return the qualified name used for the element that represents the document.- Returns:
- string
-
getElementGUID
Return the unique identifier of the element that represents the document.- Returns:
- guid or null if the document was skipped
-
setElementGUID
Set up the unique identifier of the element that represents the document.- Parameters:
elementGUID- guid
-
getAction
Return the action taken.- Returns:
- enum
-
setAction
Set up the action taken.- Parameters:
action- enum
-
getWarnings
Return the parts of the document that could not be fully represented.- Returns:
- list of messages (empty if none)
-
addWarning
Record a part of the document that could not be fully represented.- Parameters:
warning- message
-
toString
Standard toString method.
-