blob: 0193fe87dcb725bfacb8ac566f887d55fd7408dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/**
* Copyright (c) 2016 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Maged Elaasar - Initial API and implementation
*
*
*/
package org.eclipse.papyrus.infra.architecture.representation;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.papyrus.infra.constraints.DisplayUnit;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Model Rule</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A rule that controls which element this representation is for.
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.papyrus.infra.architecture.representation.ModelRule#getElement <em>Element</em>}</li>
* <li>{@link org.eclipse.papyrus.infra.architecture.representation.ModelRule#getStereotypes <em>Stereotypes</em>}</li>
* <li>{@link org.eclipse.papyrus.infra.architecture.representation.ModelRule#getMultiplicity <em>Multiplicity</em>}</li>
* </ul>
*
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule()
* @model
* @generated
*/
public interface ModelRule extends Rule, DisplayUnit {
/**
* Returns the value of the '<em><b>Element</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Element</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The type (from the language's metamodel) that a model element must have for a representation of this kind to apply to.
* <!-- end-model-doc -->
* @return the value of the '<em>Element</em>' reference.
* @see #setElement(EClass)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule_Element()
* @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The type (from the language\'s metamodel) that a model element must have for a representation of this kind to apply to.'"
* @generated
*/
EClass getElement();
/**
* Sets the value of the '{@link org.eclipse.papyrus.infra.architecture.representation.ModelRule#getElement <em>Element</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Element</em>' reference.
* @see #getElement()
* @generated
*/
void setElement(EClass value);
/**
* Returns the value of the '<em><b>Stereotypes</b></em>' reference list.
* The list contents are of type {@link org.eclipse.emf.ecore.EClass}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Stereotypes</em>' reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The set of stereotypes (from the language's profiles) that a model element must have for a representation of this kind to apply to.
* <!-- end-model-doc -->
* @return the value of the '<em>Stereotypes</em>' reference list.
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule_Stereotypes()
* @model annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The set of stereotypes (from the language\'s profiles) that a model element must have for a representation of this kind to apply to.'"
* @generated
*/
EList<EClass> getStereotypes();
/**
* Returns the value of the '<em><b>Multiplicity</b></em>' attribute.
* The default value is <code>"-1"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Multiplicity</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number.
* <!-- end-model-doc -->
* @return the value of the '<em>Multiplicity</em>' attribute.
* @see #setMultiplicity(int)
* @see org.eclipse.papyrus.infra.architecture.representation.RepresentationPackage#getModelRule_Multiplicity()
* @model default="-1" required="true"
* annotation="http://www.eclipse.org/emf/2002/GenModel propertyDescription='The maximum number of representations of this kind that a model element can have. -1 represents an unbounded number.'"
* @generated
*/
int getMultiplicity();
/**
* Sets the value of the '{@link org.eclipse.papyrus.infra.architecture.representation.ModelRule#getMultiplicity <em>Multiplicity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Multiplicity</em>' attribute.
* @see #getMultiplicity()
* @generated
*/
void setMultiplicity(int value);
} // ModelRule
|