1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<Export generator =" Cache" version =" 25" zv =" Cache for Windows (x86-64) 2015.2 (Build 540)" ts =" 2015-04-12 16:26:04" >
3
3
4
- <CSP name =" CacheUMLExplorer.css" application =" " >
5
- <![CDATA[ {{replace:css}}]]>
6
- </CSP >
7
-
8
- <CSP name =" CacheUMLExplorer.js" application =" " >
9
- <![CDATA[ {{replace:js}}]]>
10
- </CSP >
11
-
12
4
<Class name =" UMLExplorer.ClassView" >
13
5
<Description >
14
6
Class contains methods that return structured class data.</Description >
15
- <TimeChanged >63654,59126.207802 </TimeChanged >
7
+ <TimeChanged >63663,69939 </TimeChanged >
16
8
<TimeCreated >63653,67019.989197</TimeCreated >
17
9
18
10
<Method name =" getClassData" >
@@ -93,6 +85,7 @@ Class contains methods that return structured class data.</Description>
93
85
<Items >
94
86
<ProjectItem name =" UMLExplorer.Router" type =" CLS" ></ProjectItem >
95
87
<ProjectItem name =" UMLExplorer.ClassView" type =" CLS" ></ProjectItem >
88
+ <ProjectItem name =" UMLExplorer.StaticContent" type =" CLS" ></ProjectItem >
96
89
</Items >
97
90
</Project >
98
91
@@ -101,14 +94,16 @@ Class contains methods that return structured class data.</Description>
101
94
<Description >
102
95
REST interface for UMLExplorer</Description >
103
96
<Super >%CSP.REST</Super >
104
- <TimeChanged >63654,68682.349536 </TimeChanged >
97
+ <TimeChanged >63663,76166.562046 </TimeChanged >
105
98
<TimeCreated >63648,30450.187229</TimeCreated >
106
99
107
100
<XData name =" UrlMap" >
108
101
<Data ><![CDATA[
109
102
<Routes>
110
103
<Route Url="/" Method="GET" Call="Index"/>
111
104
<Route Url="/index" Method="GET" Call="Index"/>
105
+ <Route Url="/css/CacheUMLExplorer.css" Method="GET" Call="GetCss"/>
106
+ <Route Url="/js/CacheUMLExplorer.js" Method="GET" Call="GetJs"/>
112
107
<Route Url="/Test" Method="GET" Call="Test"/>
113
108
<Route Url="/GetClassTree" Method="GET" Call="GetClassTree"/>
114
109
<Route Url="/GetClassView/:ClassName" Method="GET" Call="GetClassView"/>
@@ -187,17 +182,112 @@ Method to test accessibility of REST interface.</Description>
187
182
]]> </Implementation >
188
183
</Method >
189
184
185
+ <Method name =" GetCss" >
186
+ <ClassMethod >1</ClassMethod >
187
+ <ReturnType >%Status</ReturnType >
188
+ <Implementation ><![CDATA[
189
+ set %response.CharSet = "utf-8"
190
+ set %response.ContentType = "text/css"
191
+ do ##class(UMLExplorer.StaticContent).WriteCSS()
192
+ return $$$OK
193
+ ]]> </Implementation >
194
+ </Method >
195
+
196
+ <Method name =" GetJs" >
197
+ <ClassMethod >1</ClassMethod >
198
+ <ReturnType >%Status</ReturnType >
199
+ <Implementation ><![CDATA[
200
+ set %response.CharSet = "utf-8"
201
+ set %response.ContentType = "text/javascript"
202
+ do ##class(UMLExplorer.StaticContent).WriteJS()
203
+ return $$$OK
204
+ ]]> </Implementation >
205
+ </Method >
206
+
190
207
<Method name =" Index" >
191
208
<Description >
192
209
Method returns user application.</Description >
193
210
<ClassMethod >1</ClassMethod >
194
211
<ReturnType >%Status</ReturnType >
195
212
<Implementation ><![CDATA[
196
213
&html<
197
- {{replace:HTML}}
214
+ <!DOCTYPE html>
215
+ <html>
216
+ <head lang="en">
217
+ <meta charset="UTF-8">
218
+ <title>Cache UML explorer</title>
219
+ <link rel="stylesheet" href="css/CacheUMLExplorer.css">
220
+ <script src="js/CacheUMLExplorer.js"></script>
221
+ </head>
222
+ <body onload="var cue = new CacheUMLExplorer(document.getElementById('treeView'), document.getElementById('classView'))">
223
+ <div class="ui-body">
224
+ <div class="ui-sideBlock">
225
+ <div id="treeView">
226
+
227
+ </div>
228
+ </div>
229
+ <div class="ui-mainBlock">
230
+ <div class="ui-ClassInfo">
231
+ <span id="className"></span>
232
+ </div>
233
+ <div id="classView">
234
+
235
+ </div>
236
+ </div>
237
+ </div>
238
+ </body>
239
+ </html>
198
240
>
199
241
return $$$OK
200
242
]]> </Implementation >
201
243
</Method >
202
244
</Class >
245
+
246
+
247
+ <Class name =" UMLExplorer.StaticContent" >
248
+ <TimeChanged >63663,76108.945861</TimeChanged >
249
+ <TimeCreated >63663,71456.865723</TimeCreated >
250
+
251
+ <Method name =" WriteCSS" >
252
+ <Description >
253
+ Outputs css code for UMLExplorer application</Description >
254
+ <ClassMethod >1</ClassMethod >
255
+ <ReturnType >%Status</ReturnType >
256
+ <Implementation ><![CDATA[
257
+ Set xdata = ##class(%Dictionary.CompiledXData).%OpenId("UMLExplorer.StaticContent||CSS").Data
258
+ set status=##class(%XML.TextReader).ParseStream(xdata, .textreader)
259
+ while textreader.Read() { if (textreader.NodeType="chars") { w textreader.Value } }
260
+ return $$$OK
261
+ ]]> </Implementation >
262
+ </Method >
263
+
264
+ <Method name =" WriteJS" >
265
+ <Description >
266
+ Outputs js code for UMLExplorer application</Description >
267
+ <ClassMethod >1</ClassMethod >
268
+ <ReturnType >%Status</ReturnType >
269
+ <Implementation ><![CDATA[
270
+ Set xdata = ##class(%Dictionary.CompiledXData).%OpenId("UMLExplorer.StaticContent||JS").Data
271
+ set status=##class(%XML.TextReader).ParseStream(xdata, .textreader)
272
+ while textreader.Read() { if (textreader.NodeType="chars") { w textreader.Value } }
273
+ return $$$OK
274
+ ]]> </Implementation >
275
+ </Method >
276
+
277
+ <XData name =" CSS" >
278
+ <Data ><![CDATA[
279
+ <data>
280
+ {{replace:css}}
281
+ </data>
282
+ ]]> </Data >
283
+ </XData >
284
+
285
+ <XData name =" JS" >
286
+ <Data ><![CDATA[
287
+ <data><![CDATA[
288
+ {{replace:js}}
289
+ ]]]]> <![CDATA[ ></data>
290
+ ]]> </Data >
291
+ </XData >
292
+ </Class >
203
293
</Export >
0 commit comments