This repository was archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcaml.js
More file actions
72 lines (67 loc) · 1.47 KB
/
caml.js
File metadata and controls
72 lines (67 loc) · 1.47 KB
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
/**
* MOST Web Framework
* A JavaScript Web Framework
* http://themost.io
*
* Copyright (c) 2014, Kyriakos Barbounakis k.barbounakis@gmail.com, Anthi Oikonomou anthioikonomou@gmail.com
*
* Released under the BSD-3-Clause license
* Date: 2014-04-13
*/
var util = require('util');
/**
* Represents an xml serializable object
* @class XmlSerializable
* @constructor
*/
function XmlSerializable() {
//
}
// noinspection JSUnusedGlobalSymbols
XmlSerializable.prototype.getSchema = function() {
return null;
};
// noinspection JSUnusedGlobalSymbols
XmlSerializable.prototype.writeXml = function() {
return null;
};
// noinspection JSUnusedGlobalSymbols
XmlSerializable.prototype.readXml = function() {
return null;
};
/**
* @class FieldRef
* @constructor
*/
function FieldRef() {
/**
* @type {String}
*/
this.name = undefined;
// noinspection JSUnusedGlobalSymbols
/**
* @type {Boolean}
*/
this.ascending = true;
}
util.inherits(FieldRef, XmlSerializable);
// noinspection JSUnusedGlobalSymbols
FieldRef.prototype.getSchema = function() {
return {
element: { name: 'FieldRef', namespace: null },
properties: {
name: { attribute: 'Name', type: 'String' },
ascending: { attribute: 'Ascending', value: true, type: 'Boolean' }
}
};
};
var caml = {
/**
* @class FieldRef
*/
FieldRef:FieldRef
};
if (typeof exports !== 'undefined')
{
module.exports = caml;
}