Skip to content

Package: EMFFormsExportTableParent

EMFFormsExportTableParent

nameinstructionbranchcomplexitylinemethod
EMFFormsExportTableParent(VIndexDomainModelReference, VIndexDomainModelReference, String)
M: 0 C: 12
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 5
100%
M: 0 C: 1
100%
getIndexDMRToExtend()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getIndexDMRToResolve()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getLabelPrefix()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.spreadsheet.core;
15:
16: import org.eclipse.emf.ecp.view.spi.indexdmr.model.VIndexDomainModelReference;
17:
18: /**
19: * @author Eugen
20: *
21: */
22: public class EMFFormsExportTableParent {
23:
24:         /**
25:          * Key to use in the ViewModelContext to set this object into the context.
26:          */
27:         public static final String EXPORT_TABLE_PARENT = "excelExportParent"; //$NON-NLS-1$
28:
29:         private final VIndexDomainModelReference indexDMRToExtend;
30:         private final String labelPrefix;
31:
32:         private final VIndexDomainModelReference indexDMRToResolve;
33:
34:         /**
35:          * Default Constructor.
36:          *
37:          * @param indexDMRToExtend The VIndexDomainModelReference to extend
38:          * @param indexDMRToResolve The VIndexDomainModelReference to use for resolvement
39:          * @param labelPrefix The prefix for labels
40:          */
41:         public EMFFormsExportTableParent(VIndexDomainModelReference indexDMRToExtend,
42:                 VIndexDomainModelReference indexDMRToResolve, String labelPrefix) {
43:                 super();
44:                 this.indexDMRToExtend = indexDMRToExtend;
45:                 this.indexDMRToResolve = indexDMRToResolve;
46:                 this.labelPrefix = labelPrefix;
47:         }
48:
49:         /**
50:          * The VIndexDomainModelReference to use extend.
51:          *
52:          * @return the indexDMR
53:          */
54:         public VIndexDomainModelReference getIndexDMRToExtend() {
55:                 return indexDMRToExtend;
56:         }
57:
58:         /**
59:          * The Prefix to use for labels.
60:          *
61:          * @return the labelPrefix
62:          */
63:         public String getLabelPrefix() {
64:                 return labelPrefix;
65:         }
66:
67:         /**
68:          * The VIndexDomainModelReference to use for resolving.
69:          *
70:          * @return the indexDMRToResolve
71:          */
72:         public VIndexDomainModelReference getIndexDMRToResolve() {
73:                 return indexDMRToResolve;
74:         }
75:
76: }