java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>
org.odpi.openmetadata.frameworks.governanceaction.converters.DataFieldConverter<B>
Direct Known Subclasses:
DataStructureConverter

public class DataFieldConverter<B> extends OpenMetadataConverterBase<B>
DataFieldConverter generates a DataFieldElement from a DataField entity and related elements.
  • Constructor Details

    • DataFieldConverter

      public DataFieldConverter(PropertyHelper propertyHelper, String serviceName, String serverName)
      Constructor
      Parameters:
      propertyHelper - helper object to parse entity
      serviceName - name of this component
      serverName - local server name
  • Method Details

    • getNewBean

      public B getNewBean(Class<B> beanClass, OpenMetadataElement primaryElement, String methodName) throws PropertyServerException
      Using the supplied instances, return a new instance of the bean. It is used for beans such as an Annotation or To Do bean which combine knowledge from the element and its linked relationships.
      Overrides:
      getNewBean in class OpenMetadataConverterBase<B>
      Parameters:
      beanClass - name of the class to create
      primaryElement - element that is the root of the collection of entities that make up the content of the bean
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean
    • getDataFieldProperties

      protected DataFieldProperties getDataFieldProperties(OpenMetadataElement primaryElement)
      Retrieve the data field properties from the retrieved element.
      Parameters:
      primaryElement - element
      Returns:
      dataStructure properties
    • getMemberDataFieldProperties

      public MemberDataFieldProperties getMemberDataFieldProperties(RelatedMetadataElement relatedMetadataElement)
      Retrieve the member data field properties from the retrieved relationship.
      Parameters:
      relatedMetadataElement - element
      Returns:
      dataStructure properties
    • getMoreInformation

      protected List<RelatedMetadataElementSummary> getMoreInformation(Class<B> beanClass, String elementTypeName, List<RelatedMetadataElement> relatedMetadataElements) throws PropertyServerException
      Summarize the elements linked via the MoreInformation relationship.
      Parameters:
      beanClass - bean class
      elementTypeName - type of the element to process
      relatedMetadataElements - elements to summarize
      Returns:
      list or null
      Throws:
      PropertyServerException - problem in converter
    • getNewComplexBean

      public B getNewComplexBean(Class<B> beanClass, OpenMetadataElement primaryElement, List<RelatedMetadataElement> relationships, String methodName) throws PropertyServerException
      Using the supplied instances, return a new instance of the bean. It is used for beans such as an Annotation or To Do bean which combine knowledge from the element and its linked relationships.
      Overrides:
      getNewComplexBean in class OpenMetadataConverterBase<B>
      Parameters:
      beanClass - name of the class to create
      primaryElement - element that is the root of the collection of entities that make up the content of the bean
      relationships - relationships linking the entities
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean