Class DataStructureConverter<B>


public class DataStructureConverter<B> extends DataFieldConverter<B>
DataStructureConverter generates a DataStructureElement from a DataStructure entity and related elements.
  • Constructor Details

    • DataStructureConverter

      public DataStructureConverter(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 DataFieldConverter<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
    • getDataStructureProperties

      protected DataStructureProperties getDataStructureProperties(OpenMetadataElement primaryElement)
      Retrieve the dataStructure properties from the retrieved element.
      Parameters:
      primaryElement - element
      Returns:
      dataStructure properties
    • getEquivalentSchemaType

      protected RelatedMetadataElementSummary getEquivalentSchemaType(Class<B> beanClass, List<RelatedMetadataElement> relatedMetadataElements) throws PropertyServerException
      Summarize the elements linked off of the project in the project management list.
      Parameters:
      beanClass - bean class
      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 DataFieldConverter<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