Skip to content

Package: VControl

VControl

Coverage

1: /**
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.spi.model;
15:
16: import java.util.Collection;
17:
18: import org.eclipse.emf.ecore.EReference;
19: import org.eclipse.emf.ecore.EStructuralFeature;
20:
21: /**
22: * <!-- begin-user-doc -->
23: * A representation of the model object '<em><b>Control</b></em>'.
24: *
25: * @since 1.2
26: * <!-- end-user-doc -->
27: *
28: * <p>
29: * The following features are supported:
30: * </p>
31: * <ul>
32: * <li>{@link org.eclipse.emf.ecp.view.spi.model.VControl#getLabelAlignment <em>Label Alignment</em>}</li>
33: * <li>{@link org.eclipse.emf.ecp.view.spi.model.VControl#getDomainModelReference <em>Domain Model
34: * Reference</em>}</li>
35: * </ul>
36: *
37: * @see org.eclipse.emf.ecp.view.spi.model.VViewPackage#getControl()
38: * @model annotation="http://www.eclipse.org/emf/2002/Ecore constraints='resolveable'"
39: * @generated
40: */
41: public interface VControl extends VContainedElement {
42:         /**
43:          * Returns the value of the '<em><b>Domain Model Reference</b></em>' containment reference.
44:          * <!-- begin-user-doc -->
45:          * <p>
46:          * If the meaning of the '<em>Domain Model Reference</em>' containment reference isn't clear, there really should be
47:          * more of a description here...
48:          * </p>
49:          * <!-- end-user-doc -->
50:          *
51:          * @return the value of the '<em>Domain Model Reference</em>' containment reference.
52:          * @see #setDomainModelReference(VDomainModelReference)
53:          * @see org.eclipse.emf.ecp.view.spi.model.VViewPackage#getControl_DomainModelReference()
54:          * @model containment="true" required="true"
55:          * @generated
56:          */
57:         VDomainModelReference getDomainModelReference();
58:
59:         /**
60:          * Sets the value of the '{@link org.eclipse.emf.ecp.view.spi.model.VControl#getDomainModelReference <em>Domain
61:          * Model Reference</em>}' containment reference.
62:          * <!-- begin-user-doc -->
63:          * <!-- end-user-doc -->
64:          *
65:          * @param value the new value of the '<em>Domain Model Reference</em>' containment reference.
66:          * @see #getDomainModelReference()
67:          * @generated
68:          */
69:         void setDomainModelReference(VDomainModelReference value);
70:
71:         /**
72:          * Returns the value of the '<em><b>Label Alignment</b></em>' attribute.
73:          * The default value is <code>"Default"</code>.
74:          * The literals are from the enumeration {@link org.eclipse.emf.ecp.view.spi.model.LabelAlignment}.
75:          * <!-- begin-user-doc -->
76:          * <p>
77:          * If the meaning of the '<em>Label Alignment</em>' attribute isn't clear, there really should be more of a
78:          * description here...
79:          * </p>
80:          * <!-- end-user-doc -->
81:          *
82:          * @return the value of the '<em>Label Alignment</em>' attribute.
83:          * @see org.eclipse.emf.ecp.view.spi.model.LabelAlignment
84:          * @see #setLabelAlignment(LabelAlignment)
85:          * @see org.eclipse.emf.ecp.view.spi.model.VViewPackage#getControl_LabelAlignment()
86:          * @model default="Default" required="true"
87:          * @generated
88:          */
89:         LabelAlignment getLabelAlignment();
90:
91:         /**
92:          * Sets the value of the '{@link org.eclipse.emf.ecp.view.spi.model.VControl#getLabelAlignment <em>Label
93:          * Alignment</em>}' attribute.
94:          * <!-- begin-user-doc -->
95:          * <!-- end-user-doc -->
96:          *
97:          * @param value the new value of the '<em>Label Alignment</em>' attribute.
98:          * @see org.eclipse.emf.ecp.view.spi.model.LabelAlignment
99:          * @see #getLabelAlignment()
100:          * @generated
101:          */
102:         void setLabelAlignment(LabelAlignment value);
103:
104:         /**
105:          * Sets the {@link VDomainModelReference} based on the provided {@link EStructuralFeature}. Thus a
106:          * {@link VFeaturePathDomainModelReference} is created.
107:          *
108:          * @param feature the {@link EStructuralFeature} to create the {@link VDomainModelReference} for
109:          */
110:         void setDomainModelReference(EStructuralFeature feature);
111:
112:         /**
113:          * Sets the {@link VDomainModelReference} based on the provided {@link EStructuralFeature} and the collection of
114:          * {@link EReference EReferences}. Thus a {@link VFeaturePathDomainModelReference} is created.
115:          *
116:          * @param feature the {@link EStructuralFeature} to create the {@link VDomainModelReference} for
117:          * @param referencePath the {@link Collection} of {@link EReference EReferences} being the reference path
118:          */
119:         void setDomainModelReference(EStructuralFeature feature,
120:                 Collection<EReference> referencePath);
121:
122: } // Control