Skip to content

Package: RuleHandle

RuleHandle

nameinstructionbranchcomplexitylinemethod
RuleHandle(Rule, VElement, EObject)
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%
getDomainObject()
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%
getParent()
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%
getRule()
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-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: * Jonas - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.rule.test;
15:
16: import org.eclipse.emf.ecore.EObject;
17: import org.eclipse.emf.ecp.view.spi.model.VElement;
18: import org.eclipse.emf.ecp.view.spi.rule.model.Rule;
19:
20: /**
21: * @author Jonas
22: *
23: */
24: public class RuleHandle {
25:
26:         private final Rule rule;
27:         private final VElement parent;
28:         private final EObject domainObject;
29:
30:         /**
31:          * Constructor.
32:          *
33:          * @param rule rule
34:          * @param renderable renderable
35:          * @param domainObject domainObject.
36:          */
37:         public RuleHandle(Rule rule, VElement renderable, EObject domainObject) {
38:                 this.rule = rule;
39:                 parent = renderable;
40:                 this.domainObject = domainObject;
41:         }
42:
43:         /**
44:          * @return the rule
45:          */
46:         public Rule getRule() {
47:                 return rule;
48:         }
49:
50:         /**
51:          * @return the parent
52:          */
53:         public VElement getParent() {
54:                 return parent;
55:         }
56:
57:         /**
58:          * @return the domainObject
59:          */
60:         public EObject getDomainObject() {
61:                 return domainObject;
62:         }
63:
64: }