yaxml 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/LICENSE +165 -0
- data/README +49 -0
- data/Rakefile +53 -0
- data/doc/rdoc/classes/YAXML.html +465 -0
- data/doc/rdoc/classes/YAXML/Yaxml.html +277 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/CHANGELOG.html +126 -0
- data/doc/rdoc/files/LICENSE.html +311 -0
- data/doc/rdoc/files/README.html +176 -0
- data/doc/rdoc/files/lib/yaxml_rb.html +170 -0
- data/doc/rdoc/fr_class_index.html +28 -0
- data/doc/rdoc/fr_file_index.html +30 -0
- data/doc/rdoc/fr_method_index.html +34 -0
- data/doc/rdoc/index.html +24 -0
- data/doc/rdoc/rdoc-style.css +208 -0
- data/lib/simple_test.xml +12 -0
- data/lib/simple_test.yml +9 -0
- data/lib/yaxml.rb +354 -0
- data/test/files/simple_test.xml +12 -0
- data/test/files/simple_test.yml +9 -0
- data/test/files/test.xml +5 -0
- data/test/files/test.xml~ +5 -0
- data/test/files/test.yml +28 -0
- data/test/load_files.rb +9 -0
- data/test/test_parser.rb +98 -0
- metadata +91 -0
@@ -0,0 +1,277 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: YAXML::Yaxml</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">YAXML::Yaxml</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/yaxml_rb.html">
|
59
|
+
lib/yaxml.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
REXML::Document
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000005">new</a>
|
90
|
+
<a href="#M000007">to_json</a>
|
91
|
+
<a href="#M000006">to_yaml</a>
|
92
|
+
<a href="#M000008">to_yaxml</a>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
<div id="section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
<div id="methods">
|
112
|
+
<h3 class="section-bar">Public Class methods</h3>
|
113
|
+
|
114
|
+
<div id="method-M000005" class="method-detail">
|
115
|
+
<a name="M000005"></a>
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<a href="#M000005" class="method-signature">
|
119
|
+
<span class="method-name">new</span><span class="method-args">( source, options={} )</span>
|
120
|
+
</a>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
<p>
|
125
|
+
Constructor
|
126
|
+
</p>
|
127
|
+
<table>
|
128
|
+
<tr><td valign="top">source:</td><td>It can be a String or a file name.
|
129
|
+
|
130
|
+
</td></tr>
|
131
|
+
<tr><td valign="top">options:</td><td>It is possible to pass the next options:
|
132
|
+
|
133
|
+
</td></tr>
|
134
|
+
</table>
|
135
|
+
<ul>
|
136
|
+
<li><tt>:root_name</tt> It is the name of the root tag in the <a
|
137
|
+
href="../YAXML.html">YAXML</a> document. Defaults to
|
138
|
+
<tt>DEFAULT_ROOT_NAME</tt>
|
139
|
+
|
140
|
+
</li>
|
141
|
+
<li><tt>:from_yaxml</tt> If true, the source will be considered as <a
|
142
|
+
href="../YAXML.html">YAXML</a> input. If false, the source will be
|
143
|
+
considered as YAML input. Defaults to :<tt>false</tt>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
</ul>
|
147
|
+
<p>
|
148
|
+
Example of use:
|
149
|
+
</p>
|
150
|
+
<pre>
|
151
|
+
xml = Yaxml.new 'file.yml'
|
152
|
+
xml.write( $stdout, 2)
|
153
|
+
xml.to_json
|
154
|
+
xml.to_yaml
|
155
|
+
</pre>
|
156
|
+
<p><a class="source-toggle" href="#"
|
157
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
158
|
+
<div class="method-source-code" id="M000005-source">
|
159
|
+
<pre>
|
160
|
+
<span class="ruby-comment cmt"># File lib/yaxml.rb, line 65</span>
|
161
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">source</span>, <span class="ruby-identifier">options</span>={} )
|
162
|
+
<span class="ruby-keyword kw">super</span>()
|
163
|
+
|
164
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:from_yaxml</span>]
|
165
|
+
<span class="ruby-identifier">content</span> = <span class="ruby-identifier">extract_content</span> <span class="ruby-identifier">source</span>
|
166
|
+
<span class="ruby-identifier">doc</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">content</span>
|
167
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_element</span>( <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>] ) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>]
|
168
|
+
|
169
|
+
<span class="ruby-keyword kw">else</span> <span class="ruby-comment cmt">#default is from_yaml</span>
|
170
|
+
<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:root_name</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">DEFAULT_ROOT_NAME</span>
|
171
|
+
<span class="ruby-identifier">doc</span> = <span class="ruby-constant">YAXML</span><span class="ruby-operator">::</span><span class="ruby-identifier">yaml2yaxml</span>( <span class="ruby-identifier">source</span>, <span class="ruby-identifier">options</span> )
|
172
|
+
|
173
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_element</span>( <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>] ) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>]
|
174
|
+
<span class="ruby-keyword kw">end</span>
|
175
|
+
|
176
|
+
<span class="ruby-keyword kw">end</span>
|
177
|
+
</pre>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
183
|
+
|
184
|
+
<div id="method-M000007" class="method-detail">
|
185
|
+
<a name="M000007"></a>
|
186
|
+
|
187
|
+
<div class="method-heading">
|
188
|
+
<a href="#M000007" class="method-signature">
|
189
|
+
<span class="method-name">to_json</span><span class="method-args">()</span>
|
190
|
+
</a>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
<div class="method-description">
|
194
|
+
<p>
|
195
|
+
The output is a JSON representation of <a href="../YAXML.html">YAXML</a>
|
196
|
+
object.
|
197
|
+
</p>
|
198
|
+
<p><a class="source-toggle" href="#"
|
199
|
+
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
200
|
+
<div class="method-source-code" id="M000007-source">
|
201
|
+
<pre>
|
202
|
+
<span class="ruby-comment cmt"># File lib/yaxml.rb, line 88</span>
|
203
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>
|
204
|
+
<span class="ruby-constant">YAXML</span><span class="ruby-operator">::</span><span class="ruby-identifier">yaxml2json</span> <span class="ruby-keyword kw">self</span>
|
205
|
+
<span class="ruby-keyword kw">end</span>
|
206
|
+
</pre>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div id="method-M000006" class="method-detail">
|
212
|
+
<a name="M000006"></a>
|
213
|
+
|
214
|
+
<div class="method-heading">
|
215
|
+
<a href="#M000006" class="method-signature">
|
216
|
+
<span class="method-name">to_yaml</span><span class="method-args">()</span>
|
217
|
+
</a>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
<div class="method-description">
|
221
|
+
<p>
|
222
|
+
The output is a YAML representation of <a href="../YAXML.html">YAXML</a>
|
223
|
+
object.
|
224
|
+
</p>
|
225
|
+
<p><a class="source-toggle" href="#"
|
226
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
227
|
+
<div class="method-source-code" id="M000006-source">
|
228
|
+
<pre>
|
229
|
+
<span class="ruby-comment cmt"># File lib/yaxml.rb, line 83</span>
|
230
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_yaml</span>
|
231
|
+
<span class="ruby-constant">YAXML</span><span class="ruby-operator">::</span><span class="ruby-identifier">yaxml2yaml</span> <span class="ruby-keyword kw">self</span>
|
232
|
+
<span class="ruby-keyword kw">end</span>
|
233
|
+
</pre>
|
234
|
+
</div>
|
235
|
+
</div>
|
236
|
+
</div>
|
237
|
+
|
238
|
+
<div id="method-M000008" class="method-detail">
|
239
|
+
<a name="M000008"></a>
|
240
|
+
|
241
|
+
<div class="method-heading">
|
242
|
+
<a href="#M000008" class="method-signature">
|
243
|
+
<span class="method-name">to_yaxml</span><span class="method-args">()</span>
|
244
|
+
</a>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div class="method-description">
|
248
|
+
<p>
|
249
|
+
The output is a <a href="../YAXML.html">YAXML</a> representation of <a
|
250
|
+
href="../YAXML.html">YAXML</a> object.
|
251
|
+
</p>
|
252
|
+
<p><a class="source-toggle" href="#"
|
253
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
254
|
+
<div class="method-source-code" id="M000008-source">
|
255
|
+
<pre>
|
256
|
+
<span class="ruby-comment cmt"># File lib/yaxml.rb, line 93</span>
|
257
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_yaxml</span>
|
258
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_s</span>
|
259
|
+
<span class="ruby-keyword kw">end</span>
|
260
|
+
</pre>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
</div>
|
267
|
+
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
|
272
|
+
<div id="validator-badges">
|
273
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
274
|
+
</div>
|
275
|
+
|
276
|
+
</body>
|
277
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
Fri, 27 Mar 2009 12:03:41 +0100
|
@@ -0,0 +1,126 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: CHANGELOG</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>CHANGELOG</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>CHANGELOG
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Mar 27 12:02:31 +0100 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<h1>1.0</h1>
|
73
|
+
<h3>25th March, 2009</h3>
|
74
|
+
<ul>
|
75
|
+
<li>First stable version
|
76
|
+
|
77
|
+
</li>
|
78
|
+
<li>Conversion YAML -> <a href="../classes/YAXML.html">YAXML</a>
|
79
|
+
|
80
|
+
</li>
|
81
|
+
<li>Conversion JSON -> <a href="../classes/YAXML.html">YAXML</a>
|
82
|
+
|
83
|
+
</li>
|
84
|
+
<li>Conversion <a href="../classes/YAXML.html">YAXML</a> -> YAML
|
85
|
+
|
86
|
+
</li>
|
87
|
+
<li>Conversion <a href="../classes/YAXML.html">YAXML</a> -> JSON
|
88
|
+
|
89
|
+
</li>
|
90
|
+
<li>Module accepts strings and file names as sources.
|
91
|
+
|
92
|
+
</li>
|
93
|
+
</ul>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
|
104
|
+
<!-- if includes -->
|
105
|
+
|
106
|
+
<div id="section">
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<!-- if method_list -->
|
116
|
+
|
117
|
+
|
118
|
+
</div>
|
119
|
+
|
120
|
+
|
121
|
+
<div id="validator-badges">
|
122
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</body>
|
126
|
+
</html>
|
@@ -0,0 +1,311 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>File: LICENSE</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="fileHeader">
|
50
|
+
<h1>LICENSE</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>LICENSE
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Fri Mar 27 12:02:31 +0100 2009</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<pre>
|
73
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
74
|
+
Version 3, 29 June 2007
|
75
|
+
|
76
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
77
|
+
Everyone is permitted to copy and distribute verbatim copies
|
78
|
+
of this license document, but changing it is not allowed.
|
79
|
+
|
80
|
+
This version of the GNU Lesser General Public License incorporates
|
81
|
+
</pre>
|
82
|
+
<p>
|
83
|
+
the terms and conditions of version 3 of the GNU General Public License,
|
84
|
+
supplemented by the additional permissions listed below.
|
85
|
+
</p>
|
86
|
+
<pre>
|
87
|
+
0. Additional Definitions.
|
88
|
+
|
89
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
90
|
+
</pre>
|
91
|
+
<p>
|
92
|
+
General Public License, and the "GNU GPL" refers to version 3 of
|
93
|
+
the GNU General Public License.
|
94
|
+
</p>
|
95
|
+
<pre>
|
96
|
+
"The Library" refers to a covered work governed by this License,
|
97
|
+
</pre>
|
98
|
+
<p>
|
99
|
+
other than an Application or a Combined Work as defined below.
|
100
|
+
</p>
|
101
|
+
<pre>
|
102
|
+
An "Application" is any work that makes use of an interface provided
|
103
|
+
</pre>
|
104
|
+
<p>
|
105
|
+
by the Library, but which is not otherwise based on the Library. Defining a
|
106
|
+
subclass of a class defined by the Library is deemed a mode of using an
|
107
|
+
interface provided by the Library.
|
108
|
+
</p>
|
109
|
+
<pre>
|
110
|
+
A "Combined Work" is a work produced by combining or linking an
|
111
|
+
</pre>
|
112
|
+
<p>
|
113
|
+
Application with the Library. The particular version of the Library with
|
114
|
+
which the Combined Work was made is also called the "Linked
|
115
|
+
Version".
|
116
|
+
</p>
|
117
|
+
<pre>
|
118
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
119
|
+
</pre>
|
120
|
+
<p>
|
121
|
+
Corresponding Source for the Combined Work, excluding any source code for
|
122
|
+
portions of the Combined Work that, considered in isolation, are based on
|
123
|
+
the Application, and not on the Linked Version.
|
124
|
+
</p>
|
125
|
+
<pre>
|
126
|
+
The "Corresponding Application Code" for a Combined Work means the
|
127
|
+
</pre>
|
128
|
+
<p>
|
129
|
+
object code and/or source code for the Application, including any data and
|
130
|
+
utility programs needed for reproducing the Combined Work from the
|
131
|
+
Application, but excluding the System Libraries of the Combined Work.
|
132
|
+
</p>
|
133
|
+
<pre>
|
134
|
+
1. Exception to Section 3 of the GNU GPL.
|
135
|
+
|
136
|
+
You may convey a covered work under sections 3 and 4 of this License
|
137
|
+
</pre>
|
138
|
+
<p>
|
139
|
+
without being bound by section 3 of the GNU GPL.
|
140
|
+
</p>
|
141
|
+
<pre>
|
142
|
+
2. Conveying Modified Versions.
|
143
|
+
|
144
|
+
If you modify a copy of the Library, and, in your modifications, a
|
145
|
+
</pre>
|
146
|
+
<p>
|
147
|
+
facility refers to a function or data to be supplied by an Application that
|
148
|
+
uses the facility (other than as an argument passed when the facility is
|
149
|
+
invoked), then you may convey a copy of the modified version:
|
150
|
+
</p>
|
151
|
+
<pre>
|
152
|
+
a) under this License, provided that you make a good faith effort to
|
153
|
+
ensure that, in the event an Application does not supply the
|
154
|
+
function or data, the facility still operates, and performs
|
155
|
+
whatever part of its purpose remains meaningful, or
|
156
|
+
|
157
|
+
b) under the GNU GPL, with none of the additional permissions of
|
158
|
+
this License applicable to that copy.
|
159
|
+
|
160
|
+
3. Object Code Incorporating Material from Library Header Files.
|
161
|
+
|
162
|
+
The object code form of an Application may incorporate material from
|
163
|
+
</pre>
|
164
|
+
<p>
|
165
|
+
a header file that is part of the Library. You may convey such object code
|
166
|
+
under terms of your choice, provided that, if the incorporated material is
|
167
|
+
not limited to numerical parameters, data structure layouts and accessors,
|
168
|
+
or small macros, inline functions and templates (ten or fewer lines in
|
169
|
+
length), you do both of the following:
|
170
|
+
</p>
|
171
|
+
<pre>
|
172
|
+
a) Give prominent notice with each copy of the object code that the
|
173
|
+
Library is used in it and that the Library and its use are
|
174
|
+
covered by this License.
|
175
|
+
|
176
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
177
|
+
document.
|
178
|
+
|
179
|
+
4. Combined Works.
|
180
|
+
|
181
|
+
You may convey a Combined Work under terms of your choice that,
|
182
|
+
</pre>
|
183
|
+
<p>
|
184
|
+
taken together, effectively do not restrict modification of the portions of
|
185
|
+
the Library contained in the Combined Work and reverse engineering for
|
186
|
+
debugging such modifications, if you also do each of the following:
|
187
|
+
</p>
|
188
|
+
<pre>
|
189
|
+
a) Give prominent notice with each copy of the Combined Work that
|
190
|
+
the Library is used in it and that the Library and its use are
|
191
|
+
covered by this License.
|
192
|
+
|
193
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
194
|
+
document.
|
195
|
+
|
196
|
+
c) For a Combined Work that displays copyright notices during
|
197
|
+
execution, include the copyright notice for the Library among
|
198
|
+
these notices, as well as a reference directing the user to the
|
199
|
+
copies of the GNU GPL and this license document.
|
200
|
+
|
201
|
+
d) Do one of the following:
|
202
|
+
|
203
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
204
|
+
License, and the Corresponding Application Code in a form
|
205
|
+
suitable for, and under terms that permit, the user to
|
206
|
+
recombine or relink the Application with a modified version of
|
207
|
+
the Linked Version to produce a modified Combined Work, in the
|
208
|
+
manner specified by section 6 of the GNU GPL for conveying
|
209
|
+
Corresponding Source.
|
210
|
+
|
211
|
+
1) Use a suitable shared library mechanism for linking with the
|
212
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
213
|
+
a copy of the Library already present on the user's computer
|
214
|
+
system, and (b) will operate properly with a modified version
|
215
|
+
of the Library that is interface-compatible with the Linked
|
216
|
+
Version.
|
217
|
+
|
218
|
+
e) Provide Installation Information, but only if you would otherwise
|
219
|
+
be required to provide such information under section 6 of the
|
220
|
+
GNU GPL, and only to the extent that such information is
|
221
|
+
necessary to install and execute a modified version of the
|
222
|
+
Combined Work produced by recombining or relinking the
|
223
|
+
Application with a modified version of the Linked Version. (If
|
224
|
+
you use option 4d0, the Installation Information must accompany
|
225
|
+
the Minimal Corresponding Source and Corresponding Application
|
226
|
+
Code. If you use option 4d1, you must provide the Installation
|
227
|
+
Information in the manner specified by section 6 of the GNU GPL
|
228
|
+
for conveying Corresponding Source.)
|
229
|
+
|
230
|
+
5. Combined Libraries.
|
231
|
+
|
232
|
+
You may place library facilities that are a work based on the
|
233
|
+
</pre>
|
234
|
+
<p>
|
235
|
+
Library side by side in a single library together with other library
|
236
|
+
facilities that are not Applications and are not covered by this License,
|
237
|
+
and convey such a combined library under terms of your choice, if you do
|
238
|
+
both of the following:
|
239
|
+
</p>
|
240
|
+
<pre>
|
241
|
+
a) Accompany the combined library with a copy of the same work based
|
242
|
+
on the Library, uncombined with any other library facilities,
|
243
|
+
conveyed under the terms of this License.
|
244
|
+
|
245
|
+
b) Give prominent notice with the combined library that part of it
|
246
|
+
is a work based on the Library, and explaining where to find the
|
247
|
+
accompanying uncombined form of the same work.
|
248
|
+
|
249
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
250
|
+
|
251
|
+
The Free Software Foundation may publish revised and/or new versions
|
252
|
+
</pre>
|
253
|
+
<p>
|
254
|
+
of the GNU Lesser General Public License from time to time. Such new
|
255
|
+
versions will be similar in spirit to the present version, but may differ
|
256
|
+
in detail to address new problems or concerns.
|
257
|
+
</p>
|
258
|
+
<pre>
|
259
|
+
Each version is given a distinguishing version number. If the
|
260
|
+
</pre>
|
261
|
+
<p>
|
262
|
+
Library as you received it specifies that a certain numbered version of the
|
263
|
+
GNU Lesser General Public License "or any later version" applies
|
264
|
+
to it, you have the option of following the terms and conditions either of
|
265
|
+
that published version or of any later version published by the Free
|
266
|
+
Software Foundation. If the Library as you received it does not specify a
|
267
|
+
version number of the GNU Lesser General Public License, you may choose any
|
268
|
+
version of the GNU Lesser General Public License ever published by the Free
|
269
|
+
Software Foundation.
|
270
|
+
</p>
|
271
|
+
<pre>
|
272
|
+
If the Library as you received it specifies that a proxy can decide
|
273
|
+
</pre>
|
274
|
+
<p>
|
275
|
+
whether future versions of the GNU Lesser General Public License shall
|
276
|
+
apply, that proxy‘s public statement of acceptance of any version is
|
277
|
+
permanent authorization for you to choose that version for the Library.
|
278
|
+
</p>
|
279
|
+
|
280
|
+
</div>
|
281
|
+
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
<!-- if includes -->
|
290
|
+
|
291
|
+
<div id="section">
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
<!-- if method_list -->
|
301
|
+
|
302
|
+
|
303
|
+
</div>
|
304
|
+
|
305
|
+
|
306
|
+
<div id="validator-badges">
|
307
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
308
|
+
</div>
|
309
|
+
|
310
|
+
</body>
|
311
|
+
</html>
|