/* SPDX-License-Identifier: Apache-2.0 */

 // This is a generated file - do not edit - changes should be made to the templates amd/or generator to generate this file with changes.

package org.odpi.openmetadata.accessservices.subjectarea.generated.classifications;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.InvalidParameterException;
import org.odpi.openmetadata.accessservices.subjectarea.properties.classifications.Classification;
<$$$
import org.odpi.openmetadata.accessservices.subjectarea.generated.classifications.<$$uClassification$$>.<$$uClassification$$>Mapper;
$$$>


/**
 * A factory to create new instances of classes of open metadata classifications by name. Return null if the classification is not known.
 */
public class ClassificationFactory {
    private static final Logger log = LoggerFactory.getLogger( ClassificationFactory.class);
    private static final String className =  ClassificationFactory.class.getName();
     public static Classification getClassification(String name, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification omrsClassification) throws InvalidParameterException {
        <$$$
        if (name.equals("<$$uClassification$$>")) {
            return <$$uClassification$$>Mapper.mapOmrsToOmas(omrsClassification);
        }
        $$$>
        return null;
    }
}
