Class RelatedMetadataElementSummaryConverter<B>

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>
org.odpi.openmetadata.frameworks.governanceaction.converters.RelatedMetadataElementSummaryConverter<B>

public class RelatedMetadataElementSummaryConverter<B> extends OpenMetadataConverterBase<B>
ToDoConverter generates a ToDoElement from a "To Do" entity
  • Constructor Details

    • RelatedMetadataElementSummaryConverter

      public RelatedMetadataElementSummaryConverter(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, RelatedMetadataElement relatedMetadataElement, String methodName) throws PropertyServerException
      Using the supplied openMetadataElement, return a new instance of the bean. This is used for most beans that have a one to one correspondence with the repository instances.
      Overrides:
      getNewBean in class OpenMetadataConverterBase<B>
      Parameters:
      beanClass - name of the class to create
      relatedMetadataElement - openMetadataElement containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean
    • getNewBeans

      public List<B> getNewBeans(Class<B> beanClass, RelatedMetadataElementList relatedMetadataElements, String methodName) throws PropertyServerException
      Using the supplied openMetadataElement, return a new instance of the bean. This is used for most beans that have a one to one correspondence with the repository instances.
      Parameters:
      beanClass - name of the class to create
      relatedMetadataElements - list of relatedMetadataElements containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean