Class ElementHeaderConverter
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
-
- Direct Known Subclasses:
ReferenceableConverter
public class ElementHeaderConverter extends Object
ElementHeaderConverter provides the root converter for the Discovery Engine OMAS beans. These beans are defined in the Open Discovery Framework (ODF) and extend the Open Connector Framework (OCF) beans. This root converter covers the OCF ElementHeader attributes: type (ElementType), guid, url and the classifications. It leaves extendedProperties to the sub classes The root converter has two constructors. Once constructor is for an object that is built just from an entity (eg Discovery Engine Properties). The other is for an object built from a combination of connected entities. In this second case, the root entity and possibly a relevant relationship is passed on the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityDetailentityprotected Relationshiprelationshipprotected OMRSRepositoryHelperrepositoryHelperprotected StringserverNameprotected StringserviceNameprotected StringtypeName
-
Constructor Summary
Constructors Constructor Description ElementHeaderConverter(EntityDetail entity, Relationship relationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)Constructor captures the initial content with relationship
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetTypeName()Extract the type name from the entity (if not null).voidupdateBean(ElementHeader bean)Extract the properties from the entity.
-
-
-
Field Detail
-
entity
protected EntityDetail entity
-
relationship
protected Relationship relationship
-
repositoryHelper
protected OMRSRepositoryHelper repositoryHelper
-
serviceName
protected String serviceName
-
serverName
protected String serverName
-
typeName
protected String typeName
-
-
Constructor Detail
-
ElementHeaderConverter
public ElementHeaderConverter(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
-
setTypeName
protected void setTypeName()
Extract the type name from the entity (if not null).
-
updateBean
public void updateBean(ElementHeader bean)
Extract the properties from the entity.- Parameters:
bean- output bean
-
-