UnboundedStartRangeParmValueItem.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Cognos Analytics
  5. * Copyright IBM Corp. 2015, 2017
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. define(['bi/admin/common/utils/parameters/SimpleParmValueItem'], function (SimpleParmValueItem) {
  9. function UnboundedStartRangeParmValueItem() {
  10. //NOSONAR
  11. this._inclusive = true;
  12. this._end = new SimpleParmValueItem();
  13. }
  14. UnboundedStartRangeParmValueItem.prototype.fromJSON = function (json) {
  15. if (json.inclusive) {
  16. this._inclusive = json.inclusive;
  17. }
  18. if (json.end) {
  19. this._end.fromJSON(json.end);
  20. }
  21. };
  22. UnboundedStartRangeParmValueItem.prototype.toXML = function (nodeName) {
  23. var unboundedStartRangeParmValueItem = '<' + nodeName + ' xsi:type="bus:unboundedStartRangeParmValueItem">' + '<inclusive xsi:type="xsd:boolean">' + this._inclusive + '</inclusive>' + this._end.toXML('end') + '</' + nodeName + '>';
  24. return unboundedStartRangeParmValueItem;
  25. };
  26. return UnboundedStartRangeParmValueItem;
  27. });