Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 01ec98c44fcf4d18dab3feb0d7e0b62f0b62bdee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************************
 * Copyright (c) 2019, 2021 CEA LIST, Christian W. Damus, and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
 *   Christian W. Damus - bugs 570097, 573788
 *
 *****************************************************************************/

package org.eclipse.papyrus.toolsmiths.validation.architecture.constants;

import org.eclipse.emf.common.util.URI;
import org.eclipse.papyrus.toolsmiths.validation.common.checkers.CommonProblemConstants;

/**
 * The architecture plug-in validation constants.
 */
public class ArchitecturePluginValidationConstants {

	/**
	 * The type for the validation of architecture plugin.
	 */
	public static final String ARCHITECTURE_PLUGIN_VALIDATION_MARKER_TYPE = "org.eclipse.papyrus.toolsmiths.validation.architecture.diagnostic"; //$NON-NLS-1$

	/**
	 * The extension point identifier for architecture configurations files.
	 */
	public static final String ARCHITECTURE_EXTENSION_POINT_IDENTIFIER = "org.eclipse.papyrus.infra.architecture.models"; //$NON-NLS-1$

	/** The architecture models extension point element name. */
	public static final String ELEM_MODEL = "model"; //$NON-NLS-1$
	/** The architecture models extension point attribute name for the resource path. */
	public static final String ATTR_PATH = "path"; //$NON-NLS-1$

	/** Problem IDs for the markers generated by architecture plug-in validation. */
	public static final int PROBLEM_ID_BASE = CommonProblemConstants.MAX_PROBLEM_ID + 0x01;
	public static final int MISSING_ARCHITECTURE_MODEL_EXTENSION_ID = PROBLEM_ID_BASE + 0x00;
	public static final int MISSING_REPRESENTATIONS_ADVICE_ID = PROBLEM_ID_BASE + 0x01;
	public static final int MAX_PROBLEM_ID = PROBLEM_ID_BASE + 0x3f;

	/** The URI of the <em>Element Types Configurations</em> model that has the Representations Advice. */
	public static final URI REPRESENTATIONS_ADVICE_URI = URI.createURI("pathmap://PAPYRUS_VIEWPOINTS_POLICY/representations/advice", true); //$NON-NLS-1$

}

Back to the top