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
|
<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 Attributes</H1>
<B>Extends </B>Hash<HR>
A class that holds the Attributes of an Element.
<H2>Methods</H2>
<UL>
<LI>
<A HREF="#NA">[]</A>
</LI>
<LI>
<A HREF="#N1B">[]=</A>
</LI>
<LI>
<A HREF="#N2C">add</A>
</LI>
<LI>
<A HREF="#N25">delete</A>
</LI>
<LI>
<A HREF="#N35">delete_all</A>
</LI>
<LI>
<A HREF="#N11">each_attribute</A>
</LI>
<LI>
<A HREF="#N14">get_attribute</A>
</LI>
<LI>
<A HREF="#N6">initialize</A>
</LI>
<LI>
<A HREF="#N3C">literalize</A>
</LI>
<LI>
<A HREF="#N22">prefixes</A>
</LI>
</UL>
<HR>
<H2>Aliases</H2>
<DIV CLASS="alias">
<H3><<</H3>
is a synonym for
<H3>add</H3>
</DIV>
<H2>Methods</H2>
<DIV CLASS="method">
<A NAME="NA">
<H3>[]</H3>
</A><B style="padding-right: 1em;">Returns</B>
A String, which is the value of the first matching attribute, or nil if there was none
<HR>
Fetches an attribute value. If you want to get the Attribute itself, use get_attribute()
</DIV>
<DIV CLASS="method">
<A NAME="N1B">
<H3>[]=</H3>
</A><B style="padding-right: 1em;">Returns</B>
self NOTE that unlike most REXML methods, this does not return the set Attribute.
<HR>
Sets an attribute, overwriting any existing attribute value by the same name
</DIV>
<DIV CLASS="method">
<A NAME="N2C">
<H3>add</H3>
</A>
<HR>
Adds an attribute, overriding any existing attribute by the same name.
</DIV>
<DIV CLASS="method">
<A NAME="N25">
<H3>delete</H3>
</A><B style="padding-right: 1em;">Returns</B>
the removed attribute
<HR>
Removes an attribute
</DIV>
<DIV CLASS="method">
<A NAME="N35">
<H3>delete_all</H3>
</A><B style="padding-right: 1em;">Returns</B>
an Array of the Attributes that were removed
<HR>
DO NOT USE THIS METHOD! It WILL fail, and may be removed. If you absolutely need this method, write the author. Deletes all attributes matching an xpath
</DIV>
<DIV CLASS="method">
<A NAME="N11">
<H3>each_attribute</H3>
</A>
<HR>
</DIV>
<DIV CLASS="method">
<A NAME="N14">
<H3>get_attribute</H3>
</A><B style="padding-right: 1em;">Returns</B>
The first matching Attribute, or nil if there was none
<HR>
Fetches an attribute
</DIV>
<DIV CLASS="method">
<A NAME="N6">
<H3>initialize</H3>
</A>
<HR>
Constructor
</DIV>
<DIV CLASS="method">
<A NAME="N3C">
<H3>literalize</H3>
</A>
<HR>
Private helper class.
</DIV>
<DIV CLASS="method">
<A NAME="N22">
<H3>prefixes</H3>
</A>
<HR>
</DIV>
<DIV CLASS="footer">
API documentation generated by <A HREF="http://www.germane-software.com/~ser/Software/api2xml">API2XML</A>
</DIV>
</BODY>
</HTML>
|