Class ClassificationFactory
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.server.mappers.classifications.ClassificationFactory
-
public class ClassificationFactory extends Object
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 Constructor Description ClassificationFactory(OpenMetadataAPIGenericHandler genericHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassificationgetOMASClassification(String name, Classification omrsClassification)Get an OMAS Classification based on the name and then map the supplied omrs classificaiton to the omas one.ClassificationgetOMRSClassification(Classification omasClassification)Get an OMRS Classification based on the the supplied omas classification.
-
-
-
Constructor Detail
-
ClassificationFactory
public ClassificationFactory(OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Detail
-
getOMASClassification
public Classification getOMASClassification(String name, Classification omrsClassification)
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
public Classification getOMRSClassification(Classification omasClassification)
Get an OMRS Classification based on the the supplied omas classification.- Parameters:
omasClassification- the supplied omas classification to map- Returns:
- the omas classification, null if not known.
-
-