java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.commonservices.generichandlers.OCFConverter<B>
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.converters.SchemaTypeConverter<B>

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

    Constructors
    Constructor
    Description
    SchemaTypeConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    getNewSchemaTypeBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader schemaRootHeader, String schemaTypeTypeName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, B externalSchemaType, B mapFromSchemaType, B mapToSchemaType, List<B> schemaTypeOptions, String methodName)
    Return the converted bean.

    Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter

    getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SchemaTypeConverter

      public SchemaTypeConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.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, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader schemaRootHeader, String schemaTypeTypeName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification> schemaRootClassifications, int attributeCount, String validValueSetGUID, B externalSchemaType, B mapFromSchemaType, B mapToSchemaType, List<B> schemaTypeOptions, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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 org.odpi.openmetadata.commonservices.generichandlers.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
      Returns:
      bean populated with properties from the instances supplied
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem instantiating the bean