Class ReferenceableConverter
java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
- Direct Known Subclasses:
AssetConverter
ReferenceableConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS)
EntityDetail object into a ReferenceableHeader bean.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
entity, relationship, repositoryHelper, serverName, serviceName, typeName
-
Constructor Summary
ConstructorDescriptionReferenceableConverter
(EntityDetail entity, Relationship relationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with relationshipReferenceableConverter
(EntityDetail entity, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content -
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Return the converted bean.protected InstanceProperties
getClassificationProperties
(String classificationName) Extract the properties for the requested classification from the entity.protected void
updateBean
(Referenceable bean) Set up the bean to convert.Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
setTypeName, updateBean
-
Constructor Details
-
ReferenceableConverter
public ReferenceableConverter(EntityDetail entity, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content- Parameters:
entity
- properties to convertrepositoryHelper
- helper object to parse entityserviceName
- name of this componentserverName
- called server
-
ReferenceableConverter
public ReferenceableConverter(EntityDetail entity, Relationship relationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with relationship- Parameters:
entity
- properties to convertrelationship
- properties to convertrepositoryHelper
- helper object to parse entity/relationshipserviceName
- name of this componentserverName
- called server
-
-
Method Details
-
updateBean
Set up the bean to convert.- Parameters:
bean
- output bean
-
getBean
Return the converted bean.- Returns:
- bean populated with properties from the entity supplied in the constructor
-
getClassificationProperties
Extract the properties for the requested classification from the entity.- Parameters:
classificationName
- name of classification- Returns:
- list of properties for the named classification
-