Class SubjectAreaMapper
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationMapper
-
- org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.SubjectAreaMapper
-
public class SubjectAreaMapper extends ClassificationMapper
Mapping methods to map between SubjectArea and the omrs equivalents.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationMapper
genericHandler, repositoryHelper
-
-
Constructor Summary
Constructors Constructor Description SubjectAreaMapper(OpenMetadataAPIGenericHandler genericHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClassificationcreateOmasClassification()get an instance of the classificationprotected StringgetTypeName()protected Set<String>mapKnownAttributesToOmrs(Classification omasClassification, InstanceProperties omrsClassificationProperties)Map attributes we know are part of this type to OMRS.protected InstancePropertiesupdateOMRSAttributes(Classification omasClassification)-
Methods inherited from class org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationMapper
createSystemAttributesFromOMRSClassification, isTypeCorrect, mapBeanToOmrs, mapOmrsToBean
-
-
-
-
Constructor Detail
-
SubjectAreaMapper
public SubjectAreaMapper(OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Detail
-
mapKnownAttributesToOmrs
protected Set<String> mapKnownAttributesToOmrs(Classification omasClassification, InstanceProperties omrsClassificationProperties)
Description copied from class:ClassificationMapperMap attributes we know are part of this type to OMRS.- Specified by:
mapKnownAttributesToOmrsin classClassificationMapper- Parameters:
omasClassification- omasclassificationomrsClassificationProperties- omrs properties- Returns:
- set of property Names that we know about.
-
getTypeName
protected String getTypeName()
-
createOmasClassification
protected Classification createOmasClassification()
Description copied from class:ClassificationMapperget an instance of the classification- Specified by:
createOmasClassificationin classClassificationMapper- Returns:
- classification instance
-
updateOMRSAttributes
protected InstanceProperties updateOMRSAttributes(Classification omasClassification)
- Specified by:
updateOMRSAttributesin classClassificationMapper
-
-