/
Flyweight-Offsite.xhtml
337 lines (287 loc) · 9.9 KB
/
Flyweight-Offsite.xhtml
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 31 October 2006 - Apple Inc. build 13), see www.w3.org" />
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<title>XML Design Patterns - Flyweight</title>
<meta content=
"XML, patterns, structure, DTD, XMLSchema, schema, design, designing, structuring, structural, pattern, book, markup, language, mark up, effective, software, introduction"
name="KEYWORDS" />
<link href="indexPage.css" type="text/css" rel="stylesheet" />
<style type="text/css">
/*<![CDATA[*/
:link { color: #556677 }
:visited { color: #668099 }
:active { color: #778899 }
span.c267 {color: #000000; font-size: 80%}
span.c266 {font-size: 64%}
span.c265 {font-size: 80%}
span.c264 {color: #000000; font-size: 64%}
/*]]>*/
</style>
</head>
<body>
<table width="100%" >
<tr>
<td colspan="11"></td>
</tr>
<tr>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="1"></td>
<td width="120">
<table cellpadding="1">
<tr>
<td><a href="index.html"><span class=
"c264"><b>XMLPatterns.com</b></span></a></td>
</tr>
<tr>
<td><br />
<a class="navLink" href="index.html" title=
"XMLPatterns.com Home Page">Home</a></td>
</tr>
<tr>
<td><br />
<a class="navLink" href="intro.shtml" title=
"Backround material for understanding XML Design Patterns">
Introduction</a></td>
</tr>
<tr>
<td><br />
<a class="navLink" href="patterns.shtml" title=
"The patterns themselves">Patterns</a></td>
</tr>
<tr>
<td><a href="categoryAllPatterns.shtml" title=
"Patterns organized by Category" class=
"subNavLink">Categorized</a><br /></td>
</tr>
<tr>
<td><a href="alphaAllPatterns.shtml" title=
"Patterns Alphabetically" class=
"subNavLink">Alphabetical</a><br /></td>
</tr>
<tr>
<td><a href="chronoAllPatterns.shtml" title=
"Latest Patterns listed first" class=
"subNavLink">Chronological</a><br /></td>
</tr>
<tr>
<td><br />
<a class="navLink" href="books.shtml" title=
"Books about patterns and XML">Books</a></td>
</tr>
<tr>
<td><br />
<a class="navLink" href="links.shtml" title=
"Links to other web sites.">Links</a></td>
</tr>
<tr>
<td><br />
<a class="navLink" href="about.shtml" title=
"Information about contacts, privacy and copyright">About</a></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>
<table>
<tr>
<td><b><a href=
"http://www.vegasfreebie.com/">Vegas
Freebie!</a></b></td>
</tr>
<tr>
<td><a href=
"http://www.vegasfreebie.com/"><span class=
"c265">Free Things to do In Las
Vegas</span></a></td>
</tr>
<tr>
<td><a href=
"http://www.vegasfreebie.com/"><span class=
"c266">www.vegasfreebie.com</span></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td>
<table width="100%" border=
"0">
<tr>
<td>
<div class="title">
Offsite XML Design Pattern: Flyweight
</div>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>
<table cellspacing=
"10" width="100%">
<tr>
<td>
<div class="text">
This page reviews an XML design pattern that
is located at an external website.
</div>
<div>
<br />
<div class="text">
<p><a name="Abstract" id=
"Abstract"><span class=
"bigheading">A</span><span class=
"heading">bstract:</span></a></p>From the
article "Flyweight is a structural pattern
used to support a large number of small
objects efficiently. Several instances of
an object may share some properties:
Flyweight factors these common properties
into a single object, thus saving
considerable space and time otherwise
consumed by the creation and maintenance of
duplicate instances."
</div><br />
<br />
<div class="text">
<p><span class=
"bigheading">D</span><span class=
"heading">iscussion:</span></p>
<p>This pattern by Fabio Arciniegas is
presented in the January 2000 article
<i>Design Patterns in XML Applications</i>
on XML.com.</p>
<p>This pattern takes the original <a href=
"books.shtml#0201633612">Gang of Four</a>
Flyweight pattern and places it into an XML
processing context.</p>
</div><br />
<br />
<div class="text">
<p><span class=
"bigheading">R</span><span class=
"heading">elated
Patterns:</span></p>Although the <a href=
"FlyweightMain.shtml">Flyweight</a> pattern
on this site has the same name, they have
different purposes. The pattern on this
site is a structural pattern, it shows how
to organize you XML document. The pattern
discussed in the article is a processing
pattern, it shows solutions to be used with
code.
</div><br />
<br />
<div class="text">
<p><span class=
"bigheading">L</span><span class=
"heading">ink:</span></p><a href=
"cgi-bin/leave-34489.cgi" target=
"_blank">Flyweight Pattern</a> <span class=
"c266">(opens new browser window)</span>
</div><br />
</div>
</td>
<td>
<table>
<tr>
<td>
<script type="text/javascript">
//<![CDATA[
<!--
google_ad_client = "pub-2722110793302013";
google_alternate_ad_url = "http://www.alternateurl.com/show?memid=56&size=160x600";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="9928488069";
google_color_border = "CCCC99";
google_color_bg = "CCCC99";
google_color_link = "000099";
google_color_url = "000000";
google_color_text = "000000";
//-->
//]]>
</script> <script type="text/javascript"
src=
"../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="11"></td>
</tr>
</table>
<table width="100%" >
<tr>
<td>Visit our sponsors: <span class="c266"><a href=
"mailto:info@xmlpatterns.com">(Interested in advertising on
XMLPatterns.com?</a>)</span></td>
</tr>
</table>
<table width="100%" >
<tr>
<td colspan='6'><span class="c267">XML? Playing online
<a href='http://www.allslots.com/slot-machines.php'>slot
machines</a> is even more fun than creating XML
designs.</span></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>