Debian Codegraph @

bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 IBM Corporation and others.
3 *
4 * 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 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.equinox.internal.p2.engine;
15
16 import org.eclipse.equinox.internal.p2.persistence.XMLConstants;
17 import org.eclipse.equinox.p2.metadata.Version;
18 import org.eclipse.equinox.p2.metadata.VersionRange;
19
20 /**
21 * Constants defining the structure of the XML for a Profile
22 */
23 public interface ProfileXMLConstants extends XMLConstants {
24
25 // A format version number for profile XML.
26 public static final Version CURRENT_VERSION = Version.createOSGi(1, 0, 0);
27 public static final Version COMPATIBLE_VERSION = Version.createOSGi(0, 0, 1);
28 public static final VersionRange XML_TOLERANCE = new VersionRange(COMPATIBLE_VERSION, true, Version.createOSGi(2, 0, 0), false);
29
30 // Constants for profile elements
31
32 public static final String PROFILE_ELEMENT = "profile"; //$NON-NLS-1$
33 public static final String TIMESTAMP_ATTRIBUTE = "timestamp"; //$NON-NLS-1$
34 public static final String IUS_PROPERTIES_ELEMENT = "iusProperties"; //$NON-NLS-1$
35 public static final String IU_PROPERTIES_ELEMENT = "iuProperties"; //$NON-NLS-1$
36 public static final String PROFILE_TARGET = "profile"; //$NON-NLS-1$
37 }