File: Attribute.html

package info (click to toggle)
librexml-ruby 1.2.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 792 kB
  • ctags: 655
  • sloc: ruby: 3,778; xml: 1,609; java: 109; makefile: 43
file content (152 lines) | stat: -rw-r--r-- 2,583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<STYLE TYPE="text/css">@import "style.css";</STYLE>
</HEAD>
<BODY>
<H1>class Attribute</H1>
<B>Includes </B>NodeNamespace<HR>
    Defines an Element Attribute; IE, a attribute=value pair, as in: &lt;element attribute="value"/&gt;.  Attributes can be in their own namespaces.  General users of REXML will not interact with the Attribute class much.
  
  
  
  
  
  
  
  
  
  
  
  
  
  
<H2>Attributes</H2>
<UL>
<LI>
<A HREF="#N11">element</A>
</LI>
<LI>
<A HREF="#ND">value</A>
</LI>
</UL>
<H2>Methods</H2>
<UL>
<LI>
<A HREF="#N1F">==</A>
</LI>
<LI>
<A HREF="#N2D">clone</A>
</LI>
<LI>
<A HREF="#N30">element=</A>
</LI>
<LI>
<A HREF="#N26">hash</A>
</LI>
<LI>
<A HREF="#N15">initialize</A>
</LI>
<LI>
<A HREF="#N1C">namespace</A>
</LI>
<LI>
<A HREF="#N19">prefix</A>
</LI>
<LI>
<A HREF="#N37">remove</A>
</LI>
<LI>
<A HREF="#N2A">to_s</A>
</LI>
<LI>
<A HREF="#N3B">write</A>
</LI>
</UL>
<HR>
<H2>Attributes</H2>
<DIV CLASS="attributes">
<DIV STYLE="padding-bottom: 0.5em; padding-top: 0.5em;">
<B>element</B> (reader)
			</DIV>
<DIV STYLE="padding-bottom: 0.5em; padding-top: 0.5em;">
<B>value</B> (accessor)
			</DIV>
</DIV>
<H2>Methods</H2>
<DIV CLASS="method">
<A NAME="N1F">
<H3>==</H3>
</A><B style="padding-right: 1em;">Returns</B>
      true if other is an Attribute and has the same name and value, false otherwise.
    <HR>
    
     
  
</DIV>
<DIV CLASS="method">
<A NAME="N2D">
<H3>clone</H3>
</A>
<HR>
</DIV>
<DIV CLASS="method">
<A NAME="N30">
<H3>element=</H3>
</A><B style="padding-right: 1em;">Returns</B>
      this attribute
    <HR>
    
     Sets the element of which this object is an attribute 
  </DIV>
<DIV CLASS="method">
<A NAME="N26">
<H3>hash</H3>
</A>
<HR>
     Creates (and returns) a hash from both the name and value
  </DIV>
<DIV CLASS="method">
<A NAME="N15">
<H3>initialize</H3>
</A>
<HR>
     Constructor. 
  </DIV>
<DIV CLASS="method">
<A NAME="N1C">
<H3>namespace</H3>
</A>
<HR>
</DIV>
<DIV CLASS="method">
<A NAME="N19">
<H3>prefix</H3>
</A>
<HR>
</DIV>
<DIV CLASS="method">
<A NAME="N37">
<H3>remove</H3>
</A>
<HR>
     Removes this Attribute from the tree, and returns true if successfull
  </DIV>
<DIV CLASS="method">
<A NAME="N2A">
<H3>to_s</H3>
</A>
<HR>
</DIV>
<DIV CLASS="method">
<A NAME="N3B">
<H3>write</H3>
</A>
<HR>
     Writes this attribute (EG, puts 'key="value"' to the output)
  </DIV>
<DIV CLASS="footer">
			API documentation generated by <A HREF="http://www.germane-software.com/~ser/Software/api2xml">API2XML</A>
</DIV>
</BODY>
</HTML>