Class SchemaTypeConverter<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.converters.SchemaTypeConverter<B>
public class SchemaTypeConverter<B>
extends org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
SchemaTypeConverter transfers the relevant properties from an Open Metadata Repository Services (OMRS)
EntityDetail object into an SchemaType bean.
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaTypeConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetNewSchemaTypeBean(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.OMFConverter
getRelatedElement, getRelatedElementMethods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter
addSchemaTypeToAttribute, getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, removeKeyPattern, removeSortOrder, setUpSchemaAttribute
-
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 entityserviceName- name of this componentserverName- 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:
getNewSchemaTypeBeanin classorg.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>- Parameters:
beanClass- name of the class to createschemaRootHeader- unique identifier of the schema element that holds the root informationschemaTypeTypeName- name of type of the schema type to createinstanceProperties- properties describing the schema typeattributeCount- 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/assetsmapFromSchemaType- bean containing the properties of the schema type that is part of a map definitionmapToSchemaType- bean containing the properties of the schema type that is part of a map definitionschemaTypeOptions- list of schema types that could be the type for this attributemethodName- 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
-