/*
 * This file is part of LibrePlan
 *
 * Copyright (C) 2010-2011 Igalia, S.L.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.libreplan.business.resources.entities;

import static org.libreplan.business.i18n.I18nHelper._;

import java.util.EnumSet;
import java.util.Set;

/**
 * Enumerate with the three basic types of resource: non-limiting, limiting and strategic.
 * @author Jacobo Aragunde Perez <jaragunde@igalia.com>
 */
public enum ResourceType {

    NON_LIMITING_RESOURCE(_("Normal resource")),
    LIMITING_RESOURCE(_("Queue-based resource")),
    STRATEGIC_RESOURCE(_("Strategic resource"));

    private String option;

    private ResourceType(String option) {
        this.option = option;
    }

    public String toString() {
        return option;
    }

    public static Set<ResourceType> getResourceTypeList() {
        return EnumSet.of(
                ResourceType.NON_LIMITING_RESOURCE,
                ResourceType.LIMITING_RESOURCE,
                ResourceType.STRATEGIC_RESOURCE);
    }

}

@@ -58,17 +58,17 @@
 2010-201
-1
+2
  Igalia,
@@ -861,57 +861,8 @@
 _;%0A%0A
-import java.util.EnumSet;%0Aimport java.util.Set;%0A%0A
 /**%0A
@@ -1130,57 +1130,8 @@
 sed 
-resource%22)),%0A    STRATEGIC_RESOURCE(_(%22Strategic 
 reso
@@ -1274,24 +1274,24 @@
 oString() %7B%0A
+
         retu
@@ -1312,250 +1312,6 @@
  %7D%0A%0A
-    public static Set%3CResourceType%3E getResourceTypeList() %7B%0A        return EnumSet.of(%0A                ResourceType.NON_LIMITING_RESOURCE,%0A                ResourceType.LIMITING_RESOURCE,%0A                ResourceType.STRATEGIC_RESOURCE);%0A    %7D%0A%0A
 %7D%0A

Remove unused code in ResourceType