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.ibundle;
11:
12: import org.eclipse.core.runtime.CoreException;
13: import org.eclipse.pde.internal.core.text.IDocumentKey;
14:
15: public interface IManifestHeader extends IDocumentKey {
16:
17: /**
18: * Returns the header key
19: */
20: String getKey();
21:
22: /**
23: * Returns the header value
24: */
25: String getValue();
26:
27: /**
28: * Sets the name of the header
29: * This method will throw a CoreException if the model
30: * is not editable.
31: *
32: * @param key the header key
33: */
34: void setKey(String key) throws CoreException;
35:
36: /**
37: * Sets the value of the header
38: * This method will throw a CoreException if the model
39: * is not editable.
40: *
41: * @param value the header value
42: */
43: void setValue(String value);
44:
45: /**
46: * Forces the header to update its value based on the current components,
47: * attributes and directives it contains.
48: *
49: */
50: void update();
51:
52: /**
53: * Forces the header to update its value based on the current components,
54: * attributes and directives it contains.
55: * @param notify if true the model will be notified of the "changes"
56: */
57: void update(boolean notify);
58: }
|