Class Converter
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetlineage.util.Converter
-
public class Converter extends Object
The converter is used for creating and mapping required properties between different objects.
-
-
Constructor Summary
Constructors Constructor Description Converter(OMRSRepositoryHelper repositoryHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineageEntitycreateLineageEntity(EntityDetail entityDetail)Create entity lineage entity.LineageEntitycreateLineageEntityFromProxy(EntityProxy entityProxy)Create entity lineage entity starting from an entity proxyLineageRelationshipcreateLineageRelationship(Relationship relationship)Creates the lineage relationship.Map<String,String>instancePropertiesToMap(InstanceProperties properties)Retrieve the properties from an InstanceProperties object and return them as a map
-
-
-
Constructor Detail
-
Converter
public Converter(OMRSRepositoryHelper repositoryHelper)
-
-
Method Detail
-
createLineageEntity
public LineageEntity createLineageEntity(EntityDetail entityDetail)
Create entity lineage entity.- Parameters:
entityDetail- the entity detail- Returns:
- the lineage entity
-
createLineageEntityFromProxy
public LineageEntity createLineageEntityFromProxy(EntityProxy entityProxy)
Create entity lineage entity starting from an entity proxy- Parameters:
entityProxy- the entity proxy- Returns:
- the lineage entity
-
createLineageRelationship
public LineageRelationship createLineageRelationship(Relationship relationship)
Creates the lineage relationship.- Parameters:
relationship- the relationship details- Returns:
- the lineage relationship
-
instancePropertiesToMap
public Map<String,String> instancePropertiesToMap(InstanceProperties properties)
Retrieve the properties from an InstanceProperties object and return them as a map- Parameters:
properties- the properties- Returns:
- the map properties
-
-