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
ConstructorsConstructorDescriptionClassificationFactory(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler) -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.accessservices.subjectarea.properties.classifications.ClassificationgetOMASClassification(String name, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification) Get an OMAS Classification based on the name and then map the supplied omrs classificaiton to the omas one.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.ClassificationgetOMRSClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) Get an OMRS Classification based on the supplied omas classification.
-
Constructor Details
-
ClassificationFactory
public ClassificationFactory(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
-
-
Method Details
-
getOMASClassification
public org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification getOMASClassification(String name, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification getOMRSClassification(org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification omasClassification) 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.
-