KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > ui > about > Licences


1 /* ========================================================================
2  * JCommon : a free general purpose class library for the Java(tm) platform
3  * ========================================================================
4  *
5  * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
6  *
7  * Project Info: http://www.jfree.org/jcommon/index.html
8  *
9  * This library is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17  * License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22  * USA.
23  *
24  * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
25  * in the United States and other countries.]
26  *
27  * -------------
28  * Licences.java
29  * -------------
30  * (C) Copyright 2001-2004, by Object Refinery Limited.
31  *
32  * Original Author: David Gilbert (for Object Refinery Limited);
33  * Contributor(s): -;
34  *
35  * $Id: Licences.java,v 1.4 2005/11/16 15:58:41 taqua Exp $
36  *
37  * Changes
38  * -------
39  * 26-Nov-2001 : Version 1 (DG);
40  * 29-Jan-2002 : Appended the instructions to the end of the GNU LGPL and GPL to comply with
41  * GNU requirements (DG);
42  * 28-Feb-2002 : Moved to package com.jrefinery.ui.about (DG);
43  * 08-Oct-2002 : Fixed errors reported by Checkstyle (DG);
44  *
45  */

46
47 package org.jfree.ui.about;
48
49 /**
50  * Contains the full texts of the GNU General Public Licence and the GNU Lesser General Public
51  * Licence.
52  * <P>
53  * These are used in the presentation of a standard 'About' frame.
54  *
55  * @author David Gilbert
56  */

57 public class Licences {
58
59     /** The GNU General Public Licence. */
60     public static final String JavaDoc GPL = "GNU GENERAL PUBLIC LICENSE\n"
61         + "\n"
62         + "Version 2, June 1991\n"
63         + "\n"
64         + "Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, "
65         + "MA 02139, USA. Everyone is permitted to copy and distribute verbatim copies of this "
66         + "license document, but changing it is not allowed.\n"
67         + "\n"
68         + "Preamble\n"
69         + "The licenses for most software are designed to take away your freedom to share and "
70         + "change it. By contrast, the GNU General Public License is intended to guarantee your "
71         + "freedom to share and change free software--to make sure the software is free for all "
72         + "its users. This General Public License applies to most of the Free Software "
73         + "Foundation's software and to any other program whose authors commit to using it. (Some "
74         + "other Free Software Foundation software is covered by the GNU Library General Public "
75         + "License instead.) You can apply it to your programs, too.\n"
76         + "\n"
77         + "When we speak of free software, we are referring to freedom, not price. Our General "
78         + "Public Licenses are designed to make sure that you have the freedom to distribute "
79         + "copies of free software (and charge for this service if you wish), that you receive "
80         + "source code or can get it if you want it, that you can change the software or use "
81         + "pieces of it in new free programs; and that you know you can do these things."
82         + "\n"
83         + "To protect your rights, we need to make restrictions that forbid anyone to deny you "
84         + "these rights or to ask you to surrender the rights. These restrictions translate to "
85         + "certain responsibilities for you if you distribute copies of the software, or if you "
86         + "modify it.\n"
87         + "\n"
88         + "For example, if you distribute copies of such a program, whether gratis or for a fee, "
89         + "you must give the recipients all the rights that you have. You must make sure that "
90         + "they, too, receive or can get the source code. And you must show them these terms so "
91         + "they know their rights.\n"
92         + "\n"
93         + "We protect your rights with two steps: (1) copyright the software, and (2) offer you "
94         + "this license which gives you legal permission to copy, distribute and/or modify the "
95         + "software.\n"
96         + "\n"
97         + "Also, for each author's protection and ours, we want to make certain that everyone "
98         + "understands that there is no warranty for this free software. If the software is "
99         + "modified by someone else and passed on, we want its recipients to know that what they "
100         + "have is not the original, so that any problems introduced by others will not reflect "
101         + "on the original authors' reputations.\n"
102         + "\n"
103         + "Finally, any free program is threatened constantly by software patents. We wish to "
104         + "avoid the danger that redistributors of a free program will individually obtain patent "
105         + "licenses, in effect making the program proprietary. To prevent this, we have made it "
106         + "clear that any patent must be licensed for everyone's free use or not licensed at "
107         + "all.\n"
108         + "\n"
109         + "The precise terms and conditions for copying, distribution and modification follow.\n"
110         + "\n"
111         + "GNU GENERAL PUBLIC LICENSE\n"
112         + "TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n"
113         + "\n"
114         + "0. This License applies to any program or other work which contains a notice placed by "
115         + "the copyright holder saying it may be distributed under the terms of this General "
116         + "Public License. The \"Program\", below, refers to any such program or work, and a "
117         + "\"work based on the Program\" means either the Program or any derivative work under "
118         + "copyright law: that is to say, a work containing the Program or a portion of it, "
119         + "either verbatim or with modifications and/or translated into another language. "
120         + "(Hereinafter, translation is included without limitation in the term "
121         + "\"modification\".) Each licensee is addressed as \"you\".\n"
122         + "\n"
123         + "Activities other than copying, distribution and modification are not covered by this "
124         + "License; they are outside its scope. The act of running the Program is not restricted, "
125         + "and the output from the Program is covered only if its contents constitute a work "
126         + "based on the Program (independent of having been made by running the Program). Whether "
127         + "that is true depends on what the Program does.\n"
128         + "\n"
129         + "1. You may copy and distribute verbatim copies of the Program's source code as you "
130         + "receive it, in any medium, provided that you conspicuously and appropriately publish "
131         + "on each copy an appropriate copyright notice and disclaimer of warranty; keep intact "
132         + "all the notices that refer to this License and to the absence of any warranty; and "
133         + "give any other recipients of the Program a copy of this License along with the "
134         + "Program.\n"
135         + "\n"
136         + "You may charge a fee for the physical act of transferring a copy, and you may at your "
137         + "option offer warranty protection in exchange for a fee.\n"
138         + "\n"
139         + "2. You may modify your copy or copies of the Program or any portion of it, thus "
140         + "forming a work based on the Program, and copy and distribute such modifications or "
141         + "work under the terms of Section 1 above, provided that you also meet all of these "
142         + "conditions:\n"
143         + "\n"
144         + "a) You must cause the modified files to carry prominent notices stating that you "
145         + "changed the files and the date of any change.\n"
146         + "\n"
147         + "b) You must cause any work that you distribute or publish, that in whole or in part "
148         + "contains or is derived from the Program or any part thereof, to be licensed as a whole "
149         + "at no charge to all third parties under the terms of this License.\n"
150         + "\n"
151         + "c) If the modified program normally reads commands interactively when run, you must "
152         + "cause it, when started running for such interactive use in the most ordinary way, to "
153         + "print or display an announcement including an appropriate copyright notice and a "
154         + "notice that there is no warranty (or else, saying that you provide a warranty) and "
155         + "that users may redistribute the program under these conditions, and telling the user "
156         + "how to view a copy of this License. (Exception: if the Program itself is interactive "
157         + "but does not normally print such an announcement, your work based on the Program is "
158         + "not required to print an announcement.)\n"
159         + "\n"
160         + "These requirements apply to the modified work as a whole. If identifiable sections of "
161         + "that work are not derived from the Program, and can be reasonably considered "
162         + "independent and separate works in themselves, then this License, and its terms, do not "
163         + "apply to those sections when you distribute them as separate works. But when you "
164         + "distribute the same sections as part of a whole which is a work based on the Program, "
165         + "the distribution of the whole must be on the terms of this License, whose permissions "
166         + "for other licensees extend to the entire whole, and thus to each and every part "
167         + "regardless of who wrote it.\n"
168         + "\n"
169         + "Thus, it is not the intent of this section to claim rights or contest your rights to "
170         + "work written entirely by you; rather, the intent is to exercise the right to control "
171         + "the distribution of derivative or collective works based on the Program.\n"
172         + "\n"
173         + "In addition, mere aggregation of another work not based on the Program with the "
174         + "Program (or with a work based on the Program) on a volume of a storage or distribution "
175         + "medium does not bring the other work under the scope of this License.\n"
176         + "\n"
177         + "3. You may copy and distribute the Program (or a work based on it, under Section 2) in "
178         + "object code or executable form under the terms of Sections 1 and 2 above provided that "
179         + "you also do one of the following:\n"
180         + "\n"
181         + "a) Accompany it with the complete corresponding machine-readable source code, which "
182         + "must be distributed under the terms of Sections 1 and 2 above on a medium customarily "
183         + "used for software interchange; or,\n"
184         + "b) Accompany it with a written offer, valid for at least three years, to give any "
185         + "third party, for a charge no more than your cost of physically performing source "
186         + "distribution, a complete machine-readable copy of the corresponding source code, to be "
187         + "distributed under the terms of Sections 1 and 2 above on a medium customarily used for "
188         + "software interchange; or,\n"
189         + "c) Accompany it with the information you received as to the offer to distribute "
190         + "corresponding source code. (This alternative is allowed only for noncommercial "
191         + "distribution and only if you received the program in object code or executable form "
192         + "with such an offer, in accord with Subsection b above.)\n"
193         + "\n"
194         + "The source code for a work means the preferred form of the work for making "
195         + "modifications to it. For an executable work, complete source code means all the source "
196         + "code for all modules it contains, plus any associated interface definition files, plus "
197         + "the scripts used to control compilation and installation of the executable. However, "
198         + "as a special exception, the source code distributed need not include anything that is "
199         + "normally distributed (in either source or binary form) with the major components "
200         + "(compiler, kernel, and so on) of the operating system on which the executable runs, "
201         + "unless that component itself accompanies the executable.\n"
202         + "\n"
203         + "If distribution of executable or object code is made by offering access to copy from a "
204         + "designated place, then offering equivalent access to copy the source code from the "
205         + "same place counts as distribution of the source code, even though third parties are "
206         + "not compelled to copy the source along with the object code.\n"
207         + "\n"
208         + "4. You may not copy, modify, sublicense, or distribute the Program except as expressly "
209         + "provided under this License. Any attempt otherwise to copy, modify, sublicense or "
210         + "distribute the Program is void, and will automatically terminate your rights under "
211         + "this License. However, parties who have received copies, or rights, from you under "
212         + "this License will not have their licenses terminated so long as such parties remain in "
213         + "full compliance."
214         + "\n"
215         + "5. You are not required to accept this License, since you have not signed it. However, "
216         + "nothing else grants you permission to modify or distribute the Program or its "
217         + "derivative works. These actions are prohibited by law if you do not accept this "
218         + "License. Therefore, by modifying or distributing the Program (or any work based on the "
219         + "Program), you indicate your acceptance of this License to do so, and all its terms and "
220         + "conditions for copying, distributing or modifying the Program or works based on it.\n"
221         + "\n"
222         + "6. Each time you redistribute the Program (or any work based on the Program), the "
223         + "recipient automatically receives a license from the original licensor to copy, "
224         + "distribute or modify the Program subject to these terms and conditions. You may not "
225         + "impose any further restrictions on the recipients' exercise of the rights granted "
226         + "herein. You are not responsible for enforcing compliance by third parties to this "
227         + "License."
228         + "\n"
229         + "7. If, as a consequence of a court judgment or allegation of patent infringement or "
230         + "for any other reason (not limited to patent issues), conditions are imposed on you "
231         + "(whether by court order, agreement or otherwise) that contradict the conditions of "
232         + "this License, they do not excuse you from the conditions of this License. If you "
233         + "cannot distribute so as to satisfy simultaneously your obligations under this License "
234         + "and any other pertinent obligations, then as a consequence you may not distribute the "
235         + "Program at all. For example, if a patent license would not permit royalty-free "
236         + "redistribution of the Program by all those who receive copies directly or indirectly "
237         + "through you, then the only way you could satisfy both it and this License would be to "
238         + "refrain entirely from distribution of the Program.\n"
239         + "\n"
240         + "If any portion of this section is held invalid or unenforceable under any particular "
241         + "circumstance, the balance of the section is intended to apply and the section as a "
242         + "whole is intended to apply in other circumstances.\n"
243         + "\n"
244         + "It is not the purpose of this section to induce you to infringe any patents or other "
245         + "property right claims or to contest validity of any such claims; this section has the "
246         + "sole purpose of protecting the integrity of the free software distribution system, "
247         + "which is implemented by public license practices. Many people have made generous "
248         + "contributions to the wide range of software distributed through that system in "
249         + "reliance on consistent application of that system; it is up to the author/donor to "
250         + "decide if he or she is willing to distribute software through any other system and a "
251         + "licensee cannot impose that choice.\n"
252         + "\n"
253         + "This section is intended to make thoroughly clear what is believed to be a consequence "
254         + "of the rest of this License.\n"
255         + "\n"
256         + "8. If the distribution and/or use of the Program is restricted in certain countries "
257         + "either by patents or by copyrighted interfaces, the original copyright holder who "
258         + "places the Program under this License may add an explicit geographical distribution "
259         + "limitation excluding those countries, so that distribution is permitted only in or "
260         + "among countries not thus excluded. In such case, this License incorporates the "
261         + "limitation as if written in the body of this License.\n"
262         + "\n"
263         + "9. The Free Software Foundation may publish revised and/or new versions of the General "
264         + "Public License from time to time. Such new versions will be similar in spirit to the "
265         + "present version, but may differ in detail to address new problems or concerns.\n"
266         + "\n"
267         + "Each version is given a distinguishing version number. If the Program specifies a "
268         + "version number of this License which applies to it and \"any later version\", you have "
269         + "the option of following the terms and conditions either of that version or of any "
270         + "later version published by the Free Software Foundation. If the Program does not "
271         + "specify a version number of this License, you may choose any version ever published by "
272         + "the Free Software Foundation.\n"
273         + "\n"
274         + "10. If you wish to incorporate parts of the Program into other free programs whose "
275         + "distribution conditions are different, write to the author to ask for permission. For "
276         + "software which is copyrighted by the Free Software Foundation, write to the Free "
277         + "Software Foundation; we sometimes make exceptions for this. Our decision will be "
278         + "guided by the two goals of preserving the free status of all derivatives of our free "
279         + "software and of promoting the sharing and reuse of software generally.\n"
280         + "\n"
281         + "NO WARRANTY\n"
282         + "\n"
283         + "11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE "
284         + "PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN "
285         + "WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" "
286         + "WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED "
287         + "TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. "
288         + "THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD "
289         + "THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR "
290         + "CORRECTION.\n"
291         + "\n"
292         + "12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY "
293         + "COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS "
294         + "PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, "
295         + "INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE "
296         + "PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE "
297         + "OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE "
298         + "WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE "
299         + "POSSIBILITY OF SUCH DAMAGES.\n"
300         + "\n"
301         + "END OF TERMS AND CONDITIONS\n"
302         + "\n"
303         + "\n"
304         + "How to Apply These Terms to Your New Programs\n"
305         + "\n"
306         + "If you develop a new program, and you want it to be of the greatest possible use to "
307         + "the public, the best way to achieve this is to make it free software which everyone "
308         + "can redistribute and change under these terms.\n"
309         + "\n"
310         + "To do so, attach the following notices to the program. It is safest to attach them to "
311         + "the start of each source file to most effectively convey the exclusion of warranty; "
312         + "and each file should have at least the \"copyright\" line and a pointer to where the "
313         + "full notice is found.\n"
314         + "\n"
315         + "<one line to give the program's name and a brief idea of what it does.>\n"
316         + "Copyright (C) <year> <name of author>\n"
317         + "\n"
318         + "This program is free software; you can redistribute it and/or modify it under the "
319         + "terms of the GNU General Public License as published by the Free Software Foundation; "
320         + "either version 2 of the License, or (at your option) any later version.\n"
321         + "\n"
322         + "This program is distributed in the hope that it will be useful, but WITHOUT ANY "
323         + "WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A "
324         + "PARTICULAR PURPOSE. See the GNU General Public License for more details.\n"
325         + "\n"
326         + "You should have received a copy of the GNU General Public License along with this "
327         + "program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite "
328         + "330, Boston, MA 02111-1307 USA\n"
329         + "\n"
330         + "Also add information on how to contact you by electronic and paper mail.\n"
331         + "\n"
332         + "If the program is interactive, make it output a short notice like this when it starts "
333         + "in an interactive mode:\n"
334         + "\n"
335         + "Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with "
336         + "ABSOLUTELY NO WARRANTY; for details type `show w'.\n"
337         + "This is free software, and you are welcome to redistribute it under certain "
338         + "conditions; type `show c' for details.\n"
339         + "\n"
340         + "The hypothetical commands `show w' and `show c' should show the appropriate parts of "
341         + "the General Public License. Of course, the commands you use may be called something "
342         + "other than `show w' and `show c'; they could even be mouse-clicks or menu items"
343         + "--whatever suits your program.\n"
344         + "\n"
345         + "You should also get your employer (if you work as a programmer) or your school, if "
346         + "any, to sign a \"copyright disclaimer\" for the program, if necessary. Here is a "
347         + "sample; alter the names:\n"
348         + "\n"
349         + "Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' "
350         + "(which makes passes at compilers) written by James Hacker.\n"
351         + "\n"
352         + "<signature of Ty Coon>, 1 April 1989\n"
353         + "Ty Coon, President of Vice\n"
354         + "\n"
355         + "This General Public License does not permit incorporating your program into "
356         + "proprietary programs. If your program is a subroutine library, you may consider it "
357         + "more useful to permit linking proprietary applications with the library. If this is "
358         + "what you want to do, use the GNU Library General Public License instead of this "
359         + "License.\n";
360
361     /** The GNU Lesser General Public Licence. */
362     public static final String JavaDoc LGPL = "GNU LESSER GENERAL PUBLIC LICENSE\n"
363         + "\n"
364         + "Version 2.1, February 1999\n"
365         + "\n"
366         + "Copyright (C) 1991, 1999 Free Software Foundation, Inc.\n"
367         + "59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n"
368         + "Everyone is permitted to copy and distribute verbatim copies of this license document, "
369         + "but changing it is not allowed.\n"
370         + "\n"
371         + "[This is the first released version of the Lesser GPL. It also counts as the "
372         + "successor of the GNU Library Public License, version 2, hence the version number "
373         + "2.1.]\n"
374         + "\n"
375         + "Preamble\n"
376         + "\n"
377         + "The licenses for most software are designed to take away your freedom to share and "
378         + "change it. By contrast, the GNU General Public Licenses are intended to guarantee your "
379         + "freedom to share and change free software--to make sure the software is free for all "
380         + "its users.\n"
381         + "\n"
382         + "This license, the Lesser General Public License, applies to some specially designated "
383         + "software packages--typically libraries--of the Free Software Foundation and other "
384         + "authors who decide to use it. You can use it too, but we suggest you first think "
385         + "carefully about whether this license or the ordinary General Public License is the "
386         + "better strategy to use in any particular case, based on the explanations below.\n"
387         + "\n"
388         + "When we speak of free software, we are referring to freedom of use, not price. Our "
389         + "General Public Licenses are designed to make sure that you have the freedom to "
390         + "distribute copies of free software (and charge for this service if you wish); that you "
391         + "receive source code or can get it if you want it; that you can change the software and "
392         + "use pieces of it in new free programs; and that you are informed that you can do these "
393         + "things.\n"
394         + "\n"
395         + "To protect your rights, we need to make restrictions that forbid distributors to deny "
396         + "you these rights or to ask you to surrender these rights. These restrictions translate "
397         + "to certain responsibilities for you if you distribute copies of the library or if you "
398         + "modify it.\n"
399         + "\n"
400         + "For example, if you distribute copies of the library, whether gratis or for a fee, you "
401         + "must give the recipients all the rights that we gave you. You must make sure that "
402         + "they, too, receive or can get the source code. If you link other code with the "
403         + "library, you must provide complete object files to the recipients, so that they can "
404         + "relink them with the library after making changes to the library and recompiling it. "
405         + "And you must show them these terms so they know their rights.\n"
406         + "\n"
407         + "We protect your rights with a two-step method: (1) we copyright the library, and (2) "
408         + "we offer you this license, which gives you legal permission to copy, distribute and/or "
409         + "modify the library.\n"
410         + "\n"
411         + "To protect each distributor, we want to make it very clear that there is no warranty "
412         + "for the free library. Also, if the library is modified by someone else and passed on, "
413         + "the recipients should know that what they have is not the original version, so that "
414         + "the original author's reputation will not be affected by problems that might be "
415         + "introduced by others.\n"
416         + "\n"
417         + "Finally, software patents pose a constant threat to the existence of any free program. "
418         + "We wish to make sure that a company cannot effectively restrict the users of a free "
419         + "program by obtaining a restrictive license from a patent holder. Therefore, we insist "
420         + "that any patent license obtained for a version of the library must be consistent with "
421         + "the full freedom of use specified in this license.\n"
422         + "\n"
423         + "Most GNU software, including some libraries, is covered by the ordinary GNU General "
424         + "Public License. This license, the GNU Lesser General Public License, applies to "
425         + "certain designated libraries, and is quite different from the ordinary General Public "
426         + "License. We use this license for certain libraries in order to permit linking those "
427         + "libraries into non-free programs.\n"
428         + "\n"
429         + "When a program is linked with a library, whether statically or using a shared library, "
430         + "the combination of the two is legally speaking a combined work, a derivative of the "
431         + "original library. The ordinary General Public License therefore permits such linking "
432         + "only if the entire combination fits its criteria of freedom. The Lesser General Public "
433         + "License permits more lax criteria for linking other code with the library.\n"
434         + "\n"
435         + "We call this license the \"Lesser\" General Public License because it does Less to "
436         + "protect the user's freedom than the ordinary General Public License. It also provides "
437         + "other free software developers Less of an advantage over competing non-free programs. "
438         + "These disadvantages are the reason we use the ordinary General Public License for many "
439         + "libraries. However, the Lesser license provides advantages in certain special "
440         + "circumstances.\n"
441         + "\n"
442         + "For example, on rare occasions, there may be a special need to encourage the widest "
443         + "possible use of a certain library, so that it becomes a de-facto standard. To achieve "
444         + "this, non-free programs must be allowed to use the library. A more frequent case is "
445         + "that a free library does the same job as widely used non-free libraries. In this case, "
446         + "there is little to gain by limiting the free library to free software only, so we use "
447         + "the Lesser General Public License.\n"
448         + "\n"
449         + "In other cases, permission to use a particular library in non-free programs enables a "
450         + "greater number of people to use a large body of free software. For example, permission "
451         + "to use the GNU C Library in non-free programs enables many more people to use the "
452         + "whole GNU operating system, as well as its variant, the GNU/Linux operating system.\n"
453         + "\n"
454         + "Although the Lesser General Public License is Less protective of the users' freedom, "
455         + "it does ensure that the user of a program that is linked with the Library has the "
456         + "freedom and the wherewithal to run that program using a modified version of the "
457         + "Library.\n"
458         + "\n"
459         + "The precise terms and conditions for copying, distribution and modification follow. "
460         + "Pay close attention to the difference between a \"work based on the library\" and a "
461         + "\"work that uses the library\". The former contains code derived from the library, "
462         + "whereas the latter must be combined with the library in order to run.\n"
463         + "\n"
464         + "TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n"
465         + "\n"
466         + "0. This License Agreement applies to any software library or other program which "
467         + "contains a notice placed by the copyright holder or other authorized party saying it "
468         + "may be distributed under the terms of this Lesser General Public License (also called "
469         + "\"this License\"). Each licensee is addressed as \"you\"."
470         + "\n"
471         + "A \"library\" means a collection of software functions and/or data prepared so as to "
472         + "be conveniently linked with application programs (which use some of those functions "
473         + "and data) to form executables.\n"
474         + "\n"
475         + "The \"Library\", below, refers to any such software library or work which has been "
476         + "distributed under these terms. A \"work based on the Library\" means either the "
477         + "Library or any derivative work under copyright law: that is to say, a work containing "
478         + "the Library or a portion of it, either verbatim or with modifications and/or "
479         + "translated straightforwardly into another language. (Hereinafter, translation is "
480         + "included without limitation in the term \"modification\".)\n"
481         + "\n"
482         + "\"Source code\" for a work means the preferred form of the work for making "
483         + "modifications to it. For a library, complete source code means all the source code for "
484         + "all modules it contains, plus any associated interface definition files, plus the "
485         + "scripts used to control compilation and installation of the library.\n"
486         + "\n"
487         + "Activities other than copying, distribution and modification are not covered by this "
488         + "License; they are outside its scope. The act of running a program using the Library is "
489         + "not restricted, and output from such a program is covered only if its contents "
490         + "constitute a work based on the Library (independent of the use of the Library in a "
491         + "tool for writing it). Whether that is true depends on what the Library does and what "
492         + "the program that uses the Library does."
493         + "\n"
494         + "1. You may copy and distribute verbatim copies of the Library's complete source code "
495         + "as you receive it, in any medium, provided that you conspicuously and appropriately "
496         + "publish on each copy an appropriate copyright notice and disclaimer of warranty; keep "
497         + "intact all the notices that refer to this License and to the absence of any warranty; "
498         + "and distribute a copy of this License along with the Library.\n"
499         + "\n"
500         + "You may charge a fee for the physical act of transferring a copy, and you may at your "
501         + "option offer warranty protection in exchange for a fee.\n"
502         + "\n"
503         + "2. You may modify your copy or copies of the Library or any portion of it, thus "
504         + "forming a work based on the Library, and copy and distribute such modifications or "
505         + "work under the terms of Section 1 above, provided that you also meet all of these "
506         + "conditions:\n"
507         + "\n"
508         + "* a) The modified work must itself be a software library.\n"
509         + "* b) You must cause the files modified to carry prominent notices stating that you "
510         + "changed the files and the date of any change.\n"
511         + "* c) You must cause the whole of the work to be licensed at no charge to all third "
512         + "parties under the terms of this License.\n"
513         + "* d) If a facility in the modified Library refers to a function or a table of data "
514         + "to be supplied by an application program that uses the facility, other than as an "
515         + "argument passed when the facility is invoked, then you must make a good faith effort "
516         + "to ensure that, in the event an application does not supply such function or table, "
517         + "the facility still operates, and performs whatever part of its purpose remains "
518         + "meaningful.\n"
519         + "\n"
520         + "(For example, a function in a library to compute square roots has a purpose that is "
521         + "entirely well-defined independent of the application. Therefore, Subsection 2d "
522         + "requires that any application-supplied function or table used by this function must be "
523         + "optional: if the application does not supply it, the square root function must still "
524         + "compute square roots.)\n"
525         + "\n"
526         + "These requirements apply to the modified work as a whole. If identifiable sections of "
527         + "that work are not derived from the Library, and can be reasonably considered "
528         + "independent and separate works in themselves, then this License, and its terms, do not "
529         + "apply to those sections when you distribute them as separate works. But when you "
530         + "distribute the same sections as part of a whole which is a work based on the Library, "
531         + "the distribution of the whole must be on the terms of this License, whose permissions "
532         + "for other licensees extend to the entire whole, and thus to each and every part "
533         + "regardless of who wrote it.\n"
534         + "\n"
535         + "Thus, it is not the intent of this section to claim rights or contest your rights to "
536         + "work written entirely by you; rather, the intent is to exercise the right to control "
537         + "the distribution of derivative or collective works based on the Library.\n"
538         + "\n"
539         + "In addition, mere aggregation of another work not based on the Library with the "
540         + "Library (or with a work based on the Library) on a volume of a storage or distribution "
541         + "medium does not bring the other work under the scope of this License.\n"
542         + "\n"
543         + "3. You may opt to apply the terms of the ordinary GNU General Public License instead "
544         + "of this License to a given copy of the Library. To do this, you must alter all the "
545         + "notices that refer to this License, so that they refer to the ordinary GNU General "
546         + "Public License, version 2, instead of to this License. (If a newer version than "
547         + "version 2 of the ordinary GNU General Public License has appeared, then you can "
548         + "specify that version instead if you wish.) Do not make any other change in these "
549         + "notices.\n"
550         + "\n"
551         + "Once this change is made in a given copy, it is irreversible for that copy, so the "
552         + "ordinary GNU General Public License applies to all subsequent copies and derivative "
553         + "works made from that copy.\n"
554         + "\n"
555         + "This option is useful when you wish to copy part of the code of the Library into a "
556         + "program that is not a library.\n"
557         + "\n"
558         + "4. You may copy and distribute the Library (or a portion or derivative of it, under "
559         + "Section 2) in object code or executable form under the terms of Sections 1 and 2 above "
560         + "provided that you accompany it with the complete corresponding machine-readable source "
561         + "code, which must be distributed under the terms of Sections 1 and 2 above on a medium "
562         + "customarily used for software interchange.\n"
563         + "\n"
564         + "If distribution of object code is made by offering access to copy from a designated "
565         + "place, then offering equivalent access to copy the source code from the same place "
566         + "satisfies the requirement to distribute the source code, even though third parties are "
567         + "not compelled to copy the source along with the object code.\n"
568         + "\n"
569         + "5. A program that contains no derivative of any portion of the Library, but is "
570         + "designed to work with the Library by being compiled or linked with it, is called a "
571         + "\"work that uses the Library\". Such a work, in isolation, is not a derivative work of "
572         + "the Library, and therefore falls outside the scope of this License.\n"
573         + "\n"
574         + "However, linking a \"work that uses the Library\" with the Library creates an "
575         + "executable that is a derivative of the Library (because it contains portions of the "
576         + "Library), rather than a \"work that uses the library\". The executable is therefore "
577         + "covered by this License. Section 6 states terms for distribution of such executables.\n"
578         + "\n"
579         + "When a \"work that uses the Library\" uses material from a header file that is part of "
580         + "the Library, the object code for the work may be a derivative work of the Library even "
581         + "though the source code is not. Whether this is true is especially significant if the "
582         + "work can be linked without the Library, or if the work is itself a library. The "
583         + "threshold for this to be true is not precisely defined by law.\n"
584         + "\n"
585         + "If such an object file uses only numerical parameters, data structure layouts and "
586         + "accessors, and small macros and small inline functions (ten lines or less in length), "
587         + "then the use of the object file is unrestricted, regardless of whether it is legally a "
588         + "derivative work. (Executables containing this object code plus portions of the Library "
589         + "will still fall under Section 6.)\n"
590         + "\n"
591         + "Otherwise, if the work is a derivative of the Library, you may distribute the object "
592         + "code for the work under the terms of Section 6. Any executables containing that work "
593         + "also fall under Section 6, whether or not they are linked directly with the Library "
594         + "itself.\n"
595         + "\n"
596         + "6. As an exception to the Sections above, you may also combine or link a \"work that "
597         + "uses the Library\" with the Library to produce a work containing portions of the "
598         + "Library, and distribute that work under terms of your choice, provided that the terms "
599         + "permit modification of the work for the customer's own use and reverse engineering for "
600         + "debugging such modifications.\n"
601         + "\n"
602         + "You must give prominent notice with each copy of the work that the Library is used in "
603         + "it and that the Library and its use are covered by this License. You must supply a "
604         + "copy of this License. If the work during execution displays copyright notices, you "
605         + "must include the copyright notice for the Library among them, as well as a reference "
606         + "directing the user to the copy of this License. Also, you must do one of these "
607         + "things:\n"
608         + "\n"
609         + "* a) Accompany the work with the complete corresponding machine-readable source "
610         + "code for the Library including whatever changes were used in the work (which must be "
611         + "distributed under Sections 1 and 2 above); and, if the work is an executable linked "
612         + "with the Library, with the complete machine-readable \"work that uses the Library\", "
613         + "as object code and/or source code, so that the user can modify the Library and then "
614         + "relink to produce a modified executable containing the modified Library. (It is "
615         + "understood that the user who changes the contents of definitions files in the Library "
616         + "will not necessarily be able to recompile the application to use the modified "
617         + "definitions.)\n"
618         + "* b) Use a suitable shared library mechanism for linking with the Library. A "
619         + "suitable mechanism is one that (1) uses at run time a copy of the library already "
620         + "present on the user's computer system, rather than copying library functions into the "
621         + "executable, and (2) will operate properly with a modified version of the library, if "
622         + "the user installs one, as long as the modified version is interface-compatible with "
623         + "the version that the work was made with.\n"
624         + "* c) Accompany the work with a written offer, valid for at least three years, to "
625         + "give the same user the materials specified in Subsection 6a, above, for a charge no "
626         + "more than the cost of performing this distribution.\n"
627         + "* d) If distribution of the work is made by offering access to copy from a "
628         + "designated place, offer equivalent access to copy the above specified materials from "
629         + "the same place.\n"
630         + "* e) Verify that the user has already received a copy of these materials or that "
631         + "you have already sent this user a copy.\n"
632         + "\n"
633         + "For an executable, the required form of the \"work that uses the Library\" must "
634         + "include any data and utility programs needed for reproducing the executable from it. "
635         + "However, as a special exception, the materials to be distributed need not include "
636         + "anything that is normally distributed (in either source or binary form) with the major "
637         + "components (compiler, kernel, and so on) of the operating system on which the "
638         + "executable runs, unless that component itself accompanies the executable.\n"
639         + "\n"
640         + "It may happen that this requirement contradicts the license restrictions of other "
641         + "proprietary libraries that do not normally accompany the operating system. Such a "
642         + "contradiction means you cannot use both them and the Library together in an executable "
643         + "that you distribute.\n"
644         + "\n"
645         + "7. You may place library facilities that are a work based on the Library side-by-side "
646         + "in a single library together with other library facilities not covered by this "
647         + "License, and distribute such a combined library, provided that the separate "
648         + "distribution of the work based on the Library and of the other library facilities is "
649         + "otherwise permitted, and provided that you do these two things:\n"
650         + "\n"
651         + "* a) Accompany the combined library with a copy of the same work based on the "
652         + "Library, uncombined with any other library facilities. This must be distributed under "
653         + "the terms of the Sections above.\n"
654         + "* b) Give prominent notice with the combined library of the fact that part of it is "
655         + "a work based on the Library, and explaining where to find the accompanying uncombined "
656         + "form of the same work.\n"
657         + "\n"
658         + "8. You may not copy, modify, sublicense, link with, or distribute the Library except "
659         + "as expressly provided under this License. Any attempt otherwise to copy, modify, "
660         + "sublicense, link with, or distribute the Library is void, and will automatically "
661         + "terminate your rights under this License. However, parties who have received copies, "
662         + "or rights, from you under this License will not have their licenses terminated so "
663         + "long as such parties remain in full compliance.\n"
664         + "\n"
665         + "9. You are not required to accept this License, since you have not signed it. However, "
666         + "nothing else grants you permission to modify or distribute the Library or its "
667         + "derivative works. These actions are prohibited by law if you do not accept this "
668         + "License. Therefore, by modifying or distributing the Library (or any work based on the "
669         + "Library), you indicate your acceptance of this License to do so, and all its terms and "
670         + "conditions for copying, distributing or modifying the Library or works based on it.\n"
671         + "\n"
672         + "10. Each time you redistribute the Library (or any work based on the Library), the "
673         + "recipient automatically receives a license from the original licensor to copy, "
674         + "distribute, link with or modify the Library subject to these terms and conditions. You "
675         + "may not impose any further restrictions on the recipients' exercise of the rights "
676         + "granted herein. You are not responsible for enforcing compliance by third parties with "
677         + "this License.\n"
678         + "\n"
679         + "11. If, as a consequence of a court judgment or allegation of patent infringement or "
680         + "for any other reason (not limited to patent issues), conditions are imposed on you "
681         + "(whether by court order, agreement or otherwise) that contradict the conditions of "
682         + "this License, they do not excuse you from the conditions of this License. If you "
683         + "cannot distribute so as to satisfy simultaneously your obligations under this License "
684         + "and any other pertinent obligations, then as a consequence you may not distribute the "
685         + "Library at all. For example, if a patent license would not permit royalty-free "
686         + "redistribution of the Library by all those who receive copies directly or indirectly "
687         + "through you, then the only way you could satisfy both it and this License would be to "
688         + "refrain entirely from distribution of the Library.\n"
689         + "\n"
690         + "If any portion of this section is held invalid or unenforceable under any particular "
691         + "circumstance, the balance of the section is intended to apply, and the section as a "
692         + "whole is intended to apply in other circumstances.\n"
693         + "\n"
694         + "It is not the purpose of this section to induce you to infringe any patents or other "
695         + "property right claims or to contest validity of any such claims; this section has the "
696         + "sole purpose of protecting the integrity of the free software distribution system "
697         + "which is implemented by public license practices. Many people have made generous "
698         + "contributions to the wide range of software distributed through that system in "
699         + "reliance on consistent application of that system; it is up to the author/donor to "
700         + "decide if he or she is willing to distribute software through any other system and a "
701         + "licensee cannot impose that choice.\n"
702         + "\n"
703         + "This section is intended to make thoroughly clear what is believed to be a consequence "
704         + "of the rest of this License.\n"
705         + "\n"
706         + "12. If the distribution and/or use of the Library is restricted in certain countries "
707         + "either by patents or by copyrighted interfaces, the original copyright holder who "
708         + "places the Library under this License may add an explicit geographical distribution "
709         + "limitation excluding those countries, so that distribution is permitted only in or "
710         + "among countries not thus excluded. In such case, this License incorporates the "
711         + "limitation as if written in the body of this License.\n"
712         + "\n"
713         + "13. The Free Software Foundation may publish revised and/or new versions of the Lesser "
714         + "General Public License from time to time. Such new versions will be similar in spirit "
715         + "to the present version, but may differ in detail to address new problems or concerns.\n"
716         + "\n"
717         + "Each version is given a distinguishing version number. If the Library specifies a "
718         + "version number of this License which applies to it and \"any later version\", you have "
719         + "the option of following the terms and conditions either of that version or of any "
720         + "later version published by the Free Software Foundation. If the Library does not "
721         + "specify a license version number, you may choose any version ever published by the "
722         + "Free Software Foundation.\n"
723         + "\n"
724         + "14. If you wish to incorporate parts of the Library into other free programs whose "
725         + "distribution conditions are incompatible with these, write to the author to ask for "
726         + "permission. For software which is copyrighted by the Free Software Foundation, write "
727         + "to the Free Software Foundation; we sometimes make exceptions for this. Our decision "
728         + "will be guided by the two goals of preserving the free status of all derivatives of "
729         + "our free software and of promoting the sharing and reuse of software generally.\n"
730         + "\n"
731         + "NO WARRANTY\n"
732         + "\n"
733         + "15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE "
734         + "LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN "
735         + "WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" "
736         + "WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED "
737         + "TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. "
738         + "THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD "
739         + "THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR "
740         + "CORRECTION.\n"
741         + "\n"
742         + "16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY "
743         + "COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS "
744         + "PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, "
745         + "INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE "
746         + "LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE "
747         + "OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE "
748         + "WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE "
749         + "POSSIBILITY OF SUCH DAMAGES.\n"
750         + "\n"
751         + "END OF TERMS AND CONDITIONS\n"
752         + "\n"
753         + "\n"
754         + "How to Apply These Terms to Your New Libraries\n"
755         + "\n"
756         + "If you develop a new library, and you want it to be of the greatest possible use to "
757         + "the public, we recommend making it free software that everyone can redistribute and "
758         + "change. You can do so by permitting redistribution under these terms (or, "
759         + "alternatively, under the terms of the ordinary General Public License).\n"
760         + "\n"
761         + "To apply these terms, attach the following notices to the library. It is safest to "
762         + "attach them to the start of each source file to most effectively convey the exclusion "
763         + "of warranty; and each file should have at least the \"copyright\" line and a pointer "
764         + "to where the full notice is found.\n"
765         + "\n"
766         + "<one line to give the library's name and a brief idea of what it does.>\n"
767         + "Copyright (C) <year> <name of author>\n"
768         + "\n"
769         + "This library is free software; you can redistribute it and/or modify it under the "
770         + "terms of the GNU Lesser General Public License as published by the Free Software "
771         + "Foundation; either version 2.1 of the License, or (at your option) any later version.\n"
772         + "\n"
773         + "This library is distributed in the hope that it will be useful, but WITHOUT ANY "
774         + "WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A "
775         + "PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\n"
776         + "\n"
777         + "You should have received a copy of the GNU Lesser General Public License along with "
778         + "this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, "
779         + "Suite 330, Boston, MA 02111-1307 USA\n"
780         + "\n"
781         + "Also add information on how to contact you by electronic and paper mail.\n"
782         + "\n"
783         + "You should also get your employer (if you work as a programmer) or your school, if "
784         + "any, to sign a \"copyright disclaimer\" for the library, if necessary. Here is a "
785         + "sample; alter the names:\n"
786         + "\n"
787         + "Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a "
788         + "library for tweaking knobs) written by James Random Hacker.\n"
789         + "\n"
790         + "<signature of Ty Coon>, 1 April 1990\n"
791         + "Ty Coon, President of Vice\n"
792         + "\n"
793         + "That's all there is to it!\n";
794
795     /** The singleton instance of this class. */
796     private static Licences singleton;
797
798     /**
799      * Returns a reference to this class.
800      *
801      * @return the instance reference.
802      */

803     public static Licences getInstance() {
804         if (singleton == null) {
805             singleton = new Licences();
806         }
807         return singleton;
808     }
809
810     /**
811      * Returns the GPL text in a non static way to prevent the compiler
812      * to copy the contents of the field.
813      *
814      * @return the GPL licence text.
815      */

816     public String JavaDoc getGPL() {
817         return GPL;
818     }
819
820     /**
821      * Returns the LGPL text in a non static way to prevent the compiler
822      * to copy the contents of the field.
823      *
824      * @return the LGPL licence text.
825      */

826     public String JavaDoc getLGPL() {
827         return LGPL;
828     }
829 }
830
Popular Tags