public class SchemaTypeConverter<B> extends OCFConverter<B>
SchemaTypeConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS) EntityDetail object into an SchemaType bean.
  • Constructor Details

    • SchemaTypeConverter

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

    • getNewSchemaTypeBean

      public B getNewSchemaTypeBean(Class<B> beanClass, InstanceHeader schemaRootHeader, String schemaTypeTypeName, InstanceProperties instanceProperties, List<Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, B externalSchemaType, B mapFromSchemaType, B mapToSchemaType, List<B> schemaTypeOptions, String methodName) throws PropertyServerException
      Return the converted bean. This is a special method used for schema types since they are stored as a collection of instances.
      Overrides:
      getNewSchemaTypeBean in class OpenMetadataAPIGenericConverter<B>
      Parameters:
      beanClass - name of the class to create
      schemaRootHeader - unique identifier of the schema element that holds the root information
      schemaTypeTypeName - name of type of the schema type to create
      instanceProperties - properties describing the schema type
      attributeCount - number of attributes (for a complex schema type)
      validValueSetGUID - unique identifier of the set of valid values (for an enum schema type)
      externalSchemaType - bean containing the properties of the schema type that is shared by multiple attributes/assets
      mapFromSchemaType - bean containing the properties of the schema type that is part of a map definition
      mapToSchemaType - bean containing the properties of the schema type that is part of a map definition
      schemaTypeOptions - list of schema types that could be the type for this attribute
      methodName - calling method
      schemaRootClassifications - classifications from the schema root entity
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      PropertyServerException - there is a problem instantiating the bean