java.lang.Object
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
Direct Known Subclasses:
AssetConverter

public class ReferenceableConverter extends ElementHeaderConverter
ReferenceableConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS) EntityDetail object into a ReferenceableHeader bean.
  • Constructor Details

    • ReferenceableConverter

      public ReferenceableConverter(EntityDetail entity, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
      Constructor captures the initial content
      Parameters:
      entity - properties to convert
      repositoryHelper - helper object to parse entity
      serviceName - name of this component
      serverName - 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 convert
      relationship - properties to convert
      repositoryHelper - helper object to parse entity/relationship
      serviceName - name of this component
      serverName - called server
  • Method Details

    • 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