Skip to content

Package: GenderValidator3

GenderValidator3

nameinstructionbranchcomplexitylinemethod
GenderValidator3()
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%
getValidatedEClassifier()
M: 11 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
validate(EDataType, Object, DiagnosticChain, Map)
M: 0 C: 2
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-2014 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: * Johannes Faltermeier - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.validation.diagnostician.test;
15:
16: import java.util.LinkedHashSet;
17: import java.util.Map;
18: import java.util.Set;
19:
20: import org.eclipse.emf.common.util.DiagnosticChain;
21: import org.eclipse.emf.ecore.EClassifier;
22: import org.eclipse.emf.ecore.EDataType;
23: import org.eclipse.emf.ecp.diagnostician.ECPValidator;
24: import org.eclipse.emf.emfstore.bowling.BowlingPackage;
25:
26: /**
27: * @author jfaltermeier
28: *
29: */
30: public class GenderValidator3 extends ECPValidator {
31:
32:         /**
33:          * {@inheritDoc}
34:          *
35:          * @see org.eclipse.emf.ecp.diagnostician.ECPValidator#getValidatedEClassifier()
36:          */
37:         @Override
38:         public Set<EClassifier> getValidatedEClassifier() {
39:                 final Set<EClassifier> classifiers = new LinkedHashSet<EClassifier>();
40:                 classifiers.add(BowlingPackage.eINSTANCE.getGender());
41:                 return classifiers;
42:         }
43:
44:         /**
45:          * {@inheritDoc}
46:          *
47:          * @see org.eclipse.emf.ecp.diagnostician.ECPValidator#validate(org.eclipse.emf.ecore.EDataType, java.lang.Object,
48:          * org.eclipse.emf.common.util.DiagnosticChain, java.util.Map)
49:          */
50:         @Override
51:         public boolean validate(EDataType eDataType, Object value, DiagnosticChain diagnostics,
52:                 Map<Object, Object> context) {
53:                 return true;
54:         }
55:
56: }