hedera-web/js/vn/param.js

89 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2016-09-26 09:28:47 +00:00
2022-05-30 01:30:33 +00:00
var VnObject = require('./object');
var Type = require('./type');
var ParamIface = require('./param-iface');
var LotIface = require('./lot-iface');
2016-09-26 09:28:47 +00:00
/**
2022-05-30 01:30:33 +00:00
* A simple implementation of @ParamIface.
2022-05-26 06:08:31 +00:00
*/
2022-05-30 01:30:33 +00:00
module.exports = new Class({
Extends: VnObject
,Implements: ParamIface
,Tag: 'vn-param'
2022-05-30 01:30:33 +00:00
,Properties: {
value: {
type: null
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._setValue(x);
}
2022-11-16 01:46:44 +00:00
,get() {
return this._value;
}
},
2022-05-30 01:30:33 +00:00
type: {
type: Type
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._setType(x);
}
2022-11-16 01:46:44 +00:00
,get() {
2022-05-30 01:30:33 +00:00
return this._type;
}
2022-05-30 01:30:33 +00:00
},
param: {
type: ParamIface
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._setParam(x);
}
2022-11-16 01:46:44 +00:00
,get() {
2022-05-30 01:30:33 +00:00
return this._param;
}
},
master: {
type: ParamIface
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._setParam(x);
}
2022-11-16 01:46:44 +00:00
,get() {
2022-05-30 01:30:33 +00:00
return this._param;
}
},
lot: {
type: LotIface
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._setLot(x);
}
2022-11-16 01:46:44 +00:00
,get() {
2022-05-30 01:30:33 +00:00
return this._lot;
}
},
name: {
type: String
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._setName(x);
}
2022-11-16 01:46:44 +00:00
,get() {
2022-05-30 01:30:33 +00:00
return this._name;
}
},
oneWay: {
type: Boolean
2022-11-16 01:46:44 +00:00
,set(x) {
2022-05-30 01:30:33 +00:00
this._oneWay = x;
}
2022-11-16 01:46:44 +00:00
,get() {
2022-05-30 01:30:33 +00:00
return this._oneWay;
}
2022-10-03 12:49:41 +00:00
},
oneTime: {
type: Boolean
2022-11-16 01:46:44 +00:00
,set(x) {
2022-10-03 12:49:41 +00:00
this._oneTime = x;
}
2022-11-16 01:46:44 +00:00
,get() {
2022-10-03 12:49:41 +00:00
return this._oneTime;
}
}
}
2016-09-26 09:28:47 +00:00
});