svn-gvsig-desktop / tags / tmp_build / build / distribution / izpack_4.2.0 / doc / izpack / javadoc / com / izforge / izpack / util / OSClassHelper.html @ 26384
History | View | Annotate | Download (14.1 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|---|
2 |
<!--NewPage-->
|
3 |
<HTML>
|
4 |
<HEAD>
|
5 |
<!-- Generated by javadoc (build 1.5.0_16) on Wed Dec 17 09:24:18 CET 2008 -->
|
6 |
<TITLE>
|
7 |
OSClassHelper |
8 |
</TITLE>
|
9 |
|
10 |
<META NAME="keywords" CONTENT="com.izforge.izpack.util.OSClassHelper class"> |
11 |
|
12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
13 |
|
14 |
<SCRIPT type="text/javascript"> |
15 |
function windowTitle() |
16 |
{ |
17 |
parent.document.title="OSClassHelper"; |
18 |
} |
19 |
</SCRIPT>
|
20 |
<NOSCRIPT>
|
21 |
</NOSCRIPT>
|
22 |
|
23 |
</HEAD>
|
24 |
|
25 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
26 |
|
27 |
|
28 |
<!-- ========= START OF TOP NAVBAR ======= -->
|
29 |
<A NAME="navbar_top"><!-- --></A> |
30 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
31 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
32 |
<TR>
|
33 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
34 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
35 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
36 |
<TR ALIGN="center" VALIGN="top"> |
37 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
39 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
43 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
44 |
</TR>
|
45 |
</TABLE>
|
46 |
</TD>
|
47 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
48 |
</EM>
|
49 |
</TD>
|
50 |
</TR>
|
51 |
|
52 |
<TR>
|
53 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
54 |
<A HREF="../../../../com/izforge/izpack/util/NotEmptyValidator.html" title="class in com.izforge.izpack.util"><B>PREV CLASS</B></A> |
55 |
<A HREF="../../../../com/izforge/izpack/util/OsConstraint.html" title="class in com.izforge.izpack.util"><B>NEXT CLASS</B></A></FONT></TD> |
56 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
57 |
<A HREF="../../../../index.html?com/izforge/izpack/util/OSClassHelper.html" target="_top"><B>FRAMES</B></A> |
58 |
<A HREF="OSClassHelper.html" target="_top"><B>NO FRAMES</B></A> |
59 |
<SCRIPT type="text/javascript"> |
60 |
<!--
|
61 |
if(window==top) {
|
62 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
63 |
}
|
64 |
//-->
|
65 |
</SCRIPT>
|
66 |
<NOSCRIPT>
|
67 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
68 |
</NOSCRIPT>
|
69 |
|
70 |
|
71 |
</FONT></TD> |
72 |
</TR>
|
73 |
<TR>
|
74 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
75 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
76 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
77 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
78 |
</TR>
|
79 |
</TABLE>
|
80 |
<A NAME="skip-navbar_top"></A> |
81 |
<!-- ========= END OF TOP NAVBAR ========= -->
|
82 |
|
83 |
<HR>
|
84 |
<!-- ======== START OF CLASS DATA ======== -->
|
85 |
<H2>
|
86 |
<FONT SIZE="-1"> |
87 |
com.izforge.izpack.util</FONT>
|
88 |
<BR>
|
89 |
Class OSClassHelper</H2>
|
90 |
<PRE>
|
91 |
java.lang.Object |
92 |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.izforge.izpack.util.OSClassHelper</B> |
93 |
</PRE>
|
94 |
<DL>
|
95 |
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/izforge/izpack/util/os/RegistryHandler.html" title="class in com.izforge.izpack.util.os">RegistryHandler</A></DD> |
96 |
</DL>
|
97 |
<HR>
|
98 |
<DL>
|
99 |
<DT><PRE>public class <B>OSClassHelper</B><DT>extends java.lang.Object</DL> |
100 |
</PRE>
|
101 |
|
102 |
<P>
|
103 |
This class is the system independent base class for helpers which are system dependent in its |
104 |
subclasses. |
105 |
<P>
|
106 |
|
107 |
<P>
|
108 |
<DL>
|
109 |
<DT><B>Author:</B></DT> |
110 |
<DD>Klaus Bartz</DD> |
111 |
</DL>
|
112 |
<HR>
|
113 |
|
114 |
<P>
|
115 |
<!-- =========== FIELD SUMMARY =========== -->
|
116 |
|
117 |
<A NAME="field_summary"><!-- --></A> |
118 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
119 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
120 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
121 |
<B>Field Summary</B></FONT></TH> |
122 |
</TR>
|
123 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
124 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
125 |
<CODE>protected <A HREF="../../../../com/izforge/izpack/installer/AutomatedInstallData.html" title="class in com.izforge.izpack.installer">AutomatedInstallData</A></CODE></FONT></TD> |
126 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#installdata">installdata</A></B></CODE> |
127 |
|
128 |
<BR>
|
129 |
</TD> |
130 |
</TR>
|
131 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
132 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
133 |
<CODE>protected java.lang.Object</CODE></FONT></TD> |
134 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#worker">worker</A></B></CODE> |
135 |
|
136 |
<BR>
|
137 |
</TD> |
138 |
</TR>
|
139 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
140 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
141 |
<CODE>protected java.lang.Class</CODE></FONT></TD> |
142 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#workerClass">workerClass</A></B></CODE> |
143 |
|
144 |
<BR>
|
145 |
</TD> |
146 |
</TR>
|
147 |
</TABLE>
|
148 |
|
149 |
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
150 |
|
151 |
<A NAME="constructor_summary"><!-- --></A> |
152 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
153 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
154 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
155 |
<B>Constructor Summary</B></FONT></TH> |
156 |
</TR>
|
157 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
158 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#OSClassHelper()">OSClassHelper</A></B>()</CODE> |
159 |
|
160 |
<BR>
|
161 |
Default constructor</TD> |
162 |
</TR>
|
163 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
164 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#OSClassHelper(java.lang.String)">OSClassHelper</A></B>(java.lang.String className)</CODE> |
165 |
|
166 |
<BR>
|
167 |
Creates an object which contains as worker an object of the given class name if possible.</TD> |
168 |
</TR>
|
169 |
</TABLE>
|
170 |
|
171 |
<!-- ========== METHOD SUMMARY =========== -->
|
172 |
|
173 |
<A NAME="method_summary"><!-- --></A> |
174 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
175 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
176 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
177 |
<B>Method Summary</B></FONT></TH> |
178 |
</TR>
|
179 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
180 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
181 |
<CODE> boolean</CODE></FONT></TD> |
182 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#good()">good</A></B>()</CODE> |
183 |
|
184 |
<BR>
|
185 |
Return whether the helper can do the work or not.</TD> |
186 |
</TR>
|
187 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
188 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
189 |
<CODE> boolean</CODE></FONT></TD> |
190 |
<TD><CODE><B><A HREF="../../../../com/izforge/izpack/util/OSClassHelper.html#verify(com.izforge.izpack.installer.AutomatedInstallData)">verify</A></B>(<A HREF="../../../../com/izforge/izpack/installer/AutomatedInstallData.html" title="class in com.izforge.izpack.installer">AutomatedInstallData</A> idata)</CODE> |
191 |
|
192 |
<BR>
|
193 |
Verifies the helper.</TD> |
194 |
</TR>
|
195 |
</TABLE>
|
196 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
197 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
198 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
199 |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
200 |
</TR>
|
201 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
202 |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
203 |
</TR>
|
204 |
</TABLE>
|
205 |
|
206 |
<P>
|
207 |
|
208 |
<!-- ============ FIELD DETAIL =========== -->
|
209 |
|
210 |
<A NAME="field_detail"><!-- --></A> |
211 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
212 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
213 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
214 |
<B>Field Detail</B></FONT></TH> |
215 |
</TR>
|
216 |
</TABLE>
|
217 |
|
218 |
<A NAME="installdata"><!-- --></A><H3> |
219 |
installdata</H3>
|
220 |
<PRE>
|
221 |
protected <A HREF="../../../../com/izforge/izpack/installer/AutomatedInstallData.html" title="class in com.izforge.izpack.installer">AutomatedInstallData</A> <B>installdata</B></PRE> |
222 |
<DL>
|
223 |
<DL>
|
224 |
</DL>
|
225 |
</DL>
|
226 |
<HR>
|
227 |
|
228 |
<A NAME="workerClass"><!-- --></A><H3> |
229 |
workerClass</H3>
|
230 |
<PRE>
|
231 |
protected java.lang.Class <B>workerClass</B></PRE> |
232 |
<DL>
|
233 |
<DL>
|
234 |
</DL>
|
235 |
</DL>
|
236 |
<HR>
|
237 |
|
238 |
<A NAME="worker"><!-- --></A><H3> |
239 |
worker</H3>
|
240 |
<PRE>
|
241 |
protected java.lang.Object <B>worker</B></PRE> |
242 |
<DL>
|
243 |
<DL>
|
244 |
</DL>
|
245 |
</DL>
|
246 |
|
247 |
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
248 |
|
249 |
<A NAME="constructor_detail"><!-- --></A> |
250 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
251 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
252 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
253 |
<B>Constructor Detail</B></FONT></TH> |
254 |
</TR>
|
255 |
</TABLE>
|
256 |
|
257 |
<A NAME="OSClassHelper()"><!-- --></A><H3> |
258 |
OSClassHelper</H3>
|
259 |
<PRE>
|
260 |
public <B>OSClassHelper</B>()</PRE> |
261 |
<DL>
|
262 |
<DD>Default constructor
|
263 |
<P>
|
264 |
</DL>
|
265 |
<HR>
|
266 |
|
267 |
<A NAME="OSClassHelper(java.lang.String)"><!-- --></A><H3> |
268 |
OSClassHelper</H3>
|
269 |
<PRE>
|
270 |
public <B>OSClassHelper</B>(java.lang.String className)</PRE> |
271 |
<DL>
|
272 |
<DD>Creates an object which contains as worker an object of the given class name if possible. If
|
273 |
not possible, only the stack trace will be printed, no exception will be raised. To determine |
274 |
the state, there is the method good. |
275 |
<P>
|
276 |
<DL>
|
277 |
<DT><B>Parameters:</B><DD><CODE>className</CODE> - full qualified class name of the needed worker</DL> |
278 |
</DL>
|
279 |
|
280 |
<!-- ============ METHOD DETAIL ========== -->
|
281 |
|
282 |
<A NAME="method_detail"><!-- --></A> |
283 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
284 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
285 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
286 |
<B>Method Detail</B></FONT></TH> |
287 |
</TR>
|
288 |
</TABLE>
|
289 |
|
290 |
<A NAME="good()"><!-- --></A><H3> |
291 |
good</H3>
|
292 |
<PRE>
|
293 |
public boolean <B>good</B>()</PRE> |
294 |
<DL>
|
295 |
<DD>Return whether the helper can do the work or not.
|
296 |
<P>
|
297 |
<DD><DL> |
298 |
|
299 |
<DT><B>Returns:</B><DD>whether the helper can do the work or not</DL> |
300 |
</DD>
|
301 |
</DL>
|
302 |
<HR>
|
303 |
|
304 |
<A NAME="verify(com.izforge.izpack.installer.AutomatedInstallData)"><!-- --></A><H3> |
305 |
verify</H3>
|
306 |
<PRE>
|
307 |
public boolean <B>verify</B>(<A HREF="../../../../com/izforge/izpack/installer/AutomatedInstallData.html" title="class in com.izforge.izpack.installer">AutomatedInstallData</A> idata) |
308 |
throws java.lang.Exception</PRE>
|
309 |
<DL>
|
310 |
<DD>Verifies the helper.
|
311 |
<P>
|
312 |
<DD><DL> |
313 |
<DT><B>Parameters:</B><DD><CODE>idata</CODE> - current install data |
314 |
<DT><B>Returns:</B><DD>whether the helper is good or not |
315 |
<DT><B>Throws:</B> |
316 |
<DD><CODE>java.lang.Exception</CODE></DL> |
317 |
</DD>
|
318 |
</DL>
|
319 |
<!-- ========= END OF CLASS DATA ========= -->
|
320 |
<HR>
|
321 |
|
322 |
|
323 |
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
324 |
<A NAME="navbar_bottom"><!-- --></A> |
325 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
326 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
327 |
<TR>
|
328 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
329 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
330 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
331 |
<TR ALIGN="center" VALIGN="top"> |
332 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
333 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
334 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
335 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
336 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
337 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
338 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
339 |
</TR>
|
340 |
</TABLE>
|
341 |
</TD>
|
342 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
343 |
</EM>
|
344 |
</TD>
|
345 |
</TR>
|
346 |
|
347 |
<TR>
|
348 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
349 |
<A HREF="../../../../com/izforge/izpack/util/NotEmptyValidator.html" title="class in com.izforge.izpack.util"><B>PREV CLASS</B></A> |
350 |
<A HREF="../../../../com/izforge/izpack/util/OsConstraint.html" title="class in com.izforge.izpack.util"><B>NEXT CLASS</B></A></FONT></TD> |
351 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
352 |
<A HREF="../../../../index.html?com/izforge/izpack/util/OSClassHelper.html" target="_top"><B>FRAMES</B></A> |
353 |
<A HREF="OSClassHelper.html" target="_top"><B>NO FRAMES</B></A> |
354 |
<SCRIPT type="text/javascript"> |
355 |
<!--
|
356 |
if(window==top) {
|
357 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
358 |
}
|
359 |
//-->
|
360 |
</SCRIPT>
|
361 |
<NOSCRIPT>
|
362 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
363 |
</NOSCRIPT>
|
364 |
|
365 |
|
366 |
</FONT></TD> |
367 |
</TR>
|
368 |
<TR>
|
369 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
370 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
371 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
372 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
373 |
</TR>
|
374 |
</TABLE>
|
375 |
<A NAME="skip-navbar_bottom"></A> |
376 |
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
377 |
|
378 |
<HR>
|
379 |
|
380 |
</BODY>
|
381 |
</HTML>
|