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,ConnectionConverter,ConnectorTypeConverter,EndpointConverter,SchemaTypeConverter
public class ReferenceableConverter extends ElementHeaderConverter
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
Constructors Constructor Description ReferenceableConverter(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceablegetBean()Return the converted bean.protected InstancePropertiesgetClassificationProperties(String classificationName)Extract the properties for the requested classification from the entity.protected voidupdateBean(Referenceable bean)Set up the bean to convert.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
setTypeName, updateBean
-
-
-
-
Constructor Detail
-
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 Detail
-
updateBean
protected void updateBean(Referenceable bean)
Set up the bean to convert.- Parameters:
bean- output bean
-
getBean
public Referenceable getBean()
Return the converted bean.- Returns:
- bean populated with properties from the entity supplied in the constructor
-
getClassificationProperties
protected InstanceProperties getClassificationProperties(String classificationName)
Extract the properties for the requested classification from the entity.- Parameters:
classificationName- name of classification- Returns:
- list of properties for the named classification
-
-