/******************************************************************************* * Copyright (c) 2007, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.equinox.internal.p2.engine; import org.eclipse.equinox.internal.p2.persistence.XMLConstants; import org.eclipse.equinox.p2.metadata.Version; import org.eclipse.equinox.p2.metadata.VersionRange; /** * Constants defining the structure of the XML for a Profile */ public interface ProfileXMLConstants extends XMLConstants { // A format version number for profile XML. public static final Version CURRENT_VERSION = Version.createOSGi(1, 0, 0); public static final Version COMPATIBLE_VERSION = Version.createOSGi(0, 0, 1); public static final VersionRange XML_TOLERANCE = new VersionRange(COMPATIBLE_VERSION, true, Version.createOSGi(2, 0, 0), false); // Constants for profile elements public static final String PROFILE_ELEMENT = "profile"; //$NON-NLS-1$ public static final String TIMESTAMP_ATTRIBUTE = "timestamp"; //$NON-NLS-1$ public static final String IUS_PROPERTIES_ELEMENT = "iusProperties"; //$NON-NLS-1$ public static final String IU_PROPERTIES_ELEMENT = "iuProperties"; //$NON-NLS-1$ public static final String PROFILE_TARGET = "profile"; //$NON-NLS-1$ }