Class ElementHeaderConverter
java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
- Direct Known Subclasses:
ReferenceableConverter
ElementHeaderConverter provides the root converter for the element beans.
This root converter covers the OCF ElementBase attributes: type (ElementType), guid, url and the classifications.
It leaves extendedProperties to the sub lasses
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
Modifier and TypeFieldDescriptionprotected EntityDetail
protected Relationship
protected OMRSRepositoryHelper
protected String
protected String
protected String
-
Constructor Summary
ConstructorDescriptionElementHeaderConverter
(EntityDetail entity, Relationship relationship, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor captures the initial content with relationship -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Extract the type name from the entity (if not null).void
updateBean
(ElementBase bean) Extract the properties from the entity.
-
Field Details
-
entity
-
relationship
-
repositoryHelper
-
serviceName
-
serverName
-
typeName
-
-
Constructor Details
-
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 Details
-
setTypeName
protected void setTypeName()Extract the type name from the entity (if not null). -
updateBean
Extract the properties from the entity.- Parameters:
bean
- output bean
-