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 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 Details

  • 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 convert
      relationship - properties to convert
      repositoryHelper - helper object to parse entity/relationship
      serviceName - name of this component
      serverName - called server
  • Method Details

    • setTypeName

      protected void setTypeName()
      Extract the type name from the entity (if not null).
    • updateBean

      public void updateBean(ElementBase bean)
      Extract the properties from the entity.
      Parameters:
      bean - output bean