Class ClassificationMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationMapper
- Direct Known Subclasses:
CanonicalVocabularyMapper,ConfidenceMapper,ConfidentialityMapper,CriticalityMapper,GlossaryProjectMapper,ObjectIdentifierMapper,RetentionMapper,SpineAttributeMapper,SpineObjectMapper,SubjectAreaMapper,TaxonomyMapper
Static mapping methods to map between an OMAS Classification and the OMRS Classification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandlerprotected final org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClassificationMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classificationget an instance of the classificationstatic org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributescreateSystemAttributesFromOMRSClassification(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification) protected booleanisTypeCorrect(String actualTypeName) Check whether the type name matches the mapper.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.ClassificationmapBeanToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) mapKnownAttributesToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties omrsClassificationProperties) Map attributes we know are part of this type to OMRS.org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.ClassificationmapOmrsToBean(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification) protected abstract org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertiesupdateOMRSAttributes(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification)
-
Field Details
-
genericHandler
protected final org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler -
repositoryHelper
protected final org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper
-
-
Constructor Details
-
ClassificationMapper
protected ClassificationMapper(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Details
-
mapOmrsToBean
public org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification mapOmrsToBean(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification) - Parameters:
omrsClassification- - the supplied omrs classification- Returns:
- equivalent org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification
-
mapBeanToOmrs
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification mapBeanToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) -
createOmasClassification
protected abstract org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification createOmasClassification()get an instance of the classification- Returns:
- classification instance
-
mapKnownAttributesToOmrs
protected abstract Set<String> mapKnownAttributesToOmrs(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties omrsClassificationProperties) Map attributes we know are part of this type to OMRS.- Parameters:
omasClassification- omasclassificationomrsClassificationProperties- omrs properties- Returns:
- set of property Names that we know about.
-
isTypeCorrect
Check whether the type name matches the mapper.- Parameters:
actualTypeName- name of type to check- Returns:
- true if type is correct otherwise false.
-
updateOMRSAttributes
protected abstract org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties updateOMRSAttributes(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) -
createSystemAttributesFromOMRSClassification
public static org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributes createSystemAttributesFromOMRSClassification(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification)
-