KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ibundle > IManifestHeader


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.ibundle;
12
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.pde.internal.core.text.IDocumentKey;
15
16
17 public interface IManifestHeader extends IDocumentKey {
18     
19     /**
20      * Returns the header key
21      */

22     String JavaDoc getKey();
23
24     /**
25      * Returns the header value
26      */

27     String JavaDoc getValue();
28         
29     /**
30      * Sets the name of the header
31      * This method will throw a CoreException if the model
32      * is not editable.
33      *
34      * @param key the header key
35      */

36     void setKey(String JavaDoc key) throws CoreException;
37     
38     /**
39      * Sets the value of the header
40      * This method will throw a CoreException if the model
41      * is not editable.
42      *
43      * @param value the header value
44      */

45     void setValue(String JavaDoc value);
46     
47     /**
48      * Forces the header to update its value based on the current components,
49      * attributes and directives it contains.
50      *
51      */

52     void update();
53     
54     /**
55      * Forces the header to update its value based on the current components,
56      * attributes and directives it contains.
57      * @param notify if true the model will be notified of the "changes"
58      */

59     void update(boolean notify);
60 }
61
Popular Tags