12345678910111213141516171819202122232425262728293031323334353637 |
- "use strict";
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Cognos Analytics
- * Copyright IBM Corp. 2015, 2017
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['bi/admin/common/utils/parameters/SimpleParmValueItem'], function (SimpleParmValueItem) {
- function BoundRangeParmValueItem() {
- //NOSONAR
- this._inclusive = true;
- this._start = new SimpleParmValueItem();
- this._end = new SimpleParmValueItem();
- }
- BoundRangeParmValueItem.prototype.fromJSON = function (json) {
- if (json.inclusive) {
- this._inclusive = json.inclusive;
- }
- if (json.start) {
- this._start.fromJSON(json.start);
- }
- if (json.end) {
- this._end.fromJSON(json.end);
- }
- };
- BoundRangeParmValueItem.prototype.toXML = function (nodeName) {
- var boundRangeParmValueItem = '<' + nodeName + ' xsi:type="bus:boundRangeParmValueItem">' + '<inclusive xsi:type="xsd:boolean">' + this._inclusive + '</inclusive>' + this._start.toXML('start') + this._end.toXML('end') + '</' + nodeName + '>';
- return boundRangeParmValueItem;
- };
- return BoundRangeParmValueItem;
- });
|