Exemplo n.º 1
0
  /**
   * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon
   * which it depends.
   *
   * <p>This method is used to initialize {@link MmPackage#eINSTANCE} when that field is accessed.
   * Clients should not invoke it directly. Instead, they should simply access that field to obtain
   * the package.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @see #eNS_URI
   * @see #createPackageContents()
   * @see #initializePackageContents()
   * @generated
   */
  public static MmPackage init() {
    if (isInited) return (MmPackage) EPackage.Registry.INSTANCE.getEPackage(MmPackage.eNS_URI);

    // Obtain or create and register package
    MmPackageImpl theMmPackage =
        (MmPackageImpl)
            (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MmPackageImpl
                ? EPackage.Registry.INSTANCE.get(eNS_URI)
                : new MmPackageImpl());

    isInited = true;

    // Obtain or create and register interdependencies
    PictogramsPackageImpl thePictogramsPackage =
        (PictogramsPackageImpl)
            (EPackage.Registry.INSTANCE.getEPackage(PictogramsPackage.eNS_URI)
                    instanceof PictogramsPackageImpl
                ? EPackage.Registry.INSTANCE.getEPackage(PictogramsPackage.eNS_URI)
                : PictogramsPackage.eINSTANCE);
    AlgorithmsPackageImpl theAlgorithmsPackage =
        (AlgorithmsPackageImpl)
            (EPackage.Registry.INSTANCE.getEPackage(AlgorithmsPackage.eNS_URI)
                    instanceof AlgorithmsPackageImpl
                ? EPackage.Registry.INSTANCE.getEPackage(AlgorithmsPackage.eNS_URI)
                : AlgorithmsPackage.eINSTANCE);
    StylesPackageImpl theStylesPackage =
        (StylesPackageImpl)
            (EPackage.Registry.INSTANCE.getEPackage(StylesPackage.eNS_URI)
                    instanceof StylesPackageImpl
                ? EPackage.Registry.INSTANCE.getEPackage(StylesPackage.eNS_URI)
                : StylesPackage.eINSTANCE);

    // Create package meta-data objects
    theMmPackage.createPackageContents();
    thePictogramsPackage.createPackageContents();
    theAlgorithmsPackage.createPackageContents();
    theStylesPackage.createPackageContents();

    // Initialize created meta-data
    theMmPackage.initializePackageContents();
    thePictogramsPackage.initializePackageContents();
    theAlgorithmsPackage.initializePackageContents();
    theStylesPackage.initializePackageContents();

    // Mark meta-data to indicate it can't be changed
    theMmPackage.freeze();

    // Update the registry and return the package
    EPackage.Registry.INSTANCE.put(MmPackage.eNS_URI, theMmPackage);
    return theMmPackage;
  }
Exemplo n.º 2
0
/**
 *
 * <!-- begin-user-doc -->
 * The <b>Package</b> for the model. It contains accessors for the meta objects to represent
 *
 * <ul>
 *   <li>each class,
 *   <li>each feature of each class,
 *   <li>each enum,
 *   <li>and each data type
 * </ul>
 *
 * <!-- end-user-doc -->
 *
 * @see org.eclipse.graphiti.mm.MmFactory
 * @model kind="package"
 * @generated
 */
public interface MmPackage extends EPackage {
  /**
   * The package name.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  String eNAME = "mm";

  /**
   * The package namespace URI.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  String eNS_URI = "http://eclipse.org/graphiti/mm";

  /**
   * The package namespace name.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  String eNS_PREFIX = "mm";

  /**
   * The singleton instance of the package.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   */
  MmPackage eINSTANCE = org.eclipse.graphiti.mm.impl.MmPackageImpl.init();

  /**
   * The meta object id for the '{@link org.eclipse.graphiti.mm.impl.PropertyImpl
   * <em>Property</em>}' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @see org.eclipse.graphiti.mm.impl.PropertyImpl
   * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getProperty()
   * @generated
   */
  int PROPERTY = 0;

  /**
   * The feature id for the '<em><b>Key</b></em>' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int PROPERTY__KEY = 0;

  /**
   * The feature id for the '<em><b>Value</b></em>' attribute.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int PROPERTY__VALUE = 1;

  /**
   * The number of structural features of the '<em>Property</em>' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int PROPERTY_FEATURE_COUNT = 2;

  /**
   * The meta object id for the '{@link org.eclipse.graphiti.mm.impl.PropertyContainerImpl
   * <em>Property Container</em>}' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @see org.eclipse.graphiti.mm.impl.PropertyContainerImpl
   * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getPropertyContainer()
   * @generated
   */
  int PROPERTY_CONTAINER = 1;

  /**
   * The feature id for the '<em><b>Properties</b></em>' containment reference list.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int PROPERTY_CONTAINER__PROPERTIES = 0;

  /**
   * The number of structural features of the '<em>Property Container</em>' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int PROPERTY_CONTAINER_FEATURE_COUNT = 1;

  /**
   * The meta object id for the '{@link org.eclipse.graphiti.mm.impl.GraphicsAlgorithmContainerImpl
   * <em>Graphics Algorithm Container</em>}' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @see org.eclipse.graphiti.mm.impl.GraphicsAlgorithmContainerImpl
   * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getGraphicsAlgorithmContainer()
   * @generated
   */
  int GRAPHICS_ALGORITHM_CONTAINER = 2;

  /**
   * The feature id for the '<em><b>Properties</b></em>' containment reference list.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int GRAPHICS_ALGORITHM_CONTAINER__PROPERTIES = PROPERTY_CONTAINER__PROPERTIES;

  /**
   * The number of structural features of the '<em>Graphics Algorithm Container</em>' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int GRAPHICS_ALGORITHM_CONTAINER_FEATURE_COUNT = PROPERTY_CONTAINER_FEATURE_COUNT + 0;

  /**
   * The meta object id for the '{@link org.eclipse.graphiti.mm.impl.StyleContainerImpl <em>Style
   * Container</em>}' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @see org.eclipse.graphiti.mm.impl.StyleContainerImpl
   * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getStyleContainer()
   * @generated
   */
  int STYLE_CONTAINER = 3;

  /**
   * The feature id for the '<em><b>Styles</b></em>' containment reference list.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int STYLE_CONTAINER__STYLES = 0;

  /**
   * The number of structural features of the '<em>Style Container</em>' class.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @generated
   * @ordered
   */
  int STYLE_CONTAINER_FEATURE_COUNT = 1;

  /**
   * Returns the meta object for class '{@link org.eclipse.graphiti.mm.Property <em>Property</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for class '<em>Property</em>'.
   * @see org.eclipse.graphiti.mm.Property
   * @generated
   */
  EClass getProperty();

  /**
   * Returns the meta object for the attribute '{@link org.eclipse.graphiti.mm.Property#getKey
   * <em>Key</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for the attribute '<em>Key</em>'.
   * @see org.eclipse.graphiti.mm.Property#getKey()
   * @see #getProperty()
   * @generated
   */
  EAttribute getProperty_Key();

  /**
   * Returns the meta object for the attribute '{@link org.eclipse.graphiti.mm.Property#getValue
   * <em>Value</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for the attribute '<em>Value</em>'.
   * @see org.eclipse.graphiti.mm.Property#getValue()
   * @see #getProperty()
   * @generated
   */
  EAttribute getProperty_Value();

  /**
   * Returns the meta object for class '{@link org.eclipse.graphiti.mm.GraphicsAlgorithmContainer
   * <em>Graphics Algorithm Container</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for class '<em>Graphics Algorithm Container</em>'.
   * @see org.eclipse.graphiti.mm.GraphicsAlgorithmContainer
   * @generated
   */
  EClass getGraphicsAlgorithmContainer();

  /**
   * Returns the meta object for class '{@link org.eclipse.graphiti.mm.PropertyContainer
   * <em>Property Container</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for class '<em>Property Container</em>'.
   * @see org.eclipse.graphiti.mm.PropertyContainer
   * @generated
   */
  EClass getPropertyContainer();

  /**
   * Returns the meta object for the containment reference list '{@link
   * org.eclipse.graphiti.mm.PropertyContainer#getProperties <em>Properties</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for the containment reference list '<em>Properties</em>'.
   * @see org.eclipse.graphiti.mm.PropertyContainer#getProperties()
   * @see #getPropertyContainer()
   * @generated
   */
  EReference getPropertyContainer_Properties();

  /**
   * Returns the meta object for class '{@link org.eclipse.graphiti.mm.StyleContainer <em>Style
   * Container</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for class '<em>Style Container</em>'.
   * @see org.eclipse.graphiti.mm.StyleContainer
   * @generated
   */
  EClass getStyleContainer();

  /**
   * Returns the meta object for the containment reference list '{@link
   * org.eclipse.graphiti.mm.StyleContainer#getStyles <em>Styles</em>}'.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the meta object for the containment reference list '<em>Styles</em>'.
   * @see org.eclipse.graphiti.mm.StyleContainer#getStyles()
   * @see #getStyleContainer()
   * @generated
   */
  EReference getStyleContainer_Styles();

  /**
   * Returns the factory that creates the instances of the model.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   *
   * @return the factory that creates the instances of the model.
   * @generated
   */
  MmFactory getMmFactory();

  /**
   *
   * <!-- begin-user-doc -->
   * Defines literals for the meta objects that represent
   *
   * <ul>
   *   <li>each class,
   *   <li>each feature of each class,
   *   <li>each enum,
   *   <li>and each data type
   * </ul>
   *
   * <!-- end-user-doc -->
   *
   * @generated
   */
  interface Literals {
    /**
     * The meta object literal for the '{@link org.eclipse.graphiti.mm.impl.PropertyImpl
     * <em>Property</em>}' class.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @see org.eclipse.graphiti.mm.impl.PropertyImpl
     * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getProperty()
     * @generated
     */
    EClass PROPERTY = eINSTANCE.getProperty();

    /**
     * The meta object literal for the '<em><b>Key</b></em>' attribute feature.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
    EAttribute PROPERTY__KEY = eINSTANCE.getProperty_Key();

    /**
     * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
    EAttribute PROPERTY__VALUE = eINSTANCE.getProperty_Value();

    /**
     * The meta object literal for the '{@link
     * org.eclipse.graphiti.mm.impl.GraphicsAlgorithmContainerImpl <em>Graphics Algorithm
     * Container</em>}' class.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @see org.eclipse.graphiti.mm.impl.GraphicsAlgorithmContainerImpl
     * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getGraphicsAlgorithmContainer()
     * @generated
     */
    EClass GRAPHICS_ALGORITHM_CONTAINER = eINSTANCE.getGraphicsAlgorithmContainer();

    /**
     * The meta object literal for the '{@link org.eclipse.graphiti.mm.impl.PropertyContainerImpl
     * <em>Property Container</em>}' class.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @see org.eclipse.graphiti.mm.impl.PropertyContainerImpl
     * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getPropertyContainer()
     * @generated
     */
    EClass PROPERTY_CONTAINER = eINSTANCE.getPropertyContainer();

    /**
     * The meta object literal for the '<em><b>Properties</b></em>' containment reference list
     * feature.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
    EReference PROPERTY_CONTAINER__PROPERTIES = eINSTANCE.getPropertyContainer_Properties();

    /**
     * The meta object literal for the '{@link org.eclipse.graphiti.mm.impl.StyleContainerImpl
     * <em>Style Container</em>}' class.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @see org.eclipse.graphiti.mm.impl.StyleContainerImpl
     * @see org.eclipse.graphiti.mm.impl.MmPackageImpl#getStyleContainer()
     * @generated
     */
    EClass STYLE_CONTAINER = eINSTANCE.getStyleContainer();

    /**
     * The meta object literal for the '<em><b>Styles</b></em>' containment reference list feature.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
    EReference STYLE_CONTAINER__STYLES = eINSTANCE.getStyleContainer_Styles();
  }
} // MmPackage