Class StewardshipActionConverterBase<B>

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.converters.OpenMetadataConverterBase<B>
org.odpi.openmetadata.accessservices.stewardshipaction.client.converters.StewardshipActionConverterBase<B>
Type Parameters:
B - bean class
Direct Known Subclasses:
SurveyReportConverter

public abstract class StewardshipActionConverterBase<B> extends OpenMetadataConverterBase<B>
Base class converter for Stewardship Action OMAS.
  • Constructor Details

    • StewardshipActionConverterBase

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

    • getRelatedElement

      public RelatedElement getRelatedElement(Class<B> beanClass, OpenMetadataElement element, RelatedMetadataElements relationship, String methodName) throws PropertyServerException
      Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entity and that of a connected relationship.
      Parameters:
      beanClass - name of the class to create
      element - entity containing the properties
      relationship - relationship containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean
    • getRelatedElement

      public RelatedElement getRelatedElement(Class<B> beanClass, RelatedMetadataElement relatedMetadataElement, String methodName) throws PropertyServerException
      Using the supplied instances, return a new instance of a relatedElement bean. This is used for beans that contain a combination of the properties from an entity and that of a connected relationship.
      Parameters:
      beanClass - name of the class to create
      relatedMetadataElement - results containing the properties
      methodName - calling method
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean