Skip to content

Package: VTStyleSelector

VTStyleSelector

nameinstructionbranchcomplexitylinemethod
static {...}
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-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: * EclipseSource Munich - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.view.template.model;
15:
16: import org.eclipse.emf.ecore.EObject;
17: import org.eclipse.emf.ecp.view.spi.context.ViewModelContext;
18: import org.eclipse.emf.ecp.view.spi.model.VElement;
19:
20: /**
21: * <!-- begin-user-doc -->
22: * A representation of the model object '<em><b>Style Selector</b></em>'.
23: * <!-- end-user-doc -->
24: *
25: *
26: * @see org.eclipse.emf.ecp.view.template.model.VTTemplatePackage#getStyleSelector()
27: * @model interface="true" abstract="true"
28: * @generated
29: */
30: public interface VTStyleSelector extends EObject {
31:
32:         /**
33:          * Return this constant if the selector is not applicable.
34:          */
35:         static final Double NOT_APPLICABLE = Double.MIN_VALUE;
36:
37:         /**
38:          * Checks how well a {@link VElement} is fitting.
39:          *
40:          * @param vElement the {@link VElement} to check
41:          * @param viewModelContext the {@link ViewModelContext} currently used
42:          * @return a double defining the specificity of the selector. The higher the number the more specific the tester is.
43:          */
44:         double isApplicable(VElement vElement, ViewModelContext viewModelContext);
45: } // VTStyleSelector