Skip to content

Package: SegmentConverterListResultImpl

SegmentConverterListResultImpl

nameinstructionbranchcomplexitylinemethod
SegmentConverterListResultImpl(IEMFListProperty, EClass)
M: 0 C: 9
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
getListProperty()
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%
getNextEClass()
M: 0 C: 4
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-2017 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: * Lucas Koehler - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.internal.core.services.databinding;
15:
16: import java.util.Optional;
17:
18: import org.eclipse.emf.databinding.IEMFListProperty;
19: import org.eclipse.emf.ecore.EClass;
20: import org.eclipse.emfforms.spi.core.services.databinding.emf.SegmentConverterListResultEMF;
21:
22: /**
23: * Default implementation of {@link SegmentConverterListResultEMF}.
24: *
25: * @author Lucas Koehler
26: *
27: */
28: public class SegmentConverterListResultImpl implements SegmentConverterListResultEMF {
29:
30:         private final IEMFListProperty listProperty;
31:         private final EClass nextEClass;
32:
33:         /**
34:          * Creates a new {@link SegmentConverterListResultImpl}.
35:          *
36:          * @param listProperty The {@link IEMFListProperty}
37:          * @param nextEClass The next {@link EClass}, may be <code>null</code>
38:          */
39:         public SegmentConverterListResultImpl(IEMFListProperty listProperty, EClass nextEClass) {
40:                 this.listProperty = listProperty;
41:                 this.nextEClass = nextEClass;
42:         }
43:
44:         /**
45:          * {@inheritDoc}
46:          *
47:          * @see org.eclipse.emfforms.spi.core.services.databinding.emf.SegmentConverterListResultEMF#getListProperty()
48:          */
49:         @Override
50:         public IEMFListProperty getListProperty() {
51:                 return listProperty;
52:         }
53:
54:         /**
55:          * {@inheritDoc}
56:          *
57:          * @see org.eclipse.emfforms.spi.core.services.databinding.emf.SegmentConverterListResultEMF#getNextEClass()
58:          */
59:         @Override
60:         public Optional<EClass> getNextEClass() {
61:                 return Optional.ofNullable(nextEClass);
62:         }
63:
64: }