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.core.plugin;
11:
12: import org.eclipse.core.runtime.CoreException;
13:
14: /**
15: * An attribute of XML elements found in the plug-in.
16: */
17: public interface IPluginAttribute extends IPluginObject {
18: /**
19: * This property will be used to notify that the value
20: * of the attribute has changed.
21: */
22: String P_VALUE = "value"; //$NON-NLS-1$
23:
24: /**
25: * Returns the value of this attribute.
26: *
27: * @return the string value of the attribute
28: */
29: String getValue();
30:
31: /**
32: * Sets the value of this attribute.
33: * This method will throw a CoreExeption
34: * if the model is not editable.
35: *
36: * @param value the new attribute value
37: */
38: void setValue(String value) throws CoreException;
39: }
|