KickJava   Java API By Example, From Geeks To Geeks.

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


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 UpdateSiteIncludedFeatureReference extends IncludedFeatureReference{
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  public UpdateSiteIncludedFeatureReference() {
27   super();
28  }
29
30     public UpdateSiteIncludedFeatureReference(IIncludedFeatureReference include) {
31   super(include);
32  }
33
34
35  /**
36      * Get optional operating system specification as a comma-separated string.
37      *
38      * @return the operating system specification string, or <code>null</code>.
39      * @since 3.1
40      */

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

52     public String JavaDoc getWS() {
53         return ws;
54     }
55
56
57     /**
58      * Get optional system architecture specification as a comma-separated string.
59      *
60      * @return the system architecture specification string, or <code>null</code>.
61      * @since 3.1
62      */

63     public String JavaDoc getOSArch() {
64         return arch;
65     }
66
67
68     /**
69      * Get optional locale specification as a comma-separated string.
70      *
71      * @return the locale specification string, or <code>null</code>.
72      * @since 3.1
73      */

74     public String JavaDoc getNL() {
75         return nl;
76     }
77
78     /**
79      * Sets the operating system specification.
80      * Throws a runtime exception if this object is marked read-only.
81      *
82      * @param os operating system specification as a comma-separated list
83      * @since 3.1
84      */

85     public void setOS(String JavaDoc os) {
86         assertIsWriteable();
87         this.os = os;
88     }
89
90
91     /**
92      * Sets the windowing system specification.
93      * Throws a runtime exception if this object is marked read-only.
94      *
95      * @param ws windowing system specification as a comma-separated list
96      * @since 3.1
97      */

98     public void setWS(String JavaDoc ws) {
99         assertIsWriteable();
100         this.ws = ws;
101     }
102
103
104     /**
105      * Sets the locale specification.
106      * Throws a runtime exception if this object is marked read-only.
107      *
108      * @param nl locale specification as a comma-separated list
109      * @since 3.1
110      */

111     public void setNL(String JavaDoc nl) {
112         assertIsWriteable();
113         this.nl = nl;
114     }
115
116
117     /**
118      * Sets the system architecture specification.
119      * Throws a runtime exception if this object is marked read-only.
120      *
121      * @param arch system architecture specification as a comma-separated list
122      * @since 3.1
123      */

124     public void setArch(String JavaDoc arch) {
125         assertIsWriteable();
126         this.arch = arch;
127     }
128
129     /**
130      * Returns the patch mode.
131      * @since 3.1
132      */

133     public String JavaDoc getPatch() {
134         return patch;
135     }
136
137
138     /**
139      * Sets the patch mode.
140      * @since 3.1
141      */

142     public void setPatch(String JavaDoc patch) {
143         this.patch = patch;
144     }
145
146 }
147
Popular Tags