/******************************************************************************* * IBM Confidential * * OCO Source Materials * * A and PM: PD * * (c) Copyright IBM Corp. 2014 * * The source code for this program is not published or otherwise divested of * its trade secrets, irrespective of what has been deposited with the U.S. * Copyright Office. ******************************************************************************/ define([ "dojo/_base/declare", "dojox/xml/parser", "dojo/_base/array", "dojo/query", "pd/model/deltaSpec" ],function(declare, xmlParser, array, query, deltaSpec){ var PdColumnAnalyser = declare("pd/data/PdColumnAnalyser", [], { constructor: function(args) { if (!args.xmlInput){ throw new Error(PDMSG.ERR.IDS_ERR_MISSING_XMLDOC_PARAM); } this.xmlInput = args.xmlInput; if (typeof(args.xmlInput) == "string"){ this.xmlDoc = xmlParser.parse(dojo.trim(args.xmlInput)); } else { this.xmlDoc = args.xmlInput; } this.inherited(arguments); }, getDeltaFromXml: function() { var delta = {}; for (var i=0; i