UpocContext.java :  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » ui » componentflow » componentFlowEditor » Java Open Source

Java Open Source » ESB » cbesb 1.2 
cbesb 1.2 » com » bostechcorp » cbesb » ui » componentflow » componentFlowEditor » UpocContext.java
/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor;

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

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

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Upoc Context</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage#getUpocContext()
 * @model
 * @generated
 */
public final class UpocContext extends AbstractEnumerator {
  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static final String copyright = "Copyright, Bostech Corp.";

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

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

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

  /**
   * The '<em><b>Presend</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #PRESEND
   * @generated
   * @ordered
   */
  public static final UpocContext PRESEND_LITERAL = new UpocContext(PRESEND, "presend", "presend");

  /**
   * The '<em><b>Postsend</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #POSTSEND
   * @generated
   * @ordered
   */
  public static final UpocContext POSTSEND_LITERAL = new UpocContext(POSTSEND, "postsend", "postsend");

  /**
   * The '<em><b>Postaccept</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #POSTACCEPT
   * @generated
   * @ordered
   */
  public static final UpocContext POSTACCEPT_LITERAL = new UpocContext(POSTACCEPT, "postaccept", "postaccept");

  /**
   * An array of all the '<em><b>Upoc Context</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private static final UpocContext[] VALUES_ARRAY =
    new UpocContext[] {
      PRESEND_LITERAL,
      POSTSEND_LITERAL,
      POSTACCEPT_LITERAL,
    };

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

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

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

  /**
   * Returns the '<em><b>Upoc Context</b></em>' literal with the specified integer value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static UpocContext get(int value) {
    switch (value) {
      case PRESEND: return PRESEND_LITERAL;
      case POSTSEND: return POSTSEND_LITERAL;
      case POSTACCEPT: return POSTACCEPT_LITERAL;
    }
    return null;  
  }

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

} //UpocContext
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.