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 Details

  • Method Details

    • 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 supplied omas classification.
      Parameters:
      omasClassification - the supplied omas classification to map
      Returns:
      the omas classification, null if not known.