/[suikacvs]/messaging/manakai/lib/Message/DOM/DOMViews.dis
Suika

Contents of /messaging/manakai/lib/Message/DOM/DOMViews.dis

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Nov 5 09:16:29 2006 UTC (18 years ago) by wakaba
Branch: MAIN
CVS Tags: manakai-release-0-4-0, manakai-200612, HEAD
Changes since 1.3: +1 -6 lines
Error occurred while calculating annotation data.
++ manakai/lib/Message/Util/ChangeLog	5 Nov 2006 09:15:59 -0000
2006-11-05  Wakaba  <wakaba@suika.fam.cx>

	* Grove.dis (mg:nodeRefClass, mg:nodeRefInterfaces): Removed.

++ manakai/lib/Message/DOM/ChangeLog	5 Nov 2006 09:15:04 -0000
	* CharacterData.dis (ManakaiDOMDocumentCharacterData): New
	class.  Factory methods |createTextNode| and |createComment|
	are moved from |ManakaiDOMDocument|.

	* DOMCore.dis: References to |ManakaiDOMObject|
	are removed.
	(tc:createImplForTest): Moved from |TreeCore.dis|.
	(DOMImplementation.___create_node_ref): Support
	for the |mg:nodeRefClass| option is removed.
	(ManakaiDOMConfiguration.___report_error): Moved
	from |ManakaiDOMObject| class.

	* DOMFeature.dis (domidl:extends): New property.
	(f:getFeatureImpl): Support for |+| classes is removed.

	* DOMMain.dis (DOMMain:docSupportsXMLFeature): Removed.
	(ManakaiDOM:ManakaiDOMObject): Removed.
	(DOMDataType): Removed.

	* Document.dis (ManakaiDOMImplementationDocument):
	The |createDocument| method is moved from
	the |ManakaiDOMImplementationTC| in |TreeCore.dis|.
	(ManakaiDOMDocument.___create_node_ref): Removed.
	(createElement, createElementNS, createAttribute,
	createAttributeNS, createTextNode, createComment,
	createCDATASection, createEntityReference,
	createProcessingInstruction): Class implementations
	are moved to each module.

	* Element.dis (ManakaiDOMImplementationElement): Factory
	methods are moved from |Document.dis|.
	(ManakaiDOMElement.___create_node_ref): Support
	for old class registry is removed.
	(ManakaiDOMAttr.___create_node_ref): Removed.
	(Attr.baseURI): Implementation
	for |xml:base| attribute is merged.
	(Attr.nodeValue, Attr.value): Implementation
	for |xml:id| attribute is merged.

	* TreeCore.dis (ManakaiDOMImplementationTC): Removed.

	* XDoctype.dis (ManakaiDOMImplementationXDoctype): The
	definition for |createDocumentType| method
	is moved from |TreeCore.dis|.

	* XML.dis (ManakaiDOMXMLDocument): Factory
	methods are moved from |Document.dis|.
	(ManakaiDOMXMLBaseAttr, ManakaiDOMXMLIdAttr): Removed (merged
	into |ManakaiDOMAttr| in |Element.dis|).

2006-11-05  Wakaba  <wakaba@suika.fam.cx>

1 Module:
2 @QName:
3 MDOM:DOMViews
4 @Namespace:
5 http://suika.fam.cx/~wakaba/archive/2004/dom/views#
6 @BindingName:
7 @@@: views
8 @@Type:
9 lang:IDL-DOM
10 @@prefix: dom.w3c.org
11
12 @Description:
13 @@lang:en
14 @@@:
15 A document may have one or more <DFN:view>s associated
16 with it. That is, a view is a presentation of a source document.
17 \
18 A view may be static or dynamic, or may has other characteristics.
19 All such views are derived from the <IF:AbstractView>
20 interface defined in this module.
21
22 @Author:
23 @@FullName: Wakaba
24 @@Mail: w@suika.fam.cx
25 @License:
26 license:Perl+MPL
27 @Date:
28 @@@:
29 $Date: 2005/01/05 12:19:39 $
30 @@ContentType:
31 dis:Date.RCS
32
33 @DefaultFor:
34 ManakaiDOM:ManakaiDOMLatest
35
36 @Require:
37 @@Module:
38 @@@Name: DOMCore
39 @@Module:
40 @@@Name: DOMViews
41 @@@WithFor:
42 ManakaiDOM:ManakaiDOM
43 @@Module:
44 @@@Name: DOMViews
45 @@@WithFor:
46 ManakaiDOM:ManakaiDOM2
47 @@Module:
48 @@@Name: DOMViews
49 @@@WithFor:
50 ManakaiDOM:ManakaiDOMLatest
51
52 Namespace:
53 @dis:
54 http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#dis--
55 @dis2pm:
56 http://suika.fam.cx/~wakaba/archive/2004/11/8/dis2pm#
57 @DOMMain:
58 http://suika.fam.cx/~wakaba/archive/2004/dom/main#
59 @lang:
60 http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#
61 @license:
62 http://suika.fam.cx/~wakaba/archive/2004/8/18/license#
63 @ManakaiDOM:
64 http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#
65 @ManakaiDOMCore:
66 http://suika.fam.cx/~wakaba/archive/2004/mdom-core#
67 @MDOM:
68 http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#ManakaiDOM.
69 @MDOMX:
70 http://suika.fam.cx/~wakaba/archive/2004/8/4/manakai-dom-exception#
71 @Perl:
72 http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#Perl--
73 @rdf:
74 http://www.w3.org/1999/02/22-rdf-syntax-ns#
75 @rdfs:
76 http://www.w3.org/2000/01/rdf-schema#
77 @TreeCore:\
78
79 ## -- Features
80
81 ElementTypeBinding:
82 @Name: FeatureDef
83 @ElementType:
84 dis:ResourceDef
85 @ShadowContent:
86 @@rdf:type:
87 DOMMain:DOMFeature
88 @@AliasFor:
89 @@@@:
90 ::ManakaiDOM:all
91 @@@For:
92 !=ManakaiDOM:all
93 ElementTypeBinding:
94 @Name: FeatureVerDef
95 @ElementType:
96 dis:ResourceDef
97 @ShadowContent:
98 @@rdf:type:
99 DOMMain:DOMFeature
100
101 ElementTypeBinding:
102 @Name: featureName
103 @ElementType:
104 dis:AppName
105 @ShadowContent:
106 @@ContentType:
107 dis:String
108
109 FeatureDef:
110 @featureName: Views
111 @QName: ViewsFeature
112 @FeatureVerDef:
113 @@Version:2.0
114 @@QName: ViewsFeature20
115 @@ISA: ViewsFeature
116 @@FullName:
117 @@@lang:en
118 @@@@: DOM Level 2 Views
119 @@DOMMain:requireFeature:
120 DOMCore:CoreFeature20
121
122 ElementTypeBinding:
123 @Name: PerlDef
124 @ElementType:
125 dis:Def
126 @ShadowContent:
127 @@ContentType:
128 lang:Perl
129
130 ElementTypeBinding:
131 @Name: IF
132 @ElementType:
133 dis:ResourceDef
134 @ShadowContent:
135 @@rdf:type:
136 @@@@:
137 dis:MultipleResource
138 @@@ForCheck:
139 !ManakaiDOM:ForClass !ManakaiDOM:ForIF
140 @@rdf:type:
141 @@@@:
142 ManakaiDOM:IF
143 @@@ForCheck:
144 ManakaiDOM:ForIF
145 @@rdf:type:
146 @@@@:
147 ManakaiDOM:Class
148 @@@ForCheck:
149 ManakaiDOM:ForClass
150 @@resourceFor:
151 ManakaiDOM:ForIF
152 @@resourceFor:
153 @@@@:
154 ManakaiDOM:ForClass
155 @@@ForCheck:
156 ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM
157 @@ForCheck:
158 ManakaiDOM:DOM
159 @@ISA:
160 @@@@:
161 ::ManakaiDOM:ManakaiDOM
162 @@@ForCheck:
163 ManakaiDOM:ForIF
164 @@@For:
165 ManakaiDOM:ManakaiDOM2
166
167 ElementTypeBinding:
168 @Name: Method
169 @ElementType:
170 dis:ResourceDef
171 @ShadowContent:
172 @@rdf:type:
173 ManakaiDOM:DOMMethod
174 @@ForCheck:
175 ManakaiDOM:DOM !=ManakaiDOM:ManakaiDOM
176 ElementTypeBinding:
177 @Name: IntMethod
178 @ElementType:
179 dis:ResourceDef
180 @ShadowContent:
181 @@rdf:type:
182 ManakaiDOM:DOMMethod
183 @@ForCheck:
184 ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM
185 @@ManakaiDOM:isForInternal: 1
186 ElementTypeBinding:
187 @Name: ReMethod
188 @ElementType:
189 dis:ResourceDef
190 @ShadowContent:
191 @@rdf:type:
192 ManakaiDOM:DOMMethod
193 @@ForCheck:
194 ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM
195 @@ManakaiDOM:isRedefining: 1
196 ElementTypeBinding:
197 @Name: Param
198 @ElementType:
199 dis:ResourceDef
200 @ShadowContent:
201 @@rdf:type:
202 ManakaiDOM:DOMMethodParameter
203 ElementTypeBinding:
204 @Name: Exception
205 @ElementType:
206 ManakaiDOM:raises
207
208 ElementTypeBinding:
209 @Name: Return
210 @ElementType:
211 dis:ResourceDef
212 @ShadowContent:
213 @@rdf:type:
214 ManakaiDOM:DOMMethodReturn
215 ElementTypeBinding:
216 @Name: Attr
217 @ElementType:
218 dis:ResourceDef
219 @ShadowContent:
220 @@rdf:type:
221 ManakaiDOM:DOMAttribute
222 @@ForCheck:
223 ManakaiDOM:DOM !=ManakaiDOM:ManakaiDOM
224
225 ElementTypeBinding:
226 @Name: ReAttr
227 @ElementType:
228 dis:ResourceDef
229 @ShadowContent:
230 @@rdf:type:
231 ManakaiDOM:DOMAttribute
232 @@ForCheck:
233 ManakaiDOM:ManakaiDOM !=ManakaiDOM:ManakaiDOM
234 @@ManakaiDOM:isRedefining: 1
235 ElementTypeBinding:
236 @Name: Get
237 @ElementType:
238 dis:ResourceDef
239 @ShadowContent:
240 @@rdf:type:
241 ManakaiDOM:DOMAttrGet
242 ElementTypeBinding:
243 @Name: Set
244 @ElementType:
245 dis:ResourceDef
246 @ShadowContent:
247 @@rdf:type:
248 ManakaiDOM:DOMAttrSet
249 ElementTypeBinding:
250 @Name: InCase
251 @ElementType:
252 dis:ResourceDef
253 @ShadowContent:
254 @@rdf:type:
255 ManakaiDOM:InCase
256
257 ElementTypeBinding:
258 @Name: ConstGroup
259 @ElementType:
260 dis:ResourceDef
261 @ShadowContent:
262 @@rdf:type:
263 ManakaiDOM:ConstGroup
264 @@ForCheck:
265 ManakaiDOM:DOM !=ManakaiDOM:ManakaiDOM
266
267 ElementTypeBinding:
268 @Name: L2IF
269 @ElementType:
270 DOMMain:implementFeature
271 @ShadowContent:
272 @@@: ViewsFeature20
273 @@For:
274 ManakaiDOM:DOM2
275 @ShadowSibling:
276 @@For:
277 ManakaiDOM:DOM2
278 @@For:
279 =ManakaiDOM:ManakaiDOM
280
281 ElementTypeBinding:
282 @Name: L2
283 @ElementType:
284 DOMMain:implementFeature
285 @ShadowContent:
286 @@@: ViewsFeature20
287 @@For:
288 ManakaiDOM:DOM2
289
290
291 ElementTypeBinding:
292 @Name: PropDef
293 @ElementType:
294 dis:ResourceDef
295 @ShadowContent:
296 @@rdf:type:
297 rdf:Property
298
299 IF:
300 @Name:
301 @@@: AbstractView
302 @@ForCheck:
303 ManakaiDOM:ForIF
304
305 @QName:
306 @@@: ManakaiDOMAbstractView
307 @@ForCheck:
308 ManakaiDOM:ForClass
309
310 @Level[list]: 2
311 @SpecLevel[list]: 2
312 @L2IF:
313
314 @Description:
315 @@lang:en
316 @@@:
317 A base interface from which all views shall derived.
318
319 @Attr:
320 @@Name: document
321 @@Description:
322 @@@lang:en
323 @@@@:
324 The source <IF:DocumentView> of which this is an
325 <IF:AbstractView>.
326 @@Get:
327 @@@Type: DocumentView
328 @@@Def:
329 @@@@ContentType:
330 lang:dis
331 @@@@GetPropNode:
332 DOMViews:document
333
334 @IntMethod:
335 @@Name: newObject
336 @@Description:
337 @@@lang:en
338 @@@@:
339 Construct an object for a new instance of the <IF:AbstractView>.
340 @@Return:
341 @@@Type:
342 ManakaiDOM:ManakaiDOMNodeObject
343 @@@Description:
344 @@@@lang:en
345 @@@@@:
346 The object for the <IF:AbstractView> to be created.
347 @@@PerlDef:
348 @@@@@:
349 my $node = $r = <ClassM::ManakaiDOM:ManakaiDOMNodeObject.new>;
350 push @{$node->{<Q::TreeCore:origin>}}, <Q::DOMViews:document>;
351 @@@ImplNote:
352 @@@@lang:en
353 @@@@@:
354 Properties required to be a legal <IF:AbstractView> object:
355 <Q:DOMViews:document>.
356 \
357 Optional properties: none.
358
359 @IntMethod:
360 @@Name: getNodeReference
361 @@Description:
362 @@@lang:en
363 @@@@:
364 Creates a new <IF::AbstractView> object blessed with an appropriate
365 class.
366 @@Param:
367 @@@Name: object
368 @@@Type:
369 ManakaiDOM:ManakaiDOMNodeObject
370 @@@Description:
371 @@@@lang:en
372 @@@@@: The node object referred to.
373 @@Param:
374 @@@Name:noSpecializedInterface
375 @@@Type:
376 DOMMain:boolean
377 @@@Description:
378 @@@@lang:en
379 @@@@@:
380 Whether the specialized interface for the type (such as
381 element type or document type) is selected if available.
382 @@@InCase:
383 @@@@Value:true
384 @@@@Description:
385 @@@@@lang:en
386 @@@@@@:
387 Specialized object is not returned however the
388 configuration parameter value is set.
389 \
390 Note that even if the specialized interface is not
391 selected by default, the specialized object can be
392 obtained from <M:Node.getFeature>.
393 @@@InCase:
394 @@@@Value:false
395 @@@@Description:
396 @@@@@lang:en
397 @@@@@@:
398 Specialized object is returned unless the configuration
399 disables it.
400 @@Return:
401 @@@Type: ManakaiDOMAbstractView
402 @@@Description:
403 @@@@lang:en
404 @@@@@: The node reference.
405 @@@PerlDef:
406 ## TODO: Find class
407 $r = $object-><M::ManakaiDOM:ManakaiDOMNodeObject.newReference>
408 (<ClassName::AbstractView>);
409 ##IF:AbstractView
410
411 PropDef:
412 @QName: document
413 @Description:
414 @@lang:en
415 @@@:
416 The document that is associated with the subject.
417
418 IF:
419 @Name:
420 @@@: DocumentView
421 @@ForCheck:
422 ManakaiDOM:ForIF
423
424 @Name:
425 @@@: ManakaiDOMDocumentView
426 @@ForCheck:
427 ManakaiDOM:ForClass
428 @ISA:
429 @@@:
430 DOMCore:ManakaiDOMDocument
431 @@ForCheck:
432 ManakaiDOM:ForClass
433
434 @Level[list]: 2
435 @SpecLevel[list]: 2
436 @L2IF:
437
438 @Description:
439 @@lang:en
440 @@@:
441 The interface implemented by <IF:Document> object in
442 DOM Views implementation.
443
444 @Attr:
445 @@Name: defaultView
446 @@Description:
447 @@@lang:en
448 @@@@:
449 The default <IF:AbstractView> for this document.
450 @@Get:
451 @@@Type: AbstractView
452 @@@InCase:
453 @@@@Value:
454 @@@@@is-null:1
455 @@@@Description:
456 @@@@@lang:en
457 @@@@@@:
458 No <IF:AbstractView> available.
459 @@@PerlDef:
460 @@@@@:
461 $r = $self->{<Q::TreeCore:node>}->{<Q::DOMViews:view>}->[0];
462 if ($r) {
463 $r = <ClassM::ManakaiDOMAbstractView.getNodeReference> ($r);
464 }
465
466 ##IF:DocumentView
467
468 PropDef:
469 @QName: view
470 @Description:
471 @@lang:en
472 @@@:
473 A view that is associated to the subject.
474 \
475 In the manakai DOM implementation, the <IF::Document>
476 internal node object has an optional <CODE::subnode2> property named as
477 <Q::DOMViews:view> and its value is an array reference, which
478 in turn contains zero or more internal node object for
479 <IF::AbstractView>. The first item, if any, is the default view
480 for that document. Note that internal view node objects have
481 a <CODE::origin> property of <Q::DOMViews:document>.
482
483 ## DOMViews.dis ends here
484
485
486
487

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24