KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ifeature > IVersionable


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.core.ifeature;
12
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.pde.core.IIdentifiable;
15
16 public interface IVersionable extends IIdentifiable {
17     /**
18      * A property that will be carried by the change event if 'version' field of
19      * this object is changed.
20      */

21     public static final String JavaDoc P_VERSION = "version"; //$NON-NLS-1$
22

23     /**
24      * Returns a version of this object.
25      *
26      * @return the version of this object
27      */

28     public String JavaDoc getVersion();
29
30     /**
31      * Sets the version of this IVersonable to the provided value. This method
32      * will throw CoreException if object is not editable.
33      *
34      * @param version
35      * a new version of this object
36      */

37     void setVersion(String JavaDoc version) throws CoreException;
38 }
39
Popular Tags