/**
 */
package org.xtext.example.mydsl2.myDsl2;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Base Permission</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.xtext.example.mydsl2.myDsl2.MyDsl2Package#getBasePermission()
 * @model
 * @generated
 */
public enum BasePermission implements Enumerator
{
  /**
   * The '<em><b>View List Items</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #VIEW_LIST_ITEMS_VALUE
   * @generated
   * @ordered
   */
  VIEW_LIST_ITEMS(0, "ViewListItems", "ViewListItems"),

  /**
   * The '<em><b>Add List Items</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #ADD_LIST_ITEMS_VALUE
   * @generated
   * @ordered
   */
  ADD_LIST_ITEMS(1, "AddListItems", "AddListItems"),

  /**
   * The '<em><b>Edit List Items</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #EDIT_LIST_ITEMS_VALUE
   * @generated
   * @ordered
   */
  EDIT_LIST_ITEMS(2, "EditListItems", "EditListItems"),

  /**
   * The '<em><b>Delete List Items</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #DELETE_LIST_ITEMS_VALUE
   * @generated
   * @ordered
   */
  DELETE_LIST_ITEMS(3, "DeleteListItems", "DeleteListItems"),

  /**
   * The '<em><b>Approve Items</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #APPROVE_ITEMS_VALUE
   * @generated
   * @ordered
   */
  APPROVE_ITEMS(4, "ApproveItems", "ApproveItems"),

  /**
   * The '<em><b>Open Items</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #OPEN_ITEMS_VALUE
   * @generated
   * @ordered
   */
  OPEN_ITEMS(5, "OpenItems", "OpenItems"),

  /**
   * The '<em><b>View Versions</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #VIEW_VERSIONS_VALUE
   * @generated
   * @ordered
   */
  VIEW_VERSIONS(6, "ViewVersions", "ViewVersions"),

  /**
   * The '<em><b>Delete Versions</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #DELETE_VERSIONS_VALUE
   * @generated
   * @ordered
   */
  DELETE_VERSIONS(7, "DeleteVersions", "DeleteVersions"),

  /**
   * The '<em><b>Cancel Checkout</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #CANCEL_CHECKOUT_VALUE
   * @generated
   * @ordered
   */
  CANCEL_CHECKOUT(8, "CancelCheckout", "CancelCheckout"),

  /**
   * The '<em><b>Manage Personal Views</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #MANAGE_PERSONAL_VIEWS_VALUE
   * @generated
   * @ordered
   */
  MANAGE_PERSONAL_VIEWS(9, "ManagePersonalViews", "ManagePersonalViews"),

  /**
   * The '<em><b>Manage Lists</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #MANAGE_LISTS_VALUE
   * @generated
   * @ordered
   */
  MANAGE_LISTS(10, "ManageLists", "ManageLists"),

  /**
   * The '<em><b>View Form Pages</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #VIEW_FORM_PAGES_VALUE
   * @generated
   * @ordered
   */
  VIEW_FORM_PAGES(11, "ViewFormPages", "ViewFormPages"),

  /**
   * The '<em><b>Open</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #OPEN_VALUE
   * @generated
   * @ordered
   */
  OPEN(12, "Open", "Open"),

  /**
   * The '<em><b>Add And Customize Pages</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #ADD_AND_CUSTOMIZE_PAGES_VALUE
   * @generated
   * @ordered
   */
  ADD_AND_CUSTOMIZE_PAGES(13, "AddAndCustomizePages", "AddAndCustomizePages"),

  /**
   * The '<em><b>Apply Theme And Border</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #APPLY_THEME_AND_BORDER_VALUE
   * @generated
   * @ordered
   */
  APPLY_THEME_AND_BORDER(14, "ApplyThemeAndBorder", "ApplyThemeAndBorder"),

  /**
   * The '<em><b>Create SSC Site</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #CREATE_SSC_SITE_VALUE
   * @generated
   * @ordered
   */
  CREATE_SSC_SITE(15, "CreateSSCSite", "CreateSSCSite"),

  /**
   * The '<em><b>Browse Directories</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #BROWSE_DIRECTORIES_VALUE
   * @generated
   * @ordered
   */
  BROWSE_DIRECTORIES(16, "BrowseDirectories", "BrowseDirectories"),

  /**
   * The '<em><b>Browse User Info</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #BROWSE_USER_INFO_VALUE
   * @generated
   * @ordered
   */
  BROWSE_USER_INFO(17, "BrowseUserInfo", "BrowseUserInfo"),

  /**
   * The '<em><b>Add Del Private Web Parts</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #ADD_DEL_PRIVATE_WEB_PARTS_VALUE
   * @generated
   * @ordered
   */
  ADD_DEL_PRIVATE_WEB_PARTS(18, "AddDelPrivateWebParts", "AddDelPrivateWebParts"),

  /**
   * The '<em><b>Update Personal Web Parts</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #UPDATE_PERSONAL_WEB_PARTS_VALUE
   * @generated
   * @ordered
   */
  UPDATE_PERSONAL_WEB_PARTS(19, "UpdatePersonalWebParts", "UpdatePersonalWebParts"),

  /**
   * The '<em><b>Use Client Integration</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #USE_CLIENT_INTEGRATION_VALUE
   * @generated
   * @ordered
   */
  USE_CLIENT_INTEGRATION(20, "UseClientIntegration", "UseClientIntegration"),

  /**
   * The '<em><b>Use Remote AP Is</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #USE_REMOTE_AP_IS_VALUE
   * @generated
   * @ordered
   */
  USE_REMOTE_AP_IS(21, "UseRemoteAPIs", "UseRemoteAPIs"),

  /**
   * The '<em><b>Create Alerts</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #CREATE_ALERTS_VALUE
   * @generated
   * @ordered
   */
  CREATE_ALERTS(22, "CreateAlerts", "CreateAlerts"),

  /**
   * The '<em><b>Edit My User Info</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #EDIT_MY_USER_INFO_VALUE
   * @generated
   * @ordered
   */
  EDIT_MY_USER_INFO(23, "EditMyUserInfo", "EditMyUserInfo"),

  /**
   * The '<em><b>Full Mask</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #FULL_MASK_VALUE
   * @generated
   * @ordered
   */
  FULL_MASK(24, "FullMask", "FullMask");

  /**
   * The '<em><b>View List Items</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>View List Items</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #VIEW_LIST_ITEMS
   * @model name="ViewListItems"
   * @generated
   * @ordered
   */
  public static final int VIEW_LIST_ITEMS_VALUE = 0;

  /**
   * The '<em><b>Add List Items</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Add List Items</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #ADD_LIST_ITEMS
   * @model name="AddListItems"
   * @generated
   * @ordered
   */
  public static final int ADD_LIST_ITEMS_VALUE = 1;

  /**
   * The '<em><b>Edit List Items</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Edit List Items</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #EDIT_LIST_ITEMS
   * @model name="EditListItems"
   * @generated
   * @ordered
   */
  public static final int EDIT_LIST_ITEMS_VALUE = 2;

  /**
   * The '<em><b>Delete List Items</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Delete List Items</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #DELETE_LIST_ITEMS
   * @model name="DeleteListItems"
   * @generated
   * @ordered
   */
  public static final int DELETE_LIST_ITEMS_VALUE = 3;

  /**
   * The '<em><b>Approve Items</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Approve Items</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #APPROVE_ITEMS
   * @model name="ApproveItems"
   * @generated
   * @ordered
   */
  public static final int APPROVE_ITEMS_VALUE = 4;

  /**
   * The '<em><b>Open Items</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Open Items</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #OPEN_ITEMS
   * @model name="OpenItems"
   * @generated
   * @ordered
   */
  public static final int OPEN_ITEMS_VALUE = 5;

  /**
   * The '<em><b>View Versions</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>View Versions</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #VIEW_VERSIONS
   * @model name="ViewVersions"
   * @generated
   * @ordered
   */
  public static final int VIEW_VERSIONS_VALUE = 6;

  /**
   * The '<em><b>Delete Versions</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Delete Versions</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #DELETE_VERSIONS
   * @model name="DeleteVersions"
   * @generated
   * @ordered
   */
  public static final int DELETE_VERSIONS_VALUE = 7;

  /**
   * The '<em><b>Cancel Checkout</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Cancel Checkout</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #CANCEL_CHECKOUT
   * @model name="CancelCheckout"
   * @generated
   * @ordered
   */
  public static final int CANCEL_CHECKOUT_VALUE = 8;

  /**
   * The '<em><b>Manage Personal Views</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Manage Personal Views</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #MANAGE_PERSONAL_VIEWS
   * @model name="ManagePersonalViews"
   * @generated
   * @ordered
   */
  public static final int MANAGE_PERSONAL_VIEWS_VALUE = 9;

  /**
   * The '<em><b>Manage Lists</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Manage Lists</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #MANAGE_LISTS
   * @model name="ManageLists"
   * @generated
   * @ordered
   */
  public static final int MANAGE_LISTS_VALUE = 10;

  /**
   * The '<em><b>View Form Pages</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>View Form Pages</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #VIEW_FORM_PAGES
   * @model name="ViewFormPages"
   * @generated
   * @ordered
   */
  public static final int VIEW_FORM_PAGES_VALUE = 11;

  /**
   * The '<em><b>Open</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Open</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #OPEN
   * @model name="Open"
   * @generated
   * @ordered
   */
  public static final int OPEN_VALUE = 12;

  /**
   * The '<em><b>Add And Customize Pages</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Add And Customize Pages</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #ADD_AND_CUSTOMIZE_PAGES
   * @model name="AddAndCustomizePages"
   * @generated
   * @ordered
   */
  public static final int ADD_AND_CUSTOMIZE_PAGES_VALUE = 13;

  /**
   * The '<em><b>Apply Theme And Border</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Apply Theme And Border</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #APPLY_THEME_AND_BORDER
   * @model name="ApplyThemeAndBorder"
   * @generated
   * @ordered
   */
  public static final int APPLY_THEME_AND_BORDER_VALUE = 14;

  /**
   * The '<em><b>Create SSC Site</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Create SSC Site</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #CREATE_SSC_SITE
   * @model name="CreateSSCSite"
   * @generated
   * @ordered
   */
  public static final int CREATE_SSC_SITE_VALUE = 15;

  /**
   * The '<em><b>Browse Directories</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Browse Directories</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #BROWSE_DIRECTORIES
   * @model name="BrowseDirectories"
   * @generated
   * @ordered
   */
  public static final int BROWSE_DIRECTORIES_VALUE = 16;

  /**
   * The '<em><b>Browse User Info</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Browse User Info</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #BROWSE_USER_INFO
   * @model name="BrowseUserInfo"
   * @generated
   * @ordered
   */
  public static final int BROWSE_USER_INFO_VALUE = 17;

  /**
   * The '<em><b>Add Del Private Web Parts</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Add Del Private Web Parts</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #ADD_DEL_PRIVATE_WEB_PARTS
   * @model name="AddDelPrivateWebParts"
   * @generated
   * @ordered
   */
  public static final int ADD_DEL_PRIVATE_WEB_PARTS_VALUE = 18;

  /**
   * The '<em><b>Update Personal Web Parts</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Update Personal Web Parts</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #UPDATE_PERSONAL_WEB_PARTS
   * @model name="UpdatePersonalWebParts"
   * @generated
   * @ordered
   */
  public static final int UPDATE_PERSONAL_WEB_PARTS_VALUE = 19;

  /**
   * The '<em><b>Use Client Integration</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Use Client Integration</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #USE_CLIENT_INTEGRATION
   * @model name="UseClientIntegration"
   * @generated
   * @ordered
   */
  public static final int USE_CLIENT_INTEGRATION_VALUE = 20;

  /**
   * The '<em><b>Use Remote AP Is</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Use Remote AP Is</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #USE_REMOTE_AP_IS
   * @model name="UseRemoteAPIs"
   * @generated
   * @ordered
   */
  public static final int USE_REMOTE_AP_IS_VALUE = 21;

  /**
   * The '<em><b>Create Alerts</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Create Alerts</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #CREATE_ALERTS
   * @model name="CreateAlerts"
   * @generated
   * @ordered
   */
  public static final int CREATE_ALERTS_VALUE = 22;

  /**
   * The '<em><b>Edit My User Info</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Edit My User Info</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #EDIT_MY_USER_INFO
   * @model name="EditMyUserInfo"
   * @generated
   * @ordered
   */
  public static final int EDIT_MY_USER_INFO_VALUE = 23;

  /**
   * The '<em><b>Full Mask</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Full Mask</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #FULL_MASK
   * @model name="FullMask"
   * @generated
   * @ordered
   */
  public static final int FULL_MASK_VALUE = 24;

  /**
   * An array of all the '<em><b>Base Permission</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private static final BasePermission[] VALUES_ARRAY =
    new BasePermission[]
    {
      VIEW_LIST_ITEMS,
      ADD_LIST_ITEMS,
      EDIT_LIST_ITEMS,
      DELETE_LIST_ITEMS,
      APPROVE_ITEMS,
      OPEN_ITEMS,
      VIEW_VERSIONS,
      DELETE_VERSIONS,
      CANCEL_CHECKOUT,
      MANAGE_PERSONAL_VIEWS,
      MANAGE_LISTS,
      VIEW_FORM_PAGES,
      OPEN,
      ADD_AND_CUSTOMIZE_PAGES,
      APPLY_THEME_AND_BORDER,
      CREATE_SSC_SITE,
      BROWSE_DIRECTORIES,
      BROWSE_USER_INFO,
      ADD_DEL_PRIVATE_WEB_PARTS,
      UPDATE_PERSONAL_WEB_PARTS,
      USE_CLIENT_INTEGRATION,
      USE_REMOTE_AP_IS,
      CREATE_ALERTS,
      EDIT_MY_USER_INFO,
      FULL_MASK,
    };

  /**
   * A public read-only list of all the '<em><b>Base Permission</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static final List<BasePermission> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

  /**
   * Returns the '<em><b>Base Permission</b></em>' literal with the specified literal value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static BasePermission get(String literal)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      BasePermission result = VALUES_ARRAY[i];
      if (result.toString().equals(literal))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>Base Permission</b></em>' literal with the specified name.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static BasePermission getByName(String name)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      BasePermission result = VALUES_ARRAY[i];
      if (result.getName().equals(name))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>Base Permission</b></em>' literal with the specified integer value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static BasePermission get(int value)
  {
    switch (value)
    {
      case VIEW_LIST_ITEMS_VALUE: return VIEW_LIST_ITEMS;
      case ADD_LIST_ITEMS_VALUE: return ADD_LIST_ITEMS;
      case EDIT_LIST_ITEMS_VALUE: return EDIT_LIST_ITEMS;
      case DELETE_LIST_ITEMS_VALUE: return DELETE_LIST_ITEMS;
      case APPROVE_ITEMS_VALUE: return APPROVE_ITEMS;
      case OPEN_ITEMS_VALUE: return OPEN_ITEMS;
      case VIEW_VERSIONS_VALUE: return VIEW_VERSIONS;
      case DELETE_VERSIONS_VALUE: return DELETE_VERSIONS;
      case CANCEL_CHECKOUT_VALUE: return CANCEL_CHECKOUT;
      case MANAGE_PERSONAL_VIEWS_VALUE: return MANAGE_PERSONAL_VIEWS;
      case MANAGE_LISTS_VALUE: return MANAGE_LISTS;
      case VIEW_FORM_PAGES_VALUE: return VIEW_FORM_PAGES;
      case OPEN_VALUE: return OPEN;
      case ADD_AND_CUSTOMIZE_PAGES_VALUE: return ADD_AND_CUSTOMIZE_PAGES;
      case APPLY_THEME_AND_BORDER_VALUE: return APPLY_THEME_AND_BORDER;
      case CREATE_SSC_SITE_VALUE: return CREATE_SSC_SITE;
      case BROWSE_DIRECTORIES_VALUE: return BROWSE_DIRECTORIES;
      case BROWSE_USER_INFO_VALUE: return BROWSE_USER_INFO;
      case ADD_DEL_PRIVATE_WEB_PARTS_VALUE: return ADD_DEL_PRIVATE_WEB_PARTS;
      case UPDATE_PERSONAL_WEB_PARTS_VALUE: return UPDATE_PERSONAL_WEB_PARTS;
      case USE_CLIENT_INTEGRATION_VALUE: return USE_CLIENT_INTEGRATION;
      case USE_REMOTE_AP_IS_VALUE: return USE_REMOTE_AP_IS;
      case CREATE_ALERTS_VALUE: return CREATE_ALERTS;
      case EDIT_MY_USER_INFO_VALUE: return EDIT_MY_USER_INFO;
      case FULL_MASK_VALUE: return FULL_MASK;
    }
    return null;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final int value;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String name;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String literal;

  /**
   * Only this class can construct instances.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private BasePermission(int value, String name, String literal)
  {
    this.value = value;
    this.name = name;
    this.literal = literal;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public int getValue()
  {
    return value;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getName()
  {
    return name;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getLiteral()
  {
    return literal;
  }

  /**
   * Returns the literal value of the enumerator, which is its string representation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String toString()
  {
    return literal;
  }
  
} //BasePermission
