KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > runtime > model > ConfigurationPropertyModel


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.core.runtime.model;
12
13 /**
14  * An object which represents the user-defined properties in a configuration
15  * element of a plug-in manifest. Properties are <code>String</code> -based
16  * key/value pairs.
17  * <p>
18  * This class may be instantiated, or further subclassed.
19  * </p>
20  * @deprecated In Eclipse 3.0 the runtime was refactored and all
21  * non-essential elements removed. This class provides facilities primarily intended
22  * for tooling. As such it has been removed and no directly substitutable API provided.
23  */

24 public class ConfigurationPropertyModel extends PluginModelObject {
25
26     // DTD properties (included in plug-in manifest)
27
private String JavaDoc value = null;
28
29     /**
30      * Creates a new configuration property model in which all fields are
31      * <code>null</code>.
32      */

33     public ConfigurationPropertyModel() {
34         super();
35     }
36
37     /**
38      * Returns the value of this property.
39      *
40      * @return the value of this property or <code>null</code>
41      */

42     public String JavaDoc getValue() {
43         return value;
44     }
45
46     /**
47      * Optimization to replace a non-localized key with its localized value.
48      * Avoids having to access resource bundles for further lookups.
49      *
50      * @param value the localized value of this model object
51      */

52     public void setLocalizedValue(String JavaDoc value) {
53         this.value = value;
54     }
55
56     /**
57      * Sets the value of this property. This object must not be read-only.
58      *
59      * @param value the new value of this property. May be <code>null</code>.
60      */

61     public void setValue(String JavaDoc value) {
62         assertIsWriteable();
63         this.value = value;
64     }
65 }
66
Popular Tags