Class StewardshipActionOMASConverter<B>

  • Direct Known Subclasses:
    ElementStubConverter

    public class StewardshipActionOMASConverter<B>
    extends OpenMetadataAPIGenericConverter<B>
    StewardshipActionOMASConverter provides the generic methods for the Data Manager beans converters. Generic classes have limited knowledge of the classes these are working on and this means creating a new instance of a class from within a generic is a little involved. This class provides the generic method for creating and initializing a Data Manager bean.
    • Constructor Detail

      • StewardshipActionOMASConverter

        public StewardshipActionOMASConverter​(OMRSRepositoryHelper repositoryHelper,
                                              String serviceName,
                                              String serverName)
        Constructor
        Parameters:
        repositoryHelper - helper object to parse entity
        serviceName - name of this component
        serverName - name of this server
    • Method Detail

      • getMetadataElementHeader

        public ElementHeader getMetadataElementHeader​(Class<B> beanClass,
                                                      InstanceHeader header,
                                                      List<Classification> entityClassifications,
                                                      String methodName)
                                               throws PropertyServerException
        Extract the properties from the instance.
        Parameters:
        beanClass - name of the class to create
        header - header from the entity containing the properties
        entityClassifications - classifications (entity and entity proxy only)
        methodName - calling method
        Returns:
        filled out element header
        Throws:
        PropertyServerException - there is a problem in the use of the generic handlers because the converter has been configured with a type of bean that is incompatible with the handler