blob: cadab6a808e6aaf0da7b2fe7fb70ea3b27a7f8cf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.core.enums;
import java.io.Serializable;
import java.util.EnumSet;
public class SupportedScriptTypes implements Serializable {
private static final long serialVersionUID = 8403281090133318485L;
public EnumSet<ScriptTypeEnum> supportedClasses = EnumSet.noneOf(ScriptTypeEnum.class);
public void add(ScriptTypeEnum scriptType) {
supportedClasses.add(scriptType);
}
/*
* public HashSet<ScriptTypeEnum> getSupportedClasses(){ return supportedClasses; }
*/
public boolean isSupported(ScriptTypeEnum type) {
return supportedClasses.contains(type);
}
public String getFormmatedString() {
return "Supported Script Types : " + supportedClasses + "\n";
}
}