1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <Export generator =" Cache" version =" 25" zv =" Cache for Windows (x86-64) 2015.2 (Build 540)" ts =" 2015-04-12 16:26:04" >
3
-
2
+ <Export generator =" Cache" version =" 25" zv =" Cache for Windows (x86-64) 2015.2 (Build 540)" ts =" 2015-04-28 19:50:48" >
4
3
<Class name =" UMLExplorer.ClassView" >
5
4
<Description >
6
5
Class contains methods that return structured class data.</Description >
7
- <TimeChanged >63668,60898.691763 </TimeChanged >
6
+ <TimeChanged >63670,70761.169478 </TimeChanged >
8
7
<TimeCreated >63653,67019.989197</TimeCreated >
9
8
10
9
<Method name =" getClassTree" >
@@ -57,6 +56,8 @@ return structured data about class</Description>
57
56
<Implementation ><![CDATA[
58
57
set oClass = ##class(%ZEN.proxyObject).%New()
59
58
59
+ set basePack = $LISTTOSTRING($LIST($LISTFROMSTRING(classDefinition.Name, "."), 1, *-1),".")
60
+
60
61
set oProperties = ##class(%ZEN.proxyObject).%New()
61
62
set oClass.NAMESPACE = $NAMESPACE
62
63
set oClass.super = classDefinition.Super
@@ -70,6 +71,7 @@ return structured data about class</Description>
70
71
do oProp.%DispatchSetProperty("readOnly", p.ReadOnly)
71
72
do oProp.%DispatchSetProperty("type", p.Type)
72
73
do ..collectAggregation(oData, classDefinition.Name, p.Type)
74
+ do ..collectAggregation(oData, classDefinition.Name, basePack _ "." _ p.Type)
73
75
}
74
76
75
77
set oMethods = ##class(%ZEN.proxyObject).%New()
@@ -216,11 +218,11 @@ return structured data about class</Description>
216
218
</Class >
217
219
218
220
219
- <Project name =" UMLExplorer" LastModified =" 2015-04-26 00:42:57.542208 " >
221
+ <Project name =" UMLExplorer" LastModified =" 2015-04-28 19:17:47.344256 " >
220
222
<Items >
221
- <ProjectItem name =" UMLExplorer.ClassView" type =" CLS" / >
222
- <ProjectItem name =" UMLExplorer.Router" type =" CLS" / >
223
- <ProjectItem name =" UMLExplorer.StaticContent" type =" CLS" / >
223
+ <ProjectItem name =" UMLExplorer.ClassView" type =" CLS" ></ ProjectItem >
224
+ <ProjectItem name =" UMLExplorer.Router" type =" CLS" ></ ProjectItem >
225
+ <ProjectItem name =" UMLExplorer.StaticContent" type =" CLS" ></ ProjectItem >
224
226
</Items >
225
227
</Project >
226
228
@@ -229,7 +231,7 @@ return structured data about class</Description>
229
231
<Description >
230
232
REST interface for UMLExplorer</Description >
231
233
<Super >%CSP.REST</Super >
232
- <TimeChanged >63667,85509.960346 </TimeChanged >
234
+ <TimeChanged >63670,71431.319061 </TimeChanged >
233
235
<TimeCreated >63648,30450.187229</TimeCreated >
234
236
235
237
<XData name =" UrlMap" >
@@ -286,93 +288,76 @@ Returns all package class trees by given package name</Description>
286
288
]]> </Implementation >
287
289
</Method >
288
290
289
- <Method name =" Test" >
290
- <Description >
291
- Method to test accessibility of REST interface.</Description >
292
- <ClassMethod >1</ClassMethod >
293
- <ReturnType >%Status</ReturnType >
294
- <Implementation ><![CDATA[
295
- set resp = ##class(%ZEN.proxyObject).%New()
296
- set resp2 = ##class(%ZEN.proxyObject).%New()
297
- set resp2.Status = "OK"
298
- set resp.obj = resp2
299
- do resp.%ToJSON(, "o")
300
- return $$$OK
301
- ]]> </Implementation >
302
- </Method >
303
-
304
291
<Method name =" GetCss" >
292
+ <Description >
293
+ Method returns user application CSS.</Description >
305
294
<ClassMethod >1</ClassMethod >
306
295
<ReturnType >%Status</ReturnType >
307
296
<Implementation ><![CDATA[
308
297
set %response.CharSet = "utf-8"
309
298
set %response.ContentType = "text/css"
310
- do ##class(UMLExplorer. StaticContent).WriteCSS( )
299
+ do ##class(StaticContent).Write("CSS" )
311
300
return $$$OK
312
301
]]> </Implementation >
313
302
</Method >
314
303
315
304
<Method name =" GetJs" >
305
+ <Description >
306
+ Method returns user application JavaScript.</Description >
316
307
<ClassMethod >1</ClassMethod >
317
308
<ReturnType >%Status</ReturnType >
318
309
<Implementation ><![CDATA[
319
310
set %response.CharSet = "utf-8"
320
311
set %response.ContentType = "text/javascript"
321
- do ##class(UMLExplorer. StaticContent).WriteJS( )
312
+ do ##class(StaticContent).Write("JS" )
322
313
return $$$OK
323
314
]]> </Implementation >
324
315
</Method >
325
316
326
317
<Method name =" Index" >
327
318
<Description >
328
- Method returns user application.</Description >
319
+ Method returns user application HTML .</Description >
329
320
<ClassMethod >1</ClassMethod >
330
321
<ReturnType >%Status</ReturnType >
331
322
<Implementation ><![CDATA[
332
- &html<
333
- {{replace:html}}
334
- >
323
+ do ##class(StaticContent).Write("HTML")
335
324
return $$$OK
336
325
]]> </Implementation >
337
326
</Method >
338
327
</Class >
339
328
340
329
341
330
<Class name =" UMLExplorer.StaticContent" >
342
- <TimeChanged >63663,76108.945861 </TimeChanged >
331
+ <TimeChanged >63670,71368.846177 </TimeChanged >
343
332
<TimeCreated >63663,71456.865723</TimeCreated >
344
333
345
- <Method name =" WriteCSS " >
334
+ <Method name =" Write " >
346
335
<Description >
347
- Outputs css code for UMLExplorer application </Description >
336
+ Write the contents of xData tag </Description >
348
337
<ClassMethod >1</ClassMethod >
338
+ <FormalSpec >Const:%String</FormalSpec >
349
339
<ReturnType >%Status</ReturnType >
350
340
<Implementation ><![CDATA[
351
- Set xdata = ##class(%Dictionary.CompiledXData).%OpenId("UMLExplorer.StaticContent||CSS" ).Data
341
+ Set xdata = ##class(%Dictionary.CompiledXData).%OpenId("UMLExplorer.StaticContent||"_Const ).Data
352
342
set status=##class(%XML.TextReader).ParseStream(xdata, .textreader)
353
343
while textreader.Read() { if (textreader.NodeType="chars") { w textreader.Value } }
354
344
return $$$OK
355
345
]]> </Implementation >
356
346
</Method >
357
347
358
- <Method name =" WriteJS" >
359
- <Description >
360
- Outputs js code for UMLExplorer application</Description >
361
- <ClassMethod >1</ClassMethod >
362
- <ReturnType >%Status</ReturnType >
363
- <Implementation ><![CDATA[
364
- Set xdata = ##class(%Dictionary.CompiledXData).%OpenId("UMLExplorer.StaticContent||JS").Data
365
- set status=##class(%XML.TextReader).ParseStream(xdata, .textreader)
366
- while textreader.Read() { if (textreader.NodeType="chars") { w textreader.Value } }
367
- return $$$OK
368
- ]]> </Implementation >
369
- </Method >
348
+ <XData name =" HTML" >
349
+ <Data ><![CDATA[
350
+ <data><![CDATA[
351
+ {{replace:html}}
352
+ ]]]]> <![CDATA[ ></data>
353
+ ]]> </Data >
354
+ </XData >
370
355
371
356
<XData name =" CSS" >
372
357
<Data ><![CDATA[
373
- <data>
358
+ <data><![CDATA[
374
359
{{replace:css}}
375
- </data>
360
+ ]] ]]> <![CDATA[ > </data>
376
361
]]> </Data >
377
362
</XData >
378
363
0 commit comments