public class AssetConverter extends Object
| Constructor and Description |
|---|
AssetConverter(String sourceName,
OMRSRepositoryHelper repositoryHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildElement(Element parentElement,
Element element)
Method use to add the parent element to the current element in the built context tree
|
void |
addContextElement(AssetElement assetElement,
EntityDetail entityDetail)
Method use to add to the context of the given entity
|
void |
addElement(AssetElement assetElement,
EntityDetail entityDetail)
Add an element in the context.
|
AssetElements |
buildAssetElements(EntityDetail entityDetail)
Create an Asset Element from the Entity Details
|
List<Classification> |
convertClassifications(List<Classification> classificationsFromEntity)
Convert a list of Classifications from the OMRS model to Asset Catalog OMAS model
|
Relationship |
convertRelationship(Relationship rel)
Method used to convert the relationship from the OMRS model to AC OMAS model
|
List<Relationship> |
convertRelationships(List<Relationship> relationships)
Method used to covert a list of relationships from OMRS model to AC OMAS model
|
Type |
convertType(TypeDef openType)
Method used to convert TypeDef to Type object from the Asset Catalog OMAS
|
AssetDescription |
getAssetDescription(EntityDetail entityDetail)
Method used to convert the Entity Details to Asset Catalog OMAS Model - Asset Description object
|
Element |
getLastNode(AssetElement assetElement)
Returns the last node added in the context
|
public AssetConverter(String sourceName, OMRSRepositoryHelper repositoryHelper)
public AssetDescription getAssetDescription(EntityDetail entityDetail)
entityDetail - entityDetails objectpublic List<Relationship> convertRelationships(List<Relationship> relationships)
relationships - list of relationships - OMRS modelpublic Relationship convertRelationship(Relationship rel)
rel - relationship in the OMRS modelpublic List<Classification> convertClassifications(List<Classification> classificationsFromEntity)
classificationsFromEntity - - list of classification in the repository services modelpublic void addElement(AssetElement assetElement, EntityDetail entityDetail)
assetElement - the contextentityDetail - entity details of the new elementpublic Element getLastNode(AssetElement assetElement)
assetElement - given contextpublic void addChildElement(Element parentElement, Element element)
parentElement - parent element from the contextelement - a child elementpublic void addContextElement(AssetElement assetElement, EntityDetail entityDetail)
assetElement - asset element that contains the current contextentityDetail - entity detailspublic Type convertType(TypeDef openType)
openType - type definitionpublic AssetElements buildAssetElements(EntityDetail entityDetail)
entityDetail - entityDetailsCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.