sword2ruby 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +30 -0
  4. data/LICENCE +35 -0
  5. data/README.md +43 -0
  6. data/Rakefile +53 -0
  7. data/doc/Atom/Collection.html +837 -0
  8. data/doc/Atom/Element.html +197 -0
  9. data/doc/Atom/Entry.html +1795 -0
  10. data/doc/Atom/Feed.html +297 -0
  11. data/doc/Atom/Service.html +363 -0
  12. data/doc/Atom.html +158 -0
  13. data/doc/Gemfile.html +125 -0
  14. data/doc/Object.html +165 -0
  15. data/doc/REXML/Element.html +493 -0
  16. data/doc/REXML.html +158 -0
  17. data/doc/Rakefile.html +123 -0
  18. data/doc/Sword2Ruby/Atom.html +169 -0
  19. data/doc/Sword2Ruby/AutoDiscover.html +327 -0
  20. data/doc/Sword2Ruby/Connection.html +274 -0
  21. data/doc/Sword2Ruby/DepositReceipt.html +331 -0
  22. data/doc/Sword2Ruby/Exception.html +168 -0
  23. data/doc/Sword2Ruby/SwordAccept.html +169 -0
  24. data/doc/Sword2Ruby/SwordStatementOAIORE.html +277 -0
  25. data/doc/Sword2Ruby/User.html +272 -0
  26. data/doc/Sword2Ruby/Utility.html +1101 -0
  27. data/doc/Sword2Ruby.html +213 -0
  28. data/doc/created.rid +29 -0
  29. data/doc/images/add.png +0 -0
  30. data/doc/images/brick.png +0 -0
  31. data/doc/images/brick_link.png +0 -0
  32. data/doc/images/bug.png +0 -0
  33. data/doc/images/bullet_black.png +0 -0
  34. data/doc/images/bullet_toggle_minus.png +0 -0
  35. data/doc/images/bullet_toggle_plus.png +0 -0
  36. data/doc/images/date.png +0 -0
  37. data/doc/images/delete.png +0 -0
  38. data/doc/images/find.png +0 -0
  39. data/doc/images/loadingAnimation.gif +0 -0
  40. data/doc/images/macFFBgHack.png +0 -0
  41. data/doc/images/package.png +0 -0
  42. data/doc/images/page_green.png +0 -0
  43. data/doc/images/page_white_text.png +0 -0
  44. data/doc/images/page_white_width.png +0 -0
  45. data/doc/images/plugin.png +0 -0
  46. data/doc/images/ruby.png +0 -0
  47. data/doc/images/tag_blue.png +0 -0
  48. data/doc/images/tag_green.png +0 -0
  49. data/doc/images/transparent.png +0 -0
  50. data/doc/images/wrench.png +0 -0
  51. data/doc/images/wrench_orange.png +0 -0
  52. data/doc/images/zoom.png +0 -0
  53. data/doc/index.html +118 -0
  54. data/doc/js/darkfish.js +153 -0
  55. data/doc/js/jquery.js +18 -0
  56. data/doc/js/navigation.js +142 -0
  57. data/doc/js/search.js +94 -0
  58. data/doc/js/search_index.js +1 -0
  59. data/doc/js/searcher.js +228 -0
  60. data/doc/rdoc.css +543 -0
  61. data/doc/spec/fixtures/example_txt.html +125 -0
  62. data/doc/table_of_contents.html +267 -0
  63. data/lib/sword2ruby/auto_discover.rb +71 -0
  64. data/lib/sword2ruby/collection.rb +261 -0
  65. data/lib/sword2ruby/connection.rb +37 -0
  66. data/lib/sword2ruby/constant.rb +35 -0
  67. data/lib/sword2ruby/deposit_receipt.rb +52 -0
  68. data/lib/sword2ruby/element.rb +12 -0
  69. data/lib/sword2ruby/entry.rb +602 -0
  70. data/lib/sword2ruby/exception.rb +7 -0
  71. data/lib/sword2ruby/feed.rb +34 -0
  72. data/lib/sword2ruby/rexml_element.rb +79 -0
  73. data/lib/sword2ruby/service.rb +79 -0
  74. data/lib/sword2ruby/sword_accept.rb +10 -0
  75. data/lib/sword2ruby/sword_statement_oai_ore.rb +38 -0
  76. data/lib/sword2ruby/user.rb +25 -0
  77. data/lib/sword2ruby/utility.rb +232 -0
  78. data/lib/sword2ruby/version.rb +4 -0
  79. data/lib/sword2ruby.rb +32 -0
  80. data/spec/auto_discover_spec.rb +30 -0
  81. data/spec/collection_spec.rb +33 -0
  82. data/spec/connection_spec.rb +21 -0
  83. data/spec/end_to_end_spec.rb +235 -0
  84. data/spec/fixtures/example.txt +3 -0
  85. data/spec/fixtures/snowflake.png +0 -0
  86. data/spec/fixtures/zip-test.zip +0 -0
  87. data/spec/service_spec.rb +38 -0
  88. data/spec/statement_spec.rb +53 -0
  89. data/spec/test_constants.rb +32 -0
  90. data/sword2ruby.gemspec +42 -0
  91. data/sword2ruby.tmproj +27 -0
  92. metadata +197 -0
@@ -0,0 +1,493 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class REXML::Element - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/sword2ruby/rexml_element.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-rdf_about">#rdf_about</a>
74
+
75
+ <li><a href="#method-i-sword_deposited_by">#sword_deposited_by</a>
76
+
77
+ <li><a href="#method-i-sword_deposited_on">#sword_deposited_on</a>
78
+
79
+ <li><a href="#method-i-sword_deposited_on_behalf_of">#sword_deposited_on_behalf_of</a>
80
+
81
+ <li><a href="#method-i-sword_original_deposit">#sword_original_deposit</a>
82
+
83
+ <li><a href="#method-i-sword_packagings">#sword_packagings</a>
84
+
85
+ <li><a href="#method-i-sword_state">#sword_state</a>
86
+
87
+ <li><a href="#method-i-sword_state_description">#sword_state_description</a>
88
+
89
+ </ul>
90
+ </nav>
91
+
92
+ </div>
93
+
94
+ <div id="project-metadata">
95
+ <nav id="fileindex-section" class="section project-section">
96
+ <h3 class="section-header">Pages</h3>
97
+
98
+ <ul>
99
+
100
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
101
+
102
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
103
+
104
+ <li class="file"><a href="../spec/fixtures/example_txt.html">example</a>
105
+
106
+ </ul>
107
+ </nav>
108
+
109
+ <nav id="classindex-section" class="section project-section">
110
+ <h3 class="section-header">Class and Module Index</h3>
111
+
112
+ <ul class="link-list">
113
+
114
+ <li><a href="../Sword2Ruby.html">Sword2Ruby</a>
115
+
116
+ <li><a href="../Sword2Ruby/Atom.html">Sword2Ruby::Atom</a>
117
+
118
+ <li><a href="../Sword2Ruby/AutoDiscover.html">Sword2Ruby::AutoDiscover</a>
119
+
120
+ <li><a href="../Sword2Ruby/Connection.html">Sword2Ruby::Connection</a>
121
+
122
+ <li><a href="../Sword2Ruby/DepositReceipt.html">Sword2Ruby::DepositReceipt</a>
123
+
124
+ <li><a href="../Sword2Ruby/Exception.html">Sword2Ruby::Exception</a>
125
+
126
+ <li><a href="../Sword2Ruby/SwordAccept.html">Sword2Ruby::SwordAccept</a>
127
+
128
+ <li><a href="../Sword2Ruby/SwordStatementOAIORE.html">Sword2Ruby::SwordStatementOAIORE</a>
129
+
130
+ <li><a href="../Sword2Ruby/User.html">Sword2Ruby::User</a>
131
+
132
+ <li><a href="../Sword2Ruby/Utility.html">Sword2Ruby::Utility</a>
133
+
134
+ <li><a href="../Atom.html">Atom</a>
135
+
136
+ <li><a href="../Atom/Collection.html">Atom::Collection</a>
137
+
138
+ <li><a href="../Atom/Element.html">Atom::Element</a>
139
+
140
+ <li><a href="../Atom/Entry.html">Atom::Entry</a>
141
+
142
+ <li><a href="../Atom/Feed.html">Atom::Feed</a>
143
+
144
+ <li><a href="../Atom/Service.html">Atom::Service</a>
145
+
146
+ <li><a href="../REXML.html">REXML</a>
147
+
148
+ <li><a href="../REXML/Element.html">REXML::Element</a>
149
+
150
+ <li><a href="../Object.html">Object</a>
151
+
152
+ </ul>
153
+ </nav>
154
+
155
+ </div>
156
+ </nav>
157
+
158
+ <div id="documentation">
159
+ <h1 class="class">class REXML::Element</h1>
160
+
161
+ <div id="description" class="description">
162
+
163
+ <p>Overloads for the rdf:Description tag (<a
164
+ href="Element.html">REXML::Element</a>), used for describing OAI-ORE Sword
165
+ Statements.</p>
166
+
167
+ <p>For more information, see the Sword2 specification: <a
168
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_oaiore">section
169
+ 11.3. “OAI-ORE Serialisation”</a>.</p>
170
+
171
+ </div><!-- description -->
172
+
173
+
174
+
175
+
176
+ <section id="5Buntitled-5D" class="documentation-section">
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <!-- Methods -->
186
+
187
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
188
+ <h3 class="section-header">Public Instance Methods</h3>
189
+
190
+
191
+ <div id="method-i-rdf_about" class="method-detail ">
192
+
193
+ <div class="method-heading">
194
+ <span class="method-name">rdf_about</span><span
195
+ class="method-args">()</span>
196
+ <span class="method-click-advice">click to toggle source</span>
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+ <p>This method returns the string value of the @rdf:about attribute for the
203
+ &lt;rdf:Description&gt; element (i.e. for each element in the <a
204
+ href="../Sword2Ruby/SwordStatementOAIORE.html#attribute-i-rdf_descriptions">Sword2Ruby::SwordStatementOAIORE#rdf_descriptions</a>
205
+ array, usually contained in the OAI-ORE Sword Statement), or nil if it is
206
+ not defined.</p>
207
+
208
+ <p>For more information, see the Sword2 specification: <a
209
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_oaiore">section
210
+ 11.3. “OAI-ORE Serialisation”</a>.</p>
211
+
212
+
213
+
214
+ <div class="method-source-code" id="rdf_about-source">
215
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 14</span>
216
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">rdf_about</span>
217
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-string">&quot;rdf:about&quot;</span>]
218
+ <span class="ruby-keyword">end</span></pre>
219
+ </div><!-- rdf_about-source -->
220
+
221
+ </div>
222
+
223
+
224
+
225
+
226
+ </div><!-- rdf_about-method -->
227
+
228
+
229
+ <div id="method-i-sword_deposited_by" class="method-detail ">
230
+
231
+ <div class="method-heading">
232
+ <span class="method-name">sword_deposited_by</span><span
233
+ class="method-args">()</span>
234
+ <span class="method-click-advice">click to toggle source</span>
235
+ </div>
236
+
237
+
238
+ <div class="method-description">
239
+
240
+ <p>This method returns the string value of the &lt;sword:depositedBy&gt; tag
241
+ (usually contained in the OAI-ORE Sword Statement), or nil if it is not
242
+ defined.</p>
243
+
244
+ <p>For more information, see the Sword2 specification: <a
245
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_depositedby">section
246
+ 11.1.5. “sword:depositedBy”</a>.</p>
247
+
248
+
249
+
250
+ <div class="method-source-code" id="sword_deposited_by-source">
251
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 56</span>
252
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_deposited_by</span>
253
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_element_text</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:depositedBy&quot;</span>)
254
+ <span class="ruby-keyword">end</span></pre>
255
+ </div><!-- sword_deposited_by-source -->
256
+
257
+ </div>
258
+
259
+
260
+
261
+
262
+ </div><!-- sword_deposited_by-method -->
263
+
264
+
265
+ <div id="method-i-sword_deposited_on" class="method-detail ">
266
+
267
+ <div class="method-heading">
268
+ <span class="method-name">sword_deposited_on</span><span
269
+ class="method-args">()</span>
270
+ <span class="method-click-advice">click to toggle source</span>
271
+ </div>
272
+
273
+
274
+ <div class="method-description">
275
+
276
+ <p>This method returns the Time value of the &lt;sword:depositedOn&gt; tag
277
+ (usually contained in the OAI-ORE Sword Statement), or nil if it is not
278
+ defined.</p>
279
+
280
+ <p>For more information, see the Sword2 specification: <a
281
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_depositedon">section
282
+ 11.1.4. “sword:depositedOn”</a>.</p>
283
+
284
+
285
+
286
+ <div class="method-source-code" id="sword_deposited_on-source">
287
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 48</span>
288
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_deposited_on</span>
289
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_element_time</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:depositedOn&quot;</span>)
290
+ <span class="ruby-keyword">end</span></pre>
291
+ </div><!-- sword_deposited_on-source -->
292
+
293
+ </div>
294
+
295
+
296
+
297
+
298
+ </div><!-- sword_deposited_on-method -->
299
+
300
+
301
+ <div id="method-i-sword_deposited_on_behalf_of" class="method-detail ">
302
+
303
+ <div class="method-heading">
304
+ <span class="method-name">sword_deposited_on_behalf_of</span><span
305
+ class="method-args">()</span>
306
+ <span class="method-click-advice">click to toggle source</span>
307
+ </div>
308
+
309
+
310
+ <div class="method-description">
311
+
312
+ <p>This method returns the string value of the
313
+ &lt;sword:depositedOnBehalfOf&gt; tag (usually contained in the OAI-ORE
314
+ Sword Statement), or nil if it is not defined.</p>
315
+
316
+ <p>For more information, see the Sword2 specification: <a
317
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_obo">section
318
+ 11.1.6. “sword:depositedOnBehalfOf”</a>.</p>
319
+
320
+
321
+
322
+ <div class="method-source-code" id="sword_deposited_on_behalf_of-source">
323
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 64</span>
324
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_deposited_on_behalf_of</span>
325
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_element_text</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:depositedOnBehalfOf&quot;</span>)
326
+ <span class="ruby-keyword">end</span></pre>
327
+ </div><!-- sword_deposited_on_behalf_of-source -->
328
+
329
+ </div>
330
+
331
+
332
+
333
+
334
+ </div><!-- sword_deposited_on_behalf_of-method -->
335
+
336
+
337
+ <div id="method-i-sword_original_deposit" class="method-detail ">
338
+
339
+ <div class="method-heading">
340
+ <span class="method-name">sword_original_deposit</span><span
341
+ class="method-args">()</span>
342
+ <span class="method-click-advice">click to toggle source</span>
343
+ </div>
344
+
345
+
346
+ <div class="method-description">
347
+
348
+ <p>This method returns the string value of the @rdf:resource attribute for the
349
+ &lt;sword:originalDepsit&gt; tag (usually contained in the OAI-ORE Sword
350
+ Statement), or nil if it is not defined.</p>
351
+
352
+ <p>For more information, see the Sword2 specification: <a
353
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_originaldeposit">section
354
+ 11.1.1. “sword:originalDeposit”</a>.</p>
355
+
356
+
357
+
358
+ <div class="method-source-code" id="sword_original_deposit-source">
359
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 22</span>
360
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_original_deposit</span>
361
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_element_attribute_value</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:originalDeposit&quot;</span>, <span class="ruby-string">&quot;rdf:resource&quot;</span>)
362
+ <span class="ruby-keyword">end</span></pre>
363
+ </div><!-- sword_original_deposit-source -->
364
+
365
+ </div>
366
+
367
+
368
+
369
+
370
+ </div><!-- sword_original_deposit-method -->
371
+
372
+
373
+ <div id="method-i-sword_packagings" class="method-detail ">
374
+
375
+ <div class="method-heading">
376
+ <span class="method-name">sword_packagings</span><span
377
+ class="method-args">()</span>
378
+ <span class="method-click-advice">click to toggle source</span>
379
+ </div>
380
+
381
+
382
+ <div class="method-description">
383
+
384
+ <p>This method returns an array of the string values of the @rdf:resource
385
+ attribute for the &lt;sword:packaging&gt; tags (usually contained in the
386
+ OAI-ORE Sword Statement), or an empty array [ ] if none are defined.</p>
387
+
388
+ <p>For more information, see the Sword2 specification: <a
389
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_packaging">section
390
+ 11.1.3. “sword:packaging”</a>.</p>
391
+
392
+
393
+
394
+ <div class="method-source-code" id="sword_packagings-source">
395
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 40</span>
396
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_packagings</span>
397
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_elements_attribute_value</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:packaging&quot;</span>, <span class="ruby-string">&quot;rdf:resource&quot;</span>)
398
+ <span class="ruby-keyword">end</span></pre>
399
+ </div><!-- sword_packagings-source -->
400
+
401
+ </div>
402
+
403
+
404
+
405
+
406
+ </div><!-- sword_packagings-method -->
407
+
408
+
409
+ <div id="method-i-sword_state" class="method-detail ">
410
+
411
+ <div class="method-heading">
412
+ <span class="method-name">sword_state</span><span
413
+ class="method-args">()</span>
414
+ <span class="method-click-advice">click to toggle source</span>
415
+ </div>
416
+
417
+
418
+ <div class="method-description">
419
+
420
+ <p>This method returns the string value of the @rdf:resource attribute of the
421
+ &lt;sword:state&gt; tag (usually contained in the OAI-ORE Sword Statement),
422
+ or nil if it is not defined.</p>
423
+
424
+ <p>For more information, see the Sword2 specification: <a
425
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_state">section
426
+ 11.1.2. “sword:state”</a>.</p>
427
+
428
+
429
+
430
+ <div class="method-source-code" id="sword_state-source">
431
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 30</span>
432
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_state</span>
433
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_element_attribute_value</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:state&quot;</span>, <span class="ruby-string">&quot;rdf:resource&quot;</span>)
434
+ <span class="ruby-keyword">end</span></pre>
435
+ </div><!-- sword_state-source -->
436
+
437
+ </div>
438
+
439
+
440
+
441
+
442
+ </div><!-- sword_state-method -->
443
+
444
+
445
+ <div id="method-i-sword_state_description" class="method-detail ">
446
+
447
+ <div class="method-heading">
448
+ <span class="method-name">sword_state_description</span><span
449
+ class="method-args">()</span>
450
+ <span class="method-click-advice">click to toggle source</span>
451
+ </div>
452
+
453
+
454
+ <div class="method-description">
455
+
456
+ <p>This method returns the string value of the &lt;sword:stateDescription&gt;
457
+ tag (usually contained in the OAI-ORE Sword Statement), or nil if it is not
458
+ defined.</p>
459
+
460
+ <p>For more information, see the Sword2 specification: <a
461
+ href="http://sword-app.svn.sourceforge.net/viewvc/sword-app/spec/tags/sword-2.0/SWORDProfile.html?revision=377#statement_predicates_description">section
462
+ 11.1.7. “sword:stateDescription”</a>.</p>
463
+
464
+
465
+
466
+ <div class="method-source-code" id="sword_state_description-source">
467
+ <pre><span class="ruby-comment"># File lib/sword2ruby/rexml_element.rb, line 73</span>
468
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">sword_state_description</span>
469
+ <span class="ruby-constant">Utility</span>.<span class="ruby-identifier">find_element_text</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">elements</span>, <span class="ruby-string">&quot;sword:stateDescription&quot;</span>)
470
+ <span class="ruby-keyword">end</span></pre>
471
+ </div><!-- sword_state_description-source -->
472
+
473
+ </div>
474
+
475
+
476
+
477
+
478
+ </div><!-- sword_state_description-method -->
479
+
480
+
481
+ </section><!-- public-instance-method-details -->
482
+
483
+ </section><!-- 5Buntitled-5D -->
484
+
485
+ </div><!-- documentation -->
486
+
487
+
488
+ <footer id="validator-badges">
489
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
490
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
491
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
492
+ </footer>
493
+
data/doc/REXML.html ADDED
@@ -0,0 +1,158 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module REXML - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ </ul>
51
+ </nav>
52
+
53
+
54
+ </div>
55
+
56
+ <div id="class-metadata">
57
+
58
+
59
+
60
+
61
+ </div>
62
+
63
+ <div id="project-metadata">
64
+ <nav id="fileindex-section" class="section project-section">
65
+ <h3 class="section-header">Pages</h3>
66
+
67
+ <ul>
68
+
69
+ <li class="file"><a href="./Gemfile.html">Gemfile</a>
70
+
71
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
72
+
73
+ <li class="file"><a href="./spec/fixtures/example_txt.html">example</a>
74
+
75
+ </ul>
76
+ </nav>
77
+
78
+ <nav id="classindex-section" class="section project-section">
79
+ <h3 class="section-header">Class and Module Index</h3>
80
+
81
+ <ul class="link-list">
82
+
83
+ <li><a href="./Sword2Ruby.html">Sword2Ruby</a>
84
+
85
+ <li><a href="./Sword2Ruby/Atom.html">Sword2Ruby::Atom</a>
86
+
87
+ <li><a href="./Sword2Ruby/AutoDiscover.html">Sword2Ruby::AutoDiscover</a>
88
+
89
+ <li><a href="./Sword2Ruby/Connection.html">Sword2Ruby::Connection</a>
90
+
91
+ <li><a href="./Sword2Ruby/DepositReceipt.html">Sword2Ruby::DepositReceipt</a>
92
+
93
+ <li><a href="./Sword2Ruby/Exception.html">Sword2Ruby::Exception</a>
94
+
95
+ <li><a href="./Sword2Ruby/SwordAccept.html">Sword2Ruby::SwordAccept</a>
96
+
97
+ <li><a href="./Sword2Ruby/SwordStatementOAIORE.html">Sword2Ruby::SwordStatementOAIORE</a>
98
+
99
+ <li><a href="./Sword2Ruby/User.html">Sword2Ruby::User</a>
100
+
101
+ <li><a href="./Sword2Ruby/Utility.html">Sword2Ruby::Utility</a>
102
+
103
+ <li><a href="./Atom.html">Atom</a>
104
+
105
+ <li><a href="./Atom/Collection.html">Atom::Collection</a>
106
+
107
+ <li><a href="./Atom/Element.html">Atom::Element</a>
108
+
109
+ <li><a href="./Atom/Entry.html">Atom::Entry</a>
110
+
111
+ <li><a href="./Atom/Feed.html">Atom::Feed</a>
112
+
113
+ <li><a href="./Atom/Service.html">Atom::Service</a>
114
+
115
+ <li><a href="./REXML.html">REXML</a>
116
+
117
+ <li><a href="./REXML/Element.html">REXML::Element</a>
118
+
119
+ <li><a href="./Object.html">Object</a>
120
+
121
+ </ul>
122
+ </nav>
123
+
124
+ </div>
125
+ </nav>
126
+
127
+ <div id="documentation">
128
+ <h1 class="module">module REXML</h1>
129
+
130
+ <div id="description" class="description">
131
+
132
+ </div><!-- description -->
133
+
134
+
135
+
136
+
137
+ <section id="5Buntitled-5D" class="documentation-section">
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+ <!-- Methods -->
147
+
148
+ </section><!-- 5Buntitled-5D -->
149
+
150
+ </div><!-- documentation -->
151
+
152
+
153
+ <footer id="validator-badges">
154
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
155
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
156
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
157
+ </footer>
158
+