testunitxml 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/CHANGES +15 -0
  2. data/MIT-LICENSE +21 -0
  3. data/README +119 -0
  4. data/docs/html/classes/REXML/Attributes.html +6 -6
  5. data/docs/html/classes/REXML/Attributes.src/{M000001.html → M000004.html} +0 -0
  6. data/docs/html/classes/REXML/DocType.html +207 -0
  7. data/docs/html/classes/REXML/DocType.src/M000005.html +18 -0
  8. data/docs/html/classes/REXML/DocType.src/M000006.html +18 -0
  9. data/docs/html/classes/REXML/DocType.src/M000007.html +18 -0
  10. data/docs/html/classes/REXML/DocType.src/M000008.html +20 -0
  11. data/docs/html/classes/REXML/NotationDecl.html +188 -0
  12. data/docs/html/classes/REXML/NotationDecl.src/M000001.html +18 -0
  13. data/docs/html/classes/REXML/NotationDecl.src/M000002.html +18 -0
  14. data/docs/html/classes/REXML/NotationDecl.src/M000003.html +19 -0
  15. data/docs/html/classes/REXML.html +10 -0
  16. data/docs/html/classes/Test/Unit/XML/NodeIterator/NullNodeFilter.html +5 -5
  17. data/docs/html/classes/Test/Unit/XML/NodeIterator/NullNodeFilter.src/{M000007.html → M000014.html} +0 -0
  18. data/docs/html/classes/Test/Unit/XML/NodeIterator.html +20 -20
  19. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000003.html → M000010.html} +0 -0
  20. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000004.html → M000011.html} +0 -0
  21. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000005.html → M000012.html} +0 -0
  22. data/docs/html/classes/Test/Unit/XML/NodeIterator.src/{M000006.html → M000013.html} +0 -0
  23. data/docs/html/classes/Test/Unit/XML/XmlEqualFilter.html +5 -5
  24. data/docs/html/classes/Test/Unit/XML/XmlEqualFilter.src/{M000008.html → M000015.html} +4 -0
  25. data/docs/html/classes/Test/Unit/XML.html +49 -11
  26. data/docs/html/classes/Test/Unit/XML.src/{M000002.html → M000009.html} +1 -1
  27. data/docs/html/created.rid +1 -1
  28. data/docs/html/files/CHANGES.html +127 -0
  29. data/docs/html/files/README.html +64 -25
  30. data/docs/html/files/lib/test/unit/xml/doctype_mixin_rb.html +101 -0
  31. data/docs/html/files/lib/test/unit/xml/notationdecl_mixin_rb.html +101 -0
  32. data/docs/html/files/lib/test/unit/xml/xml_assertions_rb.html +3 -1
  33. data/docs/html/files/lib/test/unit/xml/xmlequalfilter_rb.html +1 -1
  34. data/docs/html/fr_class_index.html +2 -0
  35. data/docs/html/fr_file_index.html +3 -0
  36. data/docs/html/fr_method_index.html +15 -8
  37. data/lib/test/unit/xml/doctype_mixin.rb +32 -0
  38. data/lib/test/unit/xml/notationdecl_mixin.rb +54 -0
  39. data/lib/test/unit/xml/xml_assertions.rb +75 -7
  40. data/lib/test/unit/xml/xmlequalfilter.rb +10 -6
  41. data/setup.rb +1585 -0
  42. data/test/tc_notationdecl_mixin.rb +50 -0
  43. data/test/tc_testunitxml.rb +172 -1
  44. data/test/ts_testunitxml.rb +12 -0
  45. metadata +33 -11
data/CHANGES ADDED
@@ -0,0 +1,15 @@
1
+ = Changes
2
+
3
+
4
+ == Version 0.1.4
5
+
6
+ * Added support for Doctype comparisons in +assert_xml_equal+
7
+ * Added <tt>setup.rb</tt> file to distribution packages
8
+ * Added installation section to README file
9
+ * Added links to online tutorial to README file
10
+ * Added CHANGES file
11
+
12
+
13
+ == Version 0.1.3
14
+
15
+ The initial release.
data/MIT-LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ = MIT-LICENSE
2
+
3
+ Copyright � 2006 Henrik M�rtensson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a
6
+ copy of this software and associated documentation files (the "Software"),
7
+ to deal in the Software without restriction, including without limitation
8
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
+ and/or sell copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
+ IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,119 @@
1
+ = Test::Unit::XML
2
+ == An XML Test Framework
3
+
4
+ Version: 0.1.4
5
+
6
+ Author: Henrik M�rtensson
7
+
8
+ (c) 2006 by Henrik M�rtensson
9
+
10
+ == Introduction
11
+
12
+ Test::Unit::XML extends the Test::Unit framework with
13
+ an assertion for testing well-formed XML documents.
14
+
15
+ Using Test::Unit::XML is easy. All you have to do is to
16
+ require +testunitxml+, and you will then have an
17
+ +assert_xml_equal+ assertion available in the
18
+ Test::Unit::TestCase class.
19
+
20
+ In addition to the API documentation included in the package, you can get information about how
21
+ to use Test::Unit::XML from the following sources:
22
+
23
+ * The online tutorial[http://kallokain.blogspot.com/2006/01/testunitxml-quick-start-tutorial.html] at
24
+ the Kallokain[http://kallokain.blogspot.com/] blog.
25
+ * The {test cases}[link:../../test/] included in the distribution package.
26
+
27
+ == Installation
28
+
29
+ === Install Using the +RubyGem+ Package Manager
30
+
31
+ The easiest way to install Test::Unit::XML is to make a remote installation via the RubyGem
32
+ package manager:
33
+
34
+ <tt>gem install testunitxml</tt>
35
+
36
+ If you have downloaded a gem package from Rubyforge, you can do a local installation:
37
+
38
+ <tt>cd <em>download_directory_path</em></tt>
39
+
40
+ <tt>gem install testunitxml -l</tt>
41
+
42
+ === Install from a Zip file or Tarball
43
+
44
+ If you do not have RubyGem installed, you can download a Zip file or tarball and install
45
+ from it instead:
46
+
47
+ 1:: Unpack the Zip or tarball archive.
48
+ 2:: cd to the directory you just unpacked.
49
+ 3:: Run the command:
50
+ <tt>ruby setup.rb install</tt>
51
+
52
+
53
+
54
+ == What Does _Equal_ XML Documents Mean?
55
+
56
+ It is hard to define exactly what _equal_ means in the
57
+ context of XML documents. I have tried to follow W3C
58
+ XML recommendations as far as possible. There are a
59
+ few things worthy of note:
60
+
61
+ * Namespace _declarations_, i.e. attributes that declare
62
+ namespaces, are ignored for comparison purposes. (The
63
+ namespaces _are_ used in comparisons.) The reason is
64
+ that XML processors may move the declarations from one
65
+ element to another, or change prefixes in ways that
66
+ cannot be directly controlled by a programmer. For
67
+ example, two different XSLT processors could use
68
+ the same stylesheet and produce XML documents that use
69
+ different namespace prefixes, and have declarations
70
+ on different elements, but are still considered equal.
71
+
72
+ * Text nodes that are empty or contain only whitespace
73
+ are ignored for comparison purposes. This makes it
74
+ easier to test output from various transformation
75
+ engines. These often produce extraneous whitespace.
76
+
77
+ == The Future
78
+
79
+ There are a few things in the pipeline:
80
+
81
+ * assert_xml_equal_structure - checks that the structure
82
+ of two documents are equal, but ignores content, attributes,
83
+ processing istructions, comments, CDATA, and doctype
84
+ declarations.
85
+ * assert_xml_similar - Like assert_xml_equal, but ignores the
86
+ order of child elements.
87
+ * Configurability. It _might_ be useful to be able to set
88
+ configuration options for testing. I'll have to think a
89
+ bit about this though.
90
+ * Document difference functions, like the Java XMLUnit test
91
+ suite.
92
+
93
+ I plan to implement these features as I need them in other
94
+ projects, so there is no time plan, and no guarantee as to the
95
+ order in which I'll implement anything.
96
+
97
+ == License
98
+
99
+ See the {MIT-LICENSE}[link:files/MIT-LICENSE.html] file.
100
+
101
+ == Contact
102
+
103
+ You can email bug reports, opinions and questions to
104
+ mailto:self@henrikmartensson.org. You may also wish to visit
105
+ my home page, www.henrikmartensson.org, for more information
106
+ about Test::Unit::XML and other projects. I will write about
107
+ Test::Unit::XML at the the Kallokain[http://kallokain.blogspot.com/]
108
+ blog. You are welcome to visit, and comment.
109
+
110
+ If you find Test::Unit::XML useful, please do tell me about it. I would like
111
+ to list projects that use it on the {Test::Unit::XML web site}[http://testunitxml.rubyforge.org/].
112
+
113
+ If you find Test::Unit::XML lacking in some respect, or buggy,
114
+ I am even more interested. I can't fix bugs I do not know about.
115
+
116
+ Finally, if you write about Test::Unit::XML, I'd like to link to
117
+ the article on my web site, or at least mention it if you write
118
+ for a magazine, so please tell me.
119
+
@@ -94,7 +94,7 @@ that are useful for attribute collections, but not present in the standard
94
94
  <h3 class="section-bar">Methods</h3>
95
95
 
96
96
  <div class="name-list">
97
- <a href="#M000001">get_attribute_ns</a>&nbsp;&nbsp;
97
+ <a href="#M000004">get_attribute_ns</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -116,19 +116,19 @@ that are useful for attribute collections, but not present in the standard
116
116
  <div id="methods">
117
117
  <h3 class="section-bar">Public Instance methods</h3>
118
118
 
119
- <div id="method-M000001" class="method-detail">
120
- <a name="M000001"></a>
119
+ <div id="method-M000004" class="method-detail">
120
+ <a name="M000004"></a>
121
121
 
122
122
  <div class="method-heading">
123
- <a href="Attributes.src/M000001.html" target="Code" class="method-signature"
124
- onclick="popupCode('Attributes.src/M000001.html');return false;">
123
+ <a href="Attributes.src/M000004.html" target="Code" class="method-signature"
124
+ onclick="popupCode('Attributes.src/M000004.html');return false;">
125
125
  <span class="method-name">get_attribute_ns</span><span class="method-args">(namespace, name)</span>
126
126
  </a>
127
127
  </div>
128
128
 
129
129
  <div class="method-description">
130
130
  <p>
131
- The <tt><a href="Attributes.html#M000001">get_attribute_ns</a></tt> method
131
+ The <tt><a href="Attributes.html#M000004">get_attribute_ns</a></tt> method
132
132
  retrieves a method by its namespace and name. Thus it is possible to
133
133
  reliably identify an attribute even if an XML processor has changed the
134
134
  prefix.
@@ -0,0 +1,207 @@
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: REXML::DocType</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">REXML::DocType</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/test/unit/xml/doctype_mixin_rb.html">
59
+ lib/test/unit/xml/doctype_mixin.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
+ Object
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
+ <div id="description">
82
+ <p>
83
+ The <a href="DocType.html">REXML::DocType</a> mix-in adds methods that are
84
+ useful for Doctype declarations, but not present in the standard <a
85
+ href="DocType.html">REXML::DocType</a> class
86
+ </p>
87
+
88
+ </div>
89
+
90
+
91
+ </div>
92
+
93
+ <div id="method-list">
94
+ <h3 class="section-bar">Methods</h3>
95
+
96
+ <div class="name-list">
97
+ <a href="#M000008">notation</a>&nbsp;&nbsp;
98
+ <a href="#M000007">notations</a>&nbsp;&nbsp;
99
+ <a href="#M000005">public</a>&nbsp;&nbsp;
100
+ <a href="#M000006">system</a>&nbsp;&nbsp;
101
+ </div>
102
+ </div>
103
+
104
+ </div>
105
+
106
+
107
+ <!-- if includes -->
108
+
109
+ <div id="section">
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <!-- if method_list -->
119
+ <div id="methods">
120
+ <h3 class="section-bar">Public Instance methods</h3>
121
+
122
+ <div id="method-M000008" class="method-detail">
123
+ <a name="M000008"></a>
124
+
125
+ <div class="method-heading">
126
+ <a href="DocType.src/M000008.html" target="Code" class="method-signature"
127
+ onclick="popupCode('DocType.src/M000008.html');return false;">
128
+ <span class="method-name">notation</span><span class="method-args">(name)</span>
129
+ </a>
130
+ </div>
131
+
132
+ <div class="method-description">
133
+ <p>
134
+ Retrieves a named notation. Only notations declared in the internal DTD
135
+ subset can be retrieved.
136
+ </p>
137
+ </div>
138
+ </div>
139
+
140
+ <div id="method-M000007" class="method-detail">
141
+ <a name="M000007"></a>
142
+
143
+ <div class="method-heading">
144
+ <a href="DocType.src/M000007.html" target="Code" class="method-signature"
145
+ onclick="popupCode('DocType.src/M000007.html');return false;">
146
+ <span class="method-name">notations</span><span class="method-args">()</span>
147
+ </a>
148
+ </div>
149
+
150
+ <div class="method-description">
151
+ <p>
152
+ This method returns a list of notations that have been declared in the
153
+ <em>internal</em> DTD subset. Notations in the external DTD subset are not
154
+ listed.
155
+ </p>
156
+ </div>
157
+ </div>
158
+
159
+ <div id="method-M000005" class="method-detail">
160
+ <a name="M000005"></a>
161
+
162
+ <div class="method-heading">
163
+ <a href="DocType.src/M000005.html" target="Code" class="method-signature"
164
+ onclick="popupCode('DocType.src/M000005.html');return false;">
165
+ <span class="method-name">public</span><span class="method-args">()</span>
166
+ </a>
167
+ </div>
168
+
169
+ <div class="method-description">
170
+ <p>
171
+ This method retrieves the public identifier identifying the
172
+ document&#8217;s DTD.
173
+ </p>
174
+ </div>
175
+ </div>
176
+
177
+ <div id="method-M000006" class="method-detail">
178
+ <a name="M000006"></a>
179
+
180
+ <div class="method-heading">
181
+ <a href="DocType.src/M000006.html" target="Code" class="method-signature"
182
+ onclick="popupCode('DocType.src/M000006.html');return false;">
183
+ <span class="method-name">system</span><span class="method-args">()</span>
184
+ </a>
185
+ </div>
186
+
187
+ <div class="method-description">
188
+ <p>
189
+ This method retrieves the system identifier identifying the
190
+ document&#8217;s DTD
191
+ </p>
192
+ </div>
193
+ </div>
194
+
195
+
196
+ </div>
197
+
198
+
199
+ </div>
200
+
201
+
202
+ <div id="validator-badges">
203
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
204
+ </div>
205
+
206
+ </body>
207
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>public (REXML::DocType)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 9</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">public</span>
15
+ <span class="ruby-ivar">@long_name</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>system (REXML::DocType)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 14</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system</span>
15
+ <span class="ruby-ivar">@uri</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>notations (REXML::DocType)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 20</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notations</span>
15
+ <span class="ruby-identifier">children</span>().<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">node</span><span class="ruby-operator">|</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">NotationDecl</span>)}
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,20 @@
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>
7
+ <head>
8
+ <title>notation (REXML::DocType)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/test/unit/xml/doctype_mixin.rb, line 26</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notation</span>(<span class="ruby-identifier">name</span>)
15
+ <span class="ruby-identifier">notations</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">notation_decl</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-identifier">notation_decl</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span>
17
+ }
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,188 @@
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: REXML::NotationDecl</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">REXML::NotationDecl</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/test/unit/xml/notationdecl_mixin_rb.html">
59
+ lib/test/unit/xml/notationdecl_mixin.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
+ Object
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
+ <div id="description">
82
+ <p>
83
+ The <a href="NotationDecl.html">REXML::NotationDecl</a> mix-in adds methods
84
+ that are useful for notation declarations, but not present in the standard
85
+ <a href="NotationDecl.html">REXML::NotationDecl</a> class
86
+ </p>
87
+
88
+ </div>
89
+
90
+
91
+ </div>
92
+
93
+ <div id="method-list">
94
+ <h3 class="section-bar">Methods</h3>
95
+
96
+ <div class="name-list">
97
+ <a href="#M000001">name</a>&nbsp;&nbsp;
98
+ <a href="#M000003">public</a>&nbsp;&nbsp;
99
+ <a href="#M000002">system</a>&nbsp;&nbsp;
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+
105
+
106
+ <!-- if includes -->
107
+
108
+ <div id="section">
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <!-- if method_list -->
118
+ <div id="methods">
119
+ <h3 class="section-bar">Public Instance methods</h3>
120
+
121
+ <div id="method-M000001" class="method-detail">
122
+ <a name="M000001"></a>
123
+
124
+ <div class="method-heading">
125
+ <a href="NotationDecl.src/M000001.html" target="Code" class="method-signature"
126
+ onclick="popupCode('NotationDecl.src/M000001.html');return false;">
127
+ <span class="method-name">name</span><span class="method-args">()</span>
128
+ </a>
129
+ </div>
130
+
131
+ <div class="method-description">
132
+ <p>
133
+ This method retrieves the name of the notation.
134
+ </p>
135
+ </div>
136
+ </div>
137
+
138
+ <div id="method-M000003" class="method-detail">
139
+ <a name="M000003"></a>
140
+
141
+ <div class="method-heading">
142
+ <a href="NotationDecl.src/M000003.html" target="Code" class="method-signature"
143
+ onclick="popupCode('NotationDecl.src/M000003.html');return false;">
144
+ <span class="method-name">public</span><span class="method-args">()</span>
145
+ </a>
146
+ </div>
147
+
148
+ <div class="method-description">
149
+ <p>
150
+ This method retrieves the public identifier specified in the notation
151
+ declaration. If there is no public identifier defined, the method returns
152
+ <tt>nil</tt>
153
+ </p>
154
+ </div>
155
+ </div>
156
+
157
+ <div id="method-M000002" class="method-detail">
158
+ <a name="M000002"></a>
159
+
160
+ <div class="method-heading">
161
+ <a href="NotationDecl.src/M000002.html" target="Code" class="method-signature"
162
+ onclick="popupCode('NotationDecl.src/M000002.html');return false;">
163
+ <span class="method-name">system</span><span class="method-args">()</span>
164
+ </a>
165
+ </div>
166
+
167
+ <div class="method-description">
168
+ <p>
169
+ This method retrieves the system identifier specified in the notation
170
+ declaration. If there is no system identifier defined, the method returns
171
+ <tt>nil</tt>
172
+ </p>
173
+ </div>
174
+ </div>
175
+
176
+
177
+ </div>
178
+
179
+
180
+ </div>
181
+
182
+
183
+ <div id="validator-badges">
184
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
185
+ </div>
186
+
187
+ </body>
188
+ </html>