01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.ifeature;
11:
12: import org.eclipse.core.runtime.CoreException;
13: import org.eclipse.pde.core.IIdentifiable;
14:
15: public interface IVersionable extends IIdentifiable {
16: /**
17: * A property that will be carried by the change event if 'version' field of
18: * this object is changed.
19: */
20: public static final String P_VERSION = "version"; //$NON-NLS-1$
21:
22: /**
23: * Returns a version of this object.
24: *
25: * @return the version of this object
26: */
27: public String getVersion();
28:
29: /**
30: * Sets the version of this IVersonable to the provided value. This method
31: * will throw CoreException if object is not editable.
32: *
33: * @param version
34: * a new version of this object
35: */
36: void setVersion(String version) throws CoreException;
37: }
|