Class MetadataRelationshipSummaryConverter<B>

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

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

    • MetadataRelationshipSummaryConverter

      public MetadataRelationshipSummaryConverter(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

    • getNewRelatedMetadataElementsBean

      public B getNewRelatedMetadataElementsBean(Class<B> beanClass, OpenMetadataRelationship relationship, String methodName) throws PropertyServerException
      Using the supplied relationship, return a new instance of the bean. It is used for beans that represent a simple relationship between two entities.
      Overrides:
      getNewRelatedMetadataElementsBean in class OpenMetadataConverterBase<B>
      Parameters:
      beanClass - name of the class to create
      relationship - relationship linking the entities
      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, List<OpenMetadataRelationship> openMetadataRelationships, 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
      openMetadataRelationships - list of openMetadataRelationships containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean