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 OpenMetadataAPIGenericHandler
protected final OMRSRepositoryHelper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ClassificationMapper
(OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Classification
get an instance of the classificationstatic SystemAttributes
createSystemAttributesFromOMRSClassification
(Classification omrsClassification) protected boolean
isTypeCorrect
(String actualTypeName) Check whether the type name matches the mapper.mapBeanToOmrs
(Classification omasClassification) mapKnownAttributesToOmrs
(Classification omasClassification, InstanceProperties omrsClassificationProperties) Map attributes we know are part of this type to OMRS.mapOmrsToBean
(Classification omrsClassification) protected abstract InstanceProperties
updateOMRSAttributes
(Classification omasClassification)
-
Field Details
-
genericHandler
-
repositoryHelper
-
-
Constructor Details
-
ClassificationMapper
-
-
Method Details
-
mapOmrsToBean
- Parameters:
omrsClassification
- - the supplied omrs classification- Returns:
- equivalent org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification
-
mapBeanToOmrs
-
createOmasClassification
get an instance of the classification- Returns:
- classification instance
-
mapKnownAttributesToOmrs
protected abstract Set<String> mapKnownAttributesToOmrs(Classification omasClassification, 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
-
createSystemAttributesFromOMRSClassification
public static SystemAttributes createSystemAttributesFromOMRSClassification(Classification omrsClassification)
-