WEPSTranslationEntry.java [src/java/crlmod/utils] Revision:   Date:
/*
 * $Id: 1.0+62 WEPSTranslationEntry.java a170e1637ffa 2021-12-20 od $
 *
 * This file is part of the Cloud Services Integration Platform (CSIP),
 * a Model-as-a-Service framework, API, and application suite.
 *
 * 2012-2024, OMSLab, Colorado State University.
 *
 * OMSLab licenses this file to you under the MIT license.
 * See the LICENSE file in the project root for more information.
 */
package crlmod.utils;

import java.util.ArrayList;

/**
 *
 * @author LYaege
 */
@Deprecated
public class WEPSTranslationEntry {

    public String name;
    ArrayList aliases;


    public WEPSTranslationEntry(String name) {
        this.name = name;
        aliases = new ArrayList();
    }


    public boolean addAlias(String alias) {
        if (!aliases.contains(alias)) {
            aliases.add(alias.replace("/", "@@"));
        } else {
            return false;
        }
        return true;
    }


    public ArrayList getAliases() {
        return aliases;
    }
}