KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > core > UpdateSiteFeatureReference


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.update.internal.core;
12
13 import org.eclipse.update.core.*;
14
15 /**
16  * Feature reference on an update site.
17  * @since 3.1
18  */

19 public class UpdateSiteFeatureReference extends SiteFeatureReference {
20     private String JavaDoc os;
21     private String JavaDoc ws;
22     private String JavaDoc nl;
23     private String JavaDoc arch;
24     private String JavaDoc patch;
25
26     /**
27      * Get optional operating system specification as a comma-separated string.
28      *
29      * @return the operating system specification string, or <code>null</code>.
30      * @since 3.1
31      */

32     public String JavaDoc getOS() {
33         return os;
34     }
35
36
37     /**
38      * Get optional windowing system specification as a comma-separated string.
39      *
40      * @return the windowing system specification string, or <code>null</code>.
41      * @since 3.1
42      */

43     public String JavaDoc getWS() {
44         return ws;
45     }
46
47
48     /**
49      * Get optional system architecture specification as a comma-separated string.
50      *
51      * @return the system architecture specification string, or <code>null</code>.
52      * @since 3.1
53      */

54     public String JavaDoc getOSArch() {
55         return arch;
56     }
57
58
59     /**
60      * Get optional locale specification as a comma-separated string.
61      *
62      * @return the locale specification string, or <code>null</code>.
63      * @since 3.1
64      */

65     public String JavaDoc getNL() {
66         return nl;
67     }
68
69     /**
70      * Sets the operating system specification.
71      * Throws a runtime exception if this object is marked read-only.
72      *
73      * @param os operating system specification as a comma-separated list
74      * @since 3.1
75      */

76     public void setOS(String JavaDoc os) {
77         assertIsWriteable();
78         this.os = os;
79     }
80
81
82     /**
83      * Sets the windowing system specification.
84      * Throws a runtime exception if this object is marked read-only.
85      *
86      * @param ws windowing system specification as a comma-separated list
87      * @since 3.1
88      */

89     public void setWS(String JavaDoc ws) {
90         assertIsWriteable();
91         this.ws = ws;
92     }
93
94
95     /**
96      * Sets the locale specification.
97      * Throws a runtime exception if this object is marked read-only.
98      *
99      * @param nl locale specification as a comma-separated list
100      * @since 3.1
101      */

102     public void setNL(String JavaDoc nl) {
103         assertIsWriteable();
104         this.nl = nl;
105     }
106
107
108     /**
109      * Sets the system architecture specification.
110      * Throws a runtime exception if this object is marked read-only.
111      *
112      * @param arch system architecture specification as a comma-separated list
113      * @since 3.1
114      */

115     public void setArch(String JavaDoc arch) {
116         assertIsWriteable();
117         this.arch = arch;
118     }
119
120     /**
121      * Returns the patch mode.
122      * @since 3.1
123      */

124     public String JavaDoc getPatch() {
125         return patch;
126     }
127
128
129     /**
130      * Sets the patch mode.
131      * @since 3.1
132      */

133     public void setPatch(String JavaDoc patch) {
134         this.patch = patch;
135     }
136
137 }
138
Popular Tags