Class ClassificationFactory
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationFactory
A factory to create new instances of classes of open metadata classifications by name. Return null if the classification is not known.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOMASClassification
(String name, Classification omrsClassification) Get an OMAS Classification based on the name and then map the supplied omrs classificaiton to the omas one.getOMRSClassification
(Classification omasClassification) Get an OMRS Classification based on the supplied omas classification.
-
Constructor Details
-
ClassificationFactory
-
-
Method Details
-
getOMASClassification
Get an OMAS Classification based on the name and then map the supplied omrs classificaiton to the omas one.- Parameters:
name
- name of the classification. Note this may not match the classification name if the classification is a sub type of the supplied name.omrsClassification
- the supplied omrs classification to map- Returns:
- the omas classification, null if not known.
-
getOMRSClassification
Get an OMRS Classification based on the supplied omas classification.- Parameters:
omasClassification
- the supplied omas classification to map- Returns:
- the omas classification, null if not known.
-