Skip to content

Package: ReferenceObjectPair

ReferenceObjectPair

nameinstructionbranchcomplexitylinemethod
ReferenceObjectPair(VDomainModelReference, EObject)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getEObject()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getVDomainModelReference()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 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: * Stefan Dirix - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.swt.core.data;
15:
16: import org.eclipse.emf.ecore.EObject;
17: import org.eclipse.emf.ecp.view.spi.model.VDomainModelReference;
18:
19: /**
20: * Data class to pair {@link VDomainModelReference}s with {@link EObject}s.
21: *
22: * @author Stefan Dirix
23: * @since 1.8
24: *
25: */
26: public class ReferenceObjectPair {
27:         private final VDomainModelReference vReference;
28:         private final EObject eObject;
29:
30:         /**
31:          * Constructor.
32:          *
33:          * @param vReference
34:          * The {@link VDomainModelReference}.
35:          * @param eObject
36:          * The {@link EObject}.
37:          */
38:         public ReferenceObjectPair(VDomainModelReference vReference, EObject eObject) {
39:                 this.vReference = vReference;
40:                 this.eObject = eObject;
41:         }
42:
43:         /**
44:          * @return The {@link VDomainModelReference} for the given {@link EObject}.
45:          */
46:         public VDomainModelReference getVDomainModelReference() {
47:                 return vReference;
48:         }
49:
50:         /**
51:          * @return The {@link EObject} for the given {@link VDomainModelReference}.
52:          */
53:         public EObject getEObject() {
54:                 return eObject;
55:         }
56: }