-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRefSpec.js
More file actions
66 lines (51 loc) · 1.36 KB
/
RefSpec.js
File metadata and controls
66 lines (51 loc) · 1.36 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
var Class = require('../ext/Class');
var RefSpec = Class.create({
initialize: function(target, attr) { //, parser) {
//this.parser = parser;
// Target can be (temporarily) an arbitrary object - but eventually
// it usually becomes a string denoting the id of the target
this.target = target;
this.attr = attr;
},
// getParser: function() {
// return this.parser;
// },
getTarget: function() {
return this.target;
},
getAttr: function() {
return this.attr;
},
});
/**
* Specification of a reference.
*
*
*/
/*
var RefSpec = Class.create({
initialize: function(sourceMapRef, targetMapRef, isArray, joinTableRef) {
this.sourceMapRef = sourceMapRef;
this.targetMapRef = targetMapRef;
this.isArray = isArray;
this.joinTableRef = joinTableRef;
},
getSourceMapRef: function() {
return this.sourceMapRef;
},
getTargetMapRef: function() {
return this.targetMapRef;
},
isArray: function() {
return this.isArray;
},
getJoinTableRef: function() {
return this.joinTableRef;
},
toString: function() {
var result = this.sourceMapRef + ' references ' + this.targetMapRef + ' via ' + this.joinTableRef + ' as array? ' + this.isArray;
return result;
},
});
*/
module.exports = RefSpec;