//Copyright Stellent Colorado Springs Inc. All rights reserved. var AXMLSOCC_NoneSpecified; function _InitializeAcordeXMLSupportCode() { if(typeof(AXMLSOCC_NoneSpecified)=='undefined') { AXMLSOCC_NoneSpecified = 'None Specified'; } } function AcordeXMLSOCC(SOCCSource, strCommandName) { _InitializeAcordeXMLSupportCode(); // obj.GetID() ----> this._SourceID // obj.GetClass() ----> this._CommandSource this._SourceID = SOCCSource; this._CommandSource = AXMLSOCC_NoneSpecified; if(typeof(SOCCSource) == 'object') { if(typeof(SOCCSource.GetID) == 'function') { var strID = SOCCSource.GetID(); if(strID != 'undefined') { this._SourceID = strID; } } if(typeof(SOCCSource.GetClass) == 'function') { var strClass = SOCCSource.GetClass(); if(strClass != 'undefined') { this._CommandSource = strClass; } } } this._CommandName = strCommandName; function _SetCommandSource(strCommandSource) { this._CommandSource = strCommandSource; } this.SetCommandSource = _SetCommandSource; function _GenerateXML() { var xmlSOCC = ''; xmlSOCC += ''+this._CommandSource+''; xmlSOCC += 'ClientSideObjectModel'; xmlSOCC += '' + this._SourceID + ''; xmlSOCC += '' + this._CommandName + ''; xmlSOCC += ''; var nCount = this.CommandData.GetCount(); for(var i = 0; i < nCount; i++) { xmlSOCC += "<" + this.CommandData.Item(i).Name + "><" + "/" + this.CommandData.Item(i).Name + ">"; } xmlSOCC += ''; xmlSOCC += ''; return xmlSOCC; } this.GenerateXML = _GenerateXML; function _CommandDataCollection() { this._Data = new Array(); function _AddValue(strName, strValue) { var nCount = this._Data.length; this._Data[nCount] = new Object(); this._Data[nCount].Name = strName; this._Data[nCount].Value = strValue; } this.AddValue = _AddValue function _GetCount() { var nCount = this._Data.length; return nCount; } this.GetCount = _GetCount; function _Item(nIndex) { return this._Data[nIndex]; } this.Item = _Item; } this.CommandData = new _CommandDataCollection(); }