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(org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler genericHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.