Class AssetConverter
java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.AssetConverter
AssetConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS)
EntityDetail object into an Asset bean.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
entity, relationship, repositoryHelper, serverName, serviceName, typeName
-
Constructor Summary
ConstructorDescriptionAssetConverter
(EntityDetail assetEntity, Relationship connectionToAssetRelationship, OMRSRepositoryHelper repositoryHelper, String serviceName) Constructor captures the initial content with connectionToAssetRelationshipAssetConverter
(EntityDetail assetEntity, Relationship connectionToAssetRelationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with connectionToAssetRelationship -
Method Summary
Modifier and TypeMethodDescriptionRequest the bean is extracted from the repository objectsprotected Asset
This method is overridable by the subclasses.protected void
updateBean
(Asset bean) Request the bean is extracted from the repository objectsMethods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
getBean, getClassificationProperties, updateBean
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
setTypeName, updateBean
-
Constructor Details
-
AssetConverter
public AssetConverter(EntityDetail assetEntity, Relationship connectionToAssetRelationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with connectionToAssetRelationship- Parameters:
assetEntity
- properties to convertconnectionToAssetRelationship
- properties to convertrepositoryHelper
- helper object to parse entity/relationship objectsserviceName
- name of this componentserverName
- called server
-
AssetConverter
public AssetConverter(EntityDetail assetEntity, Relationship connectionToAssetRelationship, OMRSRepositoryHelper repositoryHelper, String serviceName) Constructor captures the initial content with connectionToAssetRelationship- Parameters:
assetEntity
- properties to convertconnectionToAssetRelationship
- properties to convertrepositoryHelper
- helper object to parse entity/relationship objectsserviceName
- name of this component
-
-
Method Details
-
getNewBean
This method is overridable by the subclasses.- Returns:
- empty bean
-
getAssetBean
Request the bean is extracted from the repository objects- Returns:
- output bean
-
updateBean
Request the bean is extracted from the repository objects- Parameters:
bean
- output bean
-