moser.js 2.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020
  1. /*!
  2. * Licensed Materials - Property of IBM
  3. * IBM Cognos Products: Moser Client Library
  4. * (C) Copyright IBM Corp. 2017, 2022
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. (function webpackUniversalModuleDefinition(root, factory) {
  8. if(typeof exports === 'object' && typeof module === 'object')
  9. module.exports = factory();
  10. else if(typeof define === 'function' && define.amd)
  11. define([], factory);
  12. else {
  13. var a = factory();
  14. for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
  15. }
  16. })(this, function() {
  17. return /******/ (function(modules) { // webpackBootstrap
  18. /******/ // The module cache
  19. /******/ var installedModules = {};
  20. /******/
  21. /******/ // The require function
  22. /******/ function __webpack_require__(moduleId) {
  23. /******/
  24. /******/ // Check if module is in cache
  25. /******/ if(installedModules[moduleId])
  26. /******/ return installedModules[moduleId].exports;
  27. /******/
  28. /******/ // Create a new module (and put it into the cache)
  29. /******/ var module = installedModules[moduleId] = {
  30. /******/ exports: {},
  31. /******/ id: moduleId,
  32. /******/ loaded: false
  33. /******/ };
  34. /******/
  35. /******/ // Execute the module function
  36. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  37. /******/
  38. /******/ // Flag the module as loaded
  39. /******/ module.loaded = true;
  40. /******/
  41. /******/ // Return the exports of the module
  42. /******/ return module.exports;
  43. /******/ }
  44. /******/
  45. /******/
  46. /******/ // expose the modules object (__webpack_modules__)
  47. /******/ __webpack_require__.m = modules;
  48. /******/
  49. /******/ // expose the module cache
  50. /******/ __webpack_require__.c = installedModules;
  51. /******/
  52. /******/ // __webpack_public_path__
  53. /******/ __webpack_require__.p = "/dist";
  54. /******/
  55. /******/ // Load entry module and return exports
  56. /******/ return __webpack_require__(0);
  57. /******/ })
  58. /************************************************************************/
  59. /******/ ([
  60. /* 0 */
  61. /***/ function(module, exports, __webpack_require__) {
  62. 'use strict';
  63. Object.defineProperty(exports, "__esModule", {
  64. value: true
  65. });
  66. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*
  67. * IBM Confidential
  68. *
  69. * OCO Source Materials
  70. *
  71. * IBM Cognos Products: Moser
  72. *
  73. * (C) Copyright IBM Corp. 2017, 2021
  74. *
  75. * The source code for this program is not published or otherwise
  76. * divested of its trade secrets, irrespective of what has been
  77. * deposited with the U.S. Copyright Office.
  78. */
  79. // Enums
  80. var _ObjectFactory = __webpack_require__(1);
  81. var _ObjectFactory2 = _interopRequireDefault(_ObjectFactory);
  82. var _JSONObjectFactory = __webpack_require__(111);
  83. var _JSONObjectFactory2 = _interopRequireDefault(_JSONObjectFactory);
  84. var _Features = __webpack_require__(112);
  85. var _Features2 = _interopRequireDefault(_Features);
  86. var _Notification = __webpack_require__(7);
  87. var _Notification2 = _interopRequireDefault(_Notification);
  88. var _MoserObject = __webpack_require__(6);
  89. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  90. var _MoserObjectTypes = __webpack_require__(113);
  91. var _MoserObjectTypes2 = _interopRequireDefault(_MoserObjectTypes);
  92. var _ModuleUtils = __webpack_require__(114);
  93. var _ModuleUtils2 = _interopRequireDefault(_ModuleUtils);
  94. var _ObjectNavigator = __webpack_require__(125);
  95. var _ObjectNavigator2 = _interopRequireDefault(_ObjectNavigator);
  96. var _EmbeddedModuleUtils = __webpack_require__(126);
  97. var _EmbeddedModuleUtils2 = _interopRequireDefault(_EmbeddedModuleUtils);
  98. var _IdGenerator = __webpack_require__(115);
  99. var _IdGenerator2 = _interopRequireDefault(_IdGenerator);
  100. var _ValidationUtils = __webpack_require__(127);
  101. var _ValidationUtils2 = _interopRequireDefault(_ValidationUtils);
  102. var _BinExpression = __webpack_require__(129);
  103. var _BinExpression2 = _interopRequireDefault(_BinExpression);
  104. var _QueryFlowUtil = __webpack_require__(134);
  105. var _QueryFlowUtil2 = _interopRequireDefault(_QueryFlowUtil);
  106. var _ParameterDataType = __webpack_require__(98);
  107. var _ParameterDataType2 = _interopRequireDefault(_ParameterDataType);
  108. var _ValueOperatorType = __webpack_require__(100);
  109. var _ValueOperatorType2 = _interopRequireDefault(_ValueOperatorType);
  110. var _CardinalityEnum = __webpack_require__(59);
  111. var _CardinalityEnum2 = _interopRequireDefault(_CardinalityEnum);
  112. var _InstanceType = __webpack_require__(11);
  113. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  114. var _RegularAggregateType = __webpack_require__(22);
  115. var _RegularAggregateType2 = _interopRequireDefault(_RegularAggregateType);
  116. var _SourceCategoryType = __webpack_require__(32);
  117. var _SourceCategoryType2 = _interopRequireDefault(_SourceCategoryType);
  118. var _UsageType = __webpack_require__(44);
  119. var _UsageType2 = _interopRequireDefault(_UsageType);
  120. var _AggregateMode = __webpack_require__(45);
  121. var _AggregateMode2 = _interopRequireDefault(_AggregateMode);
  122. var _ContextMode = __webpack_require__(65);
  123. var _ContextMode2 = _interopRequireDefault(_ContextMode);
  124. var _FacetTypeEnabled = __webpack_require__(64);
  125. var _FacetTypeEnabled2 = _interopRequireDefault(_FacetTypeEnabled);
  126. var _GenerateSQL = __webpack_require__(29);
  127. var _GenerateSQL2 = _interopRequireDefault(_GenerateSQL);
  128. var _HighLevelDataType = __webpack_require__(15);
  129. var _HighLevelDataType2 = _interopRequireDefault(_HighLevelDataType);
  130. var _JoinFilterType = __webpack_require__(38);
  131. var _JoinFilterType2 = _interopRequireDefault(_JoinFilterType);
  132. var _ProParameterMode = __webpack_require__(75);
  133. var _ProParameterMode2 = _interopRequireDefault(_ProParameterMode);
  134. var _QuerySubjectUsage = __webpack_require__(30);
  135. var _QuerySubjectUsage2 = _interopRequireDefault(_QuerySubjectUsage);
  136. var _QuerySubjectUtils = __webpack_require__(116);
  137. var _QuerySubjectUtils2 = _interopRequireDefault(_QuerySubjectUtils);
  138. var _SetOperation = __webpack_require__(34);
  139. var _SetOperation2 = _interopRequireDefault(_SetOperation);
  140. var _SetOperationDuplicates = __webpack_require__(35);
  141. var _SetOperationDuplicates2 = _interopRequireDefault(_SetOperationDuplicates);
  142. var _SortOrder = __webpack_require__(52);
  143. var _SortOrder2 = _interopRequireDefault(_SortOrder);
  144. var _SortOrderNullPlacement = __webpack_require__(53);
  145. var _SortOrderNullPlacement2 = _interopRequireDefault(_SortOrderNullPlacement);
  146. var _SplitColumnTreatment = __webpack_require__(83);
  147. var _SplitColumnTreatment2 = _interopRequireDefault(_SplitColumnTreatment);
  148. var _SplitDisplay = __webpack_require__(84);
  149. var _SplitDisplay2 = _interopRequireDefault(_SplitDisplay);
  150. var _SqlLanguageType = __webpack_require__(90);
  151. var _SqlLanguageType2 = _interopRequireDefault(_SqlLanguageType);
  152. var _TableType = __webpack_require__(69);
  153. var _TableType2 = _interopRequireDefault(_TableType);
  154. var _UseSpecType = __webpack_require__(55);
  155. var _UseSpecType2 = _interopRequireDefault(_UseSpecType);
  156. var _QsClassifierType = __webpack_require__(33);
  157. var _QsClassifierType2 = _interopRequireDefault(_QsClassifierType);
  158. var _KeyCompositionType = __webpack_require__(14);
  159. var _KeyCompositionType2 = _interopRequireDefault(_KeyCompositionType);
  160. var _KeyConstraintType = __webpack_require__(13);
  161. var _KeyConstraintType2 = _interopRequireDefault(_KeyConstraintType);
  162. var _SqlOperatorType = __webpack_require__(23);
  163. var _SqlOperatorType2 = _interopRequireDefault(_SqlOperatorType);
  164. var _CopyMode = __webpack_require__(122);
  165. var _CopyMode2 = _interopRequireDefault(_CopyMode);
  166. var _ComparisonOperatorType = __webpack_require__(39);
  167. var _ComparisonOperatorType2 = _interopRequireDefault(_ComparisonOperatorType);
  168. var _SelectListControlType = __webpack_require__(31);
  169. var _SelectListControlType2 = _interopRequireDefault(_SelectListControlType);
  170. var _Operator = __webpack_require__(135);
  171. var _Operator2 = _interopRequireDefault(_Operator);
  172. var _EditModeType = __webpack_require__(28);
  173. var _EditModeType2 = _interopRequireDefault(_EditModeType);
  174. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  175. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  176. var EntryPoint = function () {
  177. function EntryPoint() {
  178. _classCallCheck(this, EntryPoint);
  179. this.Notification = {
  180. ADD: _Notification2.default.ADD,
  181. REMOVE: _Notification2.default.REMOVE,
  182. SET: _Notification2.default.SET,
  183. CREATE: _Notification2.default.CREATE,
  184. NO_POSITION: _Notification2.default.NO_POSITION
  185. };
  186. this.Features = _Features2.default;
  187. this.MoserObjectTypes = _MoserObjectTypes2.default;
  188. this.ModuleUtils = _ModuleUtils2.default;
  189. this.ObjectNavigator = _ObjectNavigator2.default;
  190. this.EmbeddedModuleUtils = _EmbeddedModuleUtils2.default;
  191. this.IdGenerator = _IdGenerator2.default;
  192. this.ValidationUtils = _ValidationUtils2.default;
  193. this.BinExpression = _BinExpression2.default;
  194. this.QueryFlowUtil = new _QueryFlowUtil2.default();
  195. this.ParameterDataType = _ParameterDataType2.default;
  196. this.ValueOperatorType = _ValueOperatorType2.default;
  197. this.Operator = _Operator2.default;
  198. this.CardinalityEnum = _CardinalityEnum2.default;
  199. this.InstanceType = _InstanceType2.default;
  200. this.RegularAggregateType = _RegularAggregateType2.default;
  201. this.SourceCategoryType = _SourceCategoryType2.default;
  202. this.UsageType = _UsageType2.default;
  203. this.AggregateMode = _AggregateMode2.default;
  204. this.ContextMode = _ContextMode2.default;
  205. this.FacetTypeEnabled = _FacetTypeEnabled2.default;
  206. this.GenerateSQL = _GenerateSQL2.default;
  207. this.HighLevelDataType = _HighLevelDataType2.default;
  208. this.JoinFilterType = _JoinFilterType2.default;
  209. this.ProParameterMode = _ProParameterMode2.default;
  210. this.QuerySubjectUsage = _QuerySubjectUsage2.default;
  211. this.QuerySubjectUtils = _QuerySubjectUtils2.default;
  212. this.SetOperation = _SetOperation2.default;
  213. this.SetOperationDuplicates = _SetOperationDuplicates2.default;
  214. this.SortOrder = _SortOrder2.default;
  215. this.SortOrderNullPlacement = _SortOrderNullPlacement2.default;
  216. this.SplitColumnTreatment = _SplitColumnTreatment2.default;
  217. this.SplitDisplay = _SplitDisplay2.default;
  218. this.SqlLanguageType = _SqlLanguageType2.default;
  219. this.TableType = _TableType2.default;
  220. this.UseSpecType = _UseSpecType2.default;
  221. this.QsClassifierType = _QsClassifierType2.default;
  222. this.KeyCompositionType = _KeyCompositionType2.default;
  223. this.KeyConstraintType = _KeyConstraintType2.default;
  224. this.SqlOperatorType = _SqlOperatorType2.default;
  225. this.CopyMode = _CopyMode2.default;
  226. this.ComparisonOperatorType = _ComparisonOperatorType2.default;
  227. this.SelectListControlType = _SelectListControlType2.default;
  228. this.EditModeType = _EditModeType2.default;
  229. }
  230. // Enums
  231. _createClass(EntryPoint, [{
  232. key: 'createObjectFactory',
  233. value: function createObjectFactory() {
  234. return new _ObjectFactory2.default();
  235. }
  236. }, {
  237. key: 'createJSONObjectFactory',
  238. value: function createJSONObjectFactory(objectFactory) {
  239. return new _JSONObjectFactory2.default(objectFactory);
  240. }
  241. }, {
  242. key: 'isMoserObject',
  243. value: function isMoserObject(object) {
  244. return object instanceof _MoserObject2.default;
  245. }
  246. }]);
  247. return EntryPoint;
  248. }();
  249. EntryPoint.INSTANCE = new EntryPoint();
  250. exports.default = EntryPoint.INSTANCE;
  251. /***/ },
  252. /* 1 */
  253. /***/ function(module, exports, __webpack_require__) {
  254. 'use strict';
  255. Object.defineProperty(exports, "__esModule", {
  256. value: true
  257. });
  258. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  259. var _BaseMoserObject2 = __webpack_require__(2);
  260. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  261. var _Index = __webpack_require__(3);
  262. var _Index2 = _interopRequireDefault(_Index);
  263. var _Notification = __webpack_require__(7);
  264. var _Notification2 = _interopRequireDefault(_Notification);
  265. var _ForeignKey = __webpack_require__(24);
  266. var _ForeignKey2 = _interopRequireDefault(_ForeignKey);
  267. var _QuerySubject = __webpack_require__(25);
  268. var _QuerySubject2 = _interopRequireDefault(_QuerySubject);
  269. var _SecurityFilter = __webpack_require__(36);
  270. var _SecurityFilter2 = _interopRequireDefault(_SecurityFilter);
  271. var _Relationship = __webpack_require__(37);
  272. var _Relationship2 = _interopRequireDefault(_Relationship);
  273. var _ParameterMap = __webpack_require__(49);
  274. var _ParameterMap2 = _interopRequireDefault(_ParameterMap);
  275. var _DrillGroup = __webpack_require__(50);
  276. var _DrillGroup2 = _interopRequireDefault(_DrillGroup);
  277. var _QueryValueSelector = __webpack_require__(51);
  278. var _QueryValueSelector2 = _interopRequireDefault(_QueryValueSelector);
  279. var _Module = __webpack_require__(54);
  280. var _Module2 = _interopRequireDefault(_Module);
  281. var _ValidationMessage = __webpack_require__(56);
  282. var _ValidationMessage2 = _interopRequireDefault(_ValidationMessage);
  283. var _Feedback = __webpack_require__(57);
  284. var _Feedback2 = _interopRequireDefault(_Feedback);
  285. var _ItemNormalizationGroupType = __webpack_require__(58);
  286. var _ItemNormalizationGroupType2 = _interopRequireDefault(_ItemNormalizationGroupType);
  287. var _TextResource = __webpack_require__(60);
  288. var _TextResource2 = _interopRequireDefault(_TextResource);
  289. var _SortListType = __webpack_require__(61);
  290. var _SortListType2 = _interopRequireDefault(_SortListType);
  291. var _ItemType = __webpack_require__(62);
  292. var _ItemType2 = _interopRequireDefault(_ItemType);
  293. var _FacetType = __webpack_require__(63);
  294. var _FacetType2 = _interopRequireDefault(_FacetType);
  295. var _DataSource = __webpack_require__(66);
  296. var _DataSource2 = _interopRequireDefault(_DataSource);
  297. var _PhysicalObjectType = __webpack_require__(4);
  298. var _PhysicalObjectType2 = _interopRequireDefault(_PhysicalObjectType);
  299. var _BaseObjectType = __webpack_require__(5);
  300. var _BaseObjectType2 = _interopRequireDefault(_BaseObjectType);
  301. var _Jdbc = __webpack_require__(67);
  302. var _Jdbc2 = _interopRequireDefault(_Jdbc);
  303. var _Table = __webpack_require__(68);
  304. var _Table2 = _interopRequireDefault(_Table);
  305. var _Column = __webpack_require__(70);
  306. var _Column2 = _interopRequireDefault(_Column);
  307. var _PrimaryKey = __webpack_require__(71);
  308. var _PrimaryKey2 = _interopRequireDefault(_PrimaryKey);
  309. var _TableItemType = __webpack_require__(72);
  310. var _TableItemType2 = _interopRequireDefault(_TableItemType);
  311. var _StoredProcedure = __webpack_require__(73);
  312. var _StoredProcedure2 = _interopRequireDefault(_StoredProcedure);
  313. var _ProcParameterType = __webpack_require__(74);
  314. var _ProcParameterType2 = _interopRequireDefault(_ProcParameterType);
  315. var _DbFunction = __webpack_require__(76);
  316. var _DbFunction2 = _interopRequireDefault(_DbFunction);
  317. var _Struct = __webpack_require__(77);
  318. var _Struct2 = _interopRequireDefault(_Struct);
  319. var _Multiset = __webpack_require__(78);
  320. var _Multiset2 = _interopRequireDefault(_Multiset);
  321. var _ObjectType = __webpack_require__(26);
  322. var _ObjectType2 = _interopRequireDefault(_ObjectType);
  323. var _PropertyType = __webpack_require__(79);
  324. var _PropertyType2 = _interopRequireDefault(_PropertyType);
  325. var _QueryItem = __webpack_require__(80);
  326. var _QueryItem2 = _interopRequireDefault(_QueryItem);
  327. var _TaxonomyType = __webpack_require__(81);
  328. var _TaxonomyType2 = _interopRequireDefault(_TaxonomyType);
  329. var _SplitType = __webpack_require__(82);
  330. var _SplitType2 = _interopRequireDefault(_SplitType);
  331. var _PromptInfoType = __webpack_require__(85);
  332. var _PromptInfoType2 = _interopRequireDefault(_PromptInfoType);
  333. var _CalculatedMemberType = __webpack_require__(87);
  334. var _CalculatedMemberType2 = _interopRequireDefault(_CalculatedMemberType);
  335. var _MemberType = __webpack_require__(88);
  336. var _MemberType2 = _interopRequireDefault(_MemberType);
  337. var _Filter = __webpack_require__(41);
  338. var _Filter2 = _interopRequireDefault(_Filter);
  339. var _SqlQueryType = __webpack_require__(89);
  340. var _SqlQueryType2 = _interopRequireDefault(_SqlQueryType);
  341. var _ItemNormalizationType = __webpack_require__(91);
  342. var _ItemNormalizationType2 = _interopRequireDefault(_ItemNormalizationType);
  343. var _NamedSet = __webpack_require__(92);
  344. var _NamedSet2 = _interopRequireDefault(_NamedSet);
  345. var _CardinalityType = __webpack_require__(93);
  346. var _CardinalityType2 = _interopRequireDefault(_CardinalityType);
  347. var _Calculation = __webpack_require__(42);
  348. var _Calculation2 = _interopRequireDefault(_Calculation);
  349. var _ItemHierarchy = __webpack_require__(94);
  350. var _ItemHierarchy2 = _interopRequireDefault(_ItemHierarchy);
  351. var _LocalRefType = __webpack_require__(95);
  352. var _LocalRefType2 = _interopRequireDefault(_LocalRefType);
  353. var _ParameterValueSet = __webpack_require__(96);
  354. var _ParameterValueSet2 = _interopRequireDefault(_ParameterValueSet);
  355. var _ParameterValue = __webpack_require__(97);
  356. var _ParameterValue2 = _interopRequireDefault(_ParameterValue);
  357. var _ValueType = __webpack_require__(99);
  358. var _ValueType2 = _interopRequireDefault(_ValueType);
  359. var _ParameterFault = __webpack_require__(101);
  360. var _ParameterFault2 = _interopRequireDefault(_ParameterFault);
  361. var _ParameterCapabilitiesType = __webpack_require__(102);
  362. var _ParameterCapabilitiesType2 = _interopRequireDefault(_ParameterCapabilitiesType);
  363. var _Prompt = __webpack_require__(103);
  364. var _Prompt2 = _interopRequireDefault(_Prompt);
  365. var _ParameterFeedbackInfo = __webpack_require__(104);
  366. var _ParameterFeedbackInfo2 = _interopRequireDefault(_ParameterFeedbackInfo);
  367. var _FolderType = __webpack_require__(106);
  368. var _FolderType2 = _interopRequireDefault(_FolderType);
  369. var _Focus = __webpack_require__(107);
  370. var _Focus2 = _interopRequireDefault(_Focus);
  371. var _SplitRule = __webpack_require__(108);
  372. var _SplitRule2 = _interopRequireDefault(_SplitRule);
  373. var _SplitConfig = __webpack_require__(109);
  374. var _SplitConfig2 = _interopRequireDefault(_SplitConfig);
  375. var _ProjectedItemType = __webpack_require__(110);
  376. var _ProjectedItemType2 = _interopRequireDefault(_ProjectedItemType);
  377. var _FolderItemType = __webpack_require__(47);
  378. var _FolderItemType2 = _interopRequireDefault(_FolderItemType);
  379. var _DefLinkType = __webpack_require__(48);
  380. var _DefLinkType2 = _interopRequireDefault(_DefLinkType);
  381. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  382. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  383. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  384. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  385. ** IBM Confidential
  386. **
  387. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  388. **
  389. ** (C) Copyright IBM Corp. 2020
  390. **
  391. ** The source code for this program is not published or otherwise divested of its trade secrets,
  392. ** irrespective of what has been deposited with the U.S. Copyright Office.
  393. ************************************************************************/
  394. // GENERATED
  395. //@import BaseMoserObject (loadtime) // superclass
  396. //@import com/ibm/bi/platform/moser/common/generated/metadata/Index (runtime) // new
  397. //@import com/ibm/bi/platform/moser/common/notify/Notification (runtime) // new
  398. //@import com/ibm/bi/platform/moser/common/generated/metadata/ForeignKey (runtime) // new
  399. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubject (runtime) // new
  400. //@import com/ibm/bi/platform/moser/common/generated/metadata/SecurityFilter (runtime) // new
  401. //@import com/ibm/bi/platform/moser/common/generated/metadata/Relationship (runtime) // new
  402. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterMap (runtime) // new
  403. //@import com/ibm/bi/platform/moser/common/generated/metadata/DrillGroup (runtime) // new
  404. //@import com/ibm/bi/platform/moser/common/generated/metadata/QueryValueSelector (runtime) // new
  405. //@import com/ibm/bi/platform/moser/common/generated/metadata/Module (runtime) // new
  406. //@import com/ibm/bi/platform/moser/common/generated/metadata/ValidationMessage (runtime) // new
  407. //@import com/ibm/bi/platform/moser/common/generated/metadata/Feedback (runtime) // new
  408. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemNormalizationGroupType (runtime) // new
  409. //@import com/ibm/bi/platform/moser/common/generated/metadata/TextResource (runtime) // new
  410. //@import com/ibm/bi/platform/moser/common/generated/metadata/SortListType (runtime) // new
  411. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemType (runtime) // new
  412. //@import com/ibm/bi/platform/moser/common/generated/metadata/FacetType (runtime) // new
  413. //@import com/ibm/bi/platform/moser/common/generated/metadata/DataSource (runtime) // new
  414. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (runtime) // new
  415. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseObjectType (runtime) // new
  416. //@import com/ibm/bi/platform/moser/common/generated/metadata/Jdbc (runtime) // new
  417. //@import com/ibm/bi/platform/moser/common/generated/metadata/Table (runtime) // new
  418. //@import com/ibm/bi/platform/moser/common/generated/metadata/Column (runtime) // new
  419. //@import com/ibm/bi/platform/moser/common/generated/metadata/PrimaryKey (runtime) // new
  420. //@import com/ibm/bi/platform/moser/common/generated/metadata/TableItemType (runtime) // new
  421. //@import com/ibm/bi/platform/moser/common/generated/metadata/StoredProcedure (runtime) // new
  422. //@import com/ibm/bi/platform/moser/common/generated/metadata/ProcParameterType (runtime) // new
  423. //@import com/ibm/bi/platform/moser/common/generated/metadata/DbFunction (runtime) // new
  424. //@import com/ibm/bi/platform/moser/common/generated/metadata/Struct (runtime) // new
  425. //@import com/ibm/bi/platform/moser/common/generated/metadata/Multiset (runtime) // new
  426. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (runtime) // new
  427. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertyType (runtime) // new
  428. //@import com/ibm/bi/platform/moser/common/generated/metadata/QueryItem (runtime) // new
  429. //@import com/ibm/bi/platform/moser/common/generated/metadata/TaxonomyType (runtime) // new
  430. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitType (runtime) // new
  431. //@import com/ibm/bi/platform/moser/common/generated/metadata/PromptInfoType (runtime) // new
  432. //@import com/ibm/bi/platform/moser/common/generated/metadata/CalculatedMemberType (runtime) // new
  433. //@import com/ibm/bi/platform/moser/common/generated/metadata/MemberType (runtime) // new
  434. //@import com/ibm/bi/platform/moser/common/generated/metadata/Filter (runtime) // new
  435. //@import com/ibm/bi/platform/moser/common/generated/metadata/SqlQueryType (runtime) // new
  436. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemNormalizationType (runtime) // new
  437. //@import com/ibm/bi/platform/moser/common/generated/metadata/NamedSet (runtime) // new
  438. //@import com/ibm/bi/platform/moser/common/generated/metadata/CardinalityType (runtime) // new
  439. //@import com/ibm/bi/platform/moser/common/generated/metadata/Calculation (runtime) // new
  440. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemHierarchy (runtime) // new
  441. //@import com/ibm/bi/platform/moser/common/generated/metadata/LocalRefType (runtime) // new
  442. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterValueSet (runtime) // new
  443. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterValue (runtime) // new
  444. //@import com/ibm/bi/platform/moser/common/generated/metadata/ValueType (runtime) // new
  445. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterFault (runtime) // new
  446. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterCapabilitiesType (runtime) // new
  447. //@import com/ibm/bi/platform/moser/common/generated/metadata/Prompt (runtime) // new
  448. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterFeedbackInfo (runtime) // new
  449. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderType (runtime) // new
  450. //@import com/ibm/bi/platform/moser/common/generated/metadata/Focus (runtime) // new
  451. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitRule (runtime) // new
  452. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitConfig (runtime) // new
  453. //@import com/ibm/bi/platform/moser/common/generated/metadata/ProjectedItemType (runtime) // new
  454. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderItemType (runtime) // new
  455. //@import com/ibm/bi/platform/moser/common/generated/metadata/DefLinkType (runtime) // new
  456. /**
  457. * This object contains factory methods for each Java content interface and Java element interface generated in the com.ibm.bi.platform.moser.common.generated.metadata package. <p>An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.
  458. */
  459. var ObjectFactory = function (_BaseMoserObject) {
  460. _inherits(ObjectFactory, _BaseMoserObject);
  461. function ObjectFactory() {
  462. var _ref;
  463. var _temp, _this, _ret;
  464. _classCallCheck(this, ObjectFactory);
  465. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  466. args[_key] = arguments[_key];
  467. }
  468. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ObjectFactory.__proto__ || Object.getPrototypeOf(ObjectFactory)).call.apply(_ref, [this].concat(args))), _this), _this._listeners = null, _temp), _possibleConstructorReturn(_this, _ret);
  469. }
  470. _createClass(ObjectFactory, [{
  471. key: 'createIndex',
  472. /**
  473. * Creates a new instance of <code>Index</code> object and notifies all registered listeners with a create event.
  474. * @return {Index} an object of type <code>Index</code>
  475. */
  476. value: function createIndex() {
  477. var result = new _Index2.default();
  478. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  479. this.notify(notification);
  480. return result;
  481. }
  482. /**
  483. * Creates a new instance of <code>ForeignKey</code> object and notifies all registered listeners with a create event.
  484. * @return {ForeignKey} an object of type <code>ForeignKey</code>
  485. */
  486. }, {
  487. key: 'createForeignKey',
  488. value: function createForeignKey() {
  489. var result = new _ForeignKey2.default();
  490. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  491. this.notify(notification);
  492. return result;
  493. }
  494. /**
  495. * Creates a new instance of <code>QuerySubject</code> object and notifies all registered listeners with a create event.
  496. * @return {QuerySubject} an object of type <code>QuerySubject</code>
  497. */
  498. }, {
  499. key: 'createQuerySubject',
  500. value: function createQuerySubject() {
  501. var result = new _QuerySubject2.default();
  502. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  503. this.notify(notification);
  504. return result;
  505. }
  506. /**
  507. * Creates a new instance of <code>SecurityFilter</code> object and notifies all registered listeners with a create event.
  508. * @return {SecurityFilter} an object of type <code>SecurityFilter</code>
  509. */
  510. }, {
  511. key: 'createSecurityFilter',
  512. value: function createSecurityFilter() {
  513. var result = new _SecurityFilter2.default();
  514. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  515. this.notify(notification);
  516. return result;
  517. }
  518. /**
  519. * Creates a new instance of <code>Relationship</code> object and notifies all registered listeners with a create event.
  520. * @return {Relationship} an object of type <code>Relationship</code>
  521. */
  522. }, {
  523. key: 'createRelationship',
  524. value: function createRelationship() {
  525. var result = new _Relationship2.default();
  526. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  527. this.notify(notification);
  528. return result;
  529. }
  530. /**
  531. * Creates a new instance of <code>ParameterMap</code> object and notifies all registered listeners with a create event.
  532. * @return {ParameterMap} an object of type <code>ParameterMap</code>
  533. */
  534. }, {
  535. key: 'createParameterMap',
  536. value: function createParameterMap() {
  537. var result = new _ParameterMap2.default();
  538. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  539. this.notify(notification);
  540. return result;
  541. }
  542. /**
  543. * Creates a new instance of <code>DrillGroup</code> object and notifies all registered listeners with a create event.
  544. * @return {DrillGroup} an object of type <code>DrillGroup</code>
  545. */
  546. }, {
  547. key: 'createDrillGroup',
  548. value: function createDrillGroup() {
  549. var result = new _DrillGroup2.default();
  550. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  551. this.notify(notification);
  552. return result;
  553. }
  554. /**
  555. * Creates a new instance of <code>QueryValueSelector</code> object and notifies all registered listeners with a create event.
  556. * @return {QueryValueSelector} an object of type <code>QueryValueSelector</code>
  557. */
  558. }, {
  559. key: 'createQueryValueSelector',
  560. value: function createQueryValueSelector() {
  561. var result = new _QueryValueSelector2.default();
  562. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  563. this.notify(notification);
  564. return result;
  565. }
  566. /**
  567. * Creates a new instance of <code>Module</code> object and notifies all registered listeners with a create event.
  568. * @return {Module} an object of type <code>Module</code>
  569. */
  570. }, {
  571. key: 'createModule',
  572. value: function createModule() {
  573. var result = new _Module2.default();
  574. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  575. this.notify(notification);
  576. return result;
  577. }
  578. /**
  579. * Creates a new instance of <code>ValidationMessage</code> object and notifies all registered listeners with a create event.
  580. * @return {ValidationMessage} an object of type <code>ValidationMessage</code>
  581. */
  582. }, {
  583. key: 'createValidationMessage',
  584. value: function createValidationMessage() {
  585. var result = new _ValidationMessage2.default();
  586. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  587. this.notify(notification);
  588. return result;
  589. }
  590. /**
  591. * Creates a new instance of <code>Feedback</code> object and notifies all registered listeners with a create event.
  592. * @return {Feedback} an object of type <code>Feedback</code>
  593. */
  594. }, {
  595. key: 'createFeedback',
  596. value: function createFeedback() {
  597. var result = new _Feedback2.default();
  598. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  599. this.notify(notification);
  600. return result;
  601. }
  602. /**
  603. * Creates a new instance of <code>ItemNormalizationGroupType</code> object and notifies all registered listeners with a create event.
  604. * @return {ItemNormalizationGroupType} an object of type <code>ItemNormalizationGroupType</code>
  605. */
  606. }, {
  607. key: 'createItemNormalizationGroupType',
  608. value: function createItemNormalizationGroupType() {
  609. var result = new _ItemNormalizationGroupType2.default();
  610. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  611. this.notify(notification);
  612. return result;
  613. }
  614. /**
  615. * Creates a new instance of <code>TextResource</code> object and notifies all registered listeners with a create event.
  616. * @return {TextResource} an object of type <code>TextResource</code>
  617. */
  618. }, {
  619. key: 'createTextResource',
  620. value: function createTextResource() {
  621. var result = new _TextResource2.default();
  622. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  623. this.notify(notification);
  624. return result;
  625. }
  626. /**
  627. * Creates a new instance of <code>UseSpec</code> object and notifies all registered listeners with a create event.
  628. * @return {UseSpec} an object of type <code>UseSpec</code>
  629. */
  630. }, {
  631. key: 'createModuleUseSpec',
  632. value: function createModuleUseSpec() {
  633. var result = new _Module2.default.UseSpec();
  634. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  635. this.notify(notification);
  636. return result;
  637. }
  638. /**
  639. * Creates a new instance of <code>SortListType</code> object and notifies all registered listeners with a create event.
  640. * @return {SortListType} an object of type <code>SortListType</code>
  641. */
  642. }, {
  643. key: 'createSortListType',
  644. value: function createSortListType() {
  645. var result = new _SortListType2.default();
  646. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  647. this.notify(notification);
  648. return result;
  649. }
  650. /**
  651. * Creates a new instance of <code>ItemType</code> object and notifies all registered listeners with a create event.
  652. * @return {ItemType} an object of type <code>ItemType</code>
  653. */
  654. }, {
  655. key: 'createItemType',
  656. value: function createItemType() {
  657. var result = new _ItemType2.default();
  658. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  659. this.notify(notification);
  660. return result;
  661. }
  662. /**
  663. * Creates a new instance of <code>FacetType</code> object and notifies all registered listeners with a create event.
  664. * @return {FacetType} an object of type <code>FacetType</code>
  665. */
  666. }, {
  667. key: 'createFacetType',
  668. value: function createFacetType() {
  669. var result = new _FacetType2.default();
  670. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  671. this.notify(notification);
  672. return result;
  673. }
  674. /**
  675. * Creates a new instance of <code>DataSource</code> object and notifies all registered listeners with a create event.
  676. * @return {DataSource} an object of type <code>DataSource</code>
  677. */
  678. }, {
  679. key: 'createDataSource',
  680. value: function createDataSource() {
  681. var result = new _DataSource2.default();
  682. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  683. this.notify(notification);
  684. return result;
  685. }
  686. /**
  687. * Creates a new instance of <code>PhysicalObjectType</code> object and notifies all registered listeners with a create event.
  688. * @return {PhysicalObjectType} an object of type <code>PhysicalObjectType</code>
  689. */
  690. }, {
  691. key: 'createPhysicalObjectType',
  692. value: function createPhysicalObjectType() {
  693. var result = new _PhysicalObjectType2.default();
  694. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  695. this.notify(notification);
  696. return result;
  697. }
  698. /**
  699. * Creates a new instance of <code>BaseObjectType</code> object and notifies all registered listeners with a create event.
  700. * @return {BaseObjectType} an object of type <code>BaseObjectType</code>
  701. */
  702. }, {
  703. key: 'createBaseObjectType',
  704. value: function createBaseObjectType() {
  705. var result = new _BaseObjectType2.default();
  706. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  707. this.notify(notification);
  708. return result;
  709. }
  710. /**
  711. * Creates a new instance of <code>Jdbc</code> object and notifies all registered listeners with a create event.
  712. * @return {Jdbc} an object of type <code>Jdbc</code>
  713. */
  714. }, {
  715. key: 'createJdbc',
  716. value: function createJdbc() {
  717. var result = new _Jdbc2.default();
  718. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  719. this.notify(notification);
  720. return result;
  721. }
  722. /**
  723. * Creates a new instance of <code>Table</code> object and notifies all registered listeners with a create event.
  724. * @return {Table} an object of type <code>Table</code>
  725. */
  726. }, {
  727. key: 'createTable',
  728. value: function createTable() {
  729. var result = new _Table2.default();
  730. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  731. this.notify(notification);
  732. return result;
  733. }
  734. /**
  735. * Creates a new instance of <code>Column</code> object and notifies all registered listeners with a create event.
  736. * @return {Column} an object of type <code>Column</code>
  737. */
  738. }, {
  739. key: 'createColumn',
  740. value: function createColumn() {
  741. var result = new _Column2.default();
  742. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  743. this.notify(notification);
  744. return result;
  745. }
  746. /**
  747. * Creates a new instance of <code>IndexedColumn</code> object and notifies all registered listeners with a create event.
  748. * @return {IndexedColumn} an object of type <code>IndexedColumn</code>
  749. */
  750. }, {
  751. key: 'createIndexIndexedColumn',
  752. value: function createIndexIndexedColumn() {
  753. var result = new _Index2.default.IndexedColumn();
  754. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  755. this.notify(notification);
  756. return result;
  757. }
  758. /**
  759. * Creates a new instance of <code>PrimaryKey</code> object and notifies all registered listeners with a create event.
  760. * @return {PrimaryKey} an object of type <code>PrimaryKey</code>
  761. */
  762. }, {
  763. key: 'createPrimaryKey',
  764. value: function createPrimaryKey() {
  765. var result = new _PrimaryKey2.default();
  766. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  767. this.notify(notification);
  768. return result;
  769. }
  770. /**
  771. * Creates a new instance of <code>FkColumn</code> object and notifies all registered listeners with a create event.
  772. * @return {FkColumn} an object of type <code>FkColumn</code>
  773. */
  774. }, {
  775. key: 'createForeignKeyFkColumn',
  776. value: function createForeignKeyFkColumn() {
  777. var result = new _ForeignKey2.default.FkColumn();
  778. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  779. this.notify(notification);
  780. return result;
  781. }
  782. /**
  783. * Creates a new instance of <code>TableItemType</code> object and notifies all registered listeners with a create event.
  784. * @return {TableItemType} an object of type <code>TableItemType</code>
  785. */
  786. }, {
  787. key: 'createTableItemType',
  788. value: function createTableItemType() {
  789. var result = new _TableItemType2.default();
  790. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  791. this.notify(notification);
  792. return result;
  793. }
  794. /**
  795. * Creates a new instance of <code>StoredProcedure</code> object and notifies all registered listeners with a create event.
  796. * @return {StoredProcedure} an object of type <code>StoredProcedure</code>
  797. */
  798. }, {
  799. key: 'createStoredProcedure',
  800. value: function createStoredProcedure() {
  801. var result = new _StoredProcedure2.default();
  802. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  803. this.notify(notification);
  804. return result;
  805. }
  806. /**
  807. * Creates a new instance of <code>ProcParameterType</code> object and notifies all registered listeners with a create event.
  808. * @return {ProcParameterType} an object of type <code>ProcParameterType</code>
  809. */
  810. }, {
  811. key: 'createProcParameterType',
  812. value: function createProcParameterType() {
  813. var result = new _ProcParameterType2.default();
  814. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  815. this.notify(notification);
  816. return result;
  817. }
  818. /**
  819. * Creates a new instance of <code>DbFunction</code> object and notifies all registered listeners with a create event.
  820. * @return {DbFunction} an object of type <code>DbFunction</code>
  821. */
  822. }, {
  823. key: 'createDbFunction',
  824. value: function createDbFunction() {
  825. var result = new _DbFunction2.default();
  826. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  827. this.notify(notification);
  828. return result;
  829. }
  830. /**
  831. * Creates a new instance of <code>Struct</code> object and notifies all registered listeners with a create event.
  832. * @return {Struct} an object of type <code>Struct</code>
  833. */
  834. }, {
  835. key: 'createStruct',
  836. value: function createStruct() {
  837. var result = new _Struct2.default();
  838. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  839. this.notify(notification);
  840. return result;
  841. }
  842. /**
  843. * Creates a new instance of <code>Multiset</code> object and notifies all registered listeners with a create event.
  844. * @return {Multiset} an object of type <code>Multiset</code>
  845. */
  846. }, {
  847. key: 'createMultiset',
  848. value: function createMultiset() {
  849. var result = new _Multiset2.default();
  850. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  851. this.notify(notification);
  852. return result;
  853. }
  854. /**
  855. * Creates a new instance of <code>ObjectType</code> object and notifies all registered listeners with a create event.
  856. * @return {ObjectType} an object of type <code>ObjectType</code>
  857. */
  858. }, {
  859. key: 'createObjectType',
  860. value: function createObjectType() {
  861. var result = new _ObjectType2.default();
  862. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  863. this.notify(notification);
  864. return result;
  865. }
  866. /**
  867. * Creates a new instance of <code>PropertyType</code> object and notifies all registered listeners with a create event.
  868. * @return {PropertyType} an object of type <code>PropertyType</code>
  869. */
  870. }, {
  871. key: 'createPropertyType',
  872. value: function createPropertyType() {
  873. var result = new _PropertyType2.default();
  874. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  875. this.notify(notification);
  876. return result;
  877. }
  878. /**
  879. * Creates a new instance of <code>ColumnDependency</code> object and notifies all registered listeners with a create event.
  880. * @return {ColumnDependency} an object of type <code>ColumnDependency</code>
  881. */
  882. }, {
  883. key: 'createQuerySubjectColumnDependency',
  884. value: function createQuerySubjectColumnDependency() {
  885. var result = new _QuerySubject2.default.ColumnDependency();
  886. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  887. this.notify(notification);
  888. return result;
  889. }
  890. /**
  891. * Creates a new instance of <code>QueryItem</code> object and notifies all registered listeners with a create event.
  892. * @return {QueryItem} an object of type <code>QueryItem</code>
  893. */
  894. }, {
  895. key: 'createQueryItem',
  896. value: function createQueryItem() {
  897. var result = new _QueryItem2.default();
  898. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  899. this.notify(notification);
  900. return result;
  901. }
  902. /**
  903. * Creates a new instance of <code>TaxonomyType</code> object and notifies all registered listeners with a create event.
  904. * @return {TaxonomyType} an object of type <code>TaxonomyType</code>
  905. */
  906. }, {
  907. key: 'createTaxonomyType',
  908. value: function createTaxonomyType() {
  909. var result = new _TaxonomyType2.default();
  910. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  911. this.notify(notification);
  912. return result;
  913. }
  914. /**
  915. * Creates a new instance of <code>SplitType</code> object and notifies all registered listeners with a create event.
  916. * @return {SplitType} an object of type <code>SplitType</code>
  917. */
  918. }, {
  919. key: 'createSplitType',
  920. value: function createSplitType() {
  921. var result = new _SplitType2.default();
  922. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  923. this.notify(notification);
  924. return result;
  925. }
  926. /**
  927. * Creates a new instance of <code>PromptInfoType</code> object and notifies all registered listeners with a create event.
  928. * @return {PromptInfoType} an object of type <code>PromptInfoType</code>
  929. */
  930. }, {
  931. key: 'createPromptInfoType',
  932. value: function createPromptInfoType() {
  933. var result = new _PromptInfoType2.default();
  934. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  935. this.notify(notification);
  936. return result;
  937. }
  938. /**
  939. * Creates a new instance of <code>CalculatedMemberType</code> object and notifies all registered listeners with a create event.
  940. * @return {CalculatedMemberType} an object of type <code>CalculatedMemberType</code>
  941. */
  942. }, {
  943. key: 'createCalculatedMemberType',
  944. value: function createCalculatedMemberType() {
  945. var result = new _CalculatedMemberType2.default();
  946. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  947. this.notify(notification);
  948. return result;
  949. }
  950. /**
  951. * Creates a new instance of <code>MemberType</code> object and notifies all registered listeners with a create event.
  952. * @return {MemberType} an object of type <code>MemberType</code>
  953. */
  954. }, {
  955. key: 'createMemberType',
  956. value: function createMemberType() {
  957. var result = new _MemberType2.default();
  958. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  959. this.notify(notification);
  960. return result;
  961. }
  962. /**
  963. * Creates a new instance of <code>Filter</code> object and notifies all registered listeners with a create event.
  964. * @return {Filter} an object of type <code>Filter</code>
  965. */
  966. }, {
  967. key: 'createFilter',
  968. value: function createFilter() {
  969. var result = new _Filter2.default();
  970. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  971. this.notify(notification);
  972. return result;
  973. }
  974. /**
  975. * Creates a new instance of <code>SqlQueryType</code> object and notifies all registered listeners with a create event.
  976. * @return {SqlQueryType} an object of type <code>SqlQueryType</code>
  977. */
  978. }, {
  979. key: 'createSqlQueryType',
  980. value: function createSqlQueryType() {
  981. var result = new _SqlQueryType2.default();
  982. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  983. this.notify(notification);
  984. return result;
  985. }
  986. /**
  987. * Creates a new instance of <code>QueryOperation</code> object and notifies all registered listeners with a create event.
  988. * @return {QueryOperation} an object of type <code>QueryOperation</code>
  989. */
  990. }, {
  991. key: 'createQuerySubjectQueryOperation',
  992. value: function createQuerySubjectQueryOperation() {
  993. var result = new _QuerySubject2.default.QueryOperation();
  994. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  995. this.notify(notification);
  996. return result;
  997. }
  998. /**
  999. * Creates a new instance of <code>JoinOperation</code> object and notifies all registered listeners with a create event.
  1000. * @return {JoinOperation} an object of type <code>JoinOperation</code>
  1001. */
  1002. }, {
  1003. key: 'createQuerySubjectJoinOperation',
  1004. value: function createQuerySubjectJoinOperation() {
  1005. var result = new _QuerySubject2.default.JoinOperation();
  1006. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1007. this.notify(notification);
  1008. return result;
  1009. }
  1010. /**
  1011. * Creates a new instance of <code>ItemNormalizationType</code> object and notifies all registered listeners with a create event.
  1012. * @return {ItemNormalizationType} an object of type <code>ItemNormalizationType</code>
  1013. */
  1014. }, {
  1015. key: 'createItemNormalizationType',
  1016. value: function createItemNormalizationType() {
  1017. var result = new _ItemNormalizationType2.default();
  1018. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1019. this.notify(notification);
  1020. return result;
  1021. }
  1022. /**
  1023. * Creates a new instance of <code>SecurityObject</code> object and notifies all registered listeners with a create event.
  1024. * @return {SecurityObject} an object of type <code>SecurityObject</code>
  1025. */
  1026. }, {
  1027. key: 'createSecurityFilterSecurityObject',
  1028. value: function createSecurityFilterSecurityObject() {
  1029. var result = new _SecurityFilter2.default.SecurityObject();
  1030. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1031. this.notify(notification);
  1032. return result;
  1033. }
  1034. /**
  1035. * Creates a new instance of <code>NamedSet</code> object and notifies all registered listeners with a create event.
  1036. * @return {NamedSet} an object of type <code>NamedSet</code>
  1037. */
  1038. }, {
  1039. key: 'createNamedSet',
  1040. value: function createNamedSet() {
  1041. var result = new _NamedSet2.default();
  1042. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1043. this.notify(notification);
  1044. return result;
  1045. }
  1046. /**
  1047. * Creates a new instance of <code>CardinalityType</code> object and notifies all registered listeners with a create event.
  1048. * @return {CardinalityType} an object of type <code>CardinalityType</code>
  1049. */
  1050. }, {
  1051. key: 'createCardinalityType',
  1052. value: function createCardinalityType() {
  1053. var result = new _CardinalityType2.default();
  1054. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1055. this.notify(notification);
  1056. return result;
  1057. }
  1058. /**
  1059. * Creates a new instance of <code>Link</code> object and notifies all registered listeners with a create event.
  1060. * @return {Link} an object of type <code>Link</code>
  1061. */
  1062. }, {
  1063. key: 'createRelationshipLink',
  1064. value: function createRelationshipLink() {
  1065. var result = new _Relationship2.default.Link();
  1066. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1067. this.notify(notification);
  1068. return result;
  1069. }
  1070. /**
  1071. * Creates a new instance of <code>ParameterMapEntry</code> object and notifies all registered listeners with a create event.
  1072. * @return {ParameterMapEntry} an object of type <code>ParameterMapEntry</code>
  1073. */
  1074. }, {
  1075. key: 'createParameterMapParameterMapEntry',
  1076. value: function createParameterMapParameterMapEntry() {
  1077. var result = new _ParameterMap2.default.ParameterMapEntry();
  1078. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1079. this.notify(notification);
  1080. return result;
  1081. }
  1082. /**
  1083. * Creates a new instance of <code>QueryItemMap</code> object and notifies all registered listeners with a create event.
  1084. * @return {QueryItemMap} an object of type <code>QueryItemMap</code>
  1085. */
  1086. }, {
  1087. key: 'createParameterMapQueryItemMap',
  1088. value: function createParameterMapQueryItemMap() {
  1089. var result = new _ParameterMap2.default.QueryItemMap();
  1090. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1091. this.notify(notification);
  1092. return result;
  1093. }
  1094. /**
  1095. * Creates a new instance of <code>Calculation</code> object and notifies all registered listeners with a create event.
  1096. * @return {Calculation} an object of type <code>Calculation</code>
  1097. */
  1098. }, {
  1099. key: 'createCalculation',
  1100. value: function createCalculation() {
  1101. var result = new _Calculation2.default();
  1102. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1103. this.notify(notification);
  1104. return result;
  1105. }
  1106. /**
  1107. * Creates a new instance of <code>Segment</code> object and notifies all registered listeners with a create event.
  1108. * @return {Segment} an object of type <code>Segment</code>
  1109. */
  1110. }, {
  1111. key: 'createDrillGroupSegment',
  1112. value: function createDrillGroupSegment() {
  1113. var result = new _DrillGroup2.default.Segment();
  1114. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1115. this.notify(notification);
  1116. return result;
  1117. }
  1118. /**
  1119. * Creates a new instance of <code>ItemHierarchy</code> object and notifies all registered listeners with a create event.
  1120. * @return {ItemHierarchy} an object of type <code>ItemHierarchy</code>
  1121. */
  1122. }, {
  1123. key: 'createItemHierarchy',
  1124. value: function createItemHierarchy() {
  1125. var result = new _ItemHierarchy2.default();
  1126. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1127. this.notify(notification);
  1128. return result;
  1129. }
  1130. /**
  1131. * Creates a new instance of <code>LocalRefType</code> object and notifies all registered listeners with a create event.
  1132. * @return {LocalRefType} an object of type <code>LocalRefType</code>
  1133. */
  1134. }, {
  1135. key: 'createLocalRefType',
  1136. value: function createLocalRefType() {
  1137. var result = new _LocalRefType2.default();
  1138. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1139. this.notify(notification);
  1140. return result;
  1141. }
  1142. /**
  1143. * Creates a new instance of <code>ParameterValueSet</code> object and notifies all registered listeners with a create event.
  1144. * @return {ParameterValueSet} an object of type <code>ParameterValueSet</code>
  1145. */
  1146. }, {
  1147. key: 'createParameterValueSet',
  1148. value: function createParameterValueSet() {
  1149. var result = new _ParameterValueSet2.default();
  1150. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1151. this.notify(notification);
  1152. return result;
  1153. }
  1154. /**
  1155. * Creates a new instance of <code>ParameterValue</code> object and notifies all registered listeners with a create event.
  1156. * @return {ParameterValue} an object of type <code>ParameterValue</code>
  1157. */
  1158. }, {
  1159. key: 'createParameterValue',
  1160. value: function createParameterValue() {
  1161. var result = new _ParameterValue2.default();
  1162. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1163. this.notify(notification);
  1164. return result;
  1165. }
  1166. /**
  1167. * Creates a new instance of <code>ValueType</code> object and notifies all registered listeners with a create event.
  1168. * @return {ValueType} an object of type <code>ValueType</code>
  1169. */
  1170. }, {
  1171. key: 'createValueType',
  1172. value: function createValueType() {
  1173. var result = new _ValueType2.default();
  1174. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1175. this.notify(notification);
  1176. return result;
  1177. }
  1178. /**
  1179. * Creates a new instance of <code>ParameterFault</code> object and notifies all registered listeners with a create event.
  1180. * @return {ParameterFault} an object of type <code>ParameterFault</code>
  1181. */
  1182. }, {
  1183. key: 'createParameterFault',
  1184. value: function createParameterFault() {
  1185. var result = new _ParameterFault2.default();
  1186. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1187. this.notify(notification);
  1188. return result;
  1189. }
  1190. /**
  1191. * Creates a new instance of <code>ParameterCapabilitiesType</code> object and notifies all registered listeners with a create event.
  1192. * @return {ParameterCapabilitiesType} an object of type <code>ParameterCapabilitiesType</code>
  1193. */
  1194. }, {
  1195. key: 'createParameterCapabilitiesType',
  1196. value: function createParameterCapabilitiesType() {
  1197. var result = new _ParameterCapabilitiesType2.default();
  1198. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1199. this.notify(notification);
  1200. return result;
  1201. }
  1202. /**
  1203. * Creates a new instance of <code>Prompt</code> object and notifies all registered listeners with a create event.
  1204. * @return {Prompt} an object of type <code>Prompt</code>
  1205. */
  1206. }, {
  1207. key: 'createPrompt',
  1208. value: function createPrompt() {
  1209. var result = new _Prompt2.default();
  1210. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1211. this.notify(notification);
  1212. return result;
  1213. }
  1214. /**
  1215. * Creates a new instance of <code>SortExpression</code> object and notifies all registered listeners with a create event.
  1216. * @return {SortExpression} an object of type <code>SortExpression</code>
  1217. */
  1218. }, {
  1219. key: 'createQueryValueSelectorSortExpression',
  1220. value: function createQueryValueSelectorSortExpression() {
  1221. var result = new _QueryValueSelector2.default.SortExpression();
  1222. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1223. this.notify(notification);
  1224. return result;
  1225. }
  1226. /**
  1227. * Creates a new instance of <code>ParameterFeedbackInfo</code> object and notifies all registered listeners with a create event.
  1228. * @return {ParameterFeedbackInfo} an object of type <code>ParameterFeedbackInfo</code>
  1229. */
  1230. }, {
  1231. key: 'createParameterFeedbackInfo',
  1232. value: function createParameterFeedbackInfo() {
  1233. var result = new _ParameterFeedbackInfo2.default();
  1234. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1235. this.notify(notification);
  1236. return result;
  1237. }
  1238. /**
  1239. * Creates a new instance of <code>FolderType</code> object and notifies all registered listeners with a create event.
  1240. * @return {FolderType} an object of type <code>FolderType</code>
  1241. */
  1242. }, {
  1243. key: 'createFolderType',
  1244. value: function createFolderType() {
  1245. var result = new _FolderType2.default();
  1246. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1247. this.notify(notification);
  1248. return result;
  1249. }
  1250. /**
  1251. * Creates a new instance of <code>Focus</code> object and notifies all registered listeners with a create event.
  1252. * @return {Focus} an object of type <code>Focus</code>
  1253. */
  1254. }, {
  1255. key: 'createFocus',
  1256. value: function createFocus() {
  1257. var result = new _Focus2.default();
  1258. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1259. this.notify(notification);
  1260. return result;
  1261. }
  1262. /**
  1263. * Creates a new instance of <code>ErrorData</code> object and notifies all registered listeners with a create event.
  1264. * @return {ErrorData} an object of type <code>ErrorData</code>
  1265. */
  1266. }, {
  1267. key: 'createValidationMessageErrorData',
  1268. value: function createValidationMessageErrorData() {
  1269. var result = new _ValidationMessage2.default.ErrorData();
  1270. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1271. this.notify(notification);
  1272. return result;
  1273. }
  1274. /**
  1275. * Creates a new instance of <code>Data</code> object and notifies all registered listeners with a create event.
  1276. * @return {Data} an object of type <code>Data</code>
  1277. */
  1278. }, {
  1279. key: 'createFeedbackData',
  1280. value: function createFeedbackData() {
  1281. var result = new _Feedback2.default.Data();
  1282. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1283. this.notify(notification);
  1284. return result;
  1285. }
  1286. /**
  1287. * Creates a new instance of <code>Msg</code> object and notifies all registered listeners with a create event.
  1288. * @return {Msg} an object of type <code>Msg</code>
  1289. */
  1290. }, {
  1291. key: 'createFeedbackMsg',
  1292. value: function createFeedbackMsg() {
  1293. var result = new _Feedback2.default.Msg();
  1294. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1295. this.notify(notification);
  1296. return result;
  1297. }
  1298. /**
  1299. * Creates a new instance of <code>SplitRule</code> object and notifies all registered listeners with a create event.
  1300. * @return {SplitRule} an object of type <code>SplitRule</code>
  1301. */
  1302. }, {
  1303. key: 'createSplitRule',
  1304. value: function createSplitRule() {
  1305. var result = new _SplitRule2.default();
  1306. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1307. this.notify(notification);
  1308. return result;
  1309. }
  1310. /**
  1311. * Creates a new instance of <code>SplitConfig</code> object and notifies all registered listeners with a create event.
  1312. * @return {SplitConfig} an object of type <code>SplitConfig</code>
  1313. */
  1314. }, {
  1315. key: 'createSplitConfig',
  1316. value: function createSplitConfig() {
  1317. var result = new _SplitConfig2.default();
  1318. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1319. this.notify(notification);
  1320. return result;
  1321. }
  1322. /**
  1323. * Creates a new instance of <code>ProjectedItemType</code> object and notifies all registered listeners with a create event.
  1324. * @return {ProjectedItemType} an object of type <code>ProjectedItemType</code>
  1325. */
  1326. }, {
  1327. key: 'createProjectedItemType',
  1328. value: function createProjectedItemType() {
  1329. var result = new _ProjectedItemType2.default();
  1330. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1331. this.notify(notification);
  1332. return result;
  1333. }
  1334. /**
  1335. * Creates a new instance of <code>FolderItemType</code> object and notifies all registered listeners with a create event.
  1336. * @return {FolderItemType} an object of type <code>FolderItemType</code>
  1337. */
  1338. }, {
  1339. key: 'createFolderItemType',
  1340. value: function createFolderItemType() {
  1341. var result = new _FolderItemType2.default();
  1342. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1343. this.notify(notification);
  1344. return result;
  1345. }
  1346. /**
  1347. * Creates a new instance of <code>DefLinkType</code> object and notifies all registered listeners with a create event.
  1348. * @return {DefLinkType} an object of type <code>DefLinkType</code>
  1349. */
  1350. }, {
  1351. key: 'createDefLinkType',
  1352. value: function createDefLinkType() {
  1353. var result = new _DefLinkType2.default();
  1354. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1355. this.notify(notification);
  1356. return result;
  1357. }
  1358. /**
  1359. * Creates a new instance of <code>Key</code> object and notifies all registered listeners with a create event.
  1360. * @return {Key} an object of type <code>Key</code>
  1361. */
  1362. }, {
  1363. key: 'createItemNormalizationGroupTypeKey',
  1364. value: function createItemNormalizationGroupTypeKey() {
  1365. var result = new _ItemNormalizationGroupType2.default.Key();
  1366. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1367. this.notify(notification);
  1368. return result;
  1369. }
  1370. /**
  1371. * Creates a new instance of <code>Attribute</code> object and notifies all registered listeners with a create event.
  1372. * @return {Attribute} an object of type <code>Attribute</code>
  1373. */
  1374. }, {
  1375. key: 'createItemNormalizationGroupTypeAttribute',
  1376. value: function createItemNormalizationGroupTypeAttribute() {
  1377. var result = new _ItemNormalizationGroupType2.default.Attribute();
  1378. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1379. this.notify(notification);
  1380. return result;
  1381. }
  1382. /**
  1383. * Creates a new instance of <code>Item</code> object and notifies all registered listeners with a create event.
  1384. * @return {Item} an object of type <code>Item</code>
  1385. */
  1386. }, {
  1387. key: 'createTextResourceItem',
  1388. value: function createTextResourceItem() {
  1389. var result = new _TextResource2.default.Item();
  1390. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1391. this.notify(notification);
  1392. return result;
  1393. }
  1394. /**
  1395. * Creates a new instance of <code>Ancestors</code> object and notifies all registered listeners with a create event.
  1396. * @return {Ancestors} an object of type <code>Ancestors</code>
  1397. */
  1398. }, {
  1399. key: 'createModuleUseSpecAncestors',
  1400. value: function createModuleUseSpecAncestors() {
  1401. var result = new _Module2.default.UseSpec.Ancestors();
  1402. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1403. this.notify(notification);
  1404. return result;
  1405. }
  1406. /**
  1407. * Creates a new instance of <code>SortItem</code> object and notifies all registered listeners with a create event.
  1408. * @return {SortItem} an object of type <code>SortItem</code>
  1409. */
  1410. }, {
  1411. key: 'createSortListTypeSortItem',
  1412. value: function createSortListTypeSortItem() {
  1413. var result = new _SortListType2.default.SortItem();
  1414. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1415. this.notify(notification);
  1416. return result;
  1417. }
  1418. /**
  1419. * Creates a new instance of <code>Folder</code> object and notifies all registered listeners with a create event.
  1420. * @return {Folder} an object of type <code>Folder</code>
  1421. */
  1422. }, {
  1423. key: 'createItemTypeFolder',
  1424. value: function createItemTypeFolder() {
  1425. var result = new _ItemType2.default.Folder();
  1426. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1427. this.notify(notification);
  1428. return result;
  1429. }
  1430. /**
  1431. * Creates a new instance of <code>Context</code> object and notifies all registered listeners with a create event.
  1432. * @return {Context} an object of type <code>Context</code>
  1433. */
  1434. }, {
  1435. key: 'createFacetTypeContext',
  1436. value: function createFacetTypeContext() {
  1437. var result = new _FacetType2.default.Context();
  1438. var notification = new _Notification2.default(4, result, 0, null, null, -1);
  1439. this.notify(notification);
  1440. return result;
  1441. }
  1442. /**
  1443. * Adds a listener to the factory for envent notifications.
  1444. * @param {INotificationListener} listener listener to be added.
  1445. */
  1446. }, {
  1447. key: 'addListener',
  1448. value: function addListener(listener) {
  1449. if (!this._listeners) {
  1450. this._listeners = [];
  1451. }
  1452. this._listeners.push(listener);
  1453. }
  1454. /**
  1455. * Removes a listener from the factory.
  1456. * @param {INotificationListener} listener listener to be removed.
  1457. */
  1458. }, {
  1459. key: 'removeListener',
  1460. value: function removeListener(listener) {
  1461. if (this._listeners) {
  1462. for (var i = 0; i < this._listeners.length; ++i) {
  1463. if (this._listeners[i] === listener) {
  1464. this._listeners.splice(i, 1);
  1465. break;
  1466. }
  1467. }
  1468. }
  1469. }
  1470. /**
  1471. * Fires the notifications to the listeners.
  1472. * @param {Notification} notification notifications to be fired.
  1473. */
  1474. }, {
  1475. key: 'notify',
  1476. value: function notify(notification) {
  1477. if (this._listeners) {
  1478. for (var __i_enFor0 = 0, __exp_enFor0 = this._listeners, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  1479. var listener = __exp_enFor0[__i_enFor0];
  1480. listener(notification);
  1481. }
  1482. }
  1483. }
  1484. /**
  1485. * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.ibm.bi.platform.moser.common.generated.metadata
  1486. */
  1487. //constructor()
  1488. }]);
  1489. return ObjectFactory;
  1490. }(_BaseMoserObject3.default);
  1491. exports.default = ObjectFactory;
  1492. /***/ },
  1493. /* 2 */
  1494. /***/ function(module, exports) {
  1495. "use strict";
  1496. Object.defineProperty(exports, "__esModule", {
  1497. value: true
  1498. });
  1499. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  1500. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  1501. /************************************************************************
  1502. ** IBM Confidential
  1503. **
  1504. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  1505. **
  1506. ** (C) Copyright IBM Corp. 2012,2017
  1507. **
  1508. ** The source code for this program is not published or otherwise divested of its trade secrets,
  1509. ** irrespective of what has been deposited with the U.S. Copyright Office.
  1510. ************************************************************************/
  1511. // @import ../../../init/declare
  1512. /**
  1513. * This is the base class for a module object that requires the clone functionality.
  1514. */
  1515. var BaseMoserObject = function () {
  1516. function BaseMoserObject() {
  1517. _classCallCheck(this, BaseMoserObject);
  1518. }
  1519. _createClass(BaseMoserObject, [{
  1520. key: "_clone",
  1521. /**
  1522. * This is called by its subclasses to copy the basic properties of itself
  1523. * @return a copy of itself
  1524. */
  1525. value: function _clone() {
  1526. return BaseMoserObject._clone(this);
  1527. }
  1528. /**
  1529. * Get the class object
  1530. */
  1531. }, {
  1532. key: "getClass",
  1533. value: function getClass() {
  1534. return this.constructor;
  1535. }
  1536. }], [{
  1537. key: "_clone",
  1538. /**
  1539. * The base clone() method to make a copy of the properties from the original object.
  1540. * @param {MoserObject} original - the object to be copied from
  1541. * @return the cloned MoserObject object
  1542. */
  1543. value: function _clone(original) {
  1544. var clone = Object.create(Object.getPrototypeOf(original));
  1545. var featureList = original.getFeatureList(null);
  1546. for (var j = 0; j < featureList.length; j++) {
  1547. var featureName = featureList[j].getFeatureName();
  1548. clone[featureName] = original[featureName];
  1549. }
  1550. return clone;
  1551. }
  1552. /**
  1553. * Makes a shallow copy of a list.
  1554. */
  1555. }, {
  1556. key: "cloneList",
  1557. value: function cloneList(original) {
  1558. return original != null ? original.slice() : null;
  1559. }
  1560. }]);
  1561. return BaseMoserObject;
  1562. }();
  1563. exports.default = BaseMoserObject;
  1564. /***/ },
  1565. /* 3 */
  1566. /***/ function(module, exports, __webpack_require__) {
  1567. 'use strict';
  1568. Object.defineProperty(exports, "__esModule", {
  1569. value: true
  1570. });
  1571. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  1572. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  1573. var _PhysicalObjectType2 = __webpack_require__(4);
  1574. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  1575. var _MoserObject2 = __webpack_require__(6);
  1576. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  1577. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1578. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  1579. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  1580. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  1581. ** IBM Confidential
  1582. **
  1583. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  1584. **
  1585. ** (C) Copyright IBM Corp. 2021
  1586. **
  1587. ** The source code for this program is not published or otherwise divested of its trade secrets,
  1588. ** irrespective of what has been deposited with the U.S. Copyright Office.
  1589. ************************************************************************/
  1590. // GENERATED
  1591. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  1592. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  1593. /**
  1594. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="isUnique" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="indexedColumn" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="columnName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="sortOrder" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  1595. */
  1596. var Index = function (_PhysicalObjectType) {
  1597. _inherits(Index, _PhysicalObjectType);
  1598. function Index() {
  1599. var _ref;
  1600. var _temp, _this, _ret;
  1601. _classCallCheck(this, Index);
  1602. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  1603. args[_key] = arguments[_key];
  1604. }
  1605. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Index.__proto__ || Object.getPrototypeOf(Index)).call.apply(_ref, [this].concat(args))), _this), _this.isUnique = null, _this.indexedColumn = null, _temp), _possibleConstructorReturn(_this, _ret);
  1606. }
  1607. _createClass(Index, [{
  1608. key: 'isIsUnique',
  1609. /**
  1610. * Gets the value of the isUnique property.
  1611. * @return {Boolean} possible object is {@link Boolean}
  1612. */
  1613. value: function isIsUnique() {
  1614. return this.isUnique;
  1615. }
  1616. /**
  1617. * Sets the value of the isUnique property.
  1618. * @param {Boolean} value allowed object is {@link Boolean}
  1619. */
  1620. }, {
  1621. key: 'setIsUnique',
  1622. value: function setIsUnique(value) {
  1623. var oldValue = this.isUnique;
  1624. this.isUnique = value;
  1625. this._setAndNotify(33, oldValue, value, false, false);
  1626. }
  1627. /**
  1628. * Gets the value of the indexedColumn property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the indexedColumn property. <p> For example, to add a new item, do as follows: <pre> getIndexedColumn().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Index.IndexedColumn}
  1629. */
  1630. }, {
  1631. key: 'getIndexedColumn',
  1632. value: function getIndexedColumn() {
  1633. if (!this.indexedColumn) {
  1634. this.indexedColumn = [];
  1635. }
  1636. return this.indexedColumn;
  1637. }
  1638. /**
  1639. * Gets the value of the <code>indexedColumn</code> property without initializing the property to an empty list if it is unset.
  1640. * @return {Array} the list of <code>IndexedColumn</code> elements, or <code>null</code> if not set
  1641. */
  1642. }, {
  1643. key: 'basicGetIndexedColumn',
  1644. value: function basicGetIndexedColumn() {
  1645. return this.indexedColumn;
  1646. }
  1647. /**
  1648. * Creates a new instance of <code>Index</code> object from JSON data.
  1649. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  1650. * @param {Object} json JSON data to be used to create the <code> Index</code> object from.
  1651. * @return {Index} an object of type <code>Index</code>
  1652. */
  1653. }, {
  1654. key: 'addIndexedColumnAt',
  1655. /**
  1656. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  1657. */
  1658. value: function addIndexedColumnAt(position, item) {
  1659. this._addAtAndNotify(this.getIndexedColumn(), position, item, 34, true, false);
  1660. }
  1661. /**
  1662. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  1663. */
  1664. }, {
  1665. key: 'addIndexedColumn',
  1666. value: function addIndexedColumn(item) {
  1667. this.addIndexedColumnAt(this.getIndexedColumn().length, item);
  1668. }
  1669. /**
  1670. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  1671. */
  1672. }, {
  1673. key: 'removeIndexedColumnAt',
  1674. value: function removeIndexedColumnAt(position) {
  1675. this._removeAtAndNotify(this.getIndexedColumn(), position, 34, true);
  1676. }
  1677. /**
  1678. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  1679. */
  1680. }, {
  1681. key: 'removeIndexedColumn',
  1682. value: function removeIndexedColumn(item) {
  1683. var i = this.getIndexedColumn().indexOf(item);
  1684. if (i >= 0) {
  1685. this.removeIndexedColumnAt(i);
  1686. }
  1687. }
  1688. /**
  1689. * Retrieves the type of this object
  1690. * @return {String} the object type in a <code>String</code>
  1691. */
  1692. }, {
  1693. key: 'getObjectType',
  1694. value: function getObjectType() {
  1695. return "Index";
  1696. }
  1697. /**
  1698. * Get a list of FeatureObjects
  1699. * @return {Array} A list of FeatureObjects
  1700. */
  1701. }, {
  1702. key: 'getFeatureList',
  1703. value: function getFeatureList(factory) {
  1704. var featureList = [];
  1705. featureList.push(this.createFeature(false, false, false, 33, "isUnique", null));
  1706. var clazz;
  1707. if (factory) {
  1708. clazz = factory.createIndexIndexedColumn().getClass();
  1709. }
  1710. featureList.push(this.createFeature(true, false, true, 34, "indexedColumn", clazz));
  1711. Array.prototype.push.apply(featureList, _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'getFeatureList', this).call(this, factory));
  1712. return featureList;
  1713. }
  1714. /**
  1715. * Set the value of a specific feature.
  1716. * @param {BaseMoserObject} value the value to set
  1717. * @param {int} featureID the feature id of the attribute to be set
  1718. */
  1719. }, {
  1720. key: 'set',
  1721. value: function set(featureID, value) {
  1722. switch (featureID) {
  1723. case 33:
  1724. this.setIsUnique(value);
  1725. break;
  1726. default:
  1727. _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'set', this).call(this, featureID, value);
  1728. }
  1729. }
  1730. /**
  1731. * Set the value of a specific feature.
  1732. * @param {BaseMoserObject} value the value to set the value to set
  1733. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  1734. */
  1735. }, {
  1736. key: '_setList',
  1737. value: function _setList(featureID, value) {
  1738. switch (featureID) {
  1739. case 34:
  1740. this.indexedColumn = value;
  1741. break;
  1742. default:
  1743. _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), '_setList', this).call(this, featureID, value);
  1744. }
  1745. }
  1746. /**
  1747. * Get the value of a specific feature.
  1748. * @param {int} featureID the feature id of the attribute to get
  1749. */
  1750. }, {
  1751. key: 'get',
  1752. value: function get(featureID) {
  1753. switch (featureID) {
  1754. case 33:
  1755. return this.isIsUnique();
  1756. case 34:
  1757. return this.getIndexedColumn();
  1758. default:
  1759. return _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'get', this).call(this, featureID);
  1760. }
  1761. }
  1762. /**
  1763. * Get the value of a specific feature.
  1764. * @param {int} featureID the feature id of the attribute to get
  1765. */
  1766. }, {
  1767. key: 'basicGet',
  1768. value: function basicGet(featureID) {
  1769. switch (featureID) {
  1770. case 33:
  1771. return this.isIsUnique();
  1772. case 34:
  1773. return this.basicGetIndexedColumn();
  1774. default:
  1775. return _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'basicGet', this).call(this, featureID);
  1776. }
  1777. }
  1778. /**
  1779. * Add the value of a specific feature at a specific position
  1780. * @param {int} position the array position of the item to be added
  1781. * @param {BaseMoserObject} value the value to add
  1782. * @param {int} featureID the feature id of the attribute to be added
  1783. */
  1784. }, {
  1785. key: 'addAt',
  1786. value: function addAt(featureID, position, value) {
  1787. switch (featureID) {
  1788. case 34:
  1789. this.addIndexedColumnAt(position, value);
  1790. break;
  1791. default:
  1792. _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'addAt', this).call(this, featureID, position, value);
  1793. }
  1794. }
  1795. /**
  1796. * Add the value to the end of a specific collection feature
  1797. * @param {BaseMoserObject} value the value to add
  1798. * @param {int} featureID the feature id of the attribute to be added
  1799. */
  1800. }, {
  1801. key: 'add',
  1802. value: function add(featureID, value) {
  1803. switch (featureID) {
  1804. case 34:
  1805. this.addIndexedColumn(value);
  1806. break;
  1807. default:
  1808. _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'add', this).call(this, featureID, value);
  1809. }
  1810. }
  1811. /**
  1812. * Remove the value of a specific feature by index.
  1813. * @param {int} position the array position of the item to be removed
  1814. * @param {int} featureID the feature id of the attribute to be removed
  1815. */
  1816. }, {
  1817. key: 'removeAt',
  1818. value: function removeAt(featureID, position) {
  1819. switch (featureID) {
  1820. case 34:
  1821. this.removeIndexedColumnAt(position);
  1822. break;
  1823. default:
  1824. _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'removeAt', this).call(this, featureID, position);
  1825. }
  1826. }
  1827. /**
  1828. * Remove the value from specific feature.
  1829. * @param {BaseMoserObject} item the item to be removed
  1830. * @param {int} featureID the feature id of the attribute to be removed
  1831. */
  1832. }, {
  1833. key: 'remove',
  1834. value: function remove(featureID, item) {
  1835. switch (featureID) {
  1836. case 34:
  1837. this.removeIndexedColumn(item);
  1838. break;
  1839. default:
  1840. _get(Index.prototype.__proto__ || Object.getPrototypeOf(Index.prototype), 'remove', this).call(this, featureID, item);
  1841. }
  1842. }
  1843. }], [{
  1844. key: 'fromJSON',
  1845. value: function fromJSON(json, factory) {
  1846. var result = factory.createIndex();
  1847. var featureList = result.getFeatureList(factory);
  1848. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  1849. return result;
  1850. }
  1851. }]);
  1852. return Index;
  1853. }(_PhysicalObjectType3.default);
  1854. /**
  1855. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="columnName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="sortOrder" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  1856. */
  1857. exports.default = Index;
  1858. Index.IndexedColumn = function (_MoserObject) {
  1859. _inherits(_class2, _MoserObject);
  1860. function _class2() {
  1861. var _ref2;
  1862. var _temp2, _this2, _ret2;
  1863. _classCallCheck(this, _class2);
  1864. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1865. args[_key2] = arguments[_key2];
  1866. }
  1867. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.columnName = null, _this2.sortOrder = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  1868. }
  1869. _createClass(_class2, [{
  1870. key: 'getColumnName',
  1871. /**
  1872. * Gets the value of the columnName property.
  1873. * @return {String} possible object is {@link String}
  1874. */
  1875. value: function getColumnName() {
  1876. return this.columnName;
  1877. }
  1878. /**
  1879. * Sets the value of the columnName property.
  1880. * @param {String} value allowed object is {@link String}
  1881. */
  1882. }, {
  1883. key: 'setColumnName',
  1884. value: function setColumnName(value) {
  1885. var oldValue = this.columnName;
  1886. this.columnName = value;
  1887. this._setAndNotify(219, oldValue, value, false, false);
  1888. }
  1889. /**
  1890. * Gets the value of the sortOrder property.
  1891. * @return {String} possible object is {@link String}
  1892. */
  1893. }, {
  1894. key: 'getSortOrder',
  1895. value: function getSortOrder() {
  1896. return this.sortOrder;
  1897. }
  1898. /**
  1899. * Sets the value of the sortOrder property.
  1900. * @param {String} value allowed object is {@link String}
  1901. */
  1902. }, {
  1903. key: 'setSortOrder',
  1904. value: function setSortOrder(value) {
  1905. var oldValue = this.sortOrder;
  1906. this.sortOrder = value;
  1907. this._setAndNotify(237, oldValue, value, false, false);
  1908. }
  1909. /**
  1910. * Creates a new instance of <code>IndexedColumn</code> object from JSON data.
  1911. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  1912. * @param {Object} json JSON data to be used to create the <code> IndexedColumn</code> object from.
  1913. * @return {IndexedColumn} an object of type <code>IndexedColumn</code>
  1914. */
  1915. }, {
  1916. key: 'getObjectType',
  1917. /**
  1918. * Retrieves the type of this object
  1919. * @return {String} the object type in a <code>String</code>
  1920. */
  1921. value: function getObjectType() {
  1922. return "IndexedColumn";
  1923. }
  1924. /**
  1925. * Get a list of FeatureObjects
  1926. * @return {Array} A list of FeatureObjects
  1927. */
  1928. }, {
  1929. key: 'getFeatureList',
  1930. value: function getFeatureList(factory) {
  1931. var featureList = [];
  1932. featureList.push(this.createFeature(false, false, false, 219, "columnName", null));
  1933. featureList.push(this.createFeature(false, false, false, 237, "sortOrder", null));
  1934. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  1935. return featureList;
  1936. }
  1937. /**
  1938. * Set the value of a specific feature.
  1939. * @param {BaseMoserObject} value the value to set
  1940. * @param {int} featureID the feature id of the attribute to be set
  1941. */
  1942. }, {
  1943. key: 'set',
  1944. value: function set(featureID, value) {
  1945. switch (featureID) {
  1946. case 219:
  1947. this.setColumnName(value);
  1948. break;
  1949. case 237:
  1950. this.setSortOrder(value);
  1951. break;
  1952. default:
  1953. throw new Error("The feature " + featureID + " is not valid.");
  1954. }
  1955. }
  1956. /**
  1957. * Get the value of a specific feature.
  1958. * @param {int} featureID the feature id of the attribute to get
  1959. */
  1960. }, {
  1961. key: 'get',
  1962. value: function get(featureID) {
  1963. switch (featureID) {
  1964. case 219:
  1965. return this.getColumnName();
  1966. case 237:
  1967. return this.getSortOrder();
  1968. default:
  1969. throw new Error("The feature " + featureID + " is not valid.");
  1970. }
  1971. }
  1972. /**
  1973. * Get the value of a specific feature.
  1974. * @param {int} featureID the feature id of the attribute to get
  1975. */
  1976. }, {
  1977. key: 'basicGet',
  1978. value: function basicGet(featureID) {
  1979. switch (featureID) {
  1980. case 219:
  1981. return this.getColumnName();
  1982. case 237:
  1983. return this.getSortOrder();
  1984. default:
  1985. throw new Error("The feature " + featureID + " is not valid.");
  1986. }
  1987. }
  1988. }], [{
  1989. key: 'fromJSON',
  1990. value: function fromJSON(json, factory) {
  1991. var result = factory.createIndexIndexedColumn();
  1992. var featureList = result.getFeatureList(factory);
  1993. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  1994. return result;
  1995. }
  1996. }]);
  1997. return _class2;
  1998. }(_MoserObject3.default);
  1999. /***/ },
  2000. /* 4 */
  2001. /***/ function(module, exports, __webpack_require__) {
  2002. 'use strict';
  2003. Object.defineProperty(exports, "__esModule", {
  2004. value: true
  2005. });
  2006. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  2007. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  2008. var _BaseObjectType2 = __webpack_require__(5);
  2009. var _BaseObjectType3 = _interopRequireDefault(_BaseObjectType2);
  2010. var _MoserObject = __webpack_require__(6);
  2011. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  2012. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  2013. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  2014. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  2015. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  2016. ** IBM Confidential
  2017. **
  2018. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  2019. **
  2020. ** (C) Copyright IBM Corp. 2020
  2021. **
  2022. ** The source code for this program is not published or otherwise divested of its trade secrets,
  2023. ** irrespective of what has been deposited with the U.S. Copyright Office.
  2024. ************************************************************************/
  2025. // GENERATED
  2026. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseObjectType (loadtime) // superclass
  2027. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  2028. /**
  2029. * The physical metadata object. <p>Java class for physicalObjectType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="physicalObjectType"&gt; &lt;complexContent&gt; &lt;extension base="{}baseObjectType"&gt; &lt;sequence&gt; &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="originalName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  2030. */
  2031. var PhysicalObjectType = function (_BaseObjectType) {
  2032. _inherits(PhysicalObjectType, _BaseObjectType);
  2033. function PhysicalObjectType() {
  2034. var _ref;
  2035. var _temp, _this, _ret;
  2036. _classCallCheck(this, PhysicalObjectType);
  2037. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  2038. args[_key] = arguments[_key];
  2039. }
  2040. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = PhysicalObjectType.__proto__ || Object.getPrototypeOf(PhysicalObjectType)).call.apply(_ref, [this].concat(args))), _this), _this.name = null, _this.description = null, _this.hidden = null, _this.originalName = null, _temp), _possibleConstructorReturn(_this, _ret);
  2041. }
  2042. _createClass(PhysicalObjectType, [{
  2043. key: 'getName',
  2044. /**
  2045. * Gets the value of the name property.
  2046. * @return {String} possible object is {@link String}
  2047. */
  2048. value: function getName() {
  2049. return this.name;
  2050. }
  2051. /**
  2052. * Sets the value of the name property.
  2053. * @param {String} value allowed object is {@link String}
  2054. */
  2055. }, {
  2056. key: 'setName',
  2057. value: function setName(value) {
  2058. var oldValue = this.name;
  2059. this.name = value;
  2060. this._setAndNotify(5, oldValue, value, false, false);
  2061. }
  2062. /**
  2063. * Gets the value of the description property.
  2064. * @return {String} possible object is {@link String}
  2065. */
  2066. }, {
  2067. key: 'getDescription',
  2068. value: function getDescription() {
  2069. return this.description;
  2070. }
  2071. /**
  2072. * Sets the value of the description property.
  2073. * @param {String} value allowed object is {@link String}
  2074. */
  2075. }, {
  2076. key: 'setDescription',
  2077. value: function setDescription(value) {
  2078. var oldValue = this.description;
  2079. this.description = value;
  2080. this._setAndNotify(7, oldValue, value, false, false);
  2081. }
  2082. /**
  2083. * Gets the value of the hidden property.
  2084. * @return {Boolean} possible object is {@link Boolean}
  2085. */
  2086. }, {
  2087. key: 'isHidden',
  2088. value: function isHidden() {
  2089. return this.hidden;
  2090. }
  2091. /**
  2092. * Sets the value of the hidden property.
  2093. * @param {Boolean} value allowed object is {@link Boolean}
  2094. */
  2095. }, {
  2096. key: 'setHidden',
  2097. value: function setHidden(value) {
  2098. var oldValue = this.hidden;
  2099. this.hidden = value;
  2100. this._setAndNotify(8, oldValue, value, false, false);
  2101. }
  2102. /**
  2103. * Gets the value of the originalName property.
  2104. * @return {String} possible object is {@link String}
  2105. */
  2106. }, {
  2107. key: 'getOriginalName',
  2108. value: function getOriginalName() {
  2109. return this.originalName;
  2110. }
  2111. /**
  2112. * Sets the value of the originalName property.
  2113. * @param {String} value allowed object is {@link String}
  2114. */
  2115. }, {
  2116. key: 'setOriginalName',
  2117. value: function setOriginalName(value) {
  2118. var oldValue = this.originalName;
  2119. this.originalName = value;
  2120. this._setAndNotify(6, oldValue, value, false, false);
  2121. }
  2122. /**
  2123. * Creates a new instance of <code>PhysicalObjectType</code> object from JSON data.
  2124. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  2125. * @param {Object} json JSON data to be used to create the <code> PhysicalObjectType</code> object from.
  2126. * @return {PhysicalObjectType} an object of type <code>PhysicalObjectType</code>
  2127. */
  2128. }, {
  2129. key: 'getObjectType',
  2130. /**
  2131. * Retrieves the type of this object
  2132. * @return {String} the object type in a <code>String</code>
  2133. */
  2134. value: function getObjectType() {
  2135. return "PhysicalObjectType";
  2136. }
  2137. /**
  2138. * Get a list of FeatureObjects
  2139. * @return {Array} A list of FeatureObjects
  2140. */
  2141. }, {
  2142. key: 'getFeatureList',
  2143. value: function getFeatureList(factory) {
  2144. var featureList = [];
  2145. featureList.push(this.createFeature(false, false, false, 5, "name", null));
  2146. featureList.push(this.createFeature(false, false, false, 7, "description", null));
  2147. featureList.push(this.createFeature(false, false, false, 8, "hidden", null));
  2148. featureList.push(this.createFeature(false, false, false, 6, "originalName", null));
  2149. Array.prototype.push.apply(featureList, _get(PhysicalObjectType.prototype.__proto__ || Object.getPrototypeOf(PhysicalObjectType.prototype), 'getFeatureList', this).call(this, factory));
  2150. return featureList;
  2151. }
  2152. /**
  2153. * Set the value of a specific feature.
  2154. * @param {BaseMoserObject} value the value to set
  2155. * @param {int} featureID the feature id of the attribute to be set
  2156. */
  2157. }, {
  2158. key: 'set',
  2159. value: function set(featureID, value) {
  2160. switch (featureID) {
  2161. case 5:
  2162. this.setName(value);
  2163. break;
  2164. case 6:
  2165. this.setOriginalName(value);
  2166. break;
  2167. case 7:
  2168. this.setDescription(value);
  2169. break;
  2170. case 8:
  2171. this.setHidden(value);
  2172. break;
  2173. default:
  2174. _get(PhysicalObjectType.prototype.__proto__ || Object.getPrototypeOf(PhysicalObjectType.prototype), 'set', this).call(this, featureID, value);
  2175. }
  2176. }
  2177. /**
  2178. * Get the value of a specific feature.
  2179. * @param {int} featureID the feature id of the attribute to get
  2180. */
  2181. }, {
  2182. key: 'get',
  2183. value: function get(featureID) {
  2184. switch (featureID) {
  2185. case 5:
  2186. return this.getName();
  2187. case 6:
  2188. return this.getOriginalName();
  2189. case 7:
  2190. return this.getDescription();
  2191. case 8:
  2192. return this.isHidden();
  2193. default:
  2194. return _get(PhysicalObjectType.prototype.__proto__ || Object.getPrototypeOf(PhysicalObjectType.prototype), 'get', this).call(this, featureID);
  2195. }
  2196. }
  2197. /**
  2198. * Get the value of a specific feature.
  2199. * @param {int} featureID the feature id of the attribute to get
  2200. */
  2201. }, {
  2202. key: 'basicGet',
  2203. value: function basicGet(featureID) {
  2204. switch (featureID) {
  2205. case 5:
  2206. return this.getName();
  2207. case 6:
  2208. return this.getOriginalName();
  2209. case 7:
  2210. return this.getDescription();
  2211. case 8:
  2212. return this.isHidden();
  2213. default:
  2214. return _get(PhysicalObjectType.prototype.__proto__ || Object.getPrototypeOf(PhysicalObjectType.prototype), 'basicGet', this).call(this, featureID);
  2215. }
  2216. }
  2217. }], [{
  2218. key: 'fromJSON',
  2219. value: function fromJSON(json, factory) {
  2220. var result = factory.createPhysicalObjectType();
  2221. var featureList = result.getFeatureList(factory);
  2222. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  2223. return result;
  2224. }
  2225. }]);
  2226. return PhysicalObjectType;
  2227. }(_BaseObjectType3.default);
  2228. exports.default = PhysicalObjectType;
  2229. /***/ },
  2230. /* 5 */
  2231. /***/ function(module, exports, __webpack_require__) {
  2232. 'use strict';
  2233. Object.defineProperty(exports, "__esModule", {
  2234. value: true
  2235. });
  2236. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  2237. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  2238. var _MoserObject2 = __webpack_require__(6);
  2239. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  2240. var _PropertySetter = __webpack_require__(10);
  2241. var _PropertySetter2 = _interopRequireDefault(_PropertySetter);
  2242. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  2243. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  2244. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  2245. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  2246. ** IBM Confidential
  2247. **
  2248. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  2249. **
  2250. ** (C) Copyright IBM Corp. 2020
  2251. **
  2252. ** The source code for this program is not published or otherwise divested of its trade secrets,
  2253. ** irrespective of what has been deposited with the U.S. Copyright Office.
  2254. ************************************************************************/
  2255. // GENERATED
  2256. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  2257. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertySetter (runtime) // resolveIdForExpression
  2258. /**
  2259. * The base metadata object. used as base object class in JAVA code for tree walking. <p>Java class for baseObjectType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="baseObjectType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="idForExpression" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  2260. */
  2261. var BaseObjectType = function (_MoserObject) {
  2262. _inherits(BaseObjectType, _MoserObject);
  2263. function BaseObjectType() {
  2264. var _ref;
  2265. var _temp, _this, _ret;
  2266. _classCallCheck(this, BaseObjectType);
  2267. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  2268. args[_key] = arguments[_key];
  2269. }
  2270. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseObjectType.__proto__ || Object.getPrototypeOf(BaseObjectType)).call.apply(_ref, [this].concat(args))), _this), _this.idForExpression = null, _temp), _possibleConstructorReturn(_this, _ret);
  2271. }
  2272. _createClass(BaseObjectType, [{
  2273. key: 'getIdForExpression',
  2274. /**
  2275. * Gets the value of the idForExpression property.
  2276. * @return {String} possible object is {@link String}
  2277. */
  2278. value: function getIdForExpression() {
  2279. if (this.idForExpression == null) {
  2280. _PropertySetter2.default.resolveIdForExpression(this);
  2281. }
  2282. return this.idForExpression;
  2283. }
  2284. /**
  2285. * Sets the value of the idForExpression property.
  2286. * @param {String} value allowed object is {@link String}
  2287. */
  2288. }, {
  2289. key: 'setIdForExpression',
  2290. value: function setIdForExpression(value) {
  2291. var oldValue = this.idForExpression;
  2292. this.idForExpression = value;
  2293. this._setAndNotify(95, oldValue, value, false, false);
  2294. }
  2295. /**
  2296. * Creates a new instance of <code>BaseObjectType</code> object from JSON data.
  2297. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  2298. * @param {Object} json JSON data to be used to create the <code> BaseObjectType</code> object from.
  2299. * @return {BaseObjectType} an object of type <code>BaseObjectType</code>
  2300. */
  2301. }, {
  2302. key: 'basicGetIdForExpression',
  2303. value: function basicGetIdForExpression() {
  2304. return this.idForExpression;
  2305. }
  2306. /**
  2307. * Retrieves the type of this object
  2308. * @return {String} the object type in a <code>String</code>
  2309. */
  2310. }, {
  2311. key: 'getObjectType',
  2312. value: function getObjectType() {
  2313. return "BaseObjectType";
  2314. }
  2315. /**
  2316. * Get a list of FeatureObjects
  2317. * @return {Array} A list of FeatureObjects
  2318. */
  2319. }, {
  2320. key: 'getFeatureList',
  2321. value: function getFeatureList(factory) {
  2322. var featureList = [];
  2323. featureList.push(this.createFeature(false, false, false, 95, "idForExpression", null));
  2324. Array.prototype.push.apply(featureList, _get(BaseObjectType.prototype.__proto__ || Object.getPrototypeOf(BaseObjectType.prototype), 'getFeatureList', this).call(this, factory));
  2325. return featureList;
  2326. }
  2327. /**
  2328. * Set the value of a specific feature.
  2329. * @param {BaseMoserObject} value the value to set
  2330. * @param {int} featureID the feature id of the attribute to be set
  2331. */
  2332. }, {
  2333. key: 'set',
  2334. value: function set(featureID, value) {
  2335. switch (featureID) {
  2336. case 95:
  2337. this.setIdForExpression(value);
  2338. break;
  2339. default:
  2340. throw new Error("The feature " + featureID + " is not valid.");
  2341. }
  2342. }
  2343. /**
  2344. * Get the value of a specific feature.
  2345. * @param {int} featureID the feature id of the attribute to get
  2346. */
  2347. }, {
  2348. key: 'get',
  2349. value: function get(featureID) {
  2350. switch (featureID) {
  2351. case 95:
  2352. return this.getIdForExpression();
  2353. default:
  2354. throw new Error("The feature " + featureID + " is not valid.");
  2355. }
  2356. }
  2357. /**
  2358. * Get the value of a specific feature.
  2359. * @param {int} featureID the feature id of the attribute to get
  2360. */
  2361. }, {
  2362. key: 'basicGet',
  2363. value: function basicGet(featureID) {
  2364. switch (featureID) {
  2365. case 95:
  2366. return this.basicGetIdForExpression();
  2367. default:
  2368. throw new Error("The feature " + featureID + " is not valid.");
  2369. }
  2370. }
  2371. }], [{
  2372. key: 'fromJSON',
  2373. value: function fromJSON(json, factory) {
  2374. var result = factory.createBaseObjectType();
  2375. var featureList = result.getFeatureList(factory);
  2376. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  2377. return result;
  2378. }
  2379. }]);
  2380. return BaseObjectType;
  2381. }(_MoserObject3.default);
  2382. exports.default = BaseObjectType;
  2383. /***/ },
  2384. /* 6 */
  2385. /***/ function(module, exports, __webpack_require__) {
  2386. 'use strict';
  2387. Object.defineProperty(exports, "__esModule", {
  2388. value: true
  2389. });
  2390. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  2391. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  2392. var _BaseMoserObject2 = __webpack_require__(2);
  2393. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  2394. var _Notification = __webpack_require__(7);
  2395. var _Notification2 = _interopRequireDefault(_Notification);
  2396. var _FeatureObject = __webpack_require__(8);
  2397. var _FeatureObject2 = _interopRequireDefault(_FeatureObject);
  2398. var _NativeImpl = __webpack_require__(9);
  2399. var _NativeImpl2 = _interopRequireDefault(_NativeImpl);
  2400. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  2401. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  2402. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  2403. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  2404. ** IBM Confidential
  2405. **
  2406. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  2407. **
  2408. ** (C) Copyright IBM Corp. 2020
  2409. **
  2410. ** The source code for this program is not published or otherwise divested of its trade secrets,
  2411. ** irrespective of what has been deposited with the U.S. Copyright Office.
  2412. ************************************************************************/
  2413. // GENERATED
  2414. //@import BaseMoserObject (loadtime) // inlined method, superclass
  2415. //@import com/ibm/bi/platform/moser/common/notify/Notification (runtime) // new
  2416. //@import com/ibm/bi/platform/moser/common/generated/metadata/FeatureObject (runtime) // new
  2417. //@import NativeImpl (runtime) // invokeMethodByReflection
  2418. /**
  2419. * Super class MoserObject in the model objects.
  2420. */
  2421. var MoserObject = function (_BaseMoserObject) {
  2422. _inherits(MoserObject, _BaseMoserObject);
  2423. function MoserObject() {
  2424. var _ref;
  2425. var _temp, _this, _ret;
  2426. _classCallCheck(this, MoserObject);
  2427. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  2428. args[_key] = arguments[_key];
  2429. }
  2430. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MoserObject.__proto__ || Object.getPrototypeOf(MoserObject)).call.apply(_ref, [this].concat(args))), _this), _this._parent = null, _this._listeners = null, _this._recursiveListeners = null, _this._diagnostics = null, _temp), _possibleConstructorReturn(_this, _ret);
  2431. }
  2432. _createClass(MoserObject, [{
  2433. key: 'getParent',
  2434. /**
  2435. * Gets the parent of this MoserObject
  2436. * @return {MoserObject} the parent of this MoserObject
  2437. */
  2438. value: function getParent() {
  2439. return this._parent;
  2440. }
  2441. /**
  2442. * Set the parent of this MoserObject
  2443. * @param {MoserObject} parent The parent of this MoserObject
  2444. */
  2445. }, {
  2446. key: 'setParent',
  2447. value: function setParent(parent) {
  2448. this._parent = parent;
  2449. }
  2450. /**
  2451. * Adds a listener to the factory for envent notifications.
  2452. * @param {INotificationListener} listener listener to be added.
  2453. */
  2454. }, {
  2455. key: 'addListener',
  2456. value: function addListener(listener, recursive) {
  2457. if (!this._listeners) {
  2458. this._listeners = [];
  2459. }
  2460. this._listeners.push(listener);
  2461. if (recursive) {
  2462. if (!this._recursiveListeners) {
  2463. this._recursiveListeners = [];
  2464. }
  2465. this._recursiveListeners.push(listener);
  2466. }
  2467. }
  2468. /**
  2469. * Removes a listener from the factory.
  2470. * @param {INotificationListener} listener listener to be removed.
  2471. */
  2472. }, {
  2473. key: 'removeListener',
  2474. value: function removeListener(listener) {
  2475. if (this._listeners) {
  2476. for (var i = 0; i < this._listeners.length; ++i) {
  2477. if (this._listeners[i] === listener) {
  2478. this._listeners.splice(i, 1);
  2479. break;
  2480. }
  2481. }
  2482. }
  2483. if (this._recursiveListeners) {
  2484. for (var i = 0; i < this._recursiveListeners.length; ++i) {
  2485. if (this._recursiveListeners[i] === listener) {
  2486. this._recursiveListeners.splice(i, 1);
  2487. break;
  2488. }
  2489. }
  2490. }
  2491. }
  2492. /**
  2493. * Fires the notifications to the listeners.
  2494. * @param {Notification} notification notifications to be fired.
  2495. */
  2496. }, {
  2497. key: 'notify',
  2498. value: function notify(notification, isChildNotification) {
  2499. if (isChildNotification && this._recursiveListeners) {
  2500. for (var __i_enFor0 = 0, __exp_enFor0 = this._recursiveListeners, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  2501. var listener = __exp_enFor0[__i_enFor0];
  2502. listener(notification);
  2503. }
  2504. } else {
  2505. if (this._listeners) {
  2506. for (var __i_enFor1 = 0, __exp_enFor1 = this._listeners, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  2507. var listener = __exp_enFor1[__i_enFor1];
  2508. listener(notification);
  2509. }
  2510. }
  2511. }
  2512. if (this._parent) {
  2513. this._parent.notify(notification, true);
  2514. }
  2515. }
  2516. }, {
  2517. key: '_setAndNotify',
  2518. value: function _setAndNotify(featureID, oldValue, newValue, isMoserObject, isObjectType) {
  2519. if (isMoserObject) {
  2520. if (newValue != null) {
  2521. newValue._parent = this;
  2522. }
  2523. }
  2524. if (isObjectType) {
  2525. MoserObject.updatePropertyOverride(this, this, featureID, false);
  2526. }
  2527. var notification = new _Notification2.default(3, this, featureID, oldValue, newValue, -1);
  2528. this.notify(notification, false);
  2529. }
  2530. }, {
  2531. key: '_removeAtAndNotify',
  2532. value: function _removeAtAndNotify(list, position, featureID, isMoserObject) {
  2533. var removed = list[position];
  2534. list.splice(position, 1);
  2535. if (isMoserObject && removed != null) {
  2536. removed._parent = null;
  2537. }
  2538. var notification = new _Notification2.default(2, this, featureID, removed, null, position);
  2539. this.notify(notification, false);
  2540. }
  2541. }, {
  2542. key: '_addAtAndNotify',
  2543. value: function _addAtAndNotify(list, position, value, featureID, isMoserObject, isObjectType) {
  2544. list.splice(position, 0, value);
  2545. if (isMoserObject && value != null) {
  2546. value._parent = this;
  2547. if (isObjectType) {
  2548. MoserObject.updatePropertyOverride(value, this, featureID, true);
  2549. }
  2550. }
  2551. var notification = new _Notification2.default(1, this, featureID, null, value, position);
  2552. this.notify(notification, false);
  2553. }
  2554. /**
  2555. * Retrieves the type of this object
  2556. * @return {String} the object type in a <code>String</code>
  2557. */
  2558. }, {
  2559. key: 'getObjectType',
  2560. value: function getObjectType() {
  2561. return "MoserObject";
  2562. }
  2563. /**
  2564. * Get a list of FeatureObjects
  2565. * @return {Array} A list of FeatureObjects
  2566. */
  2567. }, {
  2568. key: 'getFeatureList',
  2569. value: function getFeatureList(factory) {
  2570. return [];
  2571. }
  2572. /**
  2573. * Set the value of a specific feature.
  2574. * @param {BaseMoserObject} value the value to set
  2575. * @param {int} featureID the feature id of the attribute to be set
  2576. */
  2577. }, {
  2578. key: 'set',
  2579. value: function set(featureID, value) {
  2580. switch (featureID) {
  2581. default:
  2582. throw new Error("The feature " + featureID + " is not valid.");
  2583. }
  2584. }
  2585. /**
  2586. * Set the value of a specific feature.
  2587. * @param {BaseMoserObject} value the value to set the value to set
  2588. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  2589. */
  2590. }, {
  2591. key: '_setList',
  2592. value: function _setList(featureID, value) {
  2593. switch (featureID) {
  2594. default:
  2595. throw new Error("The feature " + featureID + " is not valid.");
  2596. }
  2597. }
  2598. /**
  2599. * Get the value of a specific feature.
  2600. * @param {int} featureID the feature id of the attribute to get
  2601. */
  2602. }, {
  2603. key: 'get',
  2604. value: function get(featureID) {
  2605. switch (featureID) {
  2606. default:
  2607. throw new Error("The feature " + featureID + " is not valid.");
  2608. }
  2609. }
  2610. /**
  2611. * Get the value of a specific feature.
  2612. * @param {int} featureID the feature id of the attribute to get
  2613. */
  2614. }, {
  2615. key: 'basicGet',
  2616. value: function basicGet(featureID) {
  2617. switch (featureID) {
  2618. default:
  2619. throw new Error("The feature " + featureID + " is not valid.");
  2620. }
  2621. }
  2622. /**
  2623. * Add the value of a specific feature at a specific position
  2624. * @param {int} position the array position of the item to be added
  2625. * @param {BaseMoserObject} value the value to add
  2626. * @param {int} featureID the feature id of the attribute to be added
  2627. */
  2628. }, {
  2629. key: 'addAt',
  2630. value: function addAt(featureID, position, value) {
  2631. switch (featureID) {
  2632. default:
  2633. throw new Error("The feature " + featureID + " is not valid.");
  2634. }
  2635. }
  2636. /**
  2637. * Add the value to the end of a specific collection feature
  2638. * @param {BaseMoserObject} value the value to add
  2639. * @param {int} featureID the feature id of the attribute to be added
  2640. */
  2641. }, {
  2642. key: 'add',
  2643. value: function add(featureID, value) {
  2644. switch (featureID) {
  2645. default:
  2646. throw new Error("The feature " + featureID + " is not valid.");
  2647. }
  2648. }
  2649. /**
  2650. * Remove the value of a specific feature by index.
  2651. * @param {int} position the array position of the item to be removed
  2652. * @param {int} featureID the feature id of the attribute to be removed
  2653. */
  2654. }, {
  2655. key: 'removeAt',
  2656. value: function removeAt(featureID, position) {
  2657. switch (featureID) {
  2658. default:
  2659. throw new Error("The feature " + featureID + " is not valid.");
  2660. }
  2661. }
  2662. /**
  2663. * Remove the value from specific feature.
  2664. * @param {BaseMoserObject} item the item to be removed
  2665. * @param {int} featureID the feature id of the attribute to be removed
  2666. */
  2667. }, {
  2668. key: 'remove',
  2669. value: function remove(featureID, item) {
  2670. switch (featureID) {
  2671. default:
  2672. throw new Error("The feature " + featureID + " is not valid.");
  2673. }
  2674. }
  2675. /**
  2676. * Add diagnostic data to this module object
  2677. * @param {Diagnostic} diagnostic the Diagnostic object to add
  2678. */
  2679. }, {
  2680. key: 'addDiagnostic',
  2681. value: function addDiagnostic(diagnostic) {
  2682. if (!this._diagnostics) {
  2683. this._diagnostics = [];
  2684. }
  2685. this._diagnostics.push(diagnostic);
  2686. }
  2687. /**
  2688. * Get the diagnostics from this module object
  2689. * @return {Array} a list of diagnostics associated with this name
  2690. */
  2691. }, {
  2692. key: 'getDiagnostics',
  2693. value: function getDiagnostics() {
  2694. if (!this._diagnostics) {
  2695. return [];
  2696. }
  2697. return this._diagnostics;
  2698. }
  2699. /**
  2700. * Remove the Diagnostic data from this module object
  2701. */
  2702. }, {
  2703. key: 'clearDiagnostics',
  2704. value: function clearDiagnostics() {
  2705. this._diagnostics = null;
  2706. }
  2707. /**
  2708. * Create a FeatureObject object with given attributes
  2709. * @param {String} featureName The feature name of the object
  2710. * @param {boolean} isModelledObjList The feature is a List of MoserObject
  2711. * @param {boolean} isEnum The feature object is an Enum.
  2712. * @param {Class} type The feature name of the object
  2713. * @param {boolean} isList The feature object is a List.
  2714. * @param {int} featureID The feature id of the object
  2715. * @return {FeatureObject} a FeatureObject for the given attributes
  2716. */
  2717. }, {
  2718. key: 'createFeature',
  2719. value: function createFeature(isList, isEnum, isModelledObjList, featureID, featureName, type) {
  2720. var feature = new _FeatureObject2.default();
  2721. feature.setType(type);
  2722. feature.setFeatureID(featureID);
  2723. feature.setIsList(isList);
  2724. feature.setIsEnum(isEnum);
  2725. feature.setIsModelledObjList(isModelledObjList);
  2726. feature.setFeatureName(featureName);
  2727. return feature;
  2728. }
  2729. /**
  2730. * Get the value of a specific feature ID based on object property.
  2731. * @param {String} featureName the feature id of the attribute to get
  2732. */
  2733. }, {
  2734. key: 'getFeatureID',
  2735. value: function getFeatureID(featureName) {
  2736. var featureList = this.getFeatureList(null);
  2737. var featureID = 0;
  2738. for (var i = 0; i < featureList.length; ++i) {
  2739. var feature = featureList[i];
  2740. if (feature.getFeatureName() == featureName) {
  2741. featureID = feature.getFeatureID();
  2742. break;
  2743. }
  2744. }
  2745. return featureID;
  2746. }
  2747. /**
  2748. * Get the name of a specific feature ID based on object property.
  2749. * @param {int} featureID the feature name of the attribute
  2750. */
  2751. }, {
  2752. key: 'getFeatureName',
  2753. value: function getFeatureName(featureID) {
  2754. var featureList = this.getFeatureList(null);
  2755. var featureName;
  2756. for (var i = 0; i < featureList.length; ++i) {
  2757. var feature = featureList[i];
  2758. if (feature.getFeatureID() == featureID) {
  2759. featureName = feature.getFeatureName();
  2760. break;
  2761. }
  2762. }
  2763. return featureName;
  2764. }
  2765. /**
  2766. * Remove the generic data based on the given name
  2767. */
  2768. }, {
  2769. key: 'removeDiagnostics',
  2770. value: function removeDiagnostics() {
  2771. this.clearDiagnostics();
  2772. var featureList = this.getFeatureList(null);
  2773. for (var i = 0; i < featureList.length; ++i) {
  2774. var feature = featureList[i];
  2775. var obj = this.get(feature.getFeatureID());
  2776. if (obj == null) {
  2777. continue;
  2778. }
  2779. if (feature.getIsList()) {
  2780. var fieldList = obj;
  2781. for (var j = 0; j < fieldList.length; ++j) {
  2782. var field = fieldList[j];
  2783. if (field != null && field instanceof MoserObject) {
  2784. var child = field;
  2785. child.removeDiagnostics();
  2786. }
  2787. }
  2788. } else {
  2789. if (obj instanceof MoserObject) {
  2790. var child = this.get(feature.getFeatureID());
  2791. if (child) {
  2792. child.removeDiagnostics();
  2793. }
  2794. }
  2795. }
  2796. }
  2797. }
  2798. /**
  2799. * Convert <code>MoserObject</code> to <code>JSONObject</code>.
  2800. * @return {Object} <code>JSONObject</code> for <code>MoserObject</code> object.
  2801. */
  2802. }, {
  2803. key: 'toJSON',
  2804. value: function toJSON() {
  2805. var result = {};
  2806. var featureList = this.getFeatureList(null);
  2807. for (var i = 0; i < featureList.length; ++i) {
  2808. var feature = featureList[i];
  2809. var featureName = feature.getFeatureName();
  2810. if ("clazz" == featureName) {
  2811. featureName = "class";
  2812. } else {
  2813. if ("dbFunction" == featureName) {
  2814. featureName = "function";
  2815. }
  2816. }
  2817. var obj = this.basicGet(feature.getFeatureID());
  2818. if (obj == null) {
  2819. continue;
  2820. }
  2821. if (feature.getIsList()) {
  2822. var fieldList = obj;
  2823. if (fieldList.length == 0) {
  2824. continue;
  2825. }
  2826. var refArray = [];
  2827. result[featureName] = refArray;
  2828. for (var j = 0; j < fieldList.length; ++j) {
  2829. var field = fieldList[j];
  2830. if (field != null) {
  2831. if (field instanceof MoserObject) {
  2832. var child = field;
  2833. refArray.splice(j, 0, child.toJSON());
  2834. } else {
  2835. refArray.splice(j, 0, field);
  2836. }
  2837. }
  2838. }
  2839. } else {
  2840. if (feature.getIsEnum()) {
  2841. var clazz = feature.getType();
  2842. var value = _NativeImpl2.default.invokeMethodByReflection(clazz, "value", obj, null, null);
  2843. result[featureName] = value;
  2844. } else {
  2845. if (obj instanceof MoserObject) {
  2846. var child = obj;
  2847. if (child) {
  2848. result[featureName] = child.toJSON();
  2849. }
  2850. } else {
  2851. if (obj != null) {
  2852. result[featureName] = obj;
  2853. }
  2854. }
  2855. }
  2856. }
  2857. }
  2858. return result;
  2859. }
  2860. /**
  2861. * Convert <code>MoserObject</code> to <code>String</code>.
  2862. * @return {String} <code>String</code> for <code>MoserObject</code> object.
  2863. */
  2864. }, {
  2865. key: 'toString',
  2866. value: function toString() {
  2867. return this.toJSON().toString();
  2868. }
  2869. /**
  2870. * A helper method to create a new instance of <code>void</code> object from JSON data.
  2871. * @param {MoserObject} result <code>MoserObject</> object for storing the result object.
  2872. * @param {Array} featureList <code>List</> object for the features of the object.
  2873. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  2874. * @param {Object} json JSON data to be used to create the <code> void</code> object from.
  2875. */
  2876. }, {
  2877. key: 'clone',
  2878. /**
  2879. * To make a deep copy of <code> MoserObject</code> object.
  2880. * @return {BaseMoserObject} an instance of <code> MoserObject</code> object
  2881. */
  2882. value: function clone() {
  2883. var cloned = _get(MoserObject.prototype.__proto__ || Object.getPrototypeOf(MoserObject.prototype), '_clone', this).call(this);
  2884. cloned._recursiveListeners = null;
  2885. cloned._parent = null;
  2886. cloned._listeners = null;
  2887. cloned._diagnostics = null;
  2888. if ("Module" == this.getObjectType()) {
  2889. cloned.setOverrideMode(false);
  2890. }
  2891. var featureList = this.getFeatureList(null);
  2892. for (var i = 0; i < featureList.length; ++i) {
  2893. var feature = featureList[i];
  2894. var featureName = feature.getFeatureName();
  2895. if ("clazz" == featureName) {
  2896. featureName = "class";
  2897. } else {
  2898. if ("dbFunction" == featureName) {
  2899. featureName = "function";
  2900. }
  2901. }
  2902. var obj = this.basicGet(feature.getFeatureID());
  2903. if (obj == null) {
  2904. continue;
  2905. }
  2906. if (feature.getIsList()) {
  2907. var clonedObj = _BaseMoserObject3.default.cloneList(obj);
  2908. cloned._setList(feature.getFeatureID(), clonedObj);
  2909. if (feature.getIsModelledObjList()) {
  2910. var fieldList = obj;
  2911. var cloneObjList = clonedObj;
  2912. cloneObjList.length = 0;
  2913. for (var j = 0; j < fieldList.length; ++j) {
  2914. var field = fieldList[j];
  2915. if (field) {
  2916. var clonedField = field.clone();
  2917. clonedField._parent = cloned;
  2918. cloneObjList.push(clonedField);
  2919. }
  2920. }
  2921. }
  2922. } else {
  2923. if (obj instanceof MoserObject) {
  2924. var clonedObj = obj.clone();
  2925. cloned.set(feature.getFeatureID(), clonedObj);
  2926. }
  2927. }
  2928. }
  2929. if ("Module" == this.getObjectType()) {
  2930. cloned.setOverrideMode(this.isOverrideMode());
  2931. }
  2932. return cloned;
  2933. }
  2934. }], [{
  2935. key: 'fromJSONHelper',
  2936. value: function fromJSONHelper(result, featureList, json, factory) {
  2937. var module = MoserObject.getModuleObject(result);
  2938. var oldOverrideModeValue = false;
  2939. if (module) {
  2940. oldOverrideModeValue = module.isOverrideMode();
  2941. module.setOverrideMode(false);
  2942. }
  2943. for (var i = 0; i < featureList.length; ++i) {
  2944. var feature = featureList[i];
  2945. var featureName = feature.getFeatureName();
  2946. if ("clazz" == featureName) {
  2947. featureName = "class";
  2948. } else {
  2949. if ("dbFunction" == featureName) {
  2950. featureName = "function";
  2951. }
  2952. }
  2953. if (feature.getIsList()) {
  2954. var jsonArray = json[featureName];
  2955. if (jsonArray) {
  2956. if (jsonArray.length == 0) {
  2957. result.get(feature.getFeatureID());
  2958. }
  2959. for (var j = 0; j < jsonArray.length; ++j) {
  2960. var obj = jsonArray[j];
  2961. if (obj != null) {
  2962. if (!(obj instanceof MoserObject || typeof obj === "string" || obj instanceof String || typeof obj === "boolean" || obj instanceof Boolean || typeof obj === "number" || obj instanceof Number)) {
  2963. var clazz = feature.getType();
  2964. var value = _NativeImpl2.default.invokeMethodByReflection(clazz, "fromJSON", null, obj, factory);
  2965. result.addAt(feature.getFeatureID(), j, value);
  2966. } else {
  2967. result.addAt(feature.getFeatureID(), j, obj);
  2968. }
  2969. }
  2970. }
  2971. }
  2972. } else {
  2973. if (feature.getIsEnum()) {
  2974. var enumValue = json[featureName];
  2975. if (enumValue != null) {
  2976. var clazz = feature.getType();
  2977. var value = _NativeImpl2.default.invokeMethodByReflection(clazz, "fromValue", null, enumValue, null);
  2978. result.set(feature.getFeatureID(), value);
  2979. }
  2980. } else {
  2981. var obj = json[featureName];
  2982. if (obj != null) {
  2983. if (!(obj instanceof MoserObject || typeof obj === "string" || obj instanceof String || typeof obj === "boolean" || obj instanceof Boolean || typeof obj === "number" || obj instanceof Number)) {
  2984. var clazz = feature.getType();
  2985. var value = _NativeImpl2.default.invokeMethodByReflection(clazz, "fromJSON", null, obj, factory);
  2986. result.set(feature.getFeatureID(), value);
  2987. } else {
  2988. result.set(feature.getFeatureID(), obj);
  2989. }
  2990. }
  2991. }
  2992. }
  2993. }
  2994. if (module) {
  2995. module.setOverrideMode(oldOverrideModeValue);
  2996. }
  2997. }
  2998. }, {
  2999. key: 'getModuleObject',
  3000. value: function getModuleObject(moserObj) {
  3001. if (!moserObj) {
  3002. return null;
  3003. }
  3004. if (moserObj.getObjectType() == "Module") {
  3005. return moserObj;
  3006. }
  3007. var parent = moserObj.getParent();
  3008. if (parent) {
  3009. return MoserObject.getModuleObject(parent);
  3010. }
  3011. return null;
  3012. }
  3013. }, {
  3014. key: 'updatePropertyOverride',
  3015. value: function updatePropertyOverride(objType, moserObj, featureID, isAdd) {
  3016. if (featureID == 166) {
  3017. return;
  3018. }
  3019. var module = MoserObject.getModuleObject(objType);
  3020. if (!module) {
  3021. module = MoserObject.getModuleObject(moserObj);
  3022. }
  3023. if (module && module.isOverrideMode()) {
  3024. var featureName = moserObj.getFeatureName(featureID);
  3025. if (!isAdd) {
  3026. objType.addPropertyOverride(featureName);
  3027. } else {
  3028. objType.addPropertyOverride("NEW");
  3029. }
  3030. }
  3031. }
  3032. }]);
  3033. return MoserObject;
  3034. }(_BaseMoserObject3.default);
  3035. exports.default = MoserObject;
  3036. /***/ },
  3037. /* 7 */
  3038. /***/ function(module, exports, __webpack_require__) {
  3039. 'use strict';
  3040. Object.defineProperty(exports, "__esModule", {
  3041. value: true
  3042. });
  3043. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3044. var _BaseMoserObject2 = __webpack_require__(2);
  3045. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  3046. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3047. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3048. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  3049. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  3050. ** IBM Confidential
  3051. **
  3052. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  3053. **
  3054. ** (C) Copyright IBM Corp. 2020
  3055. **
  3056. ** The source code for this program is not published or otherwise divested of its trade secrets,
  3057. ** irrespective of what has been deposited with the U.S. Copyright Office.
  3058. ************************************************************************/
  3059. // GENERATED
  3060. //@import BaseMoserObject (loadtime) // superclass
  3061. /**
  3062. * Describes a change in the model.
  3063. */
  3064. var Notification = function (_BaseMoserObject) {
  3065. _inherits(Notification, _BaseMoserObject);
  3066. /**
  3067. * Create a new notification.
  3068. * @param {int} type the type of change that has occurred
  3069. * @param {INotifier} notifier the object that was changed
  3070. * @param {int} featureID the ID of the feature that was changed in the notifier
  3071. * @param {BaseMoserObject} oldValue the old value of the feature before the change, will be <code>null</code> for {@link #4} and {@link #1} notifications. For {@link #2} , the old value will be the item that was removed.
  3072. * @param {BaseMoserObject} newValue the new value of the feature after the change, will be <code>null</code> for {@link #4} and {@link #2} notifications. For {@link #1} , the new value will be the item that was added.
  3073. * @param {int} position the position at which an item was added or removed, for list-based features. Use {@link #-1} when not applicable.
  3074. */
  3075. /**
  3076. * The notification type indicating that the notifier has been created.
  3077. */
  3078. /**
  3079. * The notification type indicating that a value has been removed from a list-based feature of the notifier.
  3080. */
  3081. function Notification(type, notifier, featureID, oldValue, newValue, position) {
  3082. _classCallCheck(this, Notification);
  3083. var _this = _possibleConstructorReturn(this, (Notification.__proto__ || Object.getPrototypeOf(Notification)).call(this));
  3084. _this.type = 0;
  3085. _this.notifier = null;
  3086. _this.featureID = 0;
  3087. _this.oldValue = null;
  3088. _this.newValue = null;
  3089. _this.position = 0;
  3090. _this.type = type;
  3091. _this.notifier = notifier;
  3092. _this.featureID = featureID;
  3093. _this.oldValue = oldValue;
  3094. _this.newValue = newValue;
  3095. _this.position = position;
  3096. return _this;
  3097. }
  3098. /**
  3099. * Gets the type of change that has occurred.
  3100. * @return {int} the type
  3101. */
  3102. /**
  3103. * Indicates that position information is not applicable to the notification.
  3104. */
  3105. /**
  3106. * The notification type indicating that a value has been set in the notifier.
  3107. */
  3108. /**
  3109. * The notification type indicating that a value has been inserted into a list-based feature of the notifier.
  3110. */
  3111. _createClass(Notification, [{
  3112. key: 'getType',
  3113. value: function getType() {
  3114. return this.type;
  3115. }
  3116. /**
  3117. * Gets the object that was changed.
  3118. * @return {BaseMoserObject} the notifier
  3119. */
  3120. }, {
  3121. key: 'getNotifier',
  3122. value: function getNotifier() {
  3123. return this.notifier;
  3124. }
  3125. /**
  3126. * Gets the ID of the feature that was changed in the notifier.
  3127. * @return {int} the feature ID
  3128. */
  3129. }, {
  3130. key: 'getFeatureID',
  3131. value: function getFeatureID() {
  3132. return this.featureID;
  3133. }
  3134. /**
  3135. * Gets the old value of the feature before the change, will be <code>null</code> for {@link #4} and {@link #1} notifications. For {@link #2} , the old value will be the item that was removed.
  3136. * @return {BaseMoserObject} the old value
  3137. */
  3138. }, {
  3139. key: 'getOldValue',
  3140. value: function getOldValue() {
  3141. return this.oldValue;
  3142. }
  3143. /**
  3144. * Gets the new value of the feature after the change, will be <code>null</code> for {@link #4} and {@link #2} notifications. For {@link #1} , the new value will be the item that was added.
  3145. * @return {BaseMoserObject} the new value
  3146. */
  3147. }, {
  3148. key: 'getNewValue',
  3149. value: function getNewValue() {
  3150. return this.newValue;
  3151. }
  3152. /**
  3153. * Gets the position at which an item was added or removed, for list-based features. Will be {@link #-1} when not applicable.
  3154. * @return {int} the position
  3155. */
  3156. }, {
  3157. key: 'getPosition',
  3158. value: function getPosition() {
  3159. return this.position;
  3160. }
  3161. }]);
  3162. return Notification;
  3163. }(_BaseMoserObject3.default);
  3164. Notification.ADD = 1;
  3165. Notification.REMOVE = 2;
  3166. Notification.SET = 3;
  3167. Notification.CREATE = 4;
  3168. Notification.NO_POSITION = -1;
  3169. exports.default = Notification;
  3170. /***/ },
  3171. /* 8 */
  3172. /***/ function(module, exports, __webpack_require__) {
  3173. 'use strict';
  3174. Object.defineProperty(exports, "__esModule", {
  3175. value: true
  3176. });
  3177. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3178. var _BaseMoserObject2 = __webpack_require__(2);
  3179. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  3180. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3181. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3182. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  3183. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  3184. ** IBM Confidential
  3185. **
  3186. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  3187. **
  3188. ** (C) Copyright IBM Corp. 2020
  3189. **
  3190. ** The source code for this program is not published or otherwise divested of its trade secrets,
  3191. ** irrespective of what has been deposited with the U.S. Copyright Office.
  3192. ************************************************************************/
  3193. // GENERATED
  3194. //@import BaseMoserObject (loadtime) // superclass
  3195. /**
  3196. * Defines the FeatureObject in the model objects. It is a helper object for creating reflective APIs such as toJSON()/fromJSON()/clone() etc.
  3197. */
  3198. var FeatureObject = function (_BaseMoserObject) {
  3199. _inherits(FeatureObject, _BaseMoserObject);
  3200. function FeatureObject() {
  3201. var _ref;
  3202. var _temp, _this, _ret;
  3203. _classCallCheck(this, FeatureObject);
  3204. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  3205. args[_key] = arguments[_key];
  3206. }
  3207. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = FeatureObject.__proto__ || Object.getPrototypeOf(FeatureObject)).call.apply(_ref, [this].concat(args))), _this), _this.type = null, _this.featureID = 0, _this.isList = false, _this.isEnum = false, _this.isModelledObjList = false, _this.featureName = null, _temp), _possibleConstructorReturn(_this, _ret);
  3208. }
  3209. _createClass(FeatureObject, [{
  3210. key: 'setType',
  3211. /**
  3212. * Set the value of the Class type for the feature
  3213. * @param {Class} type the Class type for this feature
  3214. */
  3215. value: function setType(type) {
  3216. this.type = type;
  3217. }
  3218. /**
  3219. * Get the class type of a specific feature.
  3220. * @return {Class} Returns the Class type
  3221. */
  3222. }, {
  3223. key: 'getType',
  3224. value: function getType() {
  3225. return this.type;
  3226. }
  3227. /**
  3228. * Set the feature ID for this feature
  3229. * @param {int} featureId the feature ID for this feature
  3230. */
  3231. }, {
  3232. key: 'setFeatureID',
  3233. value: function setFeatureID(featureId) {
  3234. this.featureID = featureId;
  3235. }
  3236. /**
  3237. * Get the class type of a specific feature.
  3238. * @return {int} Returns the Class type
  3239. */
  3240. }, {
  3241. key: 'getFeatureID',
  3242. value: function getFeatureID() {
  3243. return this.featureID;
  3244. }
  3245. /**
  3246. * Set if the feature is a list
  3247. * @param {boolean} isList is this feature a list
  3248. */
  3249. }, {
  3250. key: 'setIsList',
  3251. value: function setIsList(isList) {
  3252. this.isList = isList;
  3253. }
  3254. /**
  3255. * Retrieve true if the feature is a list.
  3256. * @return {boolean} Returns true if the feature is a list, otherwise false
  3257. */
  3258. }, {
  3259. key: 'getIsList',
  3260. value: function getIsList() {
  3261. return this.isList;
  3262. }
  3263. /**
  3264. * Set if the feature is an Enum
  3265. * @param {boolean} isEnum is this feature an Enum
  3266. */
  3267. }, {
  3268. key: 'setIsEnum',
  3269. value: function setIsEnum(isEnum) {
  3270. this.isEnum = isEnum;
  3271. }
  3272. /**
  3273. * Retrieve true if the feature is an Enum.
  3274. * @return {boolean} Returns true if the feature is an Enum, otherwise false
  3275. */
  3276. }, {
  3277. key: 'getIsEnum',
  3278. value: function getIsEnum() {
  3279. return this.isEnum;
  3280. }
  3281. /**
  3282. * Set the type of this feature
  3283. * @param {boolean} isModelledObjList is the type of this feature a List of MoserObject
  3284. */
  3285. }, {
  3286. key: 'setIsModelledObjList',
  3287. value: function setIsModelledObjList(isModelledObjList) {
  3288. this.isModelledObjList = isModelledObjList;
  3289. }
  3290. /**
  3291. * Retrieve true if the feature is an Enum.
  3292. * @return {boolean} Returns true if the feature is an Enum, otherwise false
  3293. */
  3294. }, {
  3295. key: 'getIsModelledObjList',
  3296. value: function getIsModelledObjList() {
  3297. return this.isModelledObjList;
  3298. }
  3299. /**
  3300. * Set the name of this feature
  3301. * @param {String} featureName the name of this feature
  3302. */
  3303. }, {
  3304. key: 'setFeatureName',
  3305. value: function setFeatureName(featureName) {
  3306. this.featureName = featureName;
  3307. }
  3308. /**
  3309. * Get the name of this feature
  3310. * @return {String} The feature name
  3311. */
  3312. }, {
  3313. key: 'getFeatureName',
  3314. value: function getFeatureName() {
  3315. return this.featureName;
  3316. }
  3317. }]);
  3318. return FeatureObject;
  3319. }(_BaseMoserObject3.default);
  3320. exports.default = FeatureObject;
  3321. /***/ },
  3322. /* 9 */
  3323. /***/ function(module, exports) {
  3324. "use strict";
  3325. Object.defineProperty(exports, "__esModule", {
  3326. value: true
  3327. });
  3328. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3329. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3330. /************************************************************************
  3331. ** IBM Confidential
  3332. **
  3333. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  3334. **
  3335. ** (C) Copyright IBM Corp. 2017
  3336. **
  3337. ** The source code for this program is not published or otherwise divested of its trade secrets,
  3338. ** irrespective of what has been deposited with the U.S. Copyright Office.
  3339. ************************************************************************/
  3340. var NativeImpl = function () {
  3341. function NativeImpl() {
  3342. _classCallCheck(this, NativeImpl);
  3343. }
  3344. _createClass(NativeImpl, null, [{
  3345. key: "invokeMethodByReflection",
  3346. value: function invokeMethodByReflection(clazz, methodName, obj, paramObj1, paramObj2) {
  3347. var result = null;
  3348. if (methodName === "value") {
  3349. result = obj.value();
  3350. } else if (methodName === "fromValue") {
  3351. result = clazz.fromValue(paramObj1);
  3352. } else if (methodName === "fromJSON") {
  3353. result = clazz.fromJSON(paramObj1, paramObj2);
  3354. }
  3355. return result;
  3356. }
  3357. }]);
  3358. return NativeImpl;
  3359. }();
  3360. exports.default = NativeImpl;
  3361. /***/ },
  3362. /* 10 */
  3363. /***/ function(module, exports, __webpack_require__) {
  3364. 'use strict';
  3365. Object.defineProperty(exports, "__esModule", {
  3366. value: true
  3367. });
  3368. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3369. var _BaseMoserObject2 = __webpack_require__(2);
  3370. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  3371. var _MoserObject = __webpack_require__(6);
  3372. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  3373. var _InstanceType = __webpack_require__(11);
  3374. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  3375. var _KeyConstraintType = __webpack_require__(13);
  3376. var _KeyConstraintType2 = _interopRequireDefault(_KeyConstraintType);
  3377. var _KeyCompositionType = __webpack_require__(14);
  3378. var _KeyCompositionType2 = _interopRequireDefault(_KeyCompositionType);
  3379. var _HighLevelDataType = __webpack_require__(15);
  3380. var _HighLevelDataType2 = _interopRequireDefault(_HighLevelDataType);
  3381. var _ItemScanner = __webpack_require__(16);
  3382. var _ItemScanner2 = _interopRequireDefault(_ItemScanner);
  3383. var _RegularAggregateType = __webpack_require__(22);
  3384. var _RegularAggregateType2 = _interopRequireDefault(_RegularAggregateType);
  3385. var _SqlOperatorType = __webpack_require__(23);
  3386. var _SqlOperatorType2 = _interopRequireDefault(_SqlOperatorType);
  3387. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  3388. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3389. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  3390. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  3391. ** IBM Confidential
  3392. **
  3393. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  3394. **
  3395. ** (C) Copyright IBM Corp. 2020
  3396. **
  3397. ** The source code for this program is not published or otherwise divested of its trade secrets,
  3398. ** irrespective of what has been deposited with the U.S. Copyright Office.
  3399. ************************************************************************/
  3400. // GENERATED
  3401. //@import BaseMoserObject (loadtime) // superclass
  3402. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (runtime) // getModuleObject
  3403. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (static) // InstanceType
  3404. //@import com/ibm/bi/platform/moser/common/generated/metadata/KeyConstraintType (static) // KeyConstraintType
  3405. //@import com/ibm/bi/platform/moser/common/generated/metadata/KeyCompositionType (static) // KeyCompositionType
  3406. //@import com/ibm/bi/platform/moser/common/generated/metadata/HighLevelDataType (static) // HighLevelDataType
  3407. //@import com/ibm/bi/platform/moser/common/utils/ItemScanner (runtime) // replaceIdForExpr, collectIdentifiers
  3408. //@import com/ibm/bi/platform/moser/common/generated/metadata/RegularAggregateType (static) // RegularAggregateType
  3409. //@import com/ibm/bi/platform/moser/common/generated/metadata/SqlOperatorType (static) // SqlOperatorType
  3410. /**
  3411. * util class for setting property vale.
  3412. */
  3413. var PropertySetter = function (_BaseMoserObject) {
  3414. _inherits(PropertySetter, _BaseMoserObject);
  3415. function PropertySetter() {
  3416. _classCallCheck(this, PropertySetter);
  3417. return _possibleConstructorReturn(this, (PropertySetter.__proto__ || Object.getPrototypeOf(PropertySetter)).apply(this, arguments));
  3418. }
  3419. _createClass(PropertySetter, null, [{
  3420. key: 'updateModuleReference',
  3421. value: function updateModuleReference(obj, oldValue, value) {
  3422. if (oldValue == null || value == null || value == oldValue) {
  3423. if (value == null) {
  3424. obj.idForExpression = null;
  3425. }
  3426. return;
  3427. }
  3428. var objType = obj.getObjectType();
  3429. if ("Calculation" == objType || "Filter" == objType) {
  3430. var module = _MoserObject2.default.getModuleObject(obj);
  3431. if (!module) {
  3432. return;
  3433. }
  3434. if (PropertySetter.getParentQuerySubject(obj)) {
  3435. var f = obj;
  3436. var oldIdForExpr = f.basicGetIdForExpression();
  3437. var newIdForExpr = null;
  3438. if (oldIdForExpr != null && oldIdForExpr.length > oldValue.length) {
  3439. newIdForExpr = oldIdForExpr.substring(0, oldIdForExpr.length - oldValue.length) + value;
  3440. f.idForExpression = newIdForExpr;
  3441. }
  3442. PropertySetter._updateExpressionForQueryItem(module, obj, oldIdForExpr, newIdForExpr);
  3443. return;
  3444. }
  3445. PropertySetter._updateMDTVReference(module.basicGetMetadataTreeView(), oldValue, value);
  3446. obj.idForExpression = value;
  3447. PropertySetter._updateExpressionForGlobalCalculationFilter(module, obj, oldValue, value);
  3448. return;
  3449. }
  3450. if ("QuerySubject" == objType) {
  3451. var module = _MoserObject2.default.getModuleObject(obj);
  3452. if (!module) {
  3453. return;
  3454. }
  3455. PropertySetter._updateMDTVReference(module.basicGetMetadataTreeView(), oldValue, value);
  3456. PropertySetter._updateRelationshipListReference(module.basicGetRelationship(), oldValue, value);
  3457. PropertySetter._updateQuerySubjectListReference(module.basicGetQuerySubject(), oldValue, value);
  3458. var qs = obj;
  3459. qs.idForExpression = value;
  3460. PropertySetter.updateIdForExpression(qs.basicGetItem(), value);
  3461. PropertySetter._updateExpressionForQuerySubject(module, obj, oldValue, value);
  3462. return;
  3463. }
  3464. if ("QueryItem" == objType) {
  3465. var qs = PropertySetter.getParentQuerySubject(obj);
  3466. var module = _MoserObject2.default.getModuleObject(qs);
  3467. if (!module || !qs) {
  3468. return;
  3469. }
  3470. var qsId = qs.identifier;
  3471. var qi = obj;
  3472. var oldIdForExpr = qi.basicGetIdForExpression();
  3473. var newIdForExpr = null;
  3474. if (oldIdForExpr != null && oldIdForExpr.length > oldValue.length) {
  3475. newIdForExpr = oldIdForExpr.substring(0, oldIdForExpr.length - oldValue.length) + value;
  3476. qi.idForExpression = newIdForExpr;
  3477. }
  3478. PropertySetter._updateItemNormalization(qs.getItemNormalization(), oldValue, value);
  3479. var drills = module.drillGroup;
  3480. if (newIdForExpr != null && drills) {
  3481. for (var __i_enFor0 = 0, __exp_enFor0 = drills, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3482. var dg = __exp_enFor0[__i_enFor0];
  3483. if (!dg.segment) {
  3484. continue;
  3485. }
  3486. for (var __i_enFor1 = 0, __exp_enFor1 = dg.segment, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  3487. var sg = __exp_enFor1[__i_enFor1];
  3488. if (oldIdForExpr == sg.ref) {
  3489. sg.ref = newIdForExpr;
  3490. }
  3491. }
  3492. }
  3493. }
  3494. PropertySetter._updateItemTypeListQueryItemReference(qs.basicGetItem(), oldValue, value);
  3495. var relationships = module.relationship;
  3496. if (relationships) {
  3497. for (var __i_enFor2 = 0, __exp_enFor2 = relationships, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  3498. var r = __exp_enFor2[__i_enFor2];
  3499. var links = r.link;
  3500. if (!links || links.length == 0) {
  3501. continue;
  3502. }
  3503. var left = r.left;
  3504. var right = r.right;
  3505. if (qsId == left.ref) {
  3506. for (var __i_enFor3 = 0, __exp_enFor3 = links, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  3507. var l = __exp_enFor3[__i_enFor3];
  3508. if (oldValue == l.leftRef) {
  3509. l.leftRef = value;
  3510. }
  3511. }
  3512. } else if (qsId == right.ref) {
  3513. for (var __i_enFor4 = 0, __exp_enFor4 = links, __len_enFor4 = __exp_enFor4.length; __i_enFor4 < __len_enFor4; ++__i_enFor4) {
  3514. var l = __exp_enFor4[__i_enFor4];
  3515. if (oldValue == l.rightRef) {
  3516. l.rightRef = value;
  3517. }
  3518. }
  3519. }
  3520. }
  3521. }
  3522. if (newIdForExpr != null && module.querySubject) {
  3523. for (var __i_enFor5 = 0, __exp_enFor5 = module.querySubject, __len_enFor5 = __exp_enFor5.length; __i_enFor5 < __len_enFor5; ++__i_enFor5) {
  3524. var aQS = __exp_enFor5[__i_enFor5];
  3525. PropertySetter._updateItemTypeListReference(aQS.basicGetItem(), oldIdForExpr, newIdForExpr);
  3526. }
  3527. }
  3528. PropertySetter._updateExpressionForQueryItem(module, obj, oldIdForExpr, newIdForExpr);
  3529. return;
  3530. }
  3531. }
  3532. }, {
  3533. key: '_updateItemNormalization',
  3534. value: function _updateItemNormalization(itemNorm, oldId, newId) {
  3535. if (!itemNorm) {
  3536. return;
  3537. }
  3538. var groups = itemNorm.basicGetItemNormalizationGroup();
  3539. if (!groups) {
  3540. return;
  3541. }
  3542. for (var __i_enFor0 = 0, __exp_enFor0 = groups, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3543. var grp = __exp_enFor0[__i_enFor0];
  3544. if (grp.key && grp.key.itemRef != null && grp.key.itemRef == oldId) {
  3545. grp.key.itemRef = newId;
  3546. }
  3547. if (!grp.attribute) {
  3548. continue;
  3549. }
  3550. for (var __i_enFor1 = 0, __exp_enFor1 = grp.attribute, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  3551. var attr = __exp_enFor1[__i_enFor1];
  3552. if (attr.itemRef != null && attr.itemRef == oldId) {
  3553. attr.itemRef = newId;
  3554. }
  3555. }
  3556. }
  3557. }
  3558. }, {
  3559. key: '_updateItemTypeListQueryItemReference',
  3560. value: function _updateItemTypeListQueryItemReference(itemTypes, oldId, newId) {
  3561. if (!itemTypes) {
  3562. return;
  3563. }
  3564. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3565. var itemType = __exp_enFor0[__i_enFor0];
  3566. PropertySetter._updateItemTypeQueryItemReference(itemType, oldId, newId);
  3567. }
  3568. }
  3569. }, {
  3570. key: '_updateItemTypeQueryItemReference',
  3571. value: function _updateItemTypeQueryItemReference(itemType, oldId, newId) {
  3572. var qi = itemType.getQueryItem();
  3573. if (qi) {
  3574. if (qi.facetDefinition && qi.facetDefinition.sortList && qi.facetDefinition.sortList.sortItem) {
  3575. for (var __i_enFor0 = 0, __exp_enFor0 = qi.facetDefinition.sortList.sortItem, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3576. var s = __exp_enFor0[__i_enFor0];
  3577. if (oldId == s.ref) {
  3578. s.ref = newId;
  3579. }
  3580. }
  3581. }
  3582. PropertySetter._updateItemTypeListQueryItemReference(qi.basicGetItem(), oldId, newId);
  3583. return;
  3584. }
  3585. var folder = itemType.getFolder();
  3586. if (folder) {
  3587. PropertySetter._updateItemTypeListQueryItemReference(folder.basicGetItem(), oldId, newId);
  3588. return;
  3589. }
  3590. }
  3591. }, {
  3592. key: 'getParentQuerySubject',
  3593. value: function getParentQuerySubject(moserObj) {
  3594. if (!moserObj) {
  3595. return null;
  3596. }
  3597. var parent = moserObj.getParent();
  3598. if (!parent) {
  3599. return null;
  3600. }
  3601. var objType = parent.getObjectType();
  3602. if ("QuerySubject" == objType) {
  3603. return parent;
  3604. }
  3605. if ("Module" == objType) {
  3606. return null;
  3607. }
  3608. return PropertySetter.getParentQuerySubject(parent);
  3609. }
  3610. /**
  3611. * update MDTV reference after Identifier of the Object is changed.
  3612. * @param {Array} mdtv - MDTV.
  3613. * @param {String} oldId - old Identifier.
  3614. * @param {String} newId - new Identifier.
  3615. */
  3616. }, {
  3617. key: '_updateMDTVReference',
  3618. value: function _updateMDTVReference(mdtv, oldId, newId) {
  3619. if (!mdtv) {
  3620. return;
  3621. }
  3622. for (var __i_enFor0 = 0, __exp_enFor0 = mdtv, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3623. var folderType = __exp_enFor0[__i_enFor0];
  3624. PropertySetter._updateFolderTypeReference(folderType, oldId, newId);
  3625. }
  3626. }
  3627. /**
  3628. * update FolderType reference after Identifier of the Object is changed.
  3629. * @param {FolderType} folderType - FolderType.
  3630. * @param {String} oldId - old Identifier.
  3631. * @param {String} newId - new Identifier.
  3632. */
  3633. }, {
  3634. key: '_updateFolderTypeReference',
  3635. value: function _updateFolderTypeReference(folderType, oldId, newId) {
  3636. var folderItemTypes = folderType.basicGetFolderItem();
  3637. if (!folderItemTypes) {
  3638. return;
  3639. }
  3640. for (var __i_enFor0 = 0, __exp_enFor0 = folderItemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3641. var folderItemType = __exp_enFor0[__i_enFor0];
  3642. var ref = folderItemType.getRef();
  3643. if (oldId == ref) {
  3644. folderItemType.ref = newId;
  3645. }
  3646. var nestedFolder = folderItemType.getFolder();
  3647. if (!nestedFolder) {
  3648. continue;
  3649. }
  3650. PropertySetter._updateFolderTypeReference(nestedFolder, oldId, newId);
  3651. }
  3652. }
  3653. /**
  3654. * update reference in Relationships after Identifier of the Object is changed.
  3655. * @param {Array} relationships - Relationships.
  3656. * @param {String} oldId - old Identifier.
  3657. * @param {String} newId - new Identifier.
  3658. */
  3659. }, {
  3660. key: '_updateRelationshipListReference',
  3661. value: function _updateRelationshipListReference(relationships, oldId, newId) {
  3662. if (!relationships) {
  3663. return;
  3664. }
  3665. for (var __i_enFor0 = 0, __exp_enFor0 = relationships, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3666. var relationship = __exp_enFor0[__i_enFor0];
  3667. PropertySetter._updateRelationshipReference(relationship, oldId, newId);
  3668. }
  3669. }
  3670. /**
  3671. * update Relationship reference after Identifier of the Object is changed.
  3672. * @param {Relationship} relationship - Relationship.
  3673. * @param {String} oldId - old Identifier.
  3674. * @param {String} newId - new Identifier.
  3675. */
  3676. }, {
  3677. key: '_updateRelationshipReference',
  3678. value: function _updateRelationshipReference(relationship, oldId, newId) {
  3679. PropertySetter._updateCardinalityTypeReference(relationship.getLeft(), oldId, newId);
  3680. PropertySetter._updateCardinalityTypeReference(relationship.getRight(), oldId, newId);
  3681. }
  3682. /**
  3683. * update CardinalityType reference after Identifier of the Object is changed.
  3684. * @param {CardinalityType} cardinality - CardinalityType.
  3685. * @param {String} oldId - old Identifier.
  3686. * @param {String} newId - new Identifier.
  3687. */
  3688. }, {
  3689. key: '_updateCardinalityTypeReference',
  3690. value: function _updateCardinalityTypeReference(cardinality, oldId, newId) {
  3691. var ref = cardinality.getRef();
  3692. if (oldId == ref) {
  3693. cardinality.ref = newId;
  3694. }
  3695. }
  3696. /**
  3697. * update reference in QuerySubjects after Identifier of the Object is changed.
  3698. * @param {Array} querySubjects - QuerySubjects.
  3699. * @param {String} oldId - old Identifier.
  3700. * @param {String} newId - new Identifier.
  3701. */
  3702. }, {
  3703. key: '_updateQuerySubjectListReference',
  3704. value: function _updateQuerySubjectListReference(querySubjects, oldId, newId) {
  3705. if (!querySubjects) {
  3706. return;
  3707. }
  3708. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3709. var querySubject = __exp_enFor0[__i_enFor0];
  3710. PropertySetter._updateQuerySubjectReference(querySubject, oldId, newId);
  3711. }
  3712. }
  3713. /**
  3714. * update reference in QuerySubject after Identifier of the Object is changed.
  3715. * @param {QuerySubject} querySubject - QuerySubject.
  3716. * @param {String} oldId - old Identifier.
  3717. * @param {String} newId - new Identifier.
  3718. */
  3719. }, {
  3720. key: '_updateQuerySubjectReference',
  3721. value: function _updateQuerySubjectReference(querySubject, oldId, newId) {
  3722. var ref = querySubject.basicGetRef();
  3723. PropertySetter._updateRefList(ref, oldId, newId);
  3724. var orgRef = querySubject.basicGetOriginalRef();
  3725. PropertySetter._updateRefList(orgRef, oldId, newId);
  3726. var queryOp = querySubject.getQueryOperation();
  3727. if (queryOp) {
  3728. PropertySetter._updateRefList(queryOp.basicGetQueryRef(), oldId, newId);
  3729. }
  3730. var joinOp = querySubject.getJoinOperation();
  3731. if (joinOp) {
  3732. PropertySetter._updateRefList(joinOp.basicGetQueryRef(), oldId, newId);
  3733. PropertySetter._updateRelationshipListReference(joinOp.basicGetRelationship(), oldId, newId);
  3734. }
  3735. PropertySetter._updateItemTypeListReference(querySubject.basicGetItem(), oldId, newId);
  3736. }
  3737. /**
  3738. * update ref list.
  3739. * @param {Array} ref - ref list.
  3740. * @param {String} oldId - old Identifier.
  3741. * @param {String} newId - new Identifier.
  3742. */
  3743. }, {
  3744. key: '_updateRefList',
  3745. value: function _updateRefList(ref, oldId, newId) {
  3746. if (!ref) {
  3747. return;
  3748. }
  3749. for (var i = 0; i < ref.length; ++i) {
  3750. if (oldId == ref[i]) {
  3751. ref[i] = newId;
  3752. }
  3753. }
  3754. }
  3755. /**
  3756. * update reference in ItemType List after Identifier of the Object is changed.
  3757. * @param {Array} itemTypes - ItemType list.
  3758. * @param {String} oldId - old Identifier.
  3759. * @param {String} newId - new Identifier.
  3760. */
  3761. }, {
  3762. key: '_updateItemTypeListReference',
  3763. value: function _updateItemTypeListReference(itemTypes, oldId, newId) {
  3764. if (!itemTypes) {
  3765. return;
  3766. }
  3767. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3768. var itemType = __exp_enFor0[__i_enFor0];
  3769. PropertySetter._updateItemTypeReference(itemType, oldId, newId);
  3770. }
  3771. }
  3772. /**
  3773. * update reference in ItemTypet after Identifier of the Object is changed.
  3774. * @param {ItemType} itemType - ItemType.
  3775. * @param {String} oldId - old Identifier.
  3776. * @param {String} newId - new Identifier.
  3777. */
  3778. }, {
  3779. key: '_updateItemTypeReference',
  3780. value: function _updateItemTypeReference(itemType, oldId, newId) {
  3781. var qi = itemType.getQueryItem();
  3782. if (qi) {
  3783. var splits = qi.basicGetSplitDefinition();
  3784. if (splits) {
  3785. for (var __i_enFor0 = 0, __exp_enFor0 = splits, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3786. var split = __exp_enFor0[__i_enFor0];
  3787. var ref = split.getRef();
  3788. if (oldId == ref) {
  3789. split.ref = newId;
  3790. }
  3791. }
  3792. }
  3793. PropertySetter._updateItemTypeListReference(qi.basicGetItem(), oldId, newId);
  3794. return;
  3795. }
  3796. var folder = itemType.getFolder();
  3797. if (folder) {
  3798. PropertySetter._updateItemTypeListReference(folder.basicGetItem(), oldId, newId);
  3799. return;
  3800. }
  3801. }
  3802. /**
  3803. * update IdforExpression.
  3804. * @param {Array} items items
  3805. * @param {String} parentIdForExpr parent IdforExpression.
  3806. */
  3807. }, {
  3808. key: 'updateIdForExpression',
  3809. value: function updateIdForExpression(items, parentIdForExpr) {
  3810. if (!items) {
  3811. return;
  3812. }
  3813. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3814. var itm = __exp_enFor0[__i_enFor0];
  3815. var qi = itm.getQueryItem();
  3816. if (qi) {
  3817. var newIdforExpr = parentIdForExpr + "." + qi.getIdentifier();
  3818. qi.idForExpression = newIdforExpr;
  3819. PropertySetter.updateIdForExpression(qi.basicGetItem(), newIdforExpr);
  3820. continue;
  3821. }
  3822. var flt = itm.getFilter();
  3823. if (flt) {
  3824. var newIdforExpr = parentIdForExpr + "." + flt.getIdentifier();
  3825. flt.idForExpression = newIdforExpr;
  3826. continue;
  3827. }
  3828. var folder = itm.getFolder();
  3829. if (folder) {
  3830. PropertySetter.updateIdForExpression(folder.basicGetItem(), parentIdForExpr);
  3831. }
  3832. }
  3833. }
  3834. }, {
  3835. key: 'resetReferencedObject',
  3836. value: function resetReferencedObject(module, qiId, qiIdForExpression, qsId) {
  3837. var relationships = module.relationship;
  3838. if (relationships) {
  3839. for (var __i_enFor0 = 0, __exp_enFor0 = relationships, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3840. var r = __exp_enFor0[__i_enFor0];
  3841. var links = r.link;
  3842. if (!links || links.length == 0) {
  3843. continue;
  3844. }
  3845. var left = r.left;
  3846. var right = r.right;
  3847. if (qsId == left.ref) {
  3848. for (var __i_enFor1 = 0, __exp_enFor1 = links, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  3849. var l = __exp_enFor1[__i_enFor1];
  3850. if (qiId == l.leftRef) {
  3851. l.setReferencedObjectLeft(null);
  3852. }
  3853. }
  3854. } else if (qsId == right.ref) {
  3855. for (var __i_enFor2 = 0, __exp_enFor2 = links, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  3856. var l = __exp_enFor2[__i_enFor2];
  3857. if (qiId == l.rightRef) {
  3858. l.setReferencedObjectRight(null);
  3859. }
  3860. }
  3861. }
  3862. }
  3863. }
  3864. var drills = module.drillGroup;
  3865. if (qiIdForExpression != null && drills) {
  3866. for (var __i_enFor3 = 0, __exp_enFor3 = drills, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  3867. var dg = __exp_enFor3[__i_enFor3];
  3868. var segs = dg.segment;
  3869. if (!segs) {
  3870. continue;
  3871. }
  3872. for (var __i_enFor4 = 0, __exp_enFor4 = segs, __len_enFor4 = __exp_enFor4.length; __i_enFor4 < __len_enFor4; ++__i_enFor4) {
  3873. var sg = __exp_enFor4[__i_enFor4];
  3874. if (qiIdForExpression == sg.ref) {
  3875. sg.setReferencedObject(null);
  3876. }
  3877. }
  3878. }
  3879. }
  3880. }
  3881. }, {
  3882. key: 'resolveIdForExpression',
  3883. value: function resolveIdForExpression(obj) {
  3884. if (!obj) {
  3885. return;
  3886. }
  3887. var module = _MoserObject2.default.getModuleObject(obj);
  3888. if (!module || !module.isOverrideMode()) {
  3889. return;
  3890. }
  3891. var objType = obj.getObjectType();
  3892. if ("QuerySubject" == objType) {
  3893. obj.idForExpression = obj.identifier;
  3894. return;
  3895. }
  3896. if ("Calculation" == objType) {
  3897. obj.idForExpression = obj.identifier;
  3898. return;
  3899. }
  3900. if ("QueryItem" == objType || "Filter" == objType) {
  3901. var id = obj.identifier;
  3902. if (id == null || id.length === 0) {
  3903. return;
  3904. }
  3905. var parts = [];
  3906. parts.push(id);
  3907. var parent = obj.getParent();
  3908. while (parent) {
  3909. objType = parent.getObjectType();
  3910. if ("Module" == objType) {
  3911. break;
  3912. }
  3913. if ("QuerySubject" == objType) {
  3914. id = parent.identifier;
  3915. if (id == null || id.length === 0) {
  3916. return;
  3917. }
  3918. parts.push(id);
  3919. break;
  3920. }
  3921. if ("QueryItem" == objType) {
  3922. id = parent.identifier;
  3923. if (id == null || id.length === 0) {
  3924. return;
  3925. }
  3926. parts.push(id);
  3927. }
  3928. parent = parent.getParent();
  3929. }
  3930. var sb = "";
  3931. var s = parts.length - 1;
  3932. for (var i = s; i >= 0; --i) {
  3933. if (i != s) {
  3934. sb += ".";
  3935. }
  3936. sb += parts[i];
  3937. }
  3938. obj.idForExpression = sb;
  3939. }
  3940. }
  3941. }, {
  3942. key: 'isEmptyRef',
  3943. value: function isEmptyRef(v) {
  3944. return v == null || v.length === 0 || "none" == v || "None" == v || "NONE" == v;
  3945. }
  3946. }, {
  3947. key: 'getAllQueryItemsInItems',
  3948. value: function getAllQueryItemsInItems(items) {
  3949. var qItems = [];
  3950. if (!items) {
  3951. return qItems;
  3952. }
  3953. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3954. var item = __exp_enFor0[__i_enFor0];
  3955. if (item.queryItem) {
  3956. qItems.push(item.queryItem);
  3957. } else if (item.folder) {
  3958. Array.prototype.push.apply(qItems, PropertySetter.getAllQueryItemsInItems(item.folder.item));
  3959. }
  3960. }
  3961. return qItems;
  3962. }
  3963. }, {
  3964. key: 'getAllQueryItemsInQuerySubject',
  3965. value: function getAllQueryItemsInQuerySubject(qs) {
  3966. return PropertySetter.getAllQueryItemsInItems(qs.item);
  3967. }
  3968. }, {
  3969. key: '_resetSplitToQueryItem',
  3970. value: function _resetSplitToQueryItem(module, srcQI, bset) {
  3971. var idForExpr = srcQI.idForExpression;
  3972. if (idForExpr != null && !(idForExpr.length === 0)) {
  3973. for (var __i_enFor0 = 0, __exp_enFor0 = module.querySubject, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  3974. var aQS = __exp_enFor0[__i_enFor0];
  3975. for (var __i_enFor1 = 0, __exp_enFor1 = PropertySetter.getAllQueryItemsInQuerySubject(aQS), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  3976. var aQI = __exp_enFor1[__i_enFor1];
  3977. if (srcQI === aQI) {
  3978. continue;
  3979. }
  3980. var sp = aQI.splitDefinition;
  3981. if (!sp || sp.length == 0 || !(idForExpr == sp[0].ref)) {
  3982. continue;
  3983. }
  3984. if (aQI.item) {
  3985. aQI.item.length = 0;
  3986. }
  3987. if (bset) {
  3988. PropertySetter._addQueryItemsForSplit(srcQI, aQI);
  3989. }
  3990. }
  3991. }
  3992. }
  3993. }
  3994. /**
  3995. * generate dynamic filters after split reference is set.
  3996. * @param {MoserObject} obj SplitType.
  3997. * @param {String} oldValue old value.
  3998. * @param {String} newValue new value.
  3999. */
  4000. }, {
  4001. key: '_updateSplitRef',
  4002. value: function _updateSplitRef(obj, oldValue, newValue) {
  4003. var bOldEmpty = PropertySetter.isEmptyRef(oldValue);
  4004. var bNewEmpty = PropertySetter.isEmptyRef(newValue);
  4005. if (bOldEmpty && bNewEmpty || !bOldEmpty && !bNewEmpty && newValue == oldValue) {
  4006. return;
  4007. }
  4008. var splitDef = obj;
  4009. if (!(_InstanceType2.default.REFERENCE === splitDef.instanceType)) {
  4010. return;
  4011. }
  4012. var module = _MoserObject2.default.getModuleObject(splitDef);
  4013. if (!module || !module.isOverrideMode()) {
  4014. return;
  4015. }
  4016. var parent = splitDef.getParent();
  4017. if (!parent || !("QueryItem" == parent.getObjectType())) {
  4018. return;
  4019. }
  4020. var targetQueryItem = parent;
  4021. splitDef.folderLabel = null;
  4022. if (targetQueryItem.item) {
  4023. targetQueryItem.item.length = 0;
  4024. }
  4025. if (bNewEmpty) {
  4026. if (!bOldEmpty) {
  4027. var oldParts = oldValue.split(new RegExp("\\."));
  4028. if (oldParts.length == 1) {
  4029. PropertySetter._resetSplitToQueryItem(module, targetQueryItem, false);
  4030. }
  4031. }
  4032. return;
  4033. }
  4034. var parts = newValue.split(new RegExp("\\."));
  4035. if (parts.length == 1) {
  4036. splitDef.folderLabel = PropertySetter.splitToQuerySubject(targetQueryItem, splitDef, module, parts[0]);
  4037. PropertySetter._resetSplitToQueryItem(module, targetQueryItem, true);
  4038. } else {
  4039. splitDef.folderLabel = PropertySetter.splitToComparableQueryItem(targetQueryItem, splitDef, module, parts[0], newValue);
  4040. }
  4041. }
  4042. }, {
  4043. key: '_getQuerySubjectById',
  4044. value: function _getQuerySubjectById(module, id) {
  4045. if (!module.querySubject) {
  4046. return null;
  4047. }
  4048. for (var __i_enFor0 = 0, __exp_enFor0 = module.querySubject, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4049. var qs = __exp_enFor0[__i_enFor0];
  4050. if (id == qs.identifier || id == qs.idForExpression) {
  4051. return qs;
  4052. }
  4053. }
  4054. return null;
  4055. }
  4056. }, {
  4057. key: 'ensureIdForExpression',
  4058. value: function ensureIdForExpression(parentId, items, allQueryItems) {
  4059. if (!items) {
  4060. return;
  4061. }
  4062. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4063. var itm = __exp_enFor0[__i_enFor0];
  4064. if (itm.queryItem) {
  4065. if (itm.queryItem.idForExpression == null) {
  4066. itm.queryItem.idForExpression = parentId + "." + itm.queryItem.identifier;
  4067. }
  4068. allQueryItems[itm.queryItem.idForExpression] = itm.queryItem;
  4069. if (itm.queryItem.item) {
  4070. PropertySetter.ensureIdForExpression(itm.queryItem.idForExpression, itm.queryItem.item, allQueryItems);
  4071. }
  4072. continue;
  4073. }
  4074. if (itm.filter) {
  4075. if (itm.filter.idForExpression == null) {
  4076. itm.filter.idForExpression = parentId + "." + itm.filter.identifier;
  4077. }
  4078. continue;
  4079. }
  4080. if (itm.folder) {
  4081. PropertySetter.ensureIdForExpression(parentId, itm.folder.item, allQueryItems);
  4082. continue;
  4083. }
  4084. }
  4085. }
  4086. }, {
  4087. key: '_needCloneQueryItem',
  4088. value: function _needCloneQueryItem(qi, qs, allQueryItems) {
  4089. if (!qs.itemNormalization) {
  4090. return false;
  4091. }
  4092. if (!qs.itemNormalization.itemNormalizationGroup) {
  4093. return false;
  4094. }
  4095. for (var __i_enFor0 = 0, __exp_enFor0 = qs.itemNormalization.itemNormalizationGroup, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4096. var g = __exp_enFor0[__i_enFor0];
  4097. if (!g.key) {
  4098. continue;
  4099. }
  4100. if (g.key.getKeyConstraint() != _KeyConstraintType2.default.UNIQUE || g.key.getKeyComposition() != _KeyCompositionType2.default.INDEPENDENT) {
  4101. continue;
  4102. }
  4103. var idforexpr = qs.identifier + "." + g.key.itemRef;
  4104. var foundQI = allQueryItems[idforexpr];
  4105. if (!foundQI) {
  4106. continue;
  4107. }
  4108. if (PropertySetter._compatibleDT(qi, foundQI)) {
  4109. return true;
  4110. }
  4111. }
  4112. return false;
  4113. }
  4114. }, {
  4115. key: '_compatibleDT',
  4116. value: function _compatibleDT(qi, foundQI) {
  4117. if (!qi.highlevelDatatype || !foundQI.highlevelDatatype) {
  4118. return false;
  4119. }
  4120. if (qi.highlevelDatatype == _HighLevelDataType2.default.STRING && foundQI.highlevelDatatype == _HighLevelDataType2.default.STRING) {
  4121. return true;
  4122. }
  4123. if ((qi.highlevelDatatype == _HighLevelDataType2.default.INTEGER || qi.highlevelDatatype == _HighLevelDataType2.default.DECIMAL) && (foundQI.highlevelDatatype == _HighLevelDataType2.default.INTEGER || foundQI.highlevelDatatype == _HighLevelDataType2.default.DECIMAL)) {
  4124. return true;
  4125. }
  4126. if ((qi.highlevelDatatype == _HighLevelDataType2.default.DATE || qi.highlevelDatatype == _HighLevelDataType2.default.DATETIME) && (foundQI.highlevelDatatype == _HighLevelDataType2.default.DATE || foundQI.highlevelDatatype == _HighLevelDataType2.default.DATETIME)) {
  4127. return true;
  4128. }
  4129. return false;
  4130. }
  4131. }, {
  4132. key: 'splitToQuerySubject',
  4133. value: function splitToQuerySubject(targetQueryItem, splitDef, module, qsId) {
  4134. var sourceQuerySubject = PropertySetter._getQuerySubjectById(module, qsId);
  4135. if (!sourceQuerySubject) {
  4136. return null;
  4137. }
  4138. if (!sourceQuerySubject.item || sourceQuerySubject.item.length == 0) {
  4139. return null;
  4140. }
  4141. var allQueryItems = {};
  4142. PropertySetter.ensureIdForExpression(sourceQuerySubject.identifier, sourceQuerySubject.item, allQueryItems);
  4143. var parentIdForExpr = targetQueryItem.getIdForExpression();
  4144. var bNeedCloneQueryItem = PropertySetter._needCloneQueryItem(targetQueryItem, sourceQuerySubject, allQueryItems);
  4145. for (var __i_enFor0 = 0, __exp_enFor0 = sourceQuerySubject.item, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4146. var itm = __exp_enFor0[__i_enFor0];
  4147. try {
  4148. var newItm = itm.clone();
  4149. var b = [false, false];
  4150. PropertySetter._adjustExpressionOfQueryItemFilter(newItm, b, parentIdForExpr, bNeedCloneQueryItem);
  4151. if (b[0] && !b[1]) {
  4152. if (!targetQueryItem.item) {
  4153. targetQueryItem.item = [];
  4154. }
  4155. targetQueryItem.item.push(newItm);
  4156. newItm._parent = targetQueryItem;
  4157. }
  4158. } catch (e) {
  4159. throw e;
  4160. }
  4161. }
  4162. return sourceQuerySubject.label;
  4163. }
  4164. }, {
  4165. key: '_adjustExpressionOfQueryItemFilter',
  4166. value: function _adjustExpressionOfQueryItemFilter(item, b, pId, bNeedCloneQueryItem) {
  4167. if (item.namedSet || item.itemHierarchy || !bNeedCloneQueryItem && item.queryItem) {
  4168. b[1] = true;
  4169. return;
  4170. }
  4171. if (item.queryItem) {
  4172. b[0] = true;
  4173. item.queryItem.expression = item.queryItem.idForExpression;
  4174. item.queryItem.idForExpression = pId + "." + item.queryItem.identifier;
  4175. item.queryItem.instanceType = _InstanceType2.default.REFERENCE;
  4176. if (item.queryItem.item) {
  4177. for (var __i_enFor0 = 0, __exp_enFor0 = item.queryItem.item, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4178. var t = __exp_enFor0[__i_enFor0];
  4179. PropertySetter._adjustExpressionOfQueryItemFilter(t, b, item.queryItem.idForExpression, bNeedCloneQueryItem);
  4180. }
  4181. }
  4182. return;
  4183. }
  4184. if (item.filter) {
  4185. b[0] = true;
  4186. item.filter.idForExpression = pId + "." + item.filter.identifier;
  4187. item.filter.instanceType = _InstanceType2.default.REFERENCE;
  4188. return;
  4189. }
  4190. if (item.folder && item.folder.item) {
  4191. for (var __i_enFor1 = 0, __exp_enFor1 = item.folder.item, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  4192. var t = __exp_enFor1[__i_enFor1];
  4193. PropertySetter._adjustExpressionOfQueryItemFilter(t, b, pId, bNeedCloneQueryItem);
  4194. }
  4195. }
  4196. }
  4197. }, {
  4198. key: 'splitToComparableQueryItem',
  4199. value: function splitToComparableQueryItem(targetQueryItem, splitDef, module, qsId, idforexprSrcQueryItem) {
  4200. var idforexprTarget = targetQueryItem.getIdForExpression();
  4201. if (idforexprSrcQueryItem == idforexprTarget) {
  4202. return null;
  4203. }
  4204. var srcQuerySubject = PropertySetter._getQuerySubjectById(module, qsId);
  4205. if (!srcQuerySubject) {
  4206. return null;
  4207. }
  4208. var allQueryItems = {};
  4209. PropertySetter.ensureIdForExpression(srcQuerySubject.identifier, srcQuerySubject.item, allQueryItems);
  4210. var srcQueryItem = allQueryItems[idforexprSrcQueryItem];
  4211. if (!srcQueryItem) {
  4212. return null;
  4213. }
  4214. return PropertySetter._addQueryItemsForSplit(srcQueryItem, targetQueryItem);
  4215. }
  4216. }, {
  4217. key: '_addQueryItemsForSplit',
  4218. value: function _addQueryItemsForSplit(srcQueryItem, targetQueryItem) {
  4219. if (!srcQueryItem.item || srcQueryItem.item.length == 0) {
  4220. return null;
  4221. }
  4222. try {
  4223. var targetQIClone = targetQueryItem.clone();
  4224. targetQIClone.item = null;
  4225. targetQIClone.splitDefinition = null;
  4226. for (var __i_enFor0 = 0, __exp_enFor0 = srcQueryItem.item, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4227. var itm = __exp_enFor0[__i_enFor0];
  4228. var newItm = itm.clone();
  4229. var b = [false, false];
  4230. PropertySetter._adjustExpressionFromFilterToQueryItem(newItm, b, targetQIClone, srcQueryItem);
  4231. if (b[0] && !b[1]) {
  4232. if (!targetQueryItem.item) {
  4233. targetQueryItem.item = [];
  4234. }
  4235. targetQueryItem.item.push(newItm);
  4236. newItm._parent = targetQueryItem;
  4237. }
  4238. }
  4239. } catch (e) {
  4240. throw e;
  4241. }
  4242. return srcQueryItem.label;
  4243. }
  4244. }, {
  4245. key: '_adjustExpressionFromFilterToQueryItem',
  4246. value: function _adjustExpressionFromFilterToQueryItem(item, b, targetQI, srcQueryItem) {
  4247. if (item.getNamedSet() || item.getItemHierarchy() || item.getQueryItem()) {
  4248. b[1] = true;
  4249. return;
  4250. }
  4251. if (item.filter) {
  4252. b[0] = true;
  4253. try {
  4254. var newQI = targetQI.clone();
  4255. newQI.identifier = item.filter.identifier;
  4256. newQI.instanceType = _InstanceType2.default.REFERENCE;
  4257. if (item.filter.label != null) {
  4258. newQI.label = item.filter.label + " [" + targetQI.label + "]";
  4259. }
  4260. newQI.expression = "case when " + item.filter.idForExpression + " then #$_this.parent.idForExpression# end";
  4261. newQI.ref = null;
  4262. newQI.idForExpression = targetQI.idForExpression + "." + newQI.identifier;
  4263. item.queryItem = newQI;
  4264. newQI._parent = item;
  4265. item.filter = null;
  4266. } catch (e) {
  4267. throw e;
  4268. }
  4269. return;
  4270. }
  4271. if (item.folder && item.folder.item) {
  4272. for (var __i_enFor0 = 0, __exp_enFor0 = item.folder.item, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4273. var t = __exp_enFor0[__i_enFor0];
  4274. PropertySetter._adjustExpressionFromFilterToQueryItem(t, b, targetQI, srcQueryItem);
  4275. }
  4276. }
  4277. }
  4278. }, {
  4279. key: '_updateExpressionForGlobalCalculationFilter',
  4280. value: function _updateExpressionForGlobalCalculationFilter(module, obj, oldId, newId) {
  4281. var candidates = [];
  4282. var exprs = [];
  4283. var types = [];
  4284. var idforExprs = [];
  4285. PropertySetter._collectCandidatesForGlobaleCalculationFilter(module, obj, candidates, exprs, types, idforExprs);
  4286. for (var i = 0; i < candidates.length; ++i) {
  4287. var o = candidates[i];
  4288. var objType = types[i];
  4289. var jFunc = PropertySetter._getJSONFunctionDef(o);
  4290. if (jFunc && jFunc["elementOperands"] != null) {
  4291. var ops = jFunc["elementOperands"];
  4292. var b = false;
  4293. for (var j = 0; j < ops.length; ++j) {
  4294. if (oldId == ops[j]) {
  4295. ops[j] = newId;
  4296. b = true;
  4297. break;
  4298. }
  4299. }
  4300. if (b) {
  4301. PropertySetter._updateJSONFunctionDef(o, jFunc);
  4302. PropertySetter._updateExpressionStringForGlobalCalculationFilter(o, objType, exprs[i], idforExprs[i], oldId, newId);
  4303. }
  4304. continue;
  4305. }
  4306. PropertySetter._updateExpressionStringForGlobalCalculationFilter(o, objType, exprs[i], idforExprs[i], oldId, newId);
  4307. }
  4308. }
  4309. }, {
  4310. key: '_updateExpressionForQuerySubject',
  4311. value: function _updateExpressionForQuerySubject(module, obj, oldId, newId) {
  4312. var candidates = [];
  4313. var exprs = [];
  4314. var types = [];
  4315. var idforExprs = [];
  4316. PropertySetter._collectCandidatesForQuerySubject(module, obj, candidates, exprs, types, idforExprs, oldId);
  4317. for (var i = 0; i < candidates.length; ++i) {
  4318. var o = candidates[i];
  4319. var objType = types[i];
  4320. var jFunc = PropertySetter._getJSONFunctionDef(o);
  4321. if (jFunc && jFunc["elementOperands"] != null) {
  4322. var ops = jFunc["elementOperands"];
  4323. var b = false;
  4324. for (var j = 0; j < ops.length; ++j) {
  4325. var idforexpr = ops[j];
  4326. var parts = idforexpr.split(new RegExp("\\."));
  4327. if (parts.length > 1 && oldId == parts[0]) {
  4328. parts[0] = newId;
  4329. var sb = "";
  4330. for (var k = 0; k < parts.length; ++k) {
  4331. if (k != 0) {
  4332. sb += ".";
  4333. }
  4334. sb += parts[k];
  4335. }
  4336. var newElem = sb;
  4337. ops[j] = newElem;
  4338. b = true;
  4339. break;
  4340. }
  4341. }
  4342. if (b) {
  4343. PropertySetter._updateJSONFunctionDef(o, jFunc);
  4344. PropertySetter._updateExpressionStringForQuerySubject(o, objType, exprs[i], idforExprs[i], oldId, newId);
  4345. }
  4346. continue;
  4347. }
  4348. PropertySetter._updateExpressionStringForQuerySubject(o, objType, exprs[i], idforExprs[i], oldId, newId);
  4349. }
  4350. }
  4351. }, {
  4352. key: '_updateExpressionForQueryItem',
  4353. value: function _updateExpressionForQueryItem(module, obj, oldIdforExpr, newIdforExpr) {
  4354. var candidates = [];
  4355. var exprs = [];
  4356. var types = [];
  4357. var idforExprs = [];
  4358. PropertySetter._collectCandidatesForQuerySubject(module, obj, candidates, exprs, types, idforExprs, null);
  4359. for (var i = 0; i < candidates.length; ++i) {
  4360. var o = candidates[i];
  4361. var objType = types[i];
  4362. var jFunc = PropertySetter._getJSONFunctionDef(o);
  4363. if (jFunc && jFunc["elementOperands"] != null) {
  4364. var ops = jFunc["elementOperands"];
  4365. var b = false;
  4366. for (var j = 0; j < ops.length; ++j) {
  4367. if (oldIdforExpr == ops[j]) {
  4368. ops[j] = newIdforExpr;
  4369. b = true;
  4370. break;
  4371. }
  4372. }
  4373. if (b) {
  4374. PropertySetter._updateJSONFunctionDef(o, jFunc);
  4375. PropertySetter._updateExpressionStringForQueryItem(o, objType, exprs[i], idforExprs[i], oldIdforExpr, newIdforExpr);
  4376. }
  4377. continue;
  4378. }
  4379. PropertySetter._updateExpressionStringForQueryItem(o, objType, exprs[i], idforExprs[i], oldIdforExpr, newIdforExpr);
  4380. }
  4381. }
  4382. }, {
  4383. key: '_getJSONFunctionDef',
  4384. value: function _getJSONFunctionDef(o) {
  4385. return PropertySetter._getJSONPropertyValue(o, "_MUI_expr");
  4386. }
  4387. }, {
  4388. key: '_getJSONPropertyValue',
  4389. value: function _getJSONPropertyValue(o, propName) {
  4390. var props = o.basicGetProperty();
  4391. if (!props) {
  4392. return null;
  4393. }
  4394. var jFunc;
  4395. for (var __i_enFor0 = 0, __exp_enFor0 = props, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4396. var p = __exp_enFor0[__i_enFor0];
  4397. if (propName == p.getName()) {
  4398. var funcStr = p.getValue();
  4399. if (funcStr != null) {
  4400. try {
  4401. jFunc = JSON.parse(funcStr);
  4402. } catch (e) {
  4403. throw e;
  4404. }
  4405. }
  4406. break;
  4407. }
  4408. }
  4409. return jFunc;
  4410. }
  4411. }, {
  4412. key: '_updateJSONFunctionDef',
  4413. value: function _updateJSONFunctionDef(o, j) {
  4414. var props = o.basicGetProperty();
  4415. if (!props) {
  4416. return;
  4417. }
  4418. for (var __i_enFor0 = 0, __exp_enFor0 = props, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4419. var p = __exp_enFor0[__i_enFor0];
  4420. if ("_MUI_expr" == p.getName()) {
  4421. try {
  4422. p.value = JSON.stringify(j);
  4423. } catch (e) {
  4424. throw e;
  4425. }
  4426. break;
  4427. }
  4428. }
  4429. }
  4430. }, {
  4431. key: '_updateExpressionStringForGlobalCalculationFilter',
  4432. value: function _updateExpressionStringForGlobalCalculationFilter(targetObj, targetObjType, targetExpr, targetIdforExpr, oldId, newId) {
  4433. var newExpr = _ItemScanner2.default.replaceIdForExpr(targetObjType, targetExpr, targetIdforExpr, "Calculation", oldId, newId);
  4434. if (newExpr != null) {
  4435. if ("Calculation" == targetObjType) {
  4436. targetObj.expression = newExpr;
  4437. } else {
  4438. targetObj.expression = newExpr;
  4439. }
  4440. }
  4441. }
  4442. }, {
  4443. key: '_updateExpressionStringForQuerySubject',
  4444. value: function _updateExpressionStringForQuerySubject(targetObj, targetObjType, targetExpr, sameQS, oldId, newId) {
  4445. var newExpr = _ItemScanner2.default.replaceIdForExpr(targetObjType, targetExpr, sameQS, "QuerySubject", oldId, newId);
  4446. if (newExpr != null) {
  4447. var realObjType = targetObj.getObjectType();
  4448. if ("Calculation" == realObjType) {
  4449. targetObj.expression = newExpr;
  4450. } else if ("Filter" == realObjType) {
  4451. targetObj.expression = newExpr;
  4452. } else if ("QueryItem" == realObjType) {
  4453. targetObj.expression = newExpr;
  4454. }
  4455. }
  4456. }
  4457. }, {
  4458. key: '_updateExpressionStringForQueryItem',
  4459. value: function _updateExpressionStringForQueryItem(targetObj, targetObjType, targetExpr, targetIdforExpr, oldIdforExpr, newIdforExpr) {
  4460. var newExpr = _ItemScanner2.default.replaceIdForExpr(targetObjType, targetExpr, targetIdforExpr, "QueryItem", oldIdforExpr, newIdforExpr);
  4461. if (newExpr != null) {
  4462. var realObjType = targetObj.getObjectType();
  4463. if ("Calculation" == realObjType) {
  4464. targetObj.expression = newExpr;
  4465. } else if ("Filter" == realObjType) {
  4466. targetObj.expression = newExpr;
  4467. } else if ("QueryItem" == realObjType) {
  4468. targetObj.expression = newExpr;
  4469. }
  4470. }
  4471. }
  4472. }, {
  4473. key: 'setIdentifier',
  4474. value: function setIdentifier(obj, value, idforExprToNewExpr) {
  4475. if (idforExprToNewExpr) {
  4476. var candidates = [];
  4477. var exprs = [];
  4478. var types = [];
  4479. var idforExprs = [];
  4480. PropertySetter._collectCandidates(obj, candidates, exprs, types, idforExprs);
  4481. for (var i = 0; i < candidates.length; ++i) {
  4482. var newExpr = idforExprToNewExpr[idforExprs[i]];
  4483. if (newExpr != null) {
  4484. var objType = types[i];
  4485. if ("Calculation" == objType) {
  4486. var c = candidates[i];
  4487. c.setExpression(newExpr);
  4488. } else if ("Filter" == objType) {
  4489. var f = candidates[i];
  4490. f.setExpression(newExpr);
  4491. } else if ("QueryItem" == objType) {
  4492. var qi = candidates[i];
  4493. qi.setExpression(newExpr);
  4494. }
  4495. }
  4496. }
  4497. }
  4498. obj.setIdentifier(value);
  4499. }
  4500. }, {
  4501. key: 'getExtractIdentifiersSpec',
  4502. value: function getExtractIdentifiersSpec(obj, value) {
  4503. var oldIdForExpr = obj.idForExpression;
  4504. var oldValue = obj.identifier;
  4505. var module = _MoserObject2.default.getModuleObject(obj);
  4506. if (!module || oldValue == null || oldIdForExpr == null || oldValue == value) {
  4507. return null;
  4508. }
  4509. var objType = obj.getObjectType();
  4510. var candidates = [];
  4511. var exprs = [];
  4512. var types = [];
  4513. var idforExprs = [];
  4514. PropertySetter._collectCandidates(obj, candidates, exprs, types, idforExprs);
  4515. if (candidates.length == 0) {
  4516. return null;
  4517. }
  4518. return PropertySetter.buildSpec(oldIdForExpr, objType, value, exprs, types, idforExprs);
  4519. }
  4520. }, {
  4521. key: '_collectCandidates',
  4522. value: function _collectCandidates(obj, candidates, exprs, types, idforExprs) {
  4523. var module = _MoserObject2.default.getModuleObject(obj);
  4524. if (!module) {
  4525. return;
  4526. }
  4527. var objType = obj.getObjectType();
  4528. if ("Calculation" == objType || "Filter" == objType) {
  4529. PropertySetter._collectCandidatesForGlobaleCalculationFilter(module, obj, candidates, exprs, types, idforExprs);
  4530. } else if ("QuerySubject" == objType) {
  4531. PropertySetter._collectCandidatesForQuerySubject(module, obj, candidates, exprs, types, idforExprs, null);
  4532. } else if ("QueryItem" == objType) {
  4533. PropertySetter._collectCandidatesForQuerySubject(module, obj, candidates, exprs, types, idforExprs, null);
  4534. }
  4535. }
  4536. }, {
  4537. key: '_objectWithExpr',
  4538. value: function _objectWithExpr(expr, idForExpr) {
  4539. return expr != null && !(expr.length === 0) && idForExpr != null && !(idForExpr.length === 0);
  4540. }
  4541. }, {
  4542. key: '_collectCandidatesForGlobaleCalculationFilter',
  4543. value: function _collectCandidatesForGlobaleCalculationFilter(module, obj, candidates, exprs, types, idforExprs) {
  4544. var calcs = module.basicGetCalculation();
  4545. if (calcs) {
  4546. for (var __i_enFor0 = 0, __exp_enFor0 = calcs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4547. var c = __exp_enFor0[__i_enFor0];
  4548. if (!(c === obj) && PropertySetter._objectWithExpr(c.expression, c.idForExpression)) {
  4549. candidates.push(c);
  4550. exprs.push(c.expression);
  4551. types.push("Calculation");
  4552. idforExprs.push(c.idForExpression);
  4553. }
  4554. }
  4555. }
  4556. var filters = module.basicGetFilter();
  4557. if (filters) {
  4558. for (var __i_enFor1 = 0, __exp_enFor1 = filters, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  4559. var f = __exp_enFor1[__i_enFor1];
  4560. if (!(f === obj) && PropertySetter._objectWithExpr(f.expression, f.idForExpression)) {
  4561. candidates.push(f);
  4562. exprs.push(f.expression);
  4563. types.push("Filter");
  4564. idforExprs.push(f.idForExpression);
  4565. }
  4566. }
  4567. }
  4568. }
  4569. }, {
  4570. key: 'getItemsWithQueryItemFilter',
  4571. value: function getItemsWithQueryItemFilter(items) {
  4572. var rtItems = [];
  4573. if (!items) {
  4574. return rtItems;
  4575. }
  4576. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4577. var item = __exp_enFor0[__i_enFor0];
  4578. if (item.getQueryItem() || item.getFilter()) {
  4579. rtItems.push(item);
  4580. } else if (item.getFolder()) {
  4581. Array.prototype.push.apply(rtItems, PropertySetter.getItemsWithQueryItemFilter(item.getFolder().basicGetItem()));
  4582. }
  4583. }
  4584. return rtItems;
  4585. }
  4586. }, {
  4587. key: '_collectCandidatesForQuerySubject',
  4588. value: function _collectCandidatesForQuerySubject(module, obj, candidates, exprs, types, idforExprs, oldQSId) {
  4589. var tp = obj.getObjectType();
  4590. var qs;
  4591. var oldQSIdforExpr;
  4592. if ("QuerySubject" == tp) {
  4593. qs = obj;
  4594. if (oldQSId != null) {
  4595. oldQSIdforExpr = oldQSId;
  4596. } else {
  4597. oldQSIdforExpr = qs.idForExpression;
  4598. }
  4599. } else if ("QueryItem" == tp || "Filter" == tp) {
  4600. qs = PropertySetter.getParentQuerySubject(obj);
  4601. oldQSIdforExpr = qs.idForExpression;
  4602. } else {
  4603. return;
  4604. }
  4605. if (oldQSIdforExpr == null) {
  4606. return;
  4607. }
  4608. for (var __i_enFor0 = 0, __exp_enFor0 = PropertySetter.getItemsWithQueryItemFilter(qs.basicGetItem()), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4609. var item = __exp_enFor0[__i_enFor0];
  4610. var qi = item.getQueryItem();
  4611. if (qi) {
  4612. if (qi === obj || !PropertySetter._objectWithExpr(qi.expression, qi.idForExpression)) {
  4613. continue;
  4614. }
  4615. candidates.push(qi);
  4616. exprs.push(qi.expression);
  4617. types.push("QueryItem");
  4618. idforExprs.push(qi.idForExpression);
  4619. } else {
  4620. var df = item.getFilter();
  4621. if (df === obj || PropertySetter._objectWithExpr(df.expression, df.idForExpression)) {
  4622. candidates.push(df);
  4623. exprs.push(df.expression);
  4624. types.push("QueryItem");
  4625. idforExprs.push(df.idForExpression);
  4626. }
  4627. }
  4628. }
  4629. var embeddedFilters = qs.basicGetFilter();
  4630. if (embeddedFilters) {
  4631. for (var __i_enFor1 = 0, __exp_enFor1 = embeddedFilters, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  4632. var ef = __exp_enFor1[__i_enFor1];
  4633. if (PropertySetter._objectWithExpr(ef.expression, ef.idForExpression)) {
  4634. candidates.push(ef);
  4635. exprs.push(ef.expression);
  4636. types.push("QueryItem");
  4637. idforExprs.push(ef.idForExpression);
  4638. }
  4639. }
  4640. }
  4641. var allQSs = module.basicGetQuerySubject();
  4642. if (allQSs) {
  4643. for (var __i_enFor2 = 0, __exp_enFor2 = allQSs, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  4644. var aQS = __exp_enFor2[__i_enFor2];
  4645. if (aQS === qs || !PropertySetter._hasReference(aQS, qs, oldQSIdforExpr)) {
  4646. continue;
  4647. }
  4648. for (var __i_enFor3 = 0, __exp_enFor3 = PropertySetter.getItemsWithQueryItemFilter(aQS.basicGetItem()), __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  4649. var item = __exp_enFor3[__i_enFor3];
  4650. var qi = item.getQueryItem();
  4651. if (qi && qi.regularAggregate != _RegularAggregateType2.default.CALCULATED && PropertySetter._objectWithExpr(qi.expression, qi.idForExpression)) {
  4652. candidates.push(qi);
  4653. exprs.push(qi.expression);
  4654. types.push("QueryItem");
  4655. idforExprs.push(qi.idForExpression);
  4656. }
  4657. }
  4658. }
  4659. }
  4660. var calcs = module.basicGetCalculation();
  4661. if (calcs) {
  4662. for (var __i_enFor4 = 0, __exp_enFor4 = calcs, __len_enFor4 = __exp_enFor4.length; __i_enFor4 < __len_enFor4; ++__i_enFor4) {
  4663. var c = __exp_enFor4[__i_enFor4];
  4664. if (PropertySetter._objectWithExpr(c.expression, c.idForExpression)) {
  4665. candidates.push(c);
  4666. exprs.push(c.expression);
  4667. types.push("Calculation");
  4668. idforExprs.push(c.idForExpression);
  4669. }
  4670. }
  4671. }
  4672. var filters = module.basicGetFilter();
  4673. if (filters) {
  4674. for (var __i_enFor5 = 0, __exp_enFor5 = filters, __len_enFor5 = __exp_enFor5.length; __i_enFor5 < __len_enFor5; ++__i_enFor5) {
  4675. var f = __exp_enFor5[__i_enFor5];
  4676. if (PropertySetter._objectWithExpr(f.expression, f.idForExpression)) {
  4677. candidates.push(f);
  4678. exprs.push(f.expression);
  4679. types.push("Filter");
  4680. idforExprs.push(f.idForExpression);
  4681. }
  4682. }
  4683. }
  4684. }
  4685. }, {
  4686. key: '_hasReference',
  4687. value: function _hasReference(aQS, qs, oldQSId) {
  4688. var refs = aQS.basicGetRef();
  4689. if (refs && refs.indexOf(oldQSId) > -1) {
  4690. return true;
  4691. }
  4692. var joinOp = aQS.getJoinOperation();
  4693. if (joinOp) {
  4694. refs = joinOp.basicGetQueryRef();
  4695. if (refs && refs.indexOf(oldQSId) > -1) {
  4696. return true;
  4697. }
  4698. }
  4699. return false;
  4700. }
  4701. }, {
  4702. key: 'buildSpec',
  4703. value: function buildSpec(oldIdForExpr, objType, newId, exprs, types, idforExprs) {
  4704. return "{" + PropertySetter._wrapQuote("moserFunctionType") + ":" + PropertySetter._wrapQuote("extractIdentifiers") + "," + PropertySetter._buildExpressions(exprs) + "," + PropertySetter._buildFeedback(oldIdForExpr, objType, newId, types, idforExprs) + "}";
  4705. }
  4706. }, {
  4707. key: '_buildExpressions',
  4708. value: function _buildExpressions(exprs) {
  4709. var sb1 = "";
  4710. for (var i = 0; i < exprs.length; ++i) {
  4711. if (i > 0) {
  4712. sb1 += ",";
  4713. }
  4714. sb1 += PropertySetter._wrapQuote(exprs[i]);
  4715. }
  4716. return PropertySetter._wrapQuote("expressions") + ":[" + sb1 + "]";
  4717. }
  4718. }, {
  4719. key: '_buildFeedback',
  4720. value: function _buildFeedback(oldIdForExpr, objType, newId, types, idforExprs) {
  4721. var sb1 = "";
  4722. for (var i = 0; i < idforExprs.length; ++i) {
  4723. if (i > 0) {
  4724. sb1 += ",";
  4725. }
  4726. sb1 += "{";
  4727. sb1 += PropertySetter._wrapSlashQuote("idForExpression");
  4728. sb1 += ":";
  4729. sb1 += PropertySetter._wrapSlashQuote(idforExprs[i]);
  4730. sb1 += ",";
  4731. sb1 += PropertySetter._wrapSlashQuote("type");
  4732. sb1 += ":";
  4733. sb1 += PropertySetter._wrapSlashQuote(types[i]);
  4734. sb1 += "}";
  4735. }
  4736. return PropertySetter._wrapQuote("feedback") + ":" + PropertySetter._wrapQuote("{" + PropertySetter._wrapSlashQuote("idForExpression") + ":" + PropertySetter._wrapSlashQuote(oldIdForExpr) + "," + PropertySetter._wrapSlashQuote("type") + ":" + PropertySetter._wrapSlashQuote(objType) + "," + PropertySetter._wrapSlashQuote("newIdentifier") + ":" + PropertySetter._wrapSlashQuote(newId) + "," + PropertySetter._wrapSlashQuote("expressions") + ":[" + sb1 + "]}");
  4737. }
  4738. }, {
  4739. key: '_wrapQuote',
  4740. value: function _wrapQuote(s) {
  4741. return "\"" + s + "\"";
  4742. }
  4743. }, {
  4744. key: '_wrapSlashQuote',
  4745. value: function _wrapSlashQuote(s) {
  4746. return "\\\"" + s + "\\\"";
  4747. }
  4748. }, {
  4749. key: 'cleanQuerySubjectItemNormalization',
  4750. value: function cleanQuerySubjectItemNormalization(qs, existingQI) {
  4751. var itemNorm = qs.itemNormalization;
  4752. if (!itemNorm) {
  4753. return false;
  4754. }
  4755. var grps = itemNorm.itemNormalizationGroup;
  4756. if (!grps || grps.length == 0) {
  4757. return false;
  4758. }
  4759. if (existingQI.length == 0) {
  4760. qs.itemNormalization = null;
  4761. return true;
  4762. }
  4763. var bChanged = false;
  4764. var lst = [];
  4765. for (var __i_enFor0 = 0, __exp_enFor0 = grps, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4766. var g = __exp_enFor0[__i_enFor0];
  4767. lst.push(g);
  4768. }
  4769. for (var __i_enFor1 = 0, __exp_enFor1 = lst, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  4770. var ag = __exp_enFor1[__i_enFor1];
  4771. var bDelGrp = false;
  4772. var attrs = ag.attribute;
  4773. var k = ag.key;
  4774. if (attrs && !(attrs.length == 0)) {
  4775. var sz = attrs.length;
  4776. for (var i = sz - 1; i >= 0; --i) {
  4777. if (!(existingQI.indexOf(attrs[i].itemRef) > -1)) {
  4778. bChanged = true;
  4779. attrs.splice(i, 1);
  4780. }
  4781. }
  4782. }
  4783. if (k) {
  4784. bDelGrp = !(existingQI.indexOf(k.itemRef) > -1);
  4785. } else {
  4786. bDelGrp = !attrs || attrs.length == 0;
  4787. }
  4788. if (bDelGrp) {
  4789. bChanged = true;
  4790. var gpId = ag.identifier;
  4791. var paranetGrps = ag.parentGroupRef;
  4792. var idx = grps.indexOf(ag);
  4793. if (idx >= 0) {
  4794. grps.splice(idx, 1);
  4795. }
  4796. for (var __i_enFor2 = 0, __exp_enFor2 = grps, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  4797. var otherGrp = __exp_enFor2[__i_enFor2];
  4798. var otherParanetGrps = otherGrp.parentGroupRef;
  4799. if (otherParanetGrps && !(otherParanetGrps.length == 0) && otherParanetGrps.indexOf(gpId) > -1) {
  4800. idx = otherParanetGrps.indexOf(gpId);
  4801. if (idx >= 0) {
  4802. otherParanetGrps.splice(idx, 1);
  4803. }
  4804. if (paranetGrps) {
  4805. for (var __i_enFor3 = 0, __exp_enFor3 = paranetGrps, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  4806. var sg = __exp_enFor3[__i_enFor3];
  4807. if (!(otherParanetGrps.indexOf(sg) > -1)) {
  4808. otherParanetGrps.push(sg);
  4809. }
  4810. }
  4811. }
  4812. }
  4813. }
  4814. }
  4815. }
  4816. if (grps.length == 0) {
  4817. bChanged = true;
  4818. qs.itemNormalization = null;
  4819. }
  4820. return bChanged;
  4821. }
  4822. /**
  4823. * add query item to item normalization.
  4824. * @param {QuerySubject} qs
  4825. * @param {QueryItem} queryItem
  4826. * @param {ObjectFactory} objectFactory
  4827. */
  4828. }, {
  4829. key: 'addQueryItemToItemNormalization',
  4830. value: function addQueryItemToItemNormalization(qs, queryItem, objectFactory) {
  4831. if (queryItem.hidden != null && queryItem.hidden) {
  4832. return;
  4833. }
  4834. if (!qs.itemNormalization) {
  4835. return;
  4836. }
  4837. if (!qs.itemNormalization.itemNormalizationGroup || qs.itemNormalization.itemNormalizationGroup.length == 0) {
  4838. return;
  4839. }
  4840. var jFunc = PropertySetter._getJSONFunctionDef(queryItem);
  4841. if (!jFunc) {
  4842. return;
  4843. }
  4844. if (_RegularAggregateType2.default.CALCULATED == queryItem.regularAggregate) {
  4845. return;
  4846. }
  4847. var pkGrp = PropertySetter._getSimplePrimaryKeyGroup(qs.itemNormalization.itemNormalizationGroup);
  4848. if (pkGrp) {
  4849. if (queryItem.identifier == pkGrp.key.itemRef) {
  4850. return;
  4851. }
  4852. if (pkGrp.attribute) {
  4853. for (var __i_enFor0 = 0, __exp_enFor0 = pkGrp.attribute, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4854. var attr = __exp_enFor0[__i_enFor0];
  4855. if (queryItem.identifier == attr.itemRef) {
  4856. return;
  4857. }
  4858. }
  4859. }
  4860. PropertySetter._addNewAttributeToGroup(objectFactory, pkGrp, queryItem);
  4861. } else {
  4862. var func = jFunc["func"];
  4863. var bGetIdsFromExpr = "customCalculation" == func;
  4864. if ("split" == func) {
  4865. var jP = PropertySetter._getJSONPropertyValue(queryItem, "_MUI_splitOrigin");
  4866. if (jP) {
  4867. jFunc = jP;
  4868. }
  4869. }
  4870. var allIds = {};
  4871. var idList = [];
  4872. if (!bGetIdsFromExpr) {
  4873. if (!PropertySetter._getIdsFromPropertyJSONValue(idList, allIds, jFunc, qs.getIdentifier())) {
  4874. return;
  4875. }
  4876. } else {
  4877. var ids = _ItemScanner2.default.collectIdentifiers(queryItem.getExpression());
  4878. for (var __i_enFor1 = 0, __exp_enFor1 = ids, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  4879. var id = __exp_enFor1[__i_enFor1];
  4880. if (!PropertySetter._addQueryItemIdParts(idList, id, allIds, qs.getIdentifier())) {
  4881. return;
  4882. }
  4883. }
  4884. }
  4885. if (idList.length == 0) {
  4886. return;
  4887. }
  4888. for (var __i_enFor2 = 0, __exp_enFor2 = qs.itemNormalization.itemNormalizationGroup, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  4889. var grp = __exp_enFor2[__i_enFor2];
  4890. var n = 0;
  4891. if (grp.key && grp.key.itemRef != null && allIds.hasOwnProperty(grp.key.itemRef)) {
  4892. n++;
  4893. }
  4894. if (grp.attribute && !(grp.attribute.length == 0)) {
  4895. for (var __i_enFor3 = 0, __exp_enFor3 = grp.attribute, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  4896. var a = __exp_enFor3[__i_enFor3];
  4897. if (a.itemRef != null && allIds.hasOwnProperty(a.itemRef)) {
  4898. n++;
  4899. }
  4900. }
  4901. }
  4902. if (n == idList.length) {
  4903. PropertySetter._addNewAttributeToGroup(objectFactory, grp, queryItem);
  4904. return;
  4905. }
  4906. }
  4907. }
  4908. }
  4909. /**
  4910. * add a new attribute to the group.
  4911. * @param {ObjectFactory} objectFactory
  4912. * @param {ItemNormalizationGroupType} pkGrp
  4913. * @param {QueryItem} queryItem
  4914. */
  4915. }, {
  4916. key: '_addNewAttributeToGroup',
  4917. value: function _addNewAttributeToGroup(objectFactory, pkGrp, queryItem) {
  4918. var newAttr = objectFactory.createItemNormalizationGroupTypeAttribute();
  4919. newAttr.itemRef = queryItem.identifier;
  4920. newAttr.sqlOperator = _SqlOperatorType2.default.MINIMUM;
  4921. pkGrp.addAttribute(newAttr);
  4922. }
  4923. }, {
  4924. key: '_getSimplePrimaryKeyGroup',
  4925. value: function _getSimplePrimaryKeyGroup(grps) {
  4926. if (grps.length == 1) {
  4927. var g = grps[0];
  4928. if (g.key && g.key.getKeyConstraint() == _KeyConstraintType2.default.UNIQUE) {
  4929. return g;
  4930. }
  4931. return null;
  4932. }
  4933. var pkGrp;
  4934. var idToGrp = {};
  4935. for (var __i_enFor0 = 0, __exp_enFor0 = grps, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  4936. var g = __exp_enFor0[__i_enFor0];
  4937. if (g.identifier == null) {
  4938. return null;
  4939. }
  4940. if (!g.key) {
  4941. return null;
  4942. }
  4943. if (g.key.getKeyConstraint() == _KeyConstraintType2.default.UNIQUE) {
  4944. if (g.parentGroupRef && !(g.parentGroupRef.length == 0) && g.key.getKeyComposition() == _KeyCompositionType2.default.INDEPENDENT) {
  4945. return null;
  4946. }
  4947. if (!pkGrp) {
  4948. pkGrp = g;
  4949. } else {
  4950. return null;
  4951. }
  4952. } else {
  4953. if (g.attribute && !(g.attribute.length == 0)) {
  4954. return null;
  4955. }
  4956. }
  4957. idToGrp[g.identifier] = g;
  4958. }
  4959. if (pkGrp) {
  4960. var nChain = 1;
  4961. var parentGrps = pkGrp.parentGroupRef;
  4962. while (parentGrps && !(parentGrps.length == 0)) {
  4963. if (parentGrps.length > 1) {
  4964. return null;
  4965. }
  4966. nChain++;
  4967. parentGrps = idToGrp[parentGrps[0]].parentGroupRef;
  4968. }
  4969. if (nChain != grps.length) {
  4970. return null;
  4971. }
  4972. }
  4973. return pkGrp;
  4974. }
  4975. /**
  4976. * get ids from JSON property value (defined by MUI).
  4977. * @param {Object} allIds return all Ids.
  4978. * @param {Object} jFunc JSON.
  4979. */
  4980. }, {
  4981. key: '_getIdsFromPropertyJSONValue',
  4982. value: function _getIdsFromPropertyJSONValue(idList, allIds, jFunc, qsId) {
  4983. if (!jFunc) {
  4984. return false;
  4985. }
  4986. var basedObjId = jFunc["basedOnMoserObjectId"];
  4987. if (basedObjId != null && !(basedObjId.length === 0)) {
  4988. if (!PropertySetter._addQueryItemId(idList, basedObjId, allIds, qsId)) {
  4989. return false;
  4990. }
  4991. }
  4992. var basedObj = jFunc["basedOnMoserObject"];
  4993. if (basedObj != null && !(basedObj.length === 0)) {
  4994. if (!PropertySetter._addQueryItemId(idList, basedObj, allIds, qsId)) {
  4995. return false;
  4996. }
  4997. }
  4998. var operands = jFunc["elementOperands"];
  4999. if (operands) {
  5000. for (var __i_enFor0 = 0, __exp_enFor0 = operands, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  5001. var o = __exp_enFor0[__i_enFor0];
  5002. var sId = o;
  5003. if (!(sId.length === 0)) {
  5004. if (!PropertySetter._addQueryItemId(idList, sId, allIds, qsId)) {
  5005. return false;
  5006. }
  5007. }
  5008. }
  5009. }
  5010. var orgId = jFunc["originalColumnIdentifier"];
  5011. if (orgId != null && !(orgId.length === 0)) {
  5012. if (!PropertySetter._addQueryItemId(idList, orgId, allIds, qsId)) {
  5013. return false;
  5014. }
  5015. }
  5016. return true;
  5017. }
  5018. }, {
  5019. key: '_addQueryItemId',
  5020. value: function _addQueryItemId(idList, basedObj, allIds, qsId) {
  5021. var parts = basedObj.split(new RegExp("\\."));
  5022. return PropertySetter._addQueryItemIdParts(idList, parts, allIds, qsId);
  5023. }
  5024. }, {
  5025. key: '_addQueryItemIdParts',
  5026. value: function _addQueryItemIdParts(idList, parts, allIds, qsId) {
  5027. if (parts.length == 1) {
  5028. if (!allIds.hasOwnProperty(parts[0])) {
  5029. allIds[parts[0]] = parts[0];
  5030. idList.push(parts[0]);
  5031. }
  5032. return true;
  5033. }
  5034. if (parts.length == 2) {
  5035. if (parts[0] == qsId) {
  5036. if (!allIds.hasOwnProperty(parts[1])) {
  5037. allIds[parts[1]] = parts[1];
  5038. idList.push(parts[1]);
  5039. }
  5040. return true;
  5041. }
  5042. }
  5043. return false;
  5044. }
  5045. }]);
  5046. return PropertySetter;
  5047. }(_BaseMoserObject3.default);
  5048. exports.default = PropertySetter;
  5049. /***/ },
  5050. /* 11 */
  5051. /***/ function(module, exports, __webpack_require__) {
  5052. "use strict";
  5053. Object.defineProperty(exports, "__esModule", {
  5054. value: true
  5055. });
  5056. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  5057. var _Enum2 = __webpack_require__(12);
  5058. var _Enum3 = _interopRequireDefault(_Enum2);
  5059. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5060. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  5061. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  5062. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  5063. ** IBM Confidential
  5064. **
  5065. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  5066. **
  5067. ** (C) Copyright IBM Corp. 2020
  5068. **
  5069. ** The source code for this program is not published or otherwise divested of its trade secrets,
  5070. ** irrespective of what has been deposited with the U.S. Copyright Office.
  5071. ************************************************************************/
  5072. // GENERATED
  5073. //@import Enum (loadtime) // superclass
  5074. /**
  5075. * <p>Java class for instanceType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="instanceType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="copy"/&gt; &lt;enumeration value="local"/&gt; &lt;enumeration value="missing"/&gt; &lt;enumeration value="reference"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  5076. */
  5077. var InstanceType = function (_Enum) {
  5078. _inherits(InstanceType, _Enum);
  5079. /**
  5080. * This instance is a reference of another instance. However, the referenced instance is missing. This value is a feedback message to client. Module that has metadata objects with missing instanceType is invalid. Saving an invalid module is not allowed.
  5081. */
  5082. /**
  5083. * This instance is a copy of another instance.
  5084. */
  5085. function InstanceType(v) {
  5086. _classCallCheck(this, InstanceType);
  5087. var _this = _possibleConstructorReturn(this, (InstanceType.__proto__ || Object.getPrototypeOf(InstanceType)).call(this, v));
  5088. _this.enumValue = null;
  5089. _this.enumValue = v;
  5090. return _this;
  5091. }
  5092. /**
  5093. * This instance is a reference of another instance.
  5094. */
  5095. /**
  5096. * This instance is defined locally.
  5097. */
  5098. _createClass(InstanceType, [{
  5099. key: "value",
  5100. value: function value() {
  5101. return this.enumValue;
  5102. }
  5103. }, {
  5104. key: "getResourceId",
  5105. value: function getResourceId() {
  5106. return "InstanceType" + "_" + this.value();
  5107. }
  5108. }], [{
  5109. key: "fromValue",
  5110. value: function fromValue(v) {
  5111. for (var i = 0; i < InstanceType.values().length; ++i) {
  5112. if (InstanceType.values()[i].enumValue == v) {
  5113. return InstanceType.values()[i];
  5114. }
  5115. }
  5116. throw new Error(v);
  5117. }
  5118. }]);
  5119. return InstanceType;
  5120. }(_Enum3.default);
  5121. InstanceType.COPY = InstanceType.newLiteral("copy");
  5122. InstanceType.LOCAL = InstanceType.newLiteral("local");
  5123. InstanceType.MISSING = InstanceType.newLiteral("missing");
  5124. InstanceType.REFERENCE = InstanceType.newLiteral("reference");
  5125. exports.default = InstanceType;
  5126. /***/ },
  5127. /* 12 */
  5128. /***/ function(module, exports) {
  5129. "use strict";
  5130. Object.defineProperty(exports, "__esModule", {
  5131. value: true
  5132. });
  5133. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  5134. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  5135. /************************************************************************
  5136. ** IBM Confidential
  5137. **
  5138. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  5139. **
  5140. ** (C) Copyright IBM Corp. 2012,2017
  5141. **
  5142. ** The source code for this program is not published or otherwise divested of its trade secrets,
  5143. ** irrespective of what has been deposited with the U.S. Copyright Office.
  5144. ************************************************************************/
  5145. // @import ../../../init/declare
  5146. /**
  5147. * This is the common base class of all enumeration types.
  5148. */
  5149. var Enum = function () {
  5150. /**
  5151. * Constructs a new enum.
  5152. * @param {String} name - the name of this enum constant.
  5153. */
  5154. function Enum(name) {
  5155. _classCallCheck(this, Enum);
  5156. this._name = null;
  5157. this._ordinal = null;
  5158. this._name = name;
  5159. }
  5160. /**
  5161. * Returns the name of this enum constant, exactly as declared in its enum declaration.
  5162. * @return the name of this enum constant
  5163. */
  5164. _createClass(Enum, [{
  5165. key: "name",
  5166. value: function name() {
  5167. return this._name;
  5168. }
  5169. /**
  5170. * Returns the ordinal of this enumeration constant.
  5171. * @return the ordinal of this enumeration constant
  5172. */
  5173. }, {
  5174. key: "ordinal",
  5175. value: function ordinal() {
  5176. return this._ordinal;
  5177. }
  5178. /**
  5179. * Compares this enum with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
  5180. * @param {Enum} other - the object to be compared.
  5181. * @return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
  5182. */
  5183. }, {
  5184. key: "compareTo",
  5185. value: function compareTo(other) {
  5186. if (this.constructor != other.constructor) {
  5187. throw new Error("ClassCastException: " + this.declaredClass + " is not the same as " + other.declaredClass);
  5188. }
  5189. return this._ordinal - other._ordinal;
  5190. }
  5191. /**
  5192. * Returns the name of this enum constant, as contained in the declaration.
  5193. * @return the name of this enum constant.
  5194. */
  5195. }, {
  5196. key: "toString",
  5197. value: function toString() {
  5198. return this._name;
  5199. }
  5200. /**
  5201. * Returns a hash code for this enum constant.
  5202. * @return a hash code for this enum constant.
  5203. */
  5204. }, {
  5205. key: "hashCode",
  5206. value: function hashCode() {
  5207. return 31 * this._ordinal;
  5208. }
  5209. /**
  5210. * Returns true if the specified object is equal to this enum constant.
  5211. * @param {Enum} obj - the object to be compared for equality with this object.
  5212. * @return true if the specified object is equal to this enum constant.
  5213. */
  5214. }, {
  5215. key: "equals",
  5216. value: function equals(obj) {
  5217. return this === obj;
  5218. }
  5219. /**
  5220. * Create a new enum literal
  5221. * @param {String} name - name of the new enum literal
  5222. * @return a enum literal
  5223. */
  5224. }], [{
  5225. key: "newLiteral",
  5226. value: function newLiteral(name) {
  5227. if (this._enumLiterals === undefined) {
  5228. Object.defineProperty(this, '_enumLiterals', {
  5229. value: [],
  5230. configurable: false,
  5231. writable: false,
  5232. enumerable: false
  5233. });
  5234. }
  5235. var literal = new this(name);
  5236. literal._ordinal = this._enumLiterals.length;
  5237. this._enumLiterals.push(literal);
  5238. return literal;
  5239. }
  5240. /**
  5241. * Returns the enum constant of the specified name.
  5242. * @param {String} name - the name of the enum constant
  5243. * @return the enum constant with the specified name
  5244. */
  5245. }, {
  5246. key: "valueOf",
  5247. value: function valueOf(name) {
  5248. var literals = this._enumLiterals;
  5249. if (literals) {
  5250. for (var i = 0; i < literals.length; ++i) {
  5251. if (literals[i].name() == name) {
  5252. return literals[i];
  5253. }
  5254. }
  5255. }
  5256. return null;
  5257. }
  5258. /**
  5259. * Return an array of enum constants.
  5260. * @return an array of enum constants.
  5261. */
  5262. }, {
  5263. key: "values",
  5264. value: function values() {
  5265. var literals = this._enumLiterals;
  5266. if (literals) {
  5267. return literals.slice();
  5268. }
  5269. return null;
  5270. }
  5271. }]);
  5272. return Enum;
  5273. }();
  5274. exports.default = Enum;
  5275. /***/ },
  5276. /* 13 */
  5277. /***/ function(module, exports, __webpack_require__) {
  5278. "use strict";
  5279. Object.defineProperty(exports, "__esModule", {
  5280. value: true
  5281. });
  5282. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  5283. var _Enum2 = __webpack_require__(12);
  5284. var _Enum3 = _interopRequireDefault(_Enum2);
  5285. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5286. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  5287. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  5288. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  5289. ** IBM Confidential
  5290. **
  5291. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  5292. **
  5293. ** (C) Copyright IBM Corp. 2020
  5294. **
  5295. ** The source code for this program is not published or otherwise divested of its trade secrets,
  5296. ** irrespective of what has been deposited with the U.S. Copyright Office.
  5297. ************************************************************************/
  5298. // GENERATED
  5299. //@import Enum (loadtime) // superclass
  5300. /**
  5301. * <p>Java class for keyConstraintType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="keyConstraintType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="unique"/&gt; &lt;enumeration value="repeating"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  5302. */
  5303. var KeyConstraintType = function (_Enum) {
  5304. _inherits(KeyConstraintType, _Enum);
  5305. function KeyConstraintType(v) {
  5306. _classCallCheck(this, KeyConstraintType);
  5307. var _this = _possibleConstructorReturn(this, (KeyConstraintType.__proto__ || Object.getPrototypeOf(KeyConstraintType)).call(this, v));
  5308. _this.enumValue = null;
  5309. _this.enumValue = v;
  5310. return _this;
  5311. }
  5312. _createClass(KeyConstraintType, [{
  5313. key: "value",
  5314. value: function value() {
  5315. return this.enumValue;
  5316. }
  5317. }, {
  5318. key: "getResourceId",
  5319. value: function getResourceId() {
  5320. return "KeyConstraintType" + "_" + this.value();
  5321. }
  5322. }], [{
  5323. key: "fromValue",
  5324. value: function fromValue(v) {
  5325. for (var i = 0; i < KeyConstraintType.values().length; ++i) {
  5326. if (KeyConstraintType.values()[i].enumValue == v) {
  5327. return KeyConstraintType.values()[i];
  5328. }
  5329. }
  5330. throw new Error(v);
  5331. }
  5332. }]);
  5333. return KeyConstraintType;
  5334. }(_Enum3.default);
  5335. KeyConstraintType.UNIQUE = KeyConstraintType.newLiteral("unique");
  5336. KeyConstraintType.REPEATING = KeyConstraintType.newLiteral("repeating");
  5337. exports.default = KeyConstraintType;
  5338. /***/ },
  5339. /* 14 */
  5340. /***/ function(module, exports, __webpack_require__) {
  5341. "use strict";
  5342. Object.defineProperty(exports, "__esModule", {
  5343. value: true
  5344. });
  5345. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  5346. var _Enum2 = __webpack_require__(12);
  5347. var _Enum3 = _interopRequireDefault(_Enum2);
  5348. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5349. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  5350. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  5351. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  5352. ** IBM Confidential
  5353. **
  5354. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  5355. **
  5356. ** (C) Copyright IBM Corp. 2020
  5357. **
  5358. ** The source code for this program is not published or otherwise divested of its trade secrets,
  5359. ** irrespective of what has been deposited with the U.S. Copyright Office.
  5360. ************************************************************************/
  5361. // GENERATED
  5362. //@import Enum (loadtime) // superclass
  5363. /**
  5364. * <p>Java class for keyCompositionType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="keyCompositionType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="useParent"/&gt; &lt;enumeration value="independent"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  5365. */
  5366. var KeyCompositionType = function (_Enum) {
  5367. _inherits(KeyCompositionType, _Enum);
  5368. function KeyCompositionType(v) {
  5369. _classCallCheck(this, KeyCompositionType);
  5370. var _this = _possibleConstructorReturn(this, (KeyCompositionType.__proto__ || Object.getPrototypeOf(KeyCompositionType)).call(this, v));
  5371. _this.enumValue = null;
  5372. _this.enumValue = v;
  5373. return _this;
  5374. }
  5375. _createClass(KeyCompositionType, [{
  5376. key: "value",
  5377. value: function value() {
  5378. return this.enumValue;
  5379. }
  5380. }, {
  5381. key: "getResourceId",
  5382. value: function getResourceId() {
  5383. return "KeyCompositionType" + "_" + this.value();
  5384. }
  5385. }], [{
  5386. key: "fromValue",
  5387. value: function fromValue(v) {
  5388. for (var i = 0; i < KeyCompositionType.values().length; ++i) {
  5389. if (KeyCompositionType.values()[i].enumValue == v) {
  5390. return KeyCompositionType.values()[i];
  5391. }
  5392. }
  5393. throw new Error(v);
  5394. }
  5395. }]);
  5396. return KeyCompositionType;
  5397. }(_Enum3.default);
  5398. KeyCompositionType.USE_PARENT = KeyCompositionType.newLiteral("useParent");
  5399. KeyCompositionType.INDEPENDENT = KeyCompositionType.newLiteral("independent");
  5400. exports.default = KeyCompositionType;
  5401. /***/ },
  5402. /* 15 */
  5403. /***/ function(module, exports, __webpack_require__) {
  5404. "use strict";
  5405. Object.defineProperty(exports, "__esModule", {
  5406. value: true
  5407. });
  5408. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  5409. var _Enum2 = __webpack_require__(12);
  5410. var _Enum3 = _interopRequireDefault(_Enum2);
  5411. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5412. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  5413. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  5414. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  5415. ** IBM Confidential
  5416. **
  5417. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  5418. **
  5419. ** (C) Copyright IBM Corp. 2020
  5420. **
  5421. ** The source code for this program is not published or otherwise divested of its trade secrets,
  5422. ** irrespective of what has been deposited with the U.S. Copyright Office.
  5423. ************************************************************************/
  5424. // GENERATED
  5425. //@import Enum (loadtime) // superclass
  5426. /**
  5427. * <p>Java class for highLevelDataType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="highLevelDataType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="boolean"/&gt; &lt;enumeration value="string"/&gt; &lt;enumeration value="integer"/&gt; &lt;enumeration value="decimal"/&gt; &lt;enumeration value="datetime"/&gt; &lt;enumeration value="time"/&gt; &lt;enumeration value="date"/&gt; &lt;enumeration value="interval"/&gt; &lt;enumeration value="array"/&gt; &lt;enumeration value="object"/&gt; &lt;enumeration value="period"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  5428. */
  5429. var HighLevelDataType = function (_Enum) {
  5430. _inherits(HighLevelDataType, _Enum);
  5431. function HighLevelDataType(v) {
  5432. _classCallCheck(this, HighLevelDataType);
  5433. var _this = _possibleConstructorReturn(this, (HighLevelDataType.__proto__ || Object.getPrototypeOf(HighLevelDataType)).call(this, v));
  5434. _this.enumValue = null;
  5435. _this.enumValue = v;
  5436. return _this;
  5437. }
  5438. _createClass(HighLevelDataType, [{
  5439. key: "value",
  5440. value: function value() {
  5441. return this.enumValue;
  5442. }
  5443. }, {
  5444. key: "getResourceId",
  5445. value: function getResourceId() {
  5446. return "HighLevelDataType" + "_" + this.value();
  5447. }
  5448. }], [{
  5449. key: "fromValue",
  5450. value: function fromValue(v) {
  5451. for (var i = 0; i < HighLevelDataType.values().length; ++i) {
  5452. if (HighLevelDataType.values()[i].enumValue == v) {
  5453. return HighLevelDataType.values()[i];
  5454. }
  5455. }
  5456. throw new Error(v);
  5457. }
  5458. }]);
  5459. return HighLevelDataType;
  5460. }(_Enum3.default);
  5461. HighLevelDataType.BOOLEAN = HighLevelDataType.newLiteral("boolean");
  5462. HighLevelDataType.STRING = HighLevelDataType.newLiteral("string");
  5463. HighLevelDataType.INTEGER = HighLevelDataType.newLiteral("integer");
  5464. HighLevelDataType.DECIMAL = HighLevelDataType.newLiteral("decimal");
  5465. HighLevelDataType.DATETIME = HighLevelDataType.newLiteral("datetime");
  5466. HighLevelDataType.TIME = HighLevelDataType.newLiteral("time");
  5467. HighLevelDataType.DATE = HighLevelDataType.newLiteral("date");
  5468. HighLevelDataType.INTERVAL = HighLevelDataType.newLiteral("interval");
  5469. HighLevelDataType.ARRAY = HighLevelDataType.newLiteral("array");
  5470. HighLevelDataType.OBJECT = HighLevelDataType.newLiteral("object");
  5471. HighLevelDataType.PERIOD = HighLevelDataType.newLiteral("period");
  5472. exports.default = HighLevelDataType;
  5473. /***/ },
  5474. /* 16 */
  5475. /***/ function(module, exports, __webpack_require__) {
  5476. 'use strict';
  5477. Object.defineProperty(exports, "__esModule", {
  5478. value: true
  5479. });
  5480. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  5481. var _StringUtils = __webpack_require__(17);
  5482. var _StringUtils2 = _interopRequireDefault(_StringUtils);
  5483. var _BaseMoserObject2 = __webpack_require__(2);
  5484. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  5485. var _V5QueryExpressionParserTokenValidator = __webpack_require__(19);
  5486. var _V5QueryExpressionParserTokenValidator2 = _interopRequireDefault(_V5QueryExpressionParserTokenValidator);
  5487. var _IdentifierUtil = __webpack_require__(20);
  5488. var _IdentifierUtil2 = _interopRequireDefault(_IdentifierUtil);
  5489. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  5490. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  5491. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  5492. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  5493. ** IBM Confidential
  5494. **
  5495. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  5496. **
  5497. ** (C) Copyright IBM Corp. 2020
  5498. **
  5499. ** The source code for this program is not published or otherwise divested of its trade secrets,
  5500. ** irrespective of what has been deposited with the U.S. Copyright Office.
  5501. ************************************************************************/
  5502. // GENERATED
  5503. //@import BaseMoserObject (loadtime) // superclass
  5504. //@import com/ibm/bi/platform/moser/common/utils/V5QueryExpressionParserTokenValidator (static) // isLetterOrDigit, isLetter
  5505. //@import com/ibm/bi/platform/moser/common/utils/IdentifierUtil (static) // isKeyword
  5506. /**
  5507. * item scanner.
  5508. * @author hex
  5509. */
  5510. var ItemScanner = function (_BaseMoserObject) {
  5511. _inherits(ItemScanner, _BaseMoserObject);
  5512. function ItemScanner() {
  5513. _classCallCheck(this, ItemScanner);
  5514. return _possibleConstructorReturn(this, (ItemScanner.__proto__ || Object.getPrototypeOf(ItemScanner)).apply(this, arguments));
  5515. }
  5516. _createClass(ItemScanner, null, [{
  5517. key: 'collectIdentifiers',
  5518. /**
  5519. * collect identifiers from expression.
  5520. * @param {String} expr expression.
  5521. * @return {Array} identifiers.
  5522. */
  5523. value: function collectIdentifiers(expr) {
  5524. var rtLst = [];
  5525. if (expr == null || expr.length === 0) {
  5526. return rtLst;
  5527. }
  5528. var length = expr.length;
  5529. var pos = 0;
  5530. while (pos < length) {
  5531. var aChar = expr.codePointAt(pos);
  5532. if (aChar == 35) {
  5533. pos = ItemScanner._skipMacro(expr, pos + 1);
  5534. } else if (aChar == 39) {
  5535. pos = ItemScanner._skipSingleQuoteString(expr, pos + 1);
  5536. } else if (aChar == 34) {
  5537. pos = ItemScanner._skipDoubleQuoteString(expr, pos + 1);
  5538. } else if (aChar == 63) {
  5539. pos = ItemScanner._skipPrompt(expr, pos + 1);
  5540. } else if (ItemScanner._isComment(expr, pos)) {
  5541. pos = ItemScanner._skipComment(expr, pos + 2);
  5542. } else if (ItemScanner._isMultiLineComment(expr, pos)) {
  5543. pos = ItemScanner._skipMultiLineComment(expr, pos + 2);
  5544. } else if (_V5QueryExpressionParserTokenValidator2.default.isLetter(aChar) || aChar == 95) {
  5545. var bvalid = [true];
  5546. var parts = [];
  5547. var nextpos = ItemScanner._skipIdentifier(expr, pos + 1, bvalid, parts);
  5548. if (bvalid[0] && !(parts.length == 0) && ItemScanner._isValidId(parts)) {
  5549. rtLst.push(ItemScanner._generateParts(parts));
  5550. }
  5551. pos = nextpos;
  5552. } else if (aChar == 91) {
  5553. var bvalid = [true];
  5554. var parts = [];
  5555. var nextpos = ItemScanner._skipBracketName(expr, pos + 1, bvalid, parts);
  5556. if (bvalid[0] && !(parts.length == 0)) {
  5557. rtLst.push(ItemScanner._generateParts(parts));
  5558. }
  5559. pos = nextpos;
  5560. } else {
  5561. ++pos;
  5562. }
  5563. }
  5564. return rtLst;
  5565. }
  5566. }, {
  5567. key: '_isValidId',
  5568. value: function _isValidId(parts) {
  5569. return parts.length != 1 || !_IdentifierUtil2.default.isKeyword(parts[0]);
  5570. }
  5571. }, {
  5572. key: '_generateParts',
  5573. value: function _generateParts(parts) {
  5574. var p = [];
  5575. for (var i = 0; i < parts.length; ++i) {
  5576. p[i] = parts[i];
  5577. }
  5578. return p;
  5579. }
  5580. /**
  5581. * generate identifier.
  5582. * @param {String} expr expression.
  5583. * @param {int} st start point.
  5584. * @param {int} end end point.
  5585. * @return {String} identifier.
  5586. */
  5587. }, {
  5588. key: '_generatePart',
  5589. value: function _generatePart(expr, st, end) {
  5590. var sb = "";
  5591. var length = expr.length;
  5592. for (var i = st; i < end && i < length; ++i) {
  5593. var c = expr.codePointAt(i);
  5594. sb += _StringUtils2.default.fromCodePoint(c);
  5595. }
  5596. return sb;
  5597. }
  5598. /**
  5599. * identifier?
  5600. * @param {String} expr expression.
  5601. * @param {int} st start point.
  5602. * @param {boolean[]} bvalid valid?
  5603. * @param {Array} parts parts.
  5604. * @return {int} next position.
  5605. */
  5606. }, {
  5607. key: '_skipIdentifier',
  5608. value: function _skipIdentifier(expr, st, bvalid, parts) {
  5609. var nextPos = ItemScanner._skipPart(expr, st);
  5610. var nextPosSkipWhiteSpec = ItemScanner._skipWhiteSpace(expr, nextPos);
  5611. var length = expr.length;
  5612. if (nextPosSkipWhiteSpec >= length) {
  5613. bvalid[0] = true;
  5614. parts.push(ItemScanner._generatePart(expr, st - 1, nextPos));
  5615. return nextPosSkipWhiteSpec;
  5616. }
  5617. var nextChar = expr.codePointAt(nextPosSkipWhiteSpec);
  5618. if (nextChar == 40) {
  5619. bvalid[0] = false;
  5620. return nextPosSkipWhiteSpec;
  5621. }
  5622. if (nextChar != 46) {
  5623. bvalid[0] = true;
  5624. parts.push(ItemScanner._generatePart(expr, st - 1, nextPos));
  5625. return nextPosSkipWhiteSpec;
  5626. }
  5627. var posAfterDot = ItemScanner._skipWhiteSpace(expr, nextPosSkipWhiteSpec + 1);
  5628. if (posAfterDot >= length) {
  5629. bvalid[0] = false;
  5630. return posAfterDot;
  5631. }
  5632. var nextnextChar = expr.codePointAt(posAfterDot);
  5633. if (!_V5QueryExpressionParserTokenValidator2.default.isLetter(nextnextChar) && nextnextChar != 95) {
  5634. bvalid[0] = false;
  5635. return posAfterDot;
  5636. }
  5637. parts.push(ItemScanner._generatePart(expr, st - 1, nextPos));
  5638. return ItemScanner._skipIdentifier(expr, posAfterDot + 1, bvalid, parts);
  5639. }
  5640. /**
  5641. * V5 ?
  5642. * @param {String} expr expression.
  5643. * @param {int} st start point.
  5644. * @param {boolean[]} bvalid valid?
  5645. * @param {Array} parts parts.
  5646. * @return {int} next position.
  5647. */
  5648. }, {
  5649. key: '_skipBracketName',
  5650. value: function _skipBracketName(expr, st, bvalid, parts) {
  5651. var nextPos = ItemScanner._skipBracketPart(expr, st);
  5652. var nextPosSkipWhiteSpec = ItemScanner._skipWhiteSpace(expr, nextPos);
  5653. var length = expr.length;
  5654. if (nextPosSkipWhiteSpec >= length) {
  5655. bvalid[0] = true;
  5656. parts.push(ItemScanner._generatePart(expr, st - 1, nextPos));
  5657. return nextPosSkipWhiteSpec;
  5658. }
  5659. var nextChar = expr.codePointAt(nextPosSkipWhiteSpec);
  5660. if (nextChar == 40) {
  5661. bvalid[0] = false;
  5662. return nextPosSkipWhiteSpec;
  5663. }
  5664. if (nextChar != 46) {
  5665. bvalid[0] = true;
  5666. parts.push(ItemScanner._generatePart(expr, st - 1, nextPos));
  5667. return nextPosSkipWhiteSpec;
  5668. }
  5669. var posAfterDot = ItemScanner._skipWhiteSpace(expr, nextPosSkipWhiteSpec + 1);
  5670. if (posAfterDot >= length) {
  5671. bvalid[0] = false;
  5672. return posAfterDot;
  5673. }
  5674. var nextnextChar = expr.codePointAt(posAfterDot);
  5675. if (nextnextChar != 91) {
  5676. bvalid[0] = false;
  5677. return posAfterDot;
  5678. }
  5679. parts.push(ItemScanner._generatePart(expr, st - 1, nextPos));
  5680. return ItemScanner._skipBracketName(expr, posAfterDot + 1, bvalid, parts);
  5681. }
  5682. }, {
  5683. key: '_skipWhiteSpace',
  5684. value: function _skipWhiteSpace(expr, st) {
  5685. var length = expr.length;
  5686. var pos = st;
  5687. while (pos < length) {
  5688. var aChar = expr.codePointAt(pos);
  5689. if (ItemScanner._isWhiteSpace(aChar)) {
  5690. ++pos;
  5691. } else {
  5692. break;
  5693. }
  5694. }
  5695. return pos;
  5696. }
  5697. /**
  5698. * skip part.
  5699. * @param {String} expr expression.
  5700. * @param {int} st start point.
  5701. * @return {int} next position.
  5702. */
  5703. }, {
  5704. key: '_skipPart',
  5705. value: function _skipPart(expr, st) {
  5706. var length = expr.length;
  5707. var pos = st;
  5708. while (pos < length) {
  5709. var c = expr.codePointAt(pos);
  5710. if (_V5QueryExpressionParserTokenValidator2.default.isLetterOrDigit(c) || c == 95) {
  5711. ++pos;
  5712. } else {
  5713. break;
  5714. }
  5715. }
  5716. return pos;
  5717. }
  5718. /**
  5719. * skip bracket part.
  5720. * @param {String} expr expression.
  5721. * @param {int} st start point.
  5722. * @return {int} next position.
  5723. */
  5724. }, {
  5725. key: '_skipBracketPart',
  5726. value: function _skipBracketPart(expr, st) {
  5727. var length = expr.length;
  5728. var pos = st;
  5729. while (pos < length) {
  5730. var aChar = expr.codePointAt(pos);
  5731. if (aChar == 93) {
  5732. if (pos == length - 1) {
  5733. return length;
  5734. }
  5735. var nextPos = pos + 1;
  5736. if (nextPos < length && expr.codePointAt(nextPos) == 93) {
  5737. pos = nextPos + 1;
  5738. continue;
  5739. }
  5740. return nextPos;
  5741. }
  5742. ++pos;
  5743. }
  5744. return pos;
  5745. }
  5746. /**
  5747. * white space?
  5748. * @param {int} c char.
  5749. * @return {boolean} t/f.
  5750. */
  5751. }, {
  5752. key: '_isWhiteSpace',
  5753. value: function _isWhiteSpace(c) {
  5754. return c == 32 || c == 9 || c == 10 || c == 13;
  5755. }
  5756. /**
  5757. * skip macro block.
  5758. * @param {String} expr expression.
  5759. * @param {int} st start point.
  5760. * @return {int} position after macro.
  5761. */
  5762. }, {
  5763. key: '_skipMacro',
  5764. value: function _skipMacro(expr, st) {
  5765. var length = expr.length;
  5766. var pos = st;
  5767. while (pos < length) {
  5768. var aChar = expr.codePointAt(pos);
  5769. if (aChar == 35) {
  5770. return ++pos;
  5771. }
  5772. if (aChar == 39) {
  5773. pos = ItemScanner._skipSingleQuoteString(expr, pos + 1);
  5774. } else if (aChar == 34) {
  5775. pos = ItemScanner._skipDoubleQuoteString(expr, pos + 1);
  5776. } else if (aChar == 63) {
  5777. pos = ItemScanner._skipPrompt(expr, pos + 1);
  5778. } else if (ItemScanner._isComment(expr, pos)) {
  5779. pos = ItemScanner._skipComment(expr, pos + 2);
  5780. } else if (ItemScanner._isMultiLineComment(expr, pos)) {
  5781. pos = ItemScanner._skipMultiLineComment(expr, pos + 2);
  5782. } else {
  5783. ++pos;
  5784. }
  5785. }
  5786. return pos;
  5787. }
  5788. /**
  5789. * is comment?
  5790. * @param {String} expr expression.
  5791. * @param {int} st start point.
  5792. * @return {boolean} t/f.
  5793. */
  5794. }, {
  5795. key: '_isComment',
  5796. value: function _isComment(expr, st) {
  5797. var length = expr.length;
  5798. if (st + 1 < length) {
  5799. var firstChar = expr.codePointAt(st);
  5800. var secondChar = expr.codePointAt(st + 1);
  5801. return firstChar == 47 && secondChar == 47 || firstChar == 45 && secondChar == 45;
  5802. }
  5803. return false;
  5804. }
  5805. /**
  5806. * is multi line comment?
  5807. * @param {String} expr expression.
  5808. * @param {int} st start point.
  5809. * @return {boolean} t/f.
  5810. */
  5811. }, {
  5812. key: '_isMultiLineComment',
  5813. value: function _isMultiLineComment(expr, st) {
  5814. var length = expr.length;
  5815. if (st + 1 < length) {
  5816. var firstChar = expr.codePointAt(st);
  5817. var secondChar = expr.codePointAt(st + 1);
  5818. return firstChar == 47 && secondChar == 42;
  5819. }
  5820. return false;
  5821. }
  5822. /**
  5823. * skip single quote string.
  5824. * @param {String} expr expression.
  5825. * @param {int} st start point.
  5826. * @return {int} position after single quote string.
  5827. */
  5828. }, {
  5829. key: '_skipSingleQuoteString',
  5830. value: function _skipSingleQuoteString(expr, st) {
  5831. var length = expr.length;
  5832. var pos = st;
  5833. while (pos < length) {
  5834. var aChar = expr.codePointAt(pos);
  5835. if (aChar == 39) {
  5836. if (pos == length - 1) {
  5837. return length;
  5838. }
  5839. var nextPos = pos + 1;
  5840. if (nextPos < length && expr.codePointAt(nextPos) == 39) {
  5841. pos = nextPos + 1;
  5842. continue;
  5843. }
  5844. return nextPos;
  5845. }
  5846. ++pos;
  5847. }
  5848. return pos;
  5849. }
  5850. /**
  5851. * skip double quote string.
  5852. * @param {String} expr expression.
  5853. * @param {int} st start point.
  5854. * @return {int} position after double quote string.
  5855. */
  5856. }, {
  5857. key: '_skipDoubleQuoteString',
  5858. value: function _skipDoubleQuoteString(expr, st) {
  5859. var length = expr.length;
  5860. var pos = st;
  5861. while (pos < length) {
  5862. var aChar = expr.codePointAt(pos);
  5863. if (aChar == 34) {
  5864. if (pos == length - 1) {
  5865. return length;
  5866. }
  5867. var nextPos = pos + 1;
  5868. if (nextPos < length && expr.codePointAt(nextPos) == 34) {
  5869. pos = nextPos + 1;
  5870. continue;
  5871. }
  5872. return nextPos;
  5873. }
  5874. ++pos;
  5875. }
  5876. return pos;
  5877. }
  5878. /**
  5879. * skip prompt.
  5880. * @param {String} expr expression.
  5881. * @param {int} st start point.
  5882. * @return {int} position after prompt.
  5883. */
  5884. }, {
  5885. key: '_skipPrompt',
  5886. value: function _skipPrompt(expr, st) {
  5887. var length = expr.length;
  5888. var pos = st;
  5889. while (pos < length) {
  5890. var aChar = expr.codePointAt(pos);
  5891. if (aChar == 63) {
  5892. return ++pos;
  5893. }
  5894. ++pos;
  5895. }
  5896. return pos;
  5897. }
  5898. /**
  5899. * skip comment.
  5900. * @param {String} expr expression.
  5901. * @param {int} st start point.
  5902. * @return {int} position after comment.
  5903. */
  5904. }, {
  5905. key: '_skipComment',
  5906. value: function _skipComment(expr, st) {
  5907. var length = expr.length;
  5908. var pos = st;
  5909. while (pos < length) {
  5910. var aChar = expr.codePointAt(pos);
  5911. if (aChar == 10 || aChar == 13) {
  5912. return ++pos;
  5913. }
  5914. ++pos;
  5915. }
  5916. return pos;
  5917. }
  5918. /**
  5919. * skip multi line comment.
  5920. * @param {String} expr expression.
  5921. * @param {int} st start point.
  5922. * @return {int} position after multi line comment.
  5923. */
  5924. }, {
  5925. key: '_skipMultiLineComment',
  5926. value: function _skipMultiLineComment(expr, st) {
  5927. var length = expr.length;
  5928. var pos = st;
  5929. while (pos < length) {
  5930. var aChar = expr.codePointAt(pos);
  5931. if (aChar == 42) {
  5932. var nextPos = pos + 1;
  5933. if (nextPos < length && expr.codePointAt(nextPos) == 47) {
  5934. return ++nextPos;
  5935. }
  5936. }
  5937. ++pos;
  5938. }
  5939. return pos;
  5940. }
  5941. }, {
  5942. key: 'replaceIdForExpr',
  5943. value: function replaceIdForExpr(targetObjType, expr, targetIdforExpr, srcObjType, oldSrcId, newSrcId) {
  5944. if (expr == null || expr.length === 0) {
  5945. return null;
  5946. }
  5947. var bChanged = false;
  5948. var sb = "";
  5949. var srcParts = oldSrcId.split(new RegExp("\\."));
  5950. var length = expr.length;
  5951. var pos = 0;
  5952. while (pos < length) {
  5953. var aChar = expr.codePointAt(pos);
  5954. var oldPos = pos;
  5955. if (aChar == 35) {
  5956. pos = ItemScanner._skipMacro(expr, pos + 1);
  5957. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5958. } else if (aChar == 39) {
  5959. pos = ItemScanner._skipSingleQuoteString(expr, pos + 1);
  5960. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5961. } else if (aChar == 34) {
  5962. pos = ItemScanner._skipDoubleQuoteString(expr, pos + 1);
  5963. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5964. } else if (aChar == 63) {
  5965. pos = ItemScanner._skipPrompt(expr, pos + 1);
  5966. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5967. } else if (ItemScanner._isComment(expr, pos)) {
  5968. pos = ItemScanner._skipComment(expr, pos + 2);
  5969. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5970. } else if (ItemScanner._isMultiLineComment(expr, pos)) {
  5971. pos = ItemScanner._skipMultiLineComment(expr, pos + 2);
  5972. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5973. } else if (_V5QueryExpressionParserTokenValidator2.default.isLetter(aChar) || aChar == 95) {
  5974. var bvalid = [true];
  5975. var parts = [];
  5976. var nextpos = ItemScanner._skipIdentifier(expr, pos + 1, bvalid, parts);
  5977. var b = false;
  5978. if (bvalid[0] && !(parts.length == 0) && ItemScanner._isValidId(parts)) {
  5979. var newPart = ItemScanner._matchOp(parts, targetObjType, srcParts, srcObjType, newSrcId, false, targetIdforExpr);
  5980. if (newPart != null) {
  5981. sb += newPart;
  5982. bChanged = true;
  5983. b = true;
  5984. var st = ItemScanner._getWhiteSpace(expr, nextpos - 1);
  5985. if (st >= 0) {
  5986. sb += ItemScanner._generatePart(expr, st, nextpos);
  5987. }
  5988. }
  5989. }
  5990. pos = nextpos;
  5991. if (!b) {
  5992. sb += ItemScanner._generatePart(expr, oldPos, pos);
  5993. }
  5994. } else if (aChar == 91) {
  5995. var bvalid = [true];
  5996. var parts = [];
  5997. var nextpos = ItemScanner._skipBracketName(expr, pos + 1, bvalid, parts);
  5998. var b = false;
  5999. if (bvalid[0] && !(parts.length == 0)) {
  6000. var newPart = ItemScanner._matchOp(parts, targetObjType, srcParts, srcObjType, newSrcId, true, targetIdforExpr);
  6001. if (newPart != null) {
  6002. sb += newPart;
  6003. bChanged = true;
  6004. b = true;
  6005. var st = ItemScanner._getWhiteSpace(expr, nextpos - 1);
  6006. if (st >= 0) {
  6007. sb += ItemScanner._generatePart(expr, st, nextpos);
  6008. }
  6009. }
  6010. }
  6011. pos = nextpos;
  6012. if (!b) {
  6013. sb += ItemScanner._generatePart(expr, oldPos, pos);
  6014. }
  6015. } else {
  6016. ++pos;
  6017. sb += ItemScanner._generatePart(expr, oldPos, pos);
  6018. }
  6019. }
  6020. if (!bChanged) {
  6021. return null;
  6022. }
  6023. return sb;
  6024. }
  6025. }, {
  6026. key: '_getWhiteSpace',
  6027. value: function _getWhiteSpace(expr, lastPos) {
  6028. var st = -1;
  6029. for (var i = lastPos; i >= 0; --i) {
  6030. var aChar = expr.codePointAt(i);
  6031. if (!ItemScanner._isWhiteSpace(aChar)) {
  6032. break;
  6033. }
  6034. st = i;
  6035. }
  6036. return st;
  6037. }
  6038. }, {
  6039. key: '_matchOp',
  6040. value: function _matchOp(parts, targetObjType, srcParts, srcObjType, newSrcId, bBracket, targetIdforExpr) {
  6041. if ("Calculation" == srcObjType) {
  6042. if (!("Calculation" == targetObjType) && !("Filter" == targetObjType)) {
  6043. return null;
  6044. }
  6045. return ItemScanner._matchGlobalCalcFilter(srcParts, parts, newSrcId, bBracket);
  6046. }
  6047. if ("QuerySubject" == srcObjType) {
  6048. if (!("Calculation" == targetObjType) && !("Filter" == targetObjType) && !("QueryItem" == targetObjType)) {
  6049. return null;
  6050. }
  6051. return ItemScanner._matchQuerySubject(srcParts, parts, newSrcId, bBracket);
  6052. }
  6053. if ("QueryItem" == srcObjType) {
  6054. if (!("Calculation" == targetObjType) && !("Filter" == targetObjType) && !("QueryItem" == targetObjType)) {
  6055. return null;
  6056. }
  6057. return ItemScanner._matchQueryItem(srcParts, parts, newSrcId, bBracket, targetObjType, targetIdforExpr);
  6058. }
  6059. return null;
  6060. }
  6061. }, {
  6062. key: '_matchGlobalCalcFilter',
  6063. value: function _matchGlobalCalcFilter(srcParts, targetParts, newSrcId, bBracket) {
  6064. if (srcParts.length != 1 || targetParts.length != 1) {
  6065. return null;
  6066. }
  6067. var target = targetParts[0];
  6068. if (bBracket) {
  6069. target = target.substring(1, target.length - 1);
  6070. }
  6071. if (srcParts[0] == target) {
  6072. if (bBracket) {
  6073. return "[" + newSrcId + "]";
  6074. }
  6075. return newSrcId;
  6076. }
  6077. return null;
  6078. }
  6079. }, {
  6080. key: '_matchQuerySubject',
  6081. value: function _matchQuerySubject(srcParts, targetParts, newSrcId, bBracket) {
  6082. if (srcParts.length != 1 || targetParts.length == 0) {
  6083. return null;
  6084. }
  6085. if (targetParts.length == 1) {
  6086. var target = targetParts[0];
  6087. if (bBracket) {
  6088. target = target.substring(1, target.length - 1);
  6089. var parts = target.split(new RegExp("\\."));
  6090. if (parts.length > 1 && srcParts[0] == parts[0]) {
  6091. parts[0] = newSrcId;
  6092. return "[" + ItemScanner._generateIdFromParts(parts, 0) + "]";
  6093. }
  6094. }
  6095. } else {
  6096. var parts = ItemScanner._generateParts(targetParts);
  6097. if (parts.length > 1) {
  6098. if (bBracket) {
  6099. var p = "[" + srcParts[0] + "]";
  6100. if (p == parts[0]) {
  6101. parts[0] = "[" + newSrcId + "]";
  6102. return ItemScanner._generateIdFromParts(parts, 0);
  6103. }
  6104. } else {
  6105. if (srcParts[0] == parts[0]) {
  6106. parts[0] = newSrcId;
  6107. return ItemScanner._generateIdFromParts(parts, 0);
  6108. }
  6109. }
  6110. }
  6111. }
  6112. return null;
  6113. }
  6114. }, {
  6115. key: '_matchQueryItem',
  6116. value: function _matchQueryItem(srcParts, targetParts, newSrcId, bBracket, targetObjType, targetIdforExpr) {
  6117. if (srcParts.length < 2) {
  6118. return null;
  6119. }
  6120. if ("Calculation" == targetObjType || "Filter" == targetObjType) {
  6121. return ItemScanner._matchQueryItemByIdForExpr(srcParts, targetParts, newSrcId, bBracket);
  6122. }
  6123. if ("QueryItem" == targetObjType) {
  6124. var targetQIParts = targetIdforExpr.split(new RegExp("\\."));
  6125. if (!(srcParts[0] == targetQIParts[0])) {
  6126. return ItemScanner._matchQueryItemByIdForExpr(srcParts, targetParts, newSrcId, bBracket);
  6127. }
  6128. var tParts = ItemScanner._generateParts(targetParts);
  6129. var target = tParts[0];
  6130. if (bBracket) {
  6131. target = target.substring(1, target.length - 1);
  6132. }
  6133. if (!(srcParts[0] == target) && ItemScanner._partsEquals(srcParts, tParts, bBracket, 1)) {
  6134. var parts = newSrcId.split(new RegExp("\\."));
  6135. if (bBracket) {
  6136. for (var i = 0; i < parts.length; ++i) {
  6137. parts[i] = "[" + parts[i] + "]";
  6138. }
  6139. }
  6140. return ItemScanner._generateIdFromParts(parts, 1);
  6141. }
  6142. return ItemScanner._matchQueryItemByIdForExpr(srcParts, targetParts, newSrcId, bBracket);
  6143. }
  6144. return null;
  6145. }
  6146. }, {
  6147. key: '_matchQueryItemByIdForExpr',
  6148. value: function _matchQueryItemByIdForExpr(srcParts, targetParts, newSrcId, bBracket) {
  6149. if (targetParts.length == 1) {
  6150. if (bBracket) {
  6151. var target = targetParts[0];
  6152. target = target.substring(1, target.length - 1);
  6153. var parts = target.split(new RegExp("\\."));
  6154. if (ItemScanner._partsEquals(srcParts, parts, false, 0)) {
  6155. return "[" + newSrcId + "]";
  6156. }
  6157. }
  6158. } else {
  6159. var tParts = ItemScanner._generateParts(targetParts);
  6160. if (ItemScanner._partsEquals(srcParts, tParts, bBracket, 0)) {
  6161. if (bBracket) {
  6162. var parts = newSrcId.split(new RegExp("\\."));
  6163. for (var i = 0; i < parts.length; ++i) {
  6164. parts[i] = "[" + parts[i] + "]";
  6165. }
  6166. return ItemScanner._generateIdFromParts(parts, 0);
  6167. }
  6168. return newSrcId;
  6169. }
  6170. }
  6171. return null;
  6172. }
  6173. }, {
  6174. key: '_generateIdFromParts',
  6175. value: function _generateIdFromParts(parts, st) {
  6176. var sb = "";
  6177. for (var i = st; i < parts.length; ++i) {
  6178. if (i != st) {
  6179. sb += ".";
  6180. }
  6181. sb += parts[i];
  6182. }
  6183. return sb;
  6184. }
  6185. }, {
  6186. key: '_partsEquals',
  6187. value: function _partsEquals(srcParts, parts, bBracket, st) {
  6188. var srcLength = srcParts.length - st;
  6189. if (srcLength <= 0 || srcLength != parts.length) {
  6190. return false;
  6191. }
  6192. for (var i = st, j = 0; i < srcParts.length; i++, j++) {
  6193. var target = parts[j];
  6194. if (bBracket) {
  6195. target = target.substring(1, target.length - 1);
  6196. }
  6197. if (!(srcParts[i] == target)) {
  6198. return false;
  6199. }
  6200. }
  6201. return true;
  6202. }
  6203. /**
  6204. * Constructor.
  6205. */
  6206. //constructor()
  6207. }]);
  6208. return ItemScanner;
  6209. }(_BaseMoserObject3.default);
  6210. exports.default = ItemScanner;
  6211. /***/ },
  6212. /* 17 */
  6213. /***/ function(module, exports, __webpack_require__) {
  6214. 'use strict';
  6215. Object.defineProperty(exports, "__esModule", {
  6216. value: true
  6217. });
  6218. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /************************************************************************
  6219. ** IBM Confidential
  6220. **
  6221. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6222. **
  6223. ** (C) Copyright IBM Corp. 2017
  6224. **
  6225. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6226. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6227. ************************************************************************/
  6228. var _CodePointIterator = __webpack_require__(18);
  6229. var _CodePointIterator2 = _interopRequireDefault(_CodePointIterator);
  6230. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6231. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6232. var StringUtils = function () {
  6233. function StringUtils() {
  6234. _classCallCheck(this, StringUtils);
  6235. }
  6236. _createClass(StringUtils, null, [{
  6237. key: 'getCodePoints',
  6238. /**
  6239. * This method is used to properly translate String.codePoints()
  6240. */
  6241. value: function getCodePoints(str) {
  6242. return new _CodePointIterator2.default(str);
  6243. }
  6244. /**
  6245. * return a String from a unicode codePoint
  6246. * @param {int} codePoint
  6247. */
  6248. }, {
  6249. key: 'fromCodePoint',
  6250. value: function fromCodePoint(codePoint) {
  6251. if (codePoint <= 0xFFFF) {
  6252. return String.fromCharCode(codePoint);
  6253. } else {
  6254. // calculate the low and high surrogate
  6255. // from CodePointIterator:
  6256. // codePoint = (first - 0xD800) * 0x400 + (second - 0xDC00) + 0x10000;
  6257. codePoint -= 0x10000;
  6258. var first = (codePoint >> 10 /* "/ 0x400"" */) + 0xD800;
  6259. var second = (codePoint & 0x3FF) + 0xDC00;
  6260. return String.fromCharCode(first, second);
  6261. }
  6262. }
  6263. }]);
  6264. return StringUtils;
  6265. }();
  6266. exports.default = StringUtils;
  6267. /***/ },
  6268. /* 18 */
  6269. /***/ function(module, exports) {
  6270. "use strict";
  6271. Object.defineProperty(exports, "__esModule", {
  6272. value: true
  6273. });
  6274. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6275. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6276. /************************************************************************
  6277. ** IBM Confidential
  6278. **
  6279. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6280. **
  6281. ** (C) Copyright IBM Corp. 2017, 2020
  6282. **
  6283. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6284. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6285. ************************************************************************/
  6286. /**
  6287. * This class is used to properly translate String.codePoints()
  6288. */
  6289. var CodePointIterator = function () {
  6290. function CodePointIterator(str) {
  6291. _classCallCheck(this, CodePointIterator);
  6292. this._str = "";
  6293. this._cur = 0;
  6294. this._str = str;
  6295. }
  6296. _createClass(CodePointIterator, [{
  6297. key: "iterator",
  6298. value: function iterator() {
  6299. return this;
  6300. }
  6301. }, {
  6302. key: "hasNext",
  6303. value: function hasNext() {
  6304. return this._cur < this._str.length;
  6305. }
  6306. }, {
  6307. key: "nextInt",
  6308. value: function nextInt() {
  6309. if (this._cur >= this._str.length) {
  6310. return undefined;
  6311. }
  6312. // Get the first code unit
  6313. var first = this._str.charCodeAt(this._cur++);
  6314. // check if it's the start of a surrogate pair
  6315. if (first >= 0xD800 && first <= 0xDBFF && // high surrogate
  6316. this._cur < this._str.length) // there is a next code unit
  6317. {
  6318. var second = this._str.charCodeAt(this._cur);
  6319. if (second >= 0xDC00 && second <= 0xDFFF) {
  6320. // low surrogate
  6321. this._cur++;
  6322. return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
  6323. }
  6324. }
  6325. return first;
  6326. }
  6327. }]);
  6328. return CodePointIterator;
  6329. }();
  6330. exports.default = CodePointIterator;
  6331. /***/ },
  6332. /* 19 */
  6333. /***/ function(module, exports, __webpack_require__) {
  6334. 'use strict';
  6335. Object.defineProperty(exports, "__esModule", {
  6336. value: true
  6337. });
  6338. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6339. var _BaseMoserObject2 = __webpack_require__(2);
  6340. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  6341. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6342. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6343. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6344. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  6345. ** IBM Confidential
  6346. **
  6347. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6348. **
  6349. ** (C) Copyright IBM Corp. 2020
  6350. **
  6351. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6352. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6353. ************************************************************************/
  6354. // GENERATED
  6355. //@import BaseMoserObject (loadtime) // superclass
  6356. /**
  6357. * @author nbalaba
  6358. */
  6359. var V5QueryExpressionParserTokenValidator = function (_BaseMoserObject) {
  6360. _inherits(V5QueryExpressionParserTokenValidator, _BaseMoserObject);
  6361. function V5QueryExpressionParserTokenValidator() {
  6362. _classCallCheck(this, V5QueryExpressionParserTokenValidator);
  6363. return _possibleConstructorReturn(this, (V5QueryExpressionParserTokenValidator.__proto__ || Object.getPrototypeOf(V5QueryExpressionParserTokenValidator)).apply(this, arguments));
  6364. }
  6365. _createClass(V5QueryExpressionParserTokenValidator, null, [{
  6366. key: 'isLetter',
  6367. value: function isLetter(c) {
  6368. return V5QueryExpressionParserTokenValidator._findRange(c, V5QueryExpressionParserTokenValidator.unicodeLetterRange);
  6369. }
  6370. }, {
  6371. key: 'isDigit',
  6372. value: function isDigit(c) {
  6373. return V5QueryExpressionParserTokenValidator._findRange(c, V5QueryExpressionParserTokenValidator.unicodeDigitRange);
  6374. }
  6375. }, {
  6376. key: 'isLetterOrDigit',
  6377. value: function isLetterOrDigit(c) {
  6378. return V5QueryExpressionParserTokenValidator.isLetter(c) || V5QueryExpressionParserTokenValidator.isDigit(c);
  6379. }
  6380. }, {
  6381. key: '_findRange',
  6382. value: function _findRange(c, ranges) {
  6383. var startIndex = 0;
  6384. var endIndex = ranges.length - 1;
  6385. do {
  6386. var midIndex = Math.floor(startIndex + endIndex, 2);
  6387. if (c >= ranges[midIndex][0] && c <= ranges[midIndex][1]) {
  6388. return true;
  6389. }
  6390. if (c > ranges[midIndex][1]) {
  6391. startIndex = midIndex + 1;
  6392. } else {
  6393. endIndex = midIndex - 1;
  6394. }
  6395. } while (startIndex <= endIndex);
  6396. return false;
  6397. }
  6398. /**
  6399. * Constructor
  6400. */
  6401. //constructor()
  6402. }]);
  6403. return V5QueryExpressionParserTokenValidator;
  6404. }(_BaseMoserObject3.default);
  6405. V5QueryExpressionParserTokenValidator.unicodeLetterRange = [[65, 90], [97, 122], [170, 170], [181, 181], [186, 186], [192, 214], [216, 246], [248, 543], [546, 563], [592, 685], [688, 696], [699, 705], [720, 721], [736, 740], [750, 750], [890, 890], [902, 902], [904, 904], [908, 908], [910, 929], [931, 974], [976, 983], [986, 1011], [1024, 1153], [1164, 1220], [1223, 1224], [1227, 1228], [1232, 1269], [1272, 1273], [1329, 1366], [1369, 1369], [1377, 1415], [1488, 1514], [1520, 1522], [1569, 1594], [1600, 1610], [1649, 1747], [1749, 1749], [1765, 1766], [1786, 1788], [1808, 1808], [1810, 1836], [1920, 1957], [2309, 2361], [2365, 2365], [2384, 2384], [2392, 2401], [2437, 2444], [2447, 2448], [2451, 2472], [2474, 2480], [2482, 2482], [2486, 2489], [2524, 2525], [2527, 2529], [2544, 2545], [2565, 2570], [2575, 2576], [2579, 2600], [2602, 2608], [2610, 2611], [2613, 2614], [2616, 2617], [2649, 2652], [2654, 2654], [2674, 2676], [2693, 2699], [2701, 2701], [2703, 2705], [2707, 2728], [2730, 2736], [2738, 2739], [2741, 2745], [2749, 2749], [2768, 2768], [2784, 2784], [2821, 2828], [2831, 2832], [2835, 2856], [2858, 2864], [2866, 2867], [2870, 2873], [2877, 2877], [2908, 2909], [2911, 2913], [2949, 2954], [2958, 2960], [2962, 2965], [2969, 2970], [2972, 2972], [2974, 2975], [2979, 2980], [2984, 2986], [2990, 2997], [2999, 3001], [3077, 3084], [3086, 3088], [3090, 3112], [3114, 3123], [3125, 3129], [3168, 3169], [3205, 3212], [3214, 3216], [3218, 3240], [3242, 3251], [3253, 3257], [3294, 3294], [3296, 3297], [3333, 3340], [3342, 3344], [3346, 3368], [3370, 3385], [3424, 3425], [3461, 3478], [3482, 3505], [3507, 3515], [3517, 3517], [3520, 3526], [3585, 3632], [3634, 3635], [3648, 3654], [3713, 3714], [3716, 3716], [3719, 3720], [3722, 3722], [3725, 3725], [3732, 3735], [3737, 3743], [3745, 3747], [3749, 3749], [3751, 3751], [3754, 3755], [3757, 3760], [3762, 3763], [3773, 3773], [3776, 3780], [3782, 3782], [3804, 3805], [3840, 3840], [3904, 3911], [3913, 3946], [3976, 3979], [4096, 4129], [4131, 4135], [4137, 4138], [4176, 4181], [4256, 4293], [4304, 4342], [4352, 4441], [4447, 4514], [4520, 4601], [4608, 4614], [4616, 4678], [4680, 4680], [4682, 4685], [4688, 4694], [4696, 4696], [4698, 4701], [4704, 4742], [4744, 4744], [4746, 4749], [4752, 4782], [4784, 4784], [4786, 4789], [4792, 4798], [4800, 4800], [4802, 4805], [4808, 4814], [4816, 4822], [4824, 4846], [4848, 4878], [4880, 4880], [4882, 4885], [4888, 4894], [4896, 4934], [4936, 4954], [5024, 5108], [5121, 5740], [5743, 5750], [5761, 5786], [5792, 5866], [6016, 6067], [6176, 6263], [6272, 6312], [7680, 7835], [7840, 7929], [7936, 7957], [7960, 7965], [7968, 8005], [8008, 8013], [8016, 8023], [8025, 8025], [8027, 8027], [8029, 8029], [8031, 8061], [8064, 8116], [8118, 8124], [8126, 8126], [8130, 8132], [8134, 8140], [8144, 8147], [8150, 8155], [8160, 8172], [8178, 8180], [8182, 8188], [8319, 8319], [8450, 8450], [8455, 8455], [8458, 8467], [8469, 8469], [8473, 8477], [8484, 8484], [8486, 8486], [8488, 8488], [8490, 8493], [8495, 8497], [8499, 8505], [12293, 12294], [12337, 12341], [12353, 12436], [12445, 12446], [12449, 12538], [12540, 12542], [12549, 12588], [12593, 12686], [12704, 12727], [13312, 19893], [19968, 40869], [40960, 42124], [44032, 55203], [63744, 64045], [64256, 64262], [64275, 64279], [64285, 64285], [64287, 64296], [64298, 64310], [64312, 64316], [64318, 64318], [64320, 64321], [64323, 64324], [64326, 64433], [64467, 64829], [64848, 64911], [64914, 64967], [65008, 65019], [65136, 65138], [65140, 65140], [65142, 65276], [65313, 65338], [65345, 65370], [65382, 65470], [65474, 65479], [65482, 65487], [65490, 65495], [65498, 65500]];
  6406. V5QueryExpressionParserTokenValidator.unicodeDigitRange = [[48, 57], [1632, 1641], [1776, 1785], [2406, 2415], [2534, 2543], [2662, 2671], [2790, 2799], [2918, 2927], [3047, 3055], [3174, 3183], [3302, 3311], [3430, 3439], [3664, 3673], [3792, 3801], [3872, 3881], [4160, 4169], [4969, 4977], [6112, 6121], [6160, 6169], [65296, 65305]];
  6407. exports.default = V5QueryExpressionParserTokenValidator;
  6408. /***/ },
  6409. /* 20 */
  6410. /***/ function(module, exports, __webpack_require__) {
  6411. 'use strict';
  6412. Object.defineProperty(exports, "__esModule", {
  6413. value: true
  6414. });
  6415. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6416. var _StringUtils = __webpack_require__(17);
  6417. var _StringUtils2 = _interopRequireDefault(_StringUtils);
  6418. var _BaseMoserObject2 = __webpack_require__(2);
  6419. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  6420. var _CaseInsensitiveMap = __webpack_require__(21);
  6421. var _CaseInsensitiveMap2 = _interopRequireDefault(_CaseInsensitiveMap);
  6422. var _V5QueryExpressionParserTokenValidator = __webpack_require__(19);
  6423. var _V5QueryExpressionParserTokenValidator2 = _interopRequireDefault(_V5QueryExpressionParserTokenValidator);
  6424. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6425. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6426. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6427. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  6428. ** IBM Confidential
  6429. **
  6430. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6431. **
  6432. ** (C) Copyright IBM Corp. 2020
  6433. **
  6434. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6435. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6436. ************************************************************************/
  6437. // GENERATED
  6438. //@import StringUtils (runtime) // inlined method
  6439. //@import BaseMoserObject (loadtime) // superclass
  6440. //@import CaseInsensitiveMap (runtime) // new
  6441. //@import com/ibm/bi/platform/moser/common/utils/V5QueryExpressionParserTokenValidator (static) // isLetterOrDigit, isLetter
  6442. var IdentifierUtil = function (_BaseMoserObject) {
  6443. _inherits(IdentifierUtil, _BaseMoserObject);
  6444. /**
  6445. * Constructor.
  6446. */
  6447. /**
  6448. * Singleton static instance.
  6449. */
  6450. /**
  6451. * Static array of reserved SQL keywords. This is the SQL99 reserved word list from the spec (section 5.2): Copied from RQPSqlKeyword.java
  6452. */
  6453. function IdentifierUtil() {
  6454. _classCallCheck(this, IdentifierUtil);
  6455. var _this = _possibleConstructorReturn(this, (IdentifierUtil.__proto__ || Object.getPrototypeOf(IdentifierUtil)).call(this));
  6456. _this.keywordSet = null;
  6457. _this.keywordSet = new _CaseInsensitiveMap2.default();
  6458. for (var __i_enFor0 = 0, __exp_enFor0 = IdentifierUtil.KEYWORDS, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  6459. var keyword = __exp_enFor0[__i_enFor0];
  6460. _this.keywordSet.put(keyword, Boolean["TRUE"]);
  6461. }
  6462. for (var __i_enFor1 = 0, __exp_enFor1 = IdentifierUtil.RESERVED_KEYWORDS, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  6463. var keyword = __exp_enFor1[__i_enFor1];
  6464. _this.keywordSet.put(keyword, Boolean["TRUE"]);
  6465. }
  6466. for (var __i_enFor2 = 0, __exp_enFor2 = IdentifierUtil.PARSER_KEYWORDS, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  6467. var keyword = __exp_enFor2[__i_enFor2];
  6468. _this.keywordSet.put(keyword, Boolean["TRUE"]);
  6469. }
  6470. return _this;
  6471. }
  6472. /**
  6473. * make a unique and valid identifier.
  6474. * @param {String} name name.
  6475. * @param {CaseInsensitiveMap} seenMap seen ids. case insensitive.
  6476. * @return {String} unique and valid identifier.
  6477. */
  6478. /**
  6479. * Set of SQL keywords. Before keys are added to the map or compared to other existing keys, they are converted to all lowercase in a locale-independent fashion by using information from the Unicode data file. Don't use String.toLowercase() because it depends on default locale.
  6480. */
  6481. /**
  6482. * Static array of SQL keywords. Copied from RQPSqlKeyword.java
  6483. */
  6484. _createClass(IdentifierUtil, null, [{
  6485. key: 'makeUniqueAndValidIdentifier',
  6486. value: function makeUniqueAndValidIdentifier(name, seenMap) {
  6487. var newId = IdentifierUtil._makeValidIdentifier(name);
  6488. newId = IdentifierUtil._removeExcessUnderscoresOneId(newId);
  6489. newId = IdentifierUtil._changeIdentifierMatchingKeywords(newId);
  6490. newId = IdentifierUtil._resolveNameConflictsOneId(newId, seenMap);
  6491. return newId;
  6492. }
  6493. }, {
  6494. key: 'isIdValid',
  6495. value: function isIdValid(idToCheck) {
  6496. if (idToCheck == null || idToCheck.length === 0) {
  6497. return false;
  6498. }
  6499. var firstChar = idToCheck.codePointAt(0);
  6500. if (!IdentifierUtil._isValidFirstCharacterForGeneration(firstChar)) {
  6501. return false;
  6502. }
  6503. var characters = _StringUtils2.default.getCodePoints(idToCheck);
  6504. var it = characters.iterator();
  6505. while (it.hasNext()) {
  6506. var codePoint = it.nextInt();
  6507. var valid = IdentifierUtil._isValidInbetweenCharForGeneration(codePoint);
  6508. if (!valid) {
  6509. return false;
  6510. }
  6511. }
  6512. return !IdentifierUtil.isKeyword(idToCheck);
  6513. }
  6514. /**
  6515. * Verifies if the passed in string is a SQL keyword or reserved SQL keyword.
  6516. * @param {String} str = String to test
  6517. * @return {boolean} boolean result
  6518. */
  6519. }, {
  6520. key: 'isKeyword',
  6521. value: function isKeyword(str) {
  6522. return IdentifierUtil.instance.keywordSet.containsKey(str);
  6523. }
  6524. }, {
  6525. key: 'convertToValidUniqueIdentifiers',
  6526. value: function convertToValidUniqueIdentifiers(input) {
  6527. var validIdentifiers = [];
  6528. if (!IdentifierUtil._copyValidIdentifiers(input, validIdentifiers)) {
  6529. IdentifierUtil._makeValidIdentifiers(input, validIdentifiers);
  6530. }
  6531. IdentifierUtil._removeExcessUnderscores(validIdentifiers);
  6532. IdentifierUtil._changeIdentifiersMatchingKeywords(validIdentifiers);
  6533. IdentifierUtil._resolveNameConflicts(validIdentifiers);
  6534. return validIdentifiers;
  6535. }
  6536. }, {
  6537. key: '_changeIdentifierMatchingKeywords',
  6538. value: function _changeIdentifierMatchingKeywords(validId) {
  6539. return IdentifierUtil.isKeyword(validId) ? validId + "_" : validId;
  6540. }
  6541. }, {
  6542. key: '_changeIdentifiersMatchingKeywords',
  6543. value: function _changeIdentifiersMatchingKeywords(validIdentifiers) {
  6544. for (var i = 0; i < validIdentifiers.length; ++i) {
  6545. validIdentifiers[i] = IdentifierUtil._changeIdentifierMatchingKeywords(validIdentifiers[i]);
  6546. }
  6547. }
  6548. }, {
  6549. key: '_removeExcessUnderscoresOneId',
  6550. value: function _removeExcessUnderscoresOneId(validId) {
  6551. var result = IdentifierUtil._removeSequencesOfUnderscores(validId);
  6552. return result.length == 1 ? result : result.replace(new RegExp("_+\\b", "g"), "");
  6553. }
  6554. }, {
  6555. key: '_removeExcessUnderscores',
  6556. value: function _removeExcessUnderscores(validIdentifiers) {
  6557. for (var i = 0; i < validIdentifiers.length; ++i) {
  6558. validIdentifiers[i] = IdentifierUtil._removeExcessUnderscoresOneId(validIdentifiers[i]);
  6559. }
  6560. }
  6561. }, {
  6562. key: '_removeSequencesOfUnderscores',
  6563. value: function _removeSequencesOfUnderscores(identifier) {
  6564. return identifier.replace(new RegExp("__+", "g"), "_");
  6565. }
  6566. }, {
  6567. key: '_resolveNameConflictsOneId',
  6568. value: function _resolveNameConflictsOneId(validId, uniqueIds) {
  6569. var iSuffix = 0;
  6570. var identifier = validId;
  6571. while (uniqueIds.containsKey(identifier)) {
  6572. identifier = validId.charCodeAt(validId.length - 1) == 95 ? validId + ++iSuffix : validId + '_' + ++iSuffix;
  6573. }
  6574. return identifier;
  6575. }
  6576. }, {
  6577. key: '_resolveNameConflicts',
  6578. value: function _resolveNameConflicts(validIdentifiers) {
  6579. var uniqueIds = new _CaseInsensitiveMap2.default();
  6580. for (var i = 0; i < validIdentifiers.length; ++i) {
  6581. validIdentifiers[i] = IdentifierUtil._resolveNameConflictsOneId(validIdentifiers[i], uniqueIds);
  6582. uniqueIds.put(validIdentifiers[i], Boolean["TRUE"]);
  6583. }
  6584. }
  6585. }, {
  6586. key: '_makeValidIdentifiers',
  6587. value: function _makeValidIdentifiers(input, validIdentifiers) {
  6588. for (var i = 0; i < input.length; ++i) {
  6589. if (validIdentifiers[i] != null) {
  6590. continue;
  6591. }
  6592. validIdentifiers[i] = IdentifierUtil._makeValidIdentifier(input[i]);
  6593. }
  6594. }
  6595. }, {
  6596. key: '_makeValidIdentifier',
  6597. value: function _makeValidIdentifier(identifier) {
  6598. var characters = _StringUtils2.default.getCodePoints(identifier);
  6599. var it = characters.iterator();
  6600. var sb = "";
  6601. var firstChar = identifier.codePointAt(0);
  6602. if (!IdentifierUtil._isValidFirstCharacterForGeneration(firstChar)) {
  6603. sb += "i";
  6604. }
  6605. while (it.hasNext()) {
  6606. var codePoint = it.nextInt();
  6607. var valid = IdentifierUtil._isValidInbetweenCharForGeneration(codePoint);
  6608. if (!valid) {
  6609. sb += "_";
  6610. } else {
  6611. sb += _StringUtils2.default.fromCodePoint(codePoint);
  6612. }
  6613. }
  6614. return sb;
  6615. }
  6616. }, {
  6617. key: '_copyValidIdentifiers',
  6618. value: function _copyValidIdentifiers(input, validIdentifiers) {
  6619. var allValid = true;
  6620. for (var i = 0; i < input.length; ++i) {
  6621. var identifier = input[i];
  6622. if (!IdentifierUtil.isValidIdentifier(identifier)) {
  6623. allValid = false;
  6624. } else {
  6625. validIdentifiers[i] = identifier;
  6626. }
  6627. }
  6628. return allValid;
  6629. }
  6630. }, {
  6631. key: '_isValidFirstLastCharacterForValidation',
  6632. value: function _isValidFirstLastCharacterForValidation(firstChar, lastChar) {
  6633. if (firstChar == 91 && lastChar == 93) {
  6634. return true;
  6635. }
  6636. return IdentifierUtil._isValidFirstCharacterForGeneration(firstChar);
  6637. }
  6638. }, {
  6639. key: '_isValidFirstCharacterForGeneration',
  6640. value: function _isValidFirstCharacterForGeneration(firstChar) {
  6641. return _V5QueryExpressionParserTokenValidator2.default.isLetter(firstChar) || firstChar == 95;
  6642. }
  6643. }, {
  6644. key: '_isValidInbetweenCharForValidation',
  6645. value: function _isValidInbetweenCharForValidation(codePoint, firstChar, lastChar) {
  6646. if (firstChar == 91 && lastChar == 93) {
  6647. return true;
  6648. }
  6649. return IdentifierUtil._isValidInbetweenCharForGeneration(codePoint);
  6650. }
  6651. }, {
  6652. key: '_isValidInbetweenCharForGeneration',
  6653. value: function _isValidInbetweenCharForGeneration(codePoint) {
  6654. return _V5QueryExpressionParserTokenValidator2.default.isLetterOrDigit(codePoint) || codePoint == 95;
  6655. }
  6656. }, {
  6657. key: 'isValidIdentifier',
  6658. value: function isValidIdentifier(identifier) {
  6659. if (identifier == null || identifier.length === 0) {
  6660. return false;
  6661. }
  6662. var characters = _StringUtils2.default.getCodePoints(identifier);
  6663. var it = characters.iterator();
  6664. var firstChar = identifier.codePointAt(0);
  6665. if (!IdentifierUtil._isValidFirstCharacterForGeneration(firstChar)) {
  6666. return false;
  6667. }
  6668. while (it.hasNext()) {
  6669. var codePoint = it.nextInt();
  6670. if (!IdentifierUtil._isValidInbetweenCharForGeneration(codePoint)) {
  6671. return false;
  6672. }
  6673. }
  6674. return true;
  6675. }
  6676. }, {
  6677. key: 'isValidIdentifierForValidation',
  6678. value: function isValidIdentifierForValidation(identifier) {
  6679. if (identifier == null || identifier.length === 0) {
  6680. return false;
  6681. }
  6682. var characters = _StringUtils2.default.getCodePoints(identifier);
  6683. var it = characters.iterator();
  6684. var last = identifier.length - 1;
  6685. var firstChar = identifier.codePointAt(0);
  6686. var lastChar = identifier.codePointAt(last);
  6687. if (!IdentifierUtil._isValidFirstLastCharacterForValidation(firstChar, lastChar)) {
  6688. return false;
  6689. }
  6690. while (it.hasNext()) {
  6691. var codePoint = it.nextInt();
  6692. if (!IdentifierUtil._isValidInbetweenCharForValidation(codePoint, firstChar, lastChar)) {
  6693. return false;
  6694. }
  6695. }
  6696. return true;
  6697. }
  6698. }]);
  6699. return IdentifierUtil;
  6700. }(_BaseMoserObject3.default);
  6701. IdentifierUtil.RESERVED_KEYWORDS = ["ABSOLUTE", "ACTION", "ADD", "ADMIN", "AFTER", "AGGREGATE", "ALIAS", "ALL", "ALLOCATE", "ALTER", "AND", "ANY", "ARE", "ARRAY", "AS", "ASC", "ASSERTION", "AT", "AUTO", "AUTHORIZATION", "BEFORE", "BEGIN", "BETWEEN", "BINARY", "BIT", "BLOB", "BOOLEAN", "BOTH", "BREADTH", "BY", "CALL", "CASCADE", "CASCADED", "CASE", "CAST", "CATALOG", "CHAR", "CHARACTER", "CHECK", "CLASS", "CLOB", "CLOSE", "COLLATE", "COLLATION", "COLUMN", "COMMIT", "COMPLETION", "CONNECT", "CONNECTION", "CONSTRAINT", "CONSTRAINTS", "CONSTRUCTOR", "CONTAINS", "CONTINUE", "CORRESPONDING", "CREATE", "CROSS", "CUBE", "CURRENT", "CURRENT_DATE", "CURRENT_PATH", "CURRENT_ROLE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "CURRENT_USER", "CURRENTMEASURE", "CURSOR", "CYCLE", "DATA", "DATE", "DAY", "DEALLOCATE", "DEC", "DECIMAL", "DECLARE", "DEFAULT", "DEFERRABLE", "DEFERRED", "DELETE", "DEPTH", "DEREF", "DESC", "DESCRIBE", "DESCRIPTOR", "DESTROY", "DESTRUCTOR", "DETERMINISTIC", "DICTIONARY", "DIAGNOSTICS", "DISCONNECT", "DISTINCT", "DOMAIN", "DOUBLE", "DROP", "DYNAMIC", "EACH", "ELSE", "END", "ENDS", "END-EXEC", "EQUALS", "ESCAPE", "EVERY", "EXCEPT", "EXCEPTION", "EXEC", "EXECUTE", "EXTERNAL", "FALSE", "FETCH", "FIRST", "FLOAT", "FOR", "FOREIGN", "FOUND", "FROM", "FREE", "FULL", "FUNCTION", "GENERAL", "GET", "GLOBAL", "GO", "GOTO", "GRANT", "GROUP", "GROUPING", "HAVING", "HOST", "HOUR", "IDENTITY", "IF", "IGNORE", "IMMEDIATE", "IN", "IN_RANGE", "INDICATOR", "INITIALIZE", "INITIALLY", "INNER", "INOUT", "INPUT", "INSERT", "INT", "INTEGER", "INTERSECT", "INTERVAL", "INTO", "IS", "ISOLATION", "ITERATE", "JOIN", "KEY", "LANGUAGE", "LARGE", "LAST", "LATERAL", "LEADING", "LEFT", "LESS", "LEVEL", "LIKE", "LIMIT", "LOCAL", "LOCALTIME", "LOCALTIMESTAMP", "LOCATOR", "LOOKUP", "MAP", "MATCH", "MINUTE", "MISSING", "MODIFIES", "MODIFY", "MODULE", "MONTH", "MOVING", "NAMES", "NATIONAL", "NATURAL", "NCHAR", "NCLOB", "NEW", "NEXT", "NO", "NONE", "NOT", "NULL", "NUMBER", "NUMERIC", "OBJECT", "OF", "OFF", "OLD", "ON", "ONLY", "OPEN", "OPERATION", "OPTION", "OR", "ORDER", "ORDINALITY", "OUT", "OUTER", "OUTPUT", "PAD", "PARAMETER", "PARAMETERS", "PARTIAL", "PATH", "POSTFIX", "PRECISION", "PREFIX", "PREFILTER", "PREORDER", "PREPARE", "PRESERVE", "PRIMARY", "PRIOR", "PRIVILEGES", "PROCEDURE", "PUBLIC", "READ", "READS", "REAL", "RECURSIVE", "REF", "REFERENCES", "REFERENCING", "RELATIVE", "REPORT", "RESTRICT", "RESULT", "RETURN", "RETURNS", "REVOKE", "RIGHT", "ROLE", "ROLLBACK", "ROLLUP", "ROUTINE", "ROW", "ROWS", "RUNNING", "SAVEPOINT", "SCHEMA", "SCROLL", "SCOPE", "SEARCH", "SECOND", "SECTION", "SELECT", "SEQUENCE", "SESSION", "SESSION_USER", "SET", "SETS", "SIZE", "SMALLINT", "SOME", "SPACE", "SPECIFIC", "SPECIFICTYPE", "SQL", "SQLEXCEPTION", "SQLSTATE", "SQLWARNING", "START", "STARTS", "STATE", "STATEMENT", "STATIC", "STRING", "STRUCTURE", "SYSTEM_USER", "TABLE", "TEMPORARY", "TERMINATE", "THAN", "THEN", "TIME", "TIMESTAMP", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TO", "TRAILING", "TRANSACTION", "TRANSLATION", "TREAT", "TRIGGER", "TRUE", "UNDER", "UNION", "UNIQUE", "UNKNOWN", "UNNEST", "UPDATE", "USAGE", "USER", "USING", "VALUE", "VALUES", "VARCHAR", "VARIABLE", "VARYING", "VIEW", "WHEN", "WHENEVER", "WHERE", "WITH", "WITHOUT", "WORK", "WRITE", "YEAR", "ZONE"];
  6702. IdentifierUtil.KEYWORDS = ["as", "at", "by", "in", "is", "ln", "no", "of", "on", "or", "to", "abs", "all", "and", "any", "asc", "avg", "day", "dec", "end", "exp", "for", "int", "max", "min", "mod", "not", "out", "row", "set", "sum", "top", "both", "call", "case", "cast", "ceil", "char", "cube", "date", "desc", "else", "from", "full", "hour", "into", "join", "last", "left", "like", "null", "over", "perc", "rank", "ravg", "real", "rmax", "rmin", "rsum", "rows", "sets", "some", "sqrt", "then", "time", "trim", "true", "user", "when", "with", "xavg", "xmax", "xmin", "xsum", "year", "zone", "count", "cross", "dbkey", "false", "first", "float", "floor", "group", "inner", "local", "lower", "month", "nchar", "ntile", "nulls", "order", "outer", "power", "range", "rdiff", "right", "table", "union", "upper", "using", "where", "xlast", "xperc", "xrank", "_local", "bigint", "cursor", "create", "delete", "double", "escape", "except", "exists", "filter", "having", "insert", "minute", "nullif", "others", "rcount", "rollup", "scroll", "second", "select", "stddev", "update", "values", "window", "within", "xcount", "xfirst", "xratio", "xntile", "_cursor", "_rowset", "between", "boolean", "ceiling", "current", "decimal", "declare", "extract", "integer", "leading", "natural", "numeric", "qualify", "tertile", "unknown", "varchar", "varying", "var_pop", "without", "xstddev", "coalesce", "distinct", "filename", "grouping", "interval", "national", "nvarchar", "position", "smallint", "snapshot", "trailing", "variance", "var_samp", "xtertile", "character", "cume_dist", "intersect", "following", "localtime", "partition", "precision", "preceding", "prefilter", "recursive", "returning", "substring", "timestamp", "updatable", "unbounded", "xvariance", "bit_length", "dense_rank", "last_value", "percentile", "row_number", "stddev_pop", "xmovingavg", "xmovingsum", "char_length", "first_value", "stddev_samp", "xstddev_pop", "current_date", "current_time", "octet_length", "percent_rank", "timezone_hour", "xvariance_pop", "localtimestamp", "percentile_cont", "percentile_disc", "ratio_to_report", "timezone_minute", "character_length", "current_timestamp"];
  6703. IdentifierUtil.PARSER_KEYWORDS = ["_ADDMEMBERTOSET", "_FORMAT", "AFTER", "AGGREGATE", "AND", "ALL", "ANY", "AS", "ASC", "AT", "AUTO", "AVERAGE", "BASC", "BDESC", "BEFORE", "BEFOREWITHMEMBER", "BETWEEN", "BOTH", "BY", "CASE", "CAST", "CONTAINS", "CORR", "COUNT", "COVARIANCE-POP", "COVARIANCE-SAMP", "CURRENT_DATE", "CURRENTMEASURE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DEFAULT", "DECOMPOSABLE", "DESC", "DESCENDANTS", "DETAIL", "DISTINCT", "ELSE", "EMPTY", "END", "ENDS", "EQUALS", "ESCAPE", "EXCEPT", "EXTRACT", "FIRST", "FLAG", "FOR", "FROM", "GENERATE", "HIERARCHIZE", "IF", "IMMEDIATELY", "IN", "INTERSECT", "INTERVAL", "IS", "JSON_EXISTS", "JSON_QUERY", "JSON_VALUE", "LAST", "LEADING", "LIKE", "LOCALTIME", "LOCALTIMESTAMP", "LOOKUP", "MAXIMUM", "MEDIAN", "MEMBER", "MINIMUM", "MISSING", "MOVING-AVERAGE", "MOVING-TOTAL", "NOT", "NULL", "NULLS", "OCCURRENCE", "OCCURRENCES_REGEX", "ON", "OR", "ORDER", "OVER", "OVERLAPS", "PARTITION", "PASSING", "PERCENTAGE", "PERCENTAGE_0", "PERCENTAGE_1", "PERCENTAGE_2", "PERCENTILE", "PERIOD", "POSITION", "POSITION_REGEX", "POST", "PRECEDES", "PREFILTER", "QUARTILE", "QUANTILE", "RANK", "REGRESSION-AVERAGE-X", "REGRESSION-AVERAGE-Y", "REGRESSION-COUNT", "REGRESSION-INTERCEPT", "REGRESSION-R2", "REGRESSION-SLOPE", "REGRESSION-SXX", "REGRESSION-SXY", "REGRESSION-SYY", "REPORT", "ROW", "ROWS", "RUNNING-AVERAGE", "RUNNING-COUNT", "RUNNING-DIFFERENCE", "RUNNING-MAXIMUM", "RUNNING-MINIMUM", "RUNNING-TOTAL", "SELF", "SET", "START", "STARTS", "STANDARD-DEVIATION", "STANDARD-DEVIATION-POP", "STANDARD-DEVIATION-SAMP", "SUBSTRING", "SUBSTRINGR", "SUBSTRING_REGEX", "SUCCEEDS", "TERTILE", "THEN", "TIMEZONE_HOUR", "TIMEZONE_MINUTE", "TO", "TOTAL", "TO_JSON", "TRAILING", "TRIM", "TUPLE", "UNION", "VARIANCE", "VARIANCE-POP", "VARIANCE-SAMP", "WHEN", "WIDTH-BUCKET", "WITH", "WITHIN", "XMLQUERY", "XMLEXISTS", "BIT", "BIGINT", "CHAR", "CHARACTER", "DATE", "DAY", "DAYS", "DEC", "DECIMAL", "DOUBLE", "FLOAT", "HOUR", "HOURS", "INT", "INTEGER", "MINUTE", "MINUTES", "MONTH", "MONTHS", "NATIONAL", "NCHAR", "NUMERIC", "NVARCHAR", "PRECISION", "REAL", "SECOND", "SECONDS", "SMALLINT", "TIME", "TIMESTAMP", "VARCHAR", "VARYING", "YEAR", "YEARS", "ZONE"];
  6704. IdentifierUtil.UNDERSCORE = 95;
  6705. IdentifierUtil.OPEN_BRACKET = 91;
  6706. IdentifierUtil.CLOSE_BRACKET = 93;
  6707. IdentifierUtil.instance = new IdentifierUtil();
  6708. exports.default = IdentifierUtil;
  6709. /***/ },
  6710. /* 21 */
  6711. /***/ function(module, exports) {
  6712. "use strict";
  6713. Object.defineProperty(exports, "__esModule", {
  6714. value: true
  6715. });
  6716. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6717. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6718. /************************************************************************
  6719. ** IBM Confidential
  6720. **
  6721. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6722. **
  6723. ** (C) Copyright IBM Corp. 2017, 2018
  6724. **
  6725. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6726. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6727. ************************************************************************/
  6728. var CaseInsensitiveMap = function () {
  6729. function CaseInsensitiveMap() {
  6730. _classCallCheck(this, CaseInsensitiveMap);
  6731. this._map = {};
  6732. this._nullValue = null;
  6733. }
  6734. _createClass(CaseInsensitiveMap, [{
  6735. key: "put",
  6736. value: function put(k, v) {
  6737. var keyExist;
  6738. if (!k) {
  6739. keyExist = this._nullValue ? true : false;
  6740. this._nullValue = v;
  6741. } else {
  6742. var lowerCaseKey = k.toLowerCase();
  6743. keyExist = this._map.hasOwnProperty(lowerCaseKey);
  6744. this._map[lowerCaseKey] = v;
  6745. }
  6746. return !keyExist;
  6747. }
  6748. }, {
  6749. key: "containsKey",
  6750. value: function containsKey(k) {
  6751. if (!k) {
  6752. return this._nullValue;
  6753. }
  6754. return this._map.hasOwnProperty(k.toLowerCase());
  6755. }
  6756. }]);
  6757. return CaseInsensitiveMap;
  6758. }();
  6759. exports.default = CaseInsensitiveMap;
  6760. /***/ },
  6761. /* 22 */
  6762. /***/ function(module, exports, __webpack_require__) {
  6763. "use strict";
  6764. Object.defineProperty(exports, "__esModule", {
  6765. value: true
  6766. });
  6767. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6768. var _Enum2 = __webpack_require__(12);
  6769. var _Enum3 = _interopRequireDefault(_Enum2);
  6770. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6771. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6772. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6773. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  6774. ** IBM Confidential
  6775. **
  6776. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6777. **
  6778. ** (C) Copyright IBM Corp. 2020
  6779. **
  6780. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6781. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6782. ************************************************************************/
  6783. // GENERATED
  6784. //@import Enum (loadtime) // superclass
  6785. /**
  6786. * <p>Java class for regularAggregateType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="regularAggregateType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="none"/&gt; &lt;enumeration value="average"/&gt; &lt;enumeration value="automatic"/&gt; &lt;enumeration value="calculated"/&gt; &lt;enumeration value="count"/&gt; &lt;enumeration value="countDistinct"/&gt; &lt;enumeration value="countNonZero"/&gt; &lt;enumeration value="maximum"/&gt; &lt;enumeration value="median"/&gt; &lt;enumeration value="minimum"/&gt; &lt;enumeration value="standardDeviation"/&gt; &lt;enumeration value="total"/&gt; &lt;enumeration value="variance"/&gt; &lt;enumeration value="doNotUse"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  6787. */
  6788. var RegularAggregateType = function (_Enum) {
  6789. _inherits(RegularAggregateType, _Enum);
  6790. /**
  6791. * Compute the variance value of the values of the group.
  6792. */
  6793. /**
  6794. * Compute the standard deviation value of the values of the group.
  6795. */
  6796. /**
  6797. * Compute the median value of the values of the group.
  6798. */
  6799. /**
  6800. * Compute the number of the values of the group, excluding zero and NULL values.
  6801. */
  6802. /**
  6803. * Compute the number of the values of the group.
  6804. */
  6805. /**
  6806. * The aggregation rule is determined automatically at run time.
  6807. */
  6808. /**
  6809. * This item should be used as a grouping item.
  6810. */
  6811. function RegularAggregateType(v) {
  6812. _classCallCheck(this, RegularAggregateType);
  6813. var _this = _possibleConstructorReturn(this, (RegularAggregateType.__proto__ || Object.getPrototypeOf(RegularAggregateType)).call(this, v));
  6814. _this.enumValue = null;
  6815. _this.enumValue = v;
  6816. return _this;
  6817. }
  6818. /**
  6819. * The related item must not be used as a grouping item and must not be aggregated. This value is used for the item that represents the property of a level of a dimension.
  6820. */
  6821. /**
  6822. * Compute the sum of the values of the group.
  6823. */
  6824. /**
  6825. * Compute the minimum value of the values of the group.
  6826. */
  6827. /**
  6828. * Compute the maximum value of the values of the group.
  6829. */
  6830. /**
  6831. * Compute the number of distinct values in the group.
  6832. */
  6833. /**
  6834. * Aggregation is performed on the elements before the rest of the expression is executed. For example, if the aggregate rule for Q1_a is set to total, and the rule for q1_b is set to average, then if this query item is based on the expression (QI_a / QI_b) * 100, the aggregate is computed as: ( total(QI_a) / average( QI_b ) ) * 100.
  6835. */
  6836. /**
  6837. * Compute the average value for the values of the group.
  6838. */
  6839. _createClass(RegularAggregateType, [{
  6840. key: "value",
  6841. value: function value() {
  6842. return this.enumValue;
  6843. }
  6844. }, {
  6845. key: "getResourceId",
  6846. value: function getResourceId() {
  6847. return "RegularAggregateType" + "_" + this.value();
  6848. }
  6849. }], [{
  6850. key: "fromValue",
  6851. value: function fromValue(v) {
  6852. for (var i = 0; i < RegularAggregateType.values().length; ++i) {
  6853. if (RegularAggregateType.values()[i].enumValue == v) {
  6854. return RegularAggregateType.values()[i];
  6855. }
  6856. }
  6857. throw new Error(v);
  6858. }
  6859. }]);
  6860. return RegularAggregateType;
  6861. }(_Enum3.default);
  6862. RegularAggregateType.NONE = RegularAggregateType.newLiteral("none");
  6863. RegularAggregateType.AVERAGE = RegularAggregateType.newLiteral("average");
  6864. RegularAggregateType.AUTOMATIC = RegularAggregateType.newLiteral("automatic");
  6865. RegularAggregateType.CALCULATED = RegularAggregateType.newLiteral("calculated");
  6866. RegularAggregateType.COUNT = RegularAggregateType.newLiteral("count");
  6867. RegularAggregateType.COUNT_DISTINCT = RegularAggregateType.newLiteral("countDistinct");
  6868. RegularAggregateType.COUNT_NON_ZERO = RegularAggregateType.newLiteral("countNonZero");
  6869. RegularAggregateType.MAXIMUM = RegularAggregateType.newLiteral("maximum");
  6870. RegularAggregateType.MEDIAN = RegularAggregateType.newLiteral("median");
  6871. RegularAggregateType.MINIMUM = RegularAggregateType.newLiteral("minimum");
  6872. RegularAggregateType.STANDARD_DEVIATION = RegularAggregateType.newLiteral("standardDeviation");
  6873. RegularAggregateType.TOTAL = RegularAggregateType.newLiteral("total");
  6874. RegularAggregateType.VARIANCE = RegularAggregateType.newLiteral("variance");
  6875. RegularAggregateType.DO_NOT_USE = RegularAggregateType.newLiteral("doNotUse");
  6876. exports.default = RegularAggregateType;
  6877. /***/ },
  6878. /* 23 */
  6879. /***/ function(module, exports, __webpack_require__) {
  6880. "use strict";
  6881. Object.defineProperty(exports, "__esModule", {
  6882. value: true
  6883. });
  6884. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6885. var _Enum2 = __webpack_require__(12);
  6886. var _Enum3 = _interopRequireDefault(_Enum2);
  6887. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6888. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6889. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6890. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  6891. ** IBM Confidential
  6892. **
  6893. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6894. **
  6895. ** (C) Copyright IBM Corp. 2020
  6896. **
  6897. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6898. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6899. ************************************************************************/
  6900. // GENERATED
  6901. //@import Enum (loadtime) // superclass
  6902. /**
  6903. * <p>Java class for sqlOperatorType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="sqlOperatorType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="groupBy"/&gt; &lt;enumeration value="minimum"/&gt; &lt;enumeration value="maximum"/&gt; &lt;enumeration value="average"/&gt; &lt;enumeration value="automatic"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  6904. */
  6905. var SqlOperatorType = function (_Enum) {
  6906. _inherits(SqlOperatorType, _Enum);
  6907. function SqlOperatorType(v) {
  6908. _classCallCheck(this, SqlOperatorType);
  6909. var _this = _possibleConstructorReturn(this, (SqlOperatorType.__proto__ || Object.getPrototypeOf(SqlOperatorType)).call(this, v));
  6910. _this.enumValue = null;
  6911. _this.enumValue = v;
  6912. return _this;
  6913. }
  6914. _createClass(SqlOperatorType, [{
  6915. key: "value",
  6916. value: function value() {
  6917. return this.enumValue;
  6918. }
  6919. }, {
  6920. key: "getResourceId",
  6921. value: function getResourceId() {
  6922. return "SqlOperatorType" + "_" + this.value();
  6923. }
  6924. }], [{
  6925. key: "fromValue",
  6926. value: function fromValue(v) {
  6927. for (var i = 0; i < SqlOperatorType.values().length; ++i) {
  6928. if (SqlOperatorType.values()[i].enumValue == v) {
  6929. return SqlOperatorType.values()[i];
  6930. }
  6931. }
  6932. throw new Error(v);
  6933. }
  6934. }]);
  6935. return SqlOperatorType;
  6936. }(_Enum3.default);
  6937. SqlOperatorType.GROUP_BY = SqlOperatorType.newLiteral("groupBy");
  6938. SqlOperatorType.MINIMUM = SqlOperatorType.newLiteral("minimum");
  6939. SqlOperatorType.MAXIMUM = SqlOperatorType.newLiteral("maximum");
  6940. SqlOperatorType.AVERAGE = SqlOperatorType.newLiteral("average");
  6941. SqlOperatorType.AUTOMATIC = SqlOperatorType.newLiteral("automatic");
  6942. exports.default = SqlOperatorType;
  6943. /***/ },
  6944. /* 24 */
  6945. /***/ function(module, exports, __webpack_require__) {
  6946. 'use strict';
  6947. Object.defineProperty(exports, "__esModule", {
  6948. value: true
  6949. });
  6950. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  6951. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  6952. var _PhysicalObjectType2 = __webpack_require__(4);
  6953. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  6954. var _MoserObject2 = __webpack_require__(6);
  6955. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  6956. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6957. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  6958. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  6959. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  6960. ** IBM Confidential
  6961. **
  6962. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  6963. **
  6964. ** (C) Copyright IBM Corp. 2021
  6965. **
  6966. ** The source code for this program is not published or otherwise divested of its trade secrets,
  6967. ** irrespective of what has been deposited with the U.S. Copyright Office.
  6968. ************************************************************************/
  6969. // GENERATED
  6970. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  6971. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  6972. /**
  6973. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="fkColumn" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="columnName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkCatalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkSchema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkTable" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkColumn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  6974. */
  6975. var ForeignKey = function (_PhysicalObjectType) {
  6976. _inherits(ForeignKey, _PhysicalObjectType);
  6977. function ForeignKey() {
  6978. var _ref;
  6979. var _temp, _this, _ret;
  6980. _classCallCheck(this, ForeignKey);
  6981. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  6982. args[_key] = arguments[_key];
  6983. }
  6984. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ForeignKey.__proto__ || Object.getPrototypeOf(ForeignKey)).call.apply(_ref, [this].concat(args))), _this), _this.fkColumn = null, _temp), _possibleConstructorReturn(_this, _ret);
  6985. }
  6986. _createClass(ForeignKey, [{
  6987. key: 'getFkColumn',
  6988. /**
  6989. * Gets the value of the fkColumn property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the fkColumn property. <p> For example, to add a new item, do as follows: <pre> getFkColumn().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ForeignKey.FkColumn}
  6990. */
  6991. value: function getFkColumn() {
  6992. if (!this.fkColumn) {
  6993. this.fkColumn = [];
  6994. }
  6995. return this.fkColumn;
  6996. }
  6997. /**
  6998. * Gets the value of the <code>fkColumn</code> property without initializing the property to an empty list if it is unset.
  6999. * @return {Array} the list of <code>FkColumn</code> elements, or <code>null</code> if not set
  7000. */
  7001. }, {
  7002. key: 'basicGetFkColumn',
  7003. value: function basicGetFkColumn() {
  7004. return this.fkColumn;
  7005. }
  7006. /**
  7007. * Creates a new instance of <code>ForeignKey</code> object from JSON data.
  7008. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  7009. * @param {Object} json JSON data to be used to create the <code> ForeignKey</code> object from.
  7010. * @return {ForeignKey} an object of type <code>ForeignKey</code>
  7011. */
  7012. }, {
  7013. key: 'addFkColumnAt',
  7014. /**
  7015. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  7016. */
  7017. value: function addFkColumnAt(position, item) {
  7018. this._addAtAndNotify(this.getFkColumn(), position, item, 220, true, false);
  7019. }
  7020. /**
  7021. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  7022. */
  7023. }, {
  7024. key: 'addFkColumn',
  7025. value: function addFkColumn(item) {
  7026. this.addFkColumnAt(this.getFkColumn().length, item);
  7027. }
  7028. /**
  7029. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  7030. */
  7031. }, {
  7032. key: 'removeFkColumnAt',
  7033. value: function removeFkColumnAt(position) {
  7034. this._removeAtAndNotify(this.getFkColumn(), position, 220, true);
  7035. }
  7036. /**
  7037. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  7038. */
  7039. }, {
  7040. key: 'removeFkColumn',
  7041. value: function removeFkColumn(item) {
  7042. var i = this.getFkColumn().indexOf(item);
  7043. if (i >= 0) {
  7044. this.removeFkColumnAt(i);
  7045. }
  7046. }
  7047. /**
  7048. * Retrieves the type of this object
  7049. * @return {String} the object type in a <code>String</code>
  7050. */
  7051. }, {
  7052. key: 'getObjectType',
  7053. value: function getObjectType() {
  7054. return "ForeignKey";
  7055. }
  7056. /**
  7057. * Get a list of FeatureObjects
  7058. * @return {Array} A list of FeatureObjects
  7059. */
  7060. }, {
  7061. key: 'getFeatureList',
  7062. value: function getFeatureList(factory) {
  7063. var featureList = [];
  7064. var clazz;
  7065. if (factory) {
  7066. clazz = factory.createForeignKeyFkColumn().getClass();
  7067. }
  7068. featureList.push(this.createFeature(true, false, true, 220, "fkColumn", clazz));
  7069. Array.prototype.push.apply(featureList, _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'getFeatureList', this).call(this, factory));
  7070. return featureList;
  7071. }
  7072. /**
  7073. * Set the value of a specific feature.
  7074. * @param {BaseMoserObject} value the value to set
  7075. * @param {int} featureID the feature id of the attribute to be set
  7076. */
  7077. }, {
  7078. key: 'set',
  7079. value: function set(featureID, value) {
  7080. switch (featureID) {
  7081. default:
  7082. _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'set', this).call(this, featureID, value);
  7083. }
  7084. }
  7085. /**
  7086. * Set the value of a specific feature.
  7087. * @param {BaseMoserObject} value the value to set the value to set
  7088. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  7089. */
  7090. }, {
  7091. key: '_setList',
  7092. value: function _setList(featureID, value) {
  7093. switch (featureID) {
  7094. case 220:
  7095. this.fkColumn = value;
  7096. break;
  7097. default:
  7098. _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), '_setList', this).call(this, featureID, value);
  7099. }
  7100. }
  7101. /**
  7102. * Get the value of a specific feature.
  7103. * @param {int} featureID the feature id of the attribute to get
  7104. */
  7105. }, {
  7106. key: 'get',
  7107. value: function get(featureID) {
  7108. switch (featureID) {
  7109. case 220:
  7110. return this.getFkColumn();
  7111. default:
  7112. return _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'get', this).call(this, featureID);
  7113. }
  7114. }
  7115. /**
  7116. * Get the value of a specific feature.
  7117. * @param {int} featureID the feature id of the attribute to get
  7118. */
  7119. }, {
  7120. key: 'basicGet',
  7121. value: function basicGet(featureID) {
  7122. switch (featureID) {
  7123. case 220:
  7124. return this.basicGetFkColumn();
  7125. default:
  7126. return _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'basicGet', this).call(this, featureID);
  7127. }
  7128. }
  7129. /**
  7130. * Add the value of a specific feature at a specific position
  7131. * @param {int} position the array position of the item to be added
  7132. * @param {BaseMoserObject} value the value to add
  7133. * @param {int} featureID the feature id of the attribute to be added
  7134. */
  7135. }, {
  7136. key: 'addAt',
  7137. value: function addAt(featureID, position, value) {
  7138. switch (featureID) {
  7139. case 220:
  7140. this.addFkColumnAt(position, value);
  7141. break;
  7142. default:
  7143. _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'addAt', this).call(this, featureID, position, value);
  7144. }
  7145. }
  7146. /**
  7147. * Add the value to the end of a specific collection feature
  7148. * @param {BaseMoserObject} value the value to add
  7149. * @param {int} featureID the feature id of the attribute to be added
  7150. */
  7151. }, {
  7152. key: 'add',
  7153. value: function add(featureID, value) {
  7154. switch (featureID) {
  7155. case 220:
  7156. this.addFkColumn(value);
  7157. break;
  7158. default:
  7159. _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'add', this).call(this, featureID, value);
  7160. }
  7161. }
  7162. /**
  7163. * Remove the value of a specific feature by index.
  7164. * @param {int} position the array position of the item to be removed
  7165. * @param {int} featureID the feature id of the attribute to be removed
  7166. */
  7167. }, {
  7168. key: 'removeAt',
  7169. value: function removeAt(featureID, position) {
  7170. switch (featureID) {
  7171. case 220:
  7172. this.removeFkColumnAt(position);
  7173. break;
  7174. default:
  7175. _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'removeAt', this).call(this, featureID, position);
  7176. }
  7177. }
  7178. /**
  7179. * Remove the value from specific feature.
  7180. * @param {BaseMoserObject} item the item to be removed
  7181. * @param {int} featureID the feature id of the attribute to be removed
  7182. */
  7183. }, {
  7184. key: 'remove',
  7185. value: function remove(featureID, item) {
  7186. switch (featureID) {
  7187. case 220:
  7188. this.removeFkColumn(item);
  7189. break;
  7190. default:
  7191. _get(ForeignKey.prototype.__proto__ || Object.getPrototypeOf(ForeignKey.prototype), 'remove', this).call(this, featureID, item);
  7192. }
  7193. }
  7194. }], [{
  7195. key: 'fromJSON',
  7196. value: function fromJSON(json, factory) {
  7197. var result = factory.createForeignKey();
  7198. var featureList = result.getFeatureList(factory);
  7199. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  7200. return result;
  7201. }
  7202. }]);
  7203. return ForeignKey;
  7204. }(_PhysicalObjectType3.default);
  7205. /**
  7206. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="columnName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkCatalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkSchema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkTable" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="pkColumn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  7207. */
  7208. exports.default = ForeignKey;
  7209. ForeignKey.FkColumn = function (_MoserObject) {
  7210. _inherits(_class2, _MoserObject);
  7211. function _class2() {
  7212. var _ref2;
  7213. var _temp2, _this2, _ret2;
  7214. _classCallCheck(this, _class2);
  7215. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  7216. args[_key2] = arguments[_key2];
  7217. }
  7218. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.columnName = null, _this2.pkCatalog = null, _this2.pkSchema = null, _this2.pkTable = null, _this2.pkColumn = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  7219. }
  7220. _createClass(_class2, [{
  7221. key: 'getColumnName',
  7222. /**
  7223. * Gets the value of the columnName property.
  7224. * @return {String} possible object is {@link String}
  7225. */
  7226. value: function getColumnName() {
  7227. return this.columnName;
  7228. }
  7229. /**
  7230. * Sets the value of the columnName property.
  7231. * @param {String} value allowed object is {@link String}
  7232. */
  7233. }, {
  7234. key: 'setColumnName',
  7235. value: function setColumnName(value) {
  7236. var oldValue = this.columnName;
  7237. this.columnName = value;
  7238. this._setAndNotify(219, oldValue, value, false, false);
  7239. }
  7240. /**
  7241. * Gets the value of the pkCatalog property.
  7242. * @return {String} possible object is {@link String}
  7243. */
  7244. }, {
  7245. key: 'getPkCatalog',
  7246. value: function getPkCatalog() {
  7247. return this.pkCatalog;
  7248. }
  7249. /**
  7250. * Sets the value of the pkCatalog property.
  7251. * @param {String} value allowed object is {@link String}
  7252. */
  7253. }, {
  7254. key: 'setPkCatalog',
  7255. value: function setPkCatalog(value) {
  7256. var oldValue = this.pkCatalog;
  7257. this.pkCatalog = value;
  7258. this._setAndNotify(215, oldValue, value, false, false);
  7259. }
  7260. /**
  7261. * Gets the value of the pkSchema property.
  7262. * @return {String} possible object is {@link String}
  7263. */
  7264. }, {
  7265. key: 'getPkSchema',
  7266. value: function getPkSchema() {
  7267. return this.pkSchema;
  7268. }
  7269. /**
  7270. * Sets the value of the pkSchema property.
  7271. * @param {String} value allowed object is {@link String}
  7272. */
  7273. }, {
  7274. key: 'setPkSchema',
  7275. value: function setPkSchema(value) {
  7276. var oldValue = this.pkSchema;
  7277. this.pkSchema = value;
  7278. this._setAndNotify(216, oldValue, value, false, false);
  7279. }
  7280. /**
  7281. * Gets the value of the pkTable property.
  7282. * @return {String} possible object is {@link String}
  7283. */
  7284. }, {
  7285. key: 'getPkTable',
  7286. value: function getPkTable() {
  7287. return this.pkTable;
  7288. }
  7289. /**
  7290. * Sets the value of the pkTable property.
  7291. * @param {String} value allowed object is {@link String}
  7292. */
  7293. }, {
  7294. key: 'setPkTable',
  7295. value: function setPkTable(value) {
  7296. var oldValue = this.pkTable;
  7297. this.pkTable = value;
  7298. this._setAndNotify(218, oldValue, value, false, false);
  7299. }
  7300. /**
  7301. * Gets the value of the pkColumn property.
  7302. * @return {String} possible object is {@link String}
  7303. */
  7304. }, {
  7305. key: 'getPkColumn',
  7306. value: function getPkColumn() {
  7307. return this.pkColumn;
  7308. }
  7309. /**
  7310. * Sets the value of the pkColumn property.
  7311. * @param {String} value allowed object is {@link String}
  7312. */
  7313. }, {
  7314. key: 'setPkColumn',
  7315. value: function setPkColumn(value) {
  7316. var oldValue = this.pkColumn;
  7317. this.pkColumn = value;
  7318. this._setAndNotify(217, oldValue, value, false, false);
  7319. }
  7320. /**
  7321. * Creates a new instance of <code>FkColumn</code> object from JSON data.
  7322. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  7323. * @param {Object} json JSON data to be used to create the <code> FkColumn</code> object from.
  7324. * @return {FkColumn} an object of type <code>FkColumn</code>
  7325. */
  7326. }, {
  7327. key: 'getObjectType',
  7328. /**
  7329. * Retrieves the type of this object
  7330. * @return {String} the object type in a <code>String</code>
  7331. */
  7332. value: function getObjectType() {
  7333. return "FkColumn";
  7334. }
  7335. /**
  7336. * Get a list of FeatureObjects
  7337. * @return {Array} A list of FeatureObjects
  7338. */
  7339. }, {
  7340. key: 'getFeatureList',
  7341. value: function getFeatureList(factory) {
  7342. var featureList = [];
  7343. featureList.push(this.createFeature(false, false, false, 219, "columnName", null));
  7344. featureList.push(this.createFeature(false, false, false, 215, "pkCatalog", null));
  7345. featureList.push(this.createFeature(false, false, false, 216, "pkSchema", null));
  7346. featureList.push(this.createFeature(false, false, false, 218, "pkTable", null));
  7347. featureList.push(this.createFeature(false, false, false, 217, "pkColumn", null));
  7348. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  7349. return featureList;
  7350. }
  7351. /**
  7352. * Set the value of a specific feature.
  7353. * @param {BaseMoserObject} value the value to set
  7354. * @param {int} featureID the feature id of the attribute to be set
  7355. */
  7356. }, {
  7357. key: 'set',
  7358. value: function set(featureID, value) {
  7359. switch (featureID) {
  7360. case 215:
  7361. this.setPkCatalog(value);
  7362. break;
  7363. case 216:
  7364. this.setPkSchema(value);
  7365. break;
  7366. case 217:
  7367. this.setPkColumn(value);
  7368. break;
  7369. case 218:
  7370. this.setPkTable(value);
  7371. break;
  7372. case 219:
  7373. this.setColumnName(value);
  7374. break;
  7375. default:
  7376. throw new Error("The feature " + featureID + " is not valid.");
  7377. }
  7378. }
  7379. /**
  7380. * Get the value of a specific feature.
  7381. * @param {int} featureID the feature id of the attribute to get
  7382. */
  7383. }, {
  7384. key: 'get',
  7385. value: function get(featureID) {
  7386. switch (featureID) {
  7387. case 215:
  7388. return this.getPkCatalog();
  7389. case 216:
  7390. return this.getPkSchema();
  7391. case 217:
  7392. return this.getPkColumn();
  7393. case 218:
  7394. return this.getPkTable();
  7395. case 219:
  7396. return this.getColumnName();
  7397. default:
  7398. throw new Error("The feature " + featureID + " is not valid.");
  7399. }
  7400. }
  7401. /**
  7402. * Get the value of a specific feature.
  7403. * @param {int} featureID the feature id of the attribute to get
  7404. */
  7405. }, {
  7406. key: 'basicGet',
  7407. value: function basicGet(featureID) {
  7408. switch (featureID) {
  7409. case 215:
  7410. return this.getPkCatalog();
  7411. case 216:
  7412. return this.getPkSchema();
  7413. case 217:
  7414. return this.getPkColumn();
  7415. case 218:
  7416. return this.getPkTable();
  7417. case 219:
  7418. return this.getColumnName();
  7419. default:
  7420. throw new Error("The feature " + featureID + " is not valid.");
  7421. }
  7422. }
  7423. }], [{
  7424. key: 'fromJSON',
  7425. value: function fromJSON(json, factory) {
  7426. var result = factory.createForeignKeyFkColumn();
  7427. var featureList = result.getFeatureList(factory);
  7428. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  7429. return result;
  7430. }
  7431. }]);
  7432. return _class2;
  7433. }(_MoserObject3.default);
  7434. /***/ },
  7435. /* 25 */
  7436. /***/ function(module, exports, __webpack_require__) {
  7437. 'use strict';
  7438. Object.defineProperty(exports, "__esModule", {
  7439. value: true
  7440. });
  7441. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  7442. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  7443. var _ObjectType2 = __webpack_require__(26);
  7444. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  7445. var _MoserObject4 = __webpack_require__(6);
  7446. var _MoserObject5 = _interopRequireDefault(_MoserObject4);
  7447. var _InstanceType = __webpack_require__(11);
  7448. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  7449. var _GenerateSQL = __webpack_require__(29);
  7450. var _GenerateSQL2 = _interopRequireDefault(_GenerateSQL);
  7451. var _QuerySubjectUsage = __webpack_require__(30);
  7452. var _QuerySubjectUsage2 = _interopRequireDefault(_QuerySubjectUsage);
  7453. var _SelectListControlType = __webpack_require__(31);
  7454. var _SelectListControlType2 = _interopRequireDefault(_SelectListControlType);
  7455. var _SourceCategoryType = __webpack_require__(32);
  7456. var _SourceCategoryType2 = _interopRequireDefault(_SourceCategoryType);
  7457. var _QsClassifierType = __webpack_require__(33);
  7458. var _QsClassifierType2 = _interopRequireDefault(_QsClassifierType);
  7459. var _SetOperation = __webpack_require__(34);
  7460. var _SetOperation2 = _interopRequireDefault(_SetOperation);
  7461. var _SetOperationDuplicates = __webpack_require__(35);
  7462. var _SetOperationDuplicates2 = _interopRequireDefault(_SetOperationDuplicates);
  7463. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  7464. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  7465. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  7466. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  7467. ** IBM Confidential
  7468. **
  7469. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  7470. **
  7471. ** (C) Copyright IBM Corp. 2021
  7472. **
  7473. ** The source code for this program is not published or otherwise divested of its trade secrets,
  7474. ** irrespective of what has been deposited with the U.S. Copyright Office.
  7475. ************************************************************************/
  7476. // GENERATED
  7477. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  7478. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper, updatePropertyOverride
  7479. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (runtime) // new
  7480. //@import com/ibm/bi/platform/moser/common/generated/metadata/GenerateSQL (runtime) // new
  7481. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubjectUsage (runtime) // new
  7482. //@import com/ibm/bi/platform/moser/common/generated/metadata/SelectListControlType (runtime) // new
  7483. //@import com/ibm/bi/platform/moser/common/generated/metadata/SourceCategoryType (runtime) // new
  7484. //@import com/ibm/bi/platform/moser/common/generated/metadata/QsClassifierType (runtime) // new
  7485. //@import com/ibm/bi/platform/moser/common/generated/metadata/SetOperation (runtime) // new
  7486. //@import com/ibm/bi/platform/moser/common/generated/metadata/SetOperationDuplicates (runtime) // new
  7487. /**
  7488. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="originalRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="instanceType" type="{}instanceType" minOccurs="0"/&gt; &lt;element name="generateSQL" type="{}generateSQL" minOccurs="0"/&gt; &lt;element name="useInJoinPath" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="numberOfRows" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="rowCount" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; &lt;element name="querySubjectUsage" type="{}querySubjectUsage" minOccurs="0"/&gt; &lt;element name="useLocalCache" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="selectListControl" type="{}selectListControlType" minOccurs="0"/&gt; &lt;element name="columnDependency" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="keyRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element ref="{}queryItem" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}filter" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;choice&gt; &lt;element name="sqlQuery" type="{}sqlQueryType" minOccurs="0"/&gt; &lt;element name="queryOperation" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="queryRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;element name="setOperation" type="{}setOperation"/&gt; &lt;element name="duplicates" type="{}setOperationDuplicates"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="joinOperation" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="queryRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;element ref="{}relationship" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/choice&gt; &lt;element name="sourceCategory" type="{}sourceCategoryType" minOccurs="0"/&gt; &lt;element name="sortList" type="{}sortListType" minOccurs="0"/&gt; &lt;element name="item" type="{}itemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="classifier" type="{}qsClassifierType" minOccurs="0"/&gt; &lt;element name="dataCacheExpiry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="itemNormalization" type="{}itemNormalizationType" minOccurs="0"/&gt; &lt;element name="shortcutTargetQuerySubjectRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element ref="{}securityFilter" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  7489. */
  7490. var QuerySubject = function (_ObjectType) {
  7491. _inherits(QuerySubject, _ObjectType);
  7492. function QuerySubject() {
  7493. var _ref;
  7494. var _temp, _this, _ret;
  7495. _classCallCheck(this, QuerySubject);
  7496. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  7497. args[_key] = arguments[_key];
  7498. }
  7499. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = QuerySubject.__proto__ || Object.getPrototypeOf(QuerySubject)).call.apply(_ref, [this].concat(args))), _this), _this.ref = null, _this.originalRef = null, _this.instanceType = null, _this.generateSQL = null, _this.useInJoinPath = null, _this.numberOfRows = null, _this.rowCount = null, _this.querySubjectUsage = null, _this.useLocalCache = null, _this.selectListControl = null, _this.columnDependency = null, _this.queryItem = null, _this.filter = null, _this.sqlQuery = null, _this.queryOperation = null, _this.joinOperation = null, _this.sourceCategory = null, _this.sortList = null, _this.item = null, _this.classifier = null, _this.dataCacheExpiry = null, _this.itemNormalization = null, _this.shortcutTargetQuerySubjectRef = null, _this.securityFilter = null, _temp), _possibleConstructorReturn(_this, _ret);
  7500. }
  7501. _createClass(QuerySubject, [{
  7502. key: 'getRef',
  7503. /**
  7504. * Gets the value of the ref property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the ref property. <p> For example, to add a new item, do as follows: <pre> getRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  7505. */
  7506. value: function getRef() {
  7507. if (!this.ref) {
  7508. this.ref = [];
  7509. }
  7510. return this.ref;
  7511. }
  7512. /**
  7513. * Gets the value of the originalRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the originalRef property. <p> For example, to add a new item, do as follows: <pre> getOriginalRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  7514. */
  7515. }, {
  7516. key: 'getOriginalRef',
  7517. value: function getOriginalRef() {
  7518. if (!this.originalRef) {
  7519. this.originalRef = [];
  7520. }
  7521. return this.originalRef;
  7522. }
  7523. /**
  7524. * Gets the value of the instanceType property.
  7525. * @return {InstanceType} possible object is {@link InstanceType}
  7526. */
  7527. }, {
  7528. key: 'getInstanceType',
  7529. value: function getInstanceType() {
  7530. return this.instanceType;
  7531. }
  7532. /**
  7533. * Sets the value of the instanceType property.
  7534. * @param {InstanceType} value allowed object is {@link InstanceType}
  7535. */
  7536. }, {
  7537. key: 'setInstanceType',
  7538. value: function setInstanceType(value) {
  7539. var oldValue = this.instanceType;
  7540. this.instanceType = value;
  7541. this._setAndNotify(58, oldValue, value, false, true);
  7542. }
  7543. /**
  7544. * Gets the value of the generateSQL property.
  7545. * @return {GenerateSQL} possible object is {@link GenerateSQL}
  7546. */
  7547. }, {
  7548. key: 'getGenerateSQL',
  7549. value: function getGenerateSQL() {
  7550. return this.generateSQL;
  7551. }
  7552. /**
  7553. * Sets the value of the generateSQL property.
  7554. * @param {GenerateSQL} value allowed object is {@link GenerateSQL}
  7555. */
  7556. }, {
  7557. key: 'setGenerateSQL',
  7558. value: function setGenerateSQL(value) {
  7559. var oldValue = this.generateSQL;
  7560. this.generateSQL = value;
  7561. this._setAndNotify(45, oldValue, value, false, true);
  7562. }
  7563. /**
  7564. * Gets the value of the useInJoinPath property.
  7565. * @return {Boolean} possible object is {@link Boolean}
  7566. */
  7567. }, {
  7568. key: 'isUseInJoinPath',
  7569. value: function isUseInJoinPath() {
  7570. return this.useInJoinPath;
  7571. }
  7572. /**
  7573. * Sets the value of the useInJoinPath property.
  7574. * @param {Boolean} value allowed object is {@link Boolean}
  7575. */
  7576. }, {
  7577. key: 'setUseInJoinPath',
  7578. value: function setUseInJoinPath(value) {
  7579. var oldValue = this.useInJoinPath;
  7580. this.useInJoinPath = value;
  7581. this._setAndNotify(51, oldValue, value, false, true);
  7582. }
  7583. /**
  7584. * Gets the value of the numberOfRows property.
  7585. * @return {String} possible object is {@link String}
  7586. */
  7587. }, {
  7588. key: 'getNumberOfRows',
  7589. value: function getNumberOfRows() {
  7590. return this.numberOfRows;
  7591. }
  7592. /**
  7593. * Sets the value of the numberOfRows property.
  7594. * @param {String} value allowed object is {@link String}
  7595. */
  7596. }, {
  7597. key: 'setNumberOfRows',
  7598. value: function setNumberOfRows(value) {
  7599. var oldValue = this.numberOfRows;
  7600. this.numberOfRows = value;
  7601. this._setAndNotify(61, oldValue, value, false, true);
  7602. }
  7603. /**
  7604. * Gets the value of the rowCount property.
  7605. * @return {Number} possible object is {@link Long}
  7606. */
  7607. }, {
  7608. key: 'getRowCount',
  7609. value: function getRowCount() {
  7610. return this.rowCount;
  7611. }
  7612. /**
  7613. * Sets the value of the rowCount property.
  7614. * @param {Number} value allowed object is {@link Long}
  7615. */
  7616. }, {
  7617. key: 'setRowCount',
  7618. value: function setRowCount(value) {
  7619. var oldValue = this.rowCount;
  7620. this.rowCount = value;
  7621. this._setAndNotify(53, oldValue, value, false, true);
  7622. }
  7623. /**
  7624. * Gets the value of the querySubjectUsage property.
  7625. * @return {QuerySubjectUsage} possible object is {@link QuerySubjectUsage}
  7626. */
  7627. }, {
  7628. key: 'getQuerySubjectUsage',
  7629. value: function getQuerySubjectUsage() {
  7630. return this.querySubjectUsage;
  7631. }
  7632. /**
  7633. * Sets the value of the querySubjectUsage property.
  7634. * @param {QuerySubjectUsage} value allowed object is {@link QuerySubjectUsage}
  7635. */
  7636. }, {
  7637. key: 'setQuerySubjectUsage',
  7638. value: function setQuerySubjectUsage(value) {
  7639. var oldValue = this.querySubjectUsage;
  7640. this.querySubjectUsage = value;
  7641. this._setAndNotify(49, oldValue, value, false, true);
  7642. }
  7643. /**
  7644. * Gets the value of the useLocalCache property.
  7645. * @return {Boolean} possible object is {@link Boolean}
  7646. */
  7647. }, {
  7648. key: 'isUseLocalCache',
  7649. value: function isUseLocalCache() {
  7650. return this.useLocalCache;
  7651. }
  7652. /**
  7653. * Sets the value of the useLocalCache property.
  7654. * @param {Boolean} value allowed object is {@link Boolean}
  7655. */
  7656. }, {
  7657. key: 'setUseLocalCache',
  7658. value: function setUseLocalCache(value) {
  7659. var oldValue = this.useLocalCache;
  7660. this.useLocalCache = value;
  7661. this._setAndNotify(55, oldValue, value, false, true);
  7662. }
  7663. /**
  7664. * Gets the value of the selectListControl property.
  7665. * @return {SelectListControlType} possible object is {@link SelectListControlType}
  7666. */
  7667. }, {
  7668. key: 'getSelectListControl',
  7669. value: function getSelectListControl() {
  7670. return this.selectListControl;
  7671. }
  7672. /**
  7673. * Sets the value of the selectListControl property.
  7674. * @param {SelectListControlType} value allowed object is {@link SelectListControlType}
  7675. */
  7676. }, {
  7677. key: 'setSelectListControl',
  7678. value: function setSelectListControl(value) {
  7679. var oldValue = this.selectListControl;
  7680. this.selectListControl = value;
  7681. this._setAndNotify(50, oldValue, value, false, true);
  7682. }
  7683. /**
  7684. * Gets the value of the columnDependency property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the columnDependency property. <p> For example, to add a new item, do as follows: <pre> getColumnDependency().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link QuerySubject.ColumnDependency}
  7685. */
  7686. }, {
  7687. key: 'getColumnDependency',
  7688. value: function getColumnDependency() {
  7689. if (!this.columnDependency) {
  7690. this.columnDependency = [];
  7691. }
  7692. return this.columnDependency;
  7693. }
  7694. /**
  7695. * A query item from a query subject. Obsolete location (after 3.2). The new location is querySubject/item[n]/queryItem Gets the value of the queryItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the queryItem property. <p> For example, to add a new item, do as follows: <pre> getQueryItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link QueryItem}
  7696. */
  7697. }, {
  7698. key: 'getQueryItem',
  7699. value: function getQueryItem() {
  7700. if (!this.queryItem) {
  7701. this.queryItem = [];
  7702. }
  7703. return this.queryItem;
  7704. }
  7705. /**
  7706. * Gets the value of the filter property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the filter property. <p> For example, to add a new item, do as follows: <pre> getFilter().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Filter}
  7707. */
  7708. }, {
  7709. key: 'getFilter',
  7710. value: function getFilter() {
  7711. if (!this.filter) {
  7712. this.filter = [];
  7713. }
  7714. return this.filter;
  7715. }
  7716. /**
  7717. * Gets the value of the sqlQuery property.
  7718. * @return {SqlQueryType} possible object is {@link SqlQueryType}
  7719. */
  7720. }, {
  7721. key: 'getSqlQuery',
  7722. value: function getSqlQuery() {
  7723. return this.sqlQuery;
  7724. }
  7725. /**
  7726. * Sets the value of the sqlQuery property.
  7727. * @param {SqlQueryType} value allowed object is {@link SqlQueryType}
  7728. */
  7729. }, {
  7730. key: 'setSqlQuery',
  7731. value: function setSqlQuery(value) {
  7732. var oldValue = this.sqlQuery;
  7733. this.sqlQuery = value;
  7734. this._setAndNotify(56, oldValue, value, true, true);
  7735. }
  7736. /**
  7737. * Gets the value of the queryOperation property.
  7738. * @return {QueryOperation} possible object is {@link QuerySubject.QueryOperation}
  7739. */
  7740. }, {
  7741. key: 'getQueryOperation',
  7742. value: function getQueryOperation() {
  7743. return this.queryOperation;
  7744. }
  7745. /**
  7746. * Sets the value of the queryOperation property.
  7747. * @param {QueryOperation} value allowed object is {@link QuerySubject.QueryOperation}
  7748. */
  7749. }, {
  7750. key: 'setQueryOperation',
  7751. value: function setQueryOperation(value) {
  7752. var oldValue = this.queryOperation;
  7753. this.queryOperation = value;
  7754. this._setAndNotify(47, oldValue, value, true, true);
  7755. }
  7756. /**
  7757. * Gets the value of the joinOperation property.
  7758. * @return {JoinOperation} possible object is {@link QuerySubject.JoinOperation}
  7759. */
  7760. }, {
  7761. key: 'getJoinOperation',
  7762. value: function getJoinOperation() {
  7763. return this.joinOperation;
  7764. }
  7765. /**
  7766. * Sets the value of the joinOperation property.
  7767. * @param {JoinOperation} value allowed object is {@link QuerySubject.JoinOperation}
  7768. */
  7769. }, {
  7770. key: 'setJoinOperation',
  7771. value: function setJoinOperation(value) {
  7772. var oldValue = this.joinOperation;
  7773. this.joinOperation = value;
  7774. this._setAndNotify(59, oldValue, value, true, true);
  7775. }
  7776. /**
  7777. * Gets the value of the sourceCategory property.
  7778. * @return {SourceCategoryType} possible object is {@link SourceCategoryType}
  7779. */
  7780. }, {
  7781. key: 'getSourceCategory',
  7782. value: function getSourceCategory() {
  7783. return this.sourceCategory;
  7784. }
  7785. /**
  7786. * Sets the value of the sourceCategory property.
  7787. * @param {SourceCategoryType} value allowed object is {@link SourceCategoryType}
  7788. */
  7789. }, {
  7790. key: 'setSourceCategory',
  7791. value: function setSourceCategory(value) {
  7792. var oldValue = this.sourceCategory;
  7793. this.sourceCategory = value;
  7794. this._setAndNotify(46, oldValue, value, false, true);
  7795. }
  7796. /**
  7797. * Gets the value of the sortList property.
  7798. * @return {SortListType} possible object is {@link SortListType}
  7799. */
  7800. }, {
  7801. key: 'getSortList',
  7802. value: function getSortList() {
  7803. return this.sortList;
  7804. }
  7805. /**
  7806. * Sets the value of the sortList property.
  7807. * @param {SortListType} value allowed object is {@link SortListType}
  7808. */
  7809. }, {
  7810. key: 'setSortList',
  7811. value: function setSortList(value) {
  7812. var oldValue = this.sortList;
  7813. this.sortList = value;
  7814. this._setAndNotify(18, oldValue, value, true, true);
  7815. }
  7816. /**
  7817. * Gets the value of the item property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the item property. <p> For example, to add a new item, do as follows: <pre> getItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ItemType}
  7818. */
  7819. }, {
  7820. key: 'getItem',
  7821. value: function getItem() {
  7822. if (!this.item) {
  7823. this.item = [];
  7824. }
  7825. return this.item;
  7826. }
  7827. /**
  7828. * Gets the value of the classifier property.
  7829. * @return {QsClassifierType} possible object is {@link QsClassifierType}
  7830. */
  7831. }, {
  7832. key: 'getClassifier',
  7833. value: function getClassifier() {
  7834. return this.classifier;
  7835. }
  7836. /**
  7837. * Sets the value of the classifier property.
  7838. * @param {QsClassifierType} value allowed object is {@link QsClassifierType}
  7839. */
  7840. }, {
  7841. key: 'setClassifier',
  7842. value: function setClassifier(value) {
  7843. var oldValue = this.classifier;
  7844. this.classifier = value;
  7845. this._setAndNotify(52, oldValue, value, false, true);
  7846. }
  7847. /**
  7848. * Gets the value of the dataCacheExpiry property.
  7849. * @return {String} possible object is {@link String}
  7850. */
  7851. }, {
  7852. key: 'getDataCacheExpiry',
  7853. value: function getDataCacheExpiry() {
  7854. return this.dataCacheExpiry;
  7855. }
  7856. /**
  7857. * Sets the value of the dataCacheExpiry property.
  7858. * @param {String} value allowed object is {@link String}
  7859. */
  7860. }, {
  7861. key: 'setDataCacheExpiry',
  7862. value: function setDataCacheExpiry(value) {
  7863. var oldValue = this.dataCacheExpiry;
  7864. this.dataCacheExpiry = value;
  7865. this._setAndNotify(62, oldValue, value, false, true);
  7866. }
  7867. /**
  7868. * Gets the value of the itemNormalization property.
  7869. * @return {ItemNormalizationType} possible object is {@link ItemNormalizationType}
  7870. */
  7871. }, {
  7872. key: 'getItemNormalization',
  7873. value: function getItemNormalization() {
  7874. return this.itemNormalization;
  7875. }
  7876. /**
  7877. * Sets the value of the itemNormalization property.
  7878. * @param {ItemNormalizationType} value allowed object is {@link ItemNormalizationType}
  7879. */
  7880. }, {
  7881. key: 'setItemNormalization',
  7882. value: function setItemNormalization(value) {
  7883. var oldValue = this.itemNormalization;
  7884. this.itemNormalization = value;
  7885. this._setAndNotify(54, oldValue, value, true, true);
  7886. }
  7887. /**
  7888. * Gets the value of the shortcutTargetQuerySubjectRef property.
  7889. * @return {String} possible object is {@link String}
  7890. */
  7891. }, {
  7892. key: 'getShortcutTargetQuerySubjectRef',
  7893. value: function getShortcutTargetQuerySubjectRef() {
  7894. return this.shortcutTargetQuerySubjectRef;
  7895. }
  7896. /**
  7897. * Sets the value of the shortcutTargetQuerySubjectRef property.
  7898. * @param {String} value allowed object is {@link String}
  7899. */
  7900. }, {
  7901. key: 'setShortcutTargetQuerySubjectRef',
  7902. value: function setShortcutTargetQuerySubjectRef(value) {
  7903. var oldValue = this.shortcutTargetQuerySubjectRef;
  7904. this.shortcutTargetQuerySubjectRef = value;
  7905. this._setAndNotify(48, oldValue, value, false, true);
  7906. }
  7907. /**
  7908. * Gets the value of the securityFilter property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the securityFilter property. <p> For example, to add a new item, do as follows: <pre> getSecurityFilter().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link SecurityFilter}
  7909. */
  7910. }, {
  7911. key: 'getSecurityFilter',
  7912. value: function getSecurityFilter() {
  7913. if (!this.securityFilter) {
  7914. this.securityFilter = [];
  7915. }
  7916. return this.securityFilter;
  7917. }
  7918. /**
  7919. * Gets the value of the <code>ref</code> property without initializing the property to an empty list if it is unset.
  7920. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  7921. */
  7922. }, {
  7923. key: 'basicGetRef',
  7924. value: function basicGetRef() {
  7925. return this.ref;
  7926. }
  7927. /**
  7928. * Gets the value of the <code>originalRef</code> property without initializing the property to an empty list if it is unset.
  7929. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  7930. */
  7931. }, {
  7932. key: 'basicGetOriginalRef',
  7933. value: function basicGetOriginalRef() {
  7934. return this.originalRef;
  7935. }
  7936. /**
  7937. * Gets the value of the <code>columnDependency</code> property without initializing the property to an empty list if it is unset.
  7938. * @return {Array} the list of <code>ColumnDependency</code> elements, or <code>null</code> if not set
  7939. */
  7940. }, {
  7941. key: 'basicGetColumnDependency',
  7942. value: function basicGetColumnDependency() {
  7943. return this.columnDependency;
  7944. }
  7945. /**
  7946. * Gets the value of the <code>queryItem</code> property without initializing the property to an empty list if it is unset.
  7947. * @return {Array} the list of <code>QueryItem</code> elements, or <code>null</code> if not set
  7948. */
  7949. }, {
  7950. key: 'basicGetQueryItem',
  7951. value: function basicGetQueryItem() {
  7952. return this.queryItem;
  7953. }
  7954. /**
  7955. * Gets the value of the <code>filter</code> property without initializing the property to an empty list if it is unset.
  7956. * @return {Array} the list of <code>Filter</code> elements, or <code>null</code> if not set
  7957. */
  7958. }, {
  7959. key: 'basicGetFilter',
  7960. value: function basicGetFilter() {
  7961. return this.filter;
  7962. }
  7963. /**
  7964. * Gets the value of the <code>item</code> property without initializing the property to an empty list if it is unset.
  7965. * @return {Array} the list of <code>ItemType</code> elements, or <code>null</code> if not set
  7966. */
  7967. }, {
  7968. key: 'basicGetItem',
  7969. value: function basicGetItem() {
  7970. return this.item;
  7971. }
  7972. /**
  7973. * Gets the value of the <code>securityFilter</code> property without initializing the property to an empty list if it is unset.
  7974. * @return {Array} the list of <code>SecurityFilter</code> elements, or <code>null</code> if not set
  7975. */
  7976. }, {
  7977. key: 'basicGetSecurityFilter',
  7978. value: function basicGetSecurityFilter() {
  7979. return this.securityFilter;
  7980. }
  7981. /**
  7982. * Creates a new instance of <code>QuerySubject</code> object from JSON data.
  7983. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  7984. * @param {Object} json JSON data to be used to create the <code> QuerySubject</code> object from.
  7985. * @return {QuerySubject} an object of type <code>QuerySubject</code>
  7986. */
  7987. }, {
  7988. key: 'addRefAt',
  7989. /**
  7990. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  7991. */
  7992. value: function addRefAt(position, item) {
  7993. this._addAtAndNotify(this.getRef(), position, item, 36, false, false);
  7994. }
  7995. /**
  7996. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  7997. */
  7998. }, {
  7999. key: 'addRef',
  8000. value: function addRef(item) {
  8001. this.addRefAt(this.getRef().length, item);
  8002. }
  8003. /**
  8004. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8005. */
  8006. }, {
  8007. key: 'removeRefAt',
  8008. value: function removeRefAt(position) {
  8009. this._removeAtAndNotify(this.getRef(), position, 36, false);
  8010. }
  8011. /**
  8012. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8013. */
  8014. }, {
  8015. key: 'removeRef',
  8016. value: function removeRef(item) {
  8017. var i = this.getRef().indexOf(item);
  8018. if (i >= 0) {
  8019. this.removeRefAt(i);
  8020. }
  8021. }
  8022. /**
  8023. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8024. */
  8025. }, {
  8026. key: 'addOriginalRefAt',
  8027. value: function addOriginalRefAt(position, item) {
  8028. this._addAtAndNotify(this.getOriginalRef(), position, item, 60, false, false);
  8029. }
  8030. /**
  8031. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8032. */
  8033. }, {
  8034. key: 'addOriginalRef',
  8035. value: function addOriginalRef(item) {
  8036. this.addOriginalRefAt(this.getOriginalRef().length, item);
  8037. }
  8038. /**
  8039. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8040. */
  8041. }, {
  8042. key: 'removeOriginalRefAt',
  8043. value: function removeOriginalRefAt(position) {
  8044. this._removeAtAndNotify(this.getOriginalRef(), position, 60, false);
  8045. }
  8046. /**
  8047. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8048. */
  8049. }, {
  8050. key: 'removeOriginalRef',
  8051. value: function removeOriginalRef(item) {
  8052. var i = this.getOriginalRef().indexOf(item);
  8053. if (i >= 0) {
  8054. this.removeOriginalRefAt(i);
  8055. }
  8056. }
  8057. /**
  8058. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8059. */
  8060. }, {
  8061. key: 'addColumnDependencyAt',
  8062. value: function addColumnDependencyAt(position, item) {
  8063. this._addAtAndNotify(this.getColumnDependency(), position, item, 57, true, false);
  8064. }
  8065. /**
  8066. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8067. */
  8068. }, {
  8069. key: 'addColumnDependency',
  8070. value: function addColumnDependency(item) {
  8071. this.addColumnDependencyAt(this.getColumnDependency().length, item);
  8072. }
  8073. /**
  8074. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8075. */
  8076. }, {
  8077. key: 'removeColumnDependencyAt',
  8078. value: function removeColumnDependencyAt(position) {
  8079. this._removeAtAndNotify(this.getColumnDependency(), position, 57, true);
  8080. }
  8081. /**
  8082. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8083. */
  8084. }, {
  8085. key: 'removeColumnDependency',
  8086. value: function removeColumnDependency(item) {
  8087. var i = this.getColumnDependency().indexOf(item);
  8088. if (i >= 0) {
  8089. this.removeColumnDependencyAt(i);
  8090. }
  8091. }
  8092. /**
  8093. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8094. */
  8095. }, {
  8096. key: 'addQueryItemAt',
  8097. value: function addQueryItemAt(position, item) {
  8098. this._addAtAndNotify(this.getQueryItem(), position, item, 28, true, true);
  8099. }
  8100. /**
  8101. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8102. */
  8103. }, {
  8104. key: 'addQueryItem',
  8105. value: function addQueryItem(item) {
  8106. this.addQueryItemAt(this.getQueryItem().length, item);
  8107. }
  8108. /**
  8109. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8110. */
  8111. }, {
  8112. key: 'removeQueryItemAt',
  8113. value: function removeQueryItemAt(position) {
  8114. this._removeAtAndNotify(this.getQueryItem(), position, 28, true);
  8115. }
  8116. /**
  8117. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8118. */
  8119. }, {
  8120. key: 'removeQueryItem',
  8121. value: function removeQueryItem(item) {
  8122. var i = this.getQueryItem().indexOf(item);
  8123. if (i >= 0) {
  8124. this.removeQueryItemAt(i);
  8125. }
  8126. }
  8127. /**
  8128. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8129. */
  8130. }, {
  8131. key: 'addFilterAt',
  8132. value: function addFilterAt(position, item) {
  8133. var filterList = this.getFilter();
  8134. for (var i = 0; i < filterList.length; ++i) {
  8135. var override = filterList[i];
  8136. if (override.getIdentifier() != null && override.getIdentifier() == item.getIdentifier()) {
  8137. return;
  8138. }
  8139. }
  8140. this._addAtAndNotify(this.getFilter(), position, item, 24, true, true);
  8141. }
  8142. /**
  8143. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8144. */
  8145. }, {
  8146. key: 'addFilter',
  8147. value: function addFilter(item) {
  8148. this.addFilterAt(this.getFilter().length, item);
  8149. }
  8150. /**
  8151. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8152. */
  8153. }, {
  8154. key: 'removeFilterAt',
  8155. value: function removeFilterAt(position) {
  8156. this._removeAtAndNotify(this.getFilter(), position, 24, true);
  8157. }
  8158. /**
  8159. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8160. */
  8161. }, {
  8162. key: 'removeFilter',
  8163. value: function removeFilter(item) {
  8164. var i = this.getFilter().indexOf(item);
  8165. if (i >= 0) {
  8166. this.removeFilterAt(i);
  8167. }
  8168. }
  8169. /**
  8170. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8171. */
  8172. }, {
  8173. key: 'addItemAt',
  8174. value: function addItemAt(position, item) {
  8175. this._addAtAndNotify(this.getItem(), position, item, 3, true, false);
  8176. var qi = item.getQueryItem();
  8177. if (qi) {
  8178. _MoserObject5.default.updatePropertyOverride(qi, this, 28, true);
  8179. }
  8180. var hierarchy = item.getItemHierarchy();
  8181. if (hierarchy) {
  8182. _MoserObject5.default.updatePropertyOverride(hierarchy, this, 27, true);
  8183. }
  8184. var namedSet = item.getNamedSet();
  8185. if (namedSet) {
  8186. _MoserObject5.default.updatePropertyOverride(namedSet, this, 26, true);
  8187. }
  8188. var filter = item.getFilter();
  8189. if (filter) {
  8190. _MoserObject5.default.updatePropertyOverride(filter, this, 24, true);
  8191. }
  8192. }
  8193. /**
  8194. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8195. */
  8196. }, {
  8197. key: 'addItem',
  8198. value: function addItem(item) {
  8199. this.addItemAt(this.getItem().length, item);
  8200. }
  8201. /**
  8202. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8203. */
  8204. }, {
  8205. key: 'removeItemAt',
  8206. value: function removeItemAt(position) {
  8207. this._removeAtAndNotify(this.getItem(), position, 3, true);
  8208. }
  8209. /**
  8210. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8211. */
  8212. }, {
  8213. key: 'removeItem',
  8214. value: function removeItem(item) {
  8215. var i = this.getItem().indexOf(item);
  8216. if (i >= 0) {
  8217. this.removeItemAt(i);
  8218. }
  8219. }
  8220. /**
  8221. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8222. */
  8223. }, {
  8224. key: 'addSecurityFilterAt',
  8225. value: function addSecurityFilterAt(position, item) {
  8226. this._addAtAndNotify(this.getSecurityFilter(), position, item, 44, true, true);
  8227. }
  8228. /**
  8229. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8230. */
  8231. }, {
  8232. key: 'addSecurityFilter',
  8233. value: function addSecurityFilter(item) {
  8234. this.addSecurityFilterAt(this.getSecurityFilter().length, item);
  8235. }
  8236. /**
  8237. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8238. */
  8239. }, {
  8240. key: 'removeSecurityFilterAt',
  8241. value: function removeSecurityFilterAt(position) {
  8242. this._removeAtAndNotify(this.getSecurityFilter(), position, 44, true);
  8243. }
  8244. /**
  8245. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8246. */
  8247. }, {
  8248. key: 'removeSecurityFilter',
  8249. value: function removeSecurityFilter(item) {
  8250. var i = this.getSecurityFilter().indexOf(item);
  8251. if (i >= 0) {
  8252. this.removeSecurityFilterAt(i);
  8253. }
  8254. }
  8255. /**
  8256. * Retrieves the type of this object
  8257. * @return {String} the object type in a <code>String</code>
  8258. */
  8259. }, {
  8260. key: 'getObjectType',
  8261. value: function getObjectType() {
  8262. return "QuerySubject";
  8263. }
  8264. /**
  8265. * Get a list of FeatureObjects
  8266. * @return {Array} A list of FeatureObjects
  8267. */
  8268. }, {
  8269. key: 'getFeatureList',
  8270. value: function getFeatureList(factory) {
  8271. var featureList = [];
  8272. featureList.push(this.createFeature(true, false, false, 36, "ref", null));
  8273. featureList.push(this.createFeature(true, false, false, 60, "originalRef", null));
  8274. featureList.push(this.createFeature(false, true, false, 58, "instanceType", _InstanceType2.default));
  8275. featureList.push(this.createFeature(false, true, false, 45, "generateSQL", _GenerateSQL2.default));
  8276. featureList.push(this.createFeature(false, false, false, 51, "useInJoinPath", null));
  8277. featureList.push(this.createFeature(false, false, false, 61, "numberOfRows", null));
  8278. featureList.push(this.createFeature(false, false, false, 53, "rowCount", null));
  8279. featureList.push(this.createFeature(false, true, false, 49, "querySubjectUsage", _QuerySubjectUsage2.default));
  8280. featureList.push(this.createFeature(false, false, false, 55, "useLocalCache", null));
  8281. featureList.push(this.createFeature(false, true, false, 50, "selectListControl", _SelectListControlType2.default));
  8282. var clazz;
  8283. if (factory) {
  8284. clazz = factory.createQuerySubjectColumnDependency().getClass();
  8285. }
  8286. featureList.push(this.createFeature(true, false, true, 57, "columnDependency", clazz));
  8287. if (factory) {
  8288. clazz = factory.createQueryItem().getClass();
  8289. }
  8290. featureList.push(this.createFeature(true, false, true, 28, "queryItem", clazz));
  8291. if (factory) {
  8292. clazz = factory.createFilter().getClass();
  8293. }
  8294. featureList.push(this.createFeature(true, false, true, 24, "filter", clazz));
  8295. if (factory) {
  8296. clazz = factory.createSqlQueryType().getClass();
  8297. }
  8298. featureList.push(this.createFeature(false, false, true, 56, "sqlQuery", clazz));
  8299. if (factory) {
  8300. clazz = factory.createQuerySubjectQueryOperation().getClass();
  8301. }
  8302. featureList.push(this.createFeature(false, false, true, 47, "queryOperation", clazz));
  8303. if (factory) {
  8304. clazz = factory.createQuerySubjectJoinOperation().getClass();
  8305. }
  8306. featureList.push(this.createFeature(false, false, true, 59, "joinOperation", clazz));
  8307. featureList.push(this.createFeature(false, true, false, 46, "sourceCategory", _SourceCategoryType2.default));
  8308. if (factory) {
  8309. clazz = factory.createSortListType().getClass();
  8310. }
  8311. featureList.push(this.createFeature(false, false, true, 18, "sortList", clazz));
  8312. if (factory) {
  8313. clazz = factory.createItemType().getClass();
  8314. }
  8315. featureList.push(this.createFeature(true, false, true, 3, "item", clazz));
  8316. featureList.push(this.createFeature(false, true, false, 52, "classifier", _QsClassifierType2.default));
  8317. featureList.push(this.createFeature(false, false, false, 62, "dataCacheExpiry", null));
  8318. if (factory) {
  8319. clazz = factory.createItemNormalizationType().getClass();
  8320. }
  8321. featureList.push(this.createFeature(false, false, true, 54, "itemNormalization", clazz));
  8322. featureList.push(this.createFeature(false, false, false, 48, "shortcutTargetQuerySubjectRef", null));
  8323. if (factory) {
  8324. clazz = factory.createSecurityFilter().getClass();
  8325. }
  8326. featureList.push(this.createFeature(true, false, true, 44, "securityFilter", clazz));
  8327. Array.prototype.push.apply(featureList, _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'getFeatureList', this).call(this, factory));
  8328. return featureList;
  8329. }
  8330. /**
  8331. * Set the value of a specific feature.
  8332. * @param {BaseMoserObject} value the value to set
  8333. * @param {int} featureID the feature id of the attribute to be set
  8334. */
  8335. }, {
  8336. key: 'set',
  8337. value: function set(featureID, value) {
  8338. switch (featureID) {
  8339. case 45:
  8340. this.setGenerateSQL(value);
  8341. break;
  8342. case 46:
  8343. this.setSourceCategory(value);
  8344. break;
  8345. case 47:
  8346. this.setQueryOperation(value);
  8347. break;
  8348. case 48:
  8349. this.setShortcutTargetQuerySubjectRef(value);
  8350. break;
  8351. case 49:
  8352. this.setQuerySubjectUsage(value);
  8353. break;
  8354. case 50:
  8355. this.setSelectListControl(value);
  8356. break;
  8357. case 51:
  8358. this.setUseInJoinPath(value);
  8359. break;
  8360. case 18:
  8361. this.setSortList(value);
  8362. break;
  8363. case 52:
  8364. this.setClassifier(value);
  8365. break;
  8366. case 53:
  8367. this.setRowCount(value);
  8368. break;
  8369. case 54:
  8370. this.setItemNormalization(value);
  8371. break;
  8372. case 55:
  8373. this.setUseLocalCache(value);
  8374. break;
  8375. case 56:
  8376. this.setSqlQuery(value);
  8377. break;
  8378. case 58:
  8379. this.setInstanceType(value);
  8380. break;
  8381. case 59:
  8382. this.setJoinOperation(value);
  8383. break;
  8384. case 61:
  8385. this.setNumberOfRows(value);
  8386. break;
  8387. case 62:
  8388. this.setDataCacheExpiry(value);
  8389. break;
  8390. default:
  8391. _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'set', this).call(this, featureID, value);
  8392. }
  8393. }
  8394. /**
  8395. * Set the value of a specific feature.
  8396. * @param {BaseMoserObject} value the value to set the value to set
  8397. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  8398. */
  8399. }, {
  8400. key: '_setList',
  8401. value: function _setList(featureID, value) {
  8402. switch (featureID) {
  8403. case 44:
  8404. this.securityFilter = value;
  8405. break;
  8406. case 36:
  8407. this.ref = value;
  8408. break;
  8409. case 3:
  8410. this.item = value;
  8411. break;
  8412. case 57:
  8413. this.columnDependency = value;
  8414. break;
  8415. case 24:
  8416. this.filter = value;
  8417. break;
  8418. case 28:
  8419. this.queryItem = value;
  8420. break;
  8421. case 60:
  8422. this.originalRef = value;
  8423. break;
  8424. default:
  8425. _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), '_setList', this).call(this, featureID, value);
  8426. }
  8427. }
  8428. /**
  8429. * Get the value of a specific feature.
  8430. * @param {int} featureID the feature id of the attribute to get
  8431. */
  8432. }, {
  8433. key: 'get',
  8434. value: function get(featureID) {
  8435. switch (featureID) {
  8436. case 44:
  8437. return this.getSecurityFilter();
  8438. case 45:
  8439. return this.getGenerateSQL();
  8440. case 46:
  8441. return this.getSourceCategory();
  8442. case 47:
  8443. return this.getQueryOperation();
  8444. case 48:
  8445. return this.getShortcutTargetQuerySubjectRef();
  8446. case 36:
  8447. return this.getRef();
  8448. case 49:
  8449. return this.getQuerySubjectUsage();
  8450. case 50:
  8451. return this.getSelectListControl();
  8452. case 51:
  8453. return this.isUseInJoinPath();
  8454. case 18:
  8455. return this.getSortList();
  8456. case 52:
  8457. return this.getClassifier();
  8458. case 53:
  8459. return this.getRowCount();
  8460. case 54:
  8461. return this.getItemNormalization();
  8462. case 3:
  8463. return this.getItem();
  8464. case 55:
  8465. return this.isUseLocalCache();
  8466. case 56:
  8467. return this.getSqlQuery();
  8468. case 57:
  8469. return this.getColumnDependency();
  8470. case 58:
  8471. return this.getInstanceType();
  8472. case 59:
  8473. return this.getJoinOperation();
  8474. case 24:
  8475. return this.getFilter();
  8476. case 28:
  8477. return this.getQueryItem();
  8478. case 60:
  8479. return this.getOriginalRef();
  8480. case 61:
  8481. return this.getNumberOfRows();
  8482. case 62:
  8483. return this.getDataCacheExpiry();
  8484. default:
  8485. return _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'get', this).call(this, featureID);
  8486. }
  8487. }
  8488. /**
  8489. * Get the value of a specific feature.
  8490. * @param {int} featureID the feature id of the attribute to get
  8491. */
  8492. }, {
  8493. key: 'basicGet',
  8494. value: function basicGet(featureID) {
  8495. switch (featureID) {
  8496. case 44:
  8497. return this.basicGetSecurityFilter();
  8498. case 45:
  8499. return this.getGenerateSQL();
  8500. case 46:
  8501. return this.getSourceCategory();
  8502. case 47:
  8503. return this.getQueryOperation();
  8504. case 48:
  8505. return this.getShortcutTargetQuerySubjectRef();
  8506. case 36:
  8507. return this.basicGetRef();
  8508. case 49:
  8509. return this.getQuerySubjectUsage();
  8510. case 50:
  8511. return this.getSelectListControl();
  8512. case 51:
  8513. return this.isUseInJoinPath();
  8514. case 18:
  8515. return this.getSortList();
  8516. case 52:
  8517. return this.getClassifier();
  8518. case 53:
  8519. return this.getRowCount();
  8520. case 54:
  8521. return this.getItemNormalization();
  8522. case 3:
  8523. return this.basicGetItem();
  8524. case 55:
  8525. return this.isUseLocalCache();
  8526. case 56:
  8527. return this.getSqlQuery();
  8528. case 57:
  8529. return this.basicGetColumnDependency();
  8530. case 58:
  8531. return this.getInstanceType();
  8532. case 59:
  8533. return this.getJoinOperation();
  8534. case 24:
  8535. return this.basicGetFilter();
  8536. case 28:
  8537. return this.basicGetQueryItem();
  8538. case 60:
  8539. return this.basicGetOriginalRef();
  8540. case 61:
  8541. return this.getNumberOfRows();
  8542. case 62:
  8543. return this.getDataCacheExpiry();
  8544. default:
  8545. return _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'basicGet', this).call(this, featureID);
  8546. }
  8547. }
  8548. /**
  8549. * Add the value of a specific feature at a specific position
  8550. * @param {int} position the array position of the item to be added
  8551. * @param {BaseMoserObject} value the value to add
  8552. * @param {int} featureID the feature id of the attribute to be added
  8553. */
  8554. }, {
  8555. key: 'addAt',
  8556. value: function addAt(featureID, position, value) {
  8557. switch (featureID) {
  8558. case 44:
  8559. this.addSecurityFilterAt(position, value);
  8560. break;
  8561. case 36:
  8562. this.addRefAt(position, value);
  8563. break;
  8564. case 3:
  8565. this.addItemAt(position, value);
  8566. break;
  8567. case 57:
  8568. this.addColumnDependencyAt(position, value);
  8569. break;
  8570. case 24:
  8571. this.addFilterAt(position, value);
  8572. break;
  8573. case 28:
  8574. this.addQueryItemAt(position, value);
  8575. break;
  8576. case 60:
  8577. this.addOriginalRefAt(position, value);
  8578. break;
  8579. default:
  8580. _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'addAt', this).call(this, featureID, position, value);
  8581. }
  8582. }
  8583. /**
  8584. * Add the value to the end of a specific collection feature
  8585. * @param {BaseMoserObject} value the value to add
  8586. * @param {int} featureID the feature id of the attribute to be added
  8587. */
  8588. }, {
  8589. key: 'add',
  8590. value: function add(featureID, value) {
  8591. switch (featureID) {
  8592. case 44:
  8593. this.addSecurityFilter(value);
  8594. break;
  8595. case 36:
  8596. this.addRef(value);
  8597. break;
  8598. case 3:
  8599. this.addItem(value);
  8600. break;
  8601. case 57:
  8602. this.addColumnDependency(value);
  8603. break;
  8604. case 24:
  8605. this.addFilter(value);
  8606. break;
  8607. case 28:
  8608. this.addQueryItem(value);
  8609. break;
  8610. case 60:
  8611. this.addOriginalRef(value);
  8612. break;
  8613. default:
  8614. _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'add', this).call(this, featureID, value);
  8615. }
  8616. }
  8617. /**
  8618. * Remove the value of a specific feature by index.
  8619. * @param {int} position the array position of the item to be removed
  8620. * @param {int} featureID the feature id of the attribute to be removed
  8621. */
  8622. }, {
  8623. key: 'removeAt',
  8624. value: function removeAt(featureID, position) {
  8625. switch (featureID) {
  8626. case 44:
  8627. this.removeSecurityFilterAt(position);
  8628. break;
  8629. case 36:
  8630. this.removeRefAt(position);
  8631. break;
  8632. case 3:
  8633. this.removeItemAt(position);
  8634. break;
  8635. case 57:
  8636. this.removeColumnDependencyAt(position);
  8637. break;
  8638. case 24:
  8639. this.removeFilterAt(position);
  8640. break;
  8641. case 28:
  8642. this.removeQueryItemAt(position);
  8643. break;
  8644. case 60:
  8645. this.removeOriginalRefAt(position);
  8646. break;
  8647. default:
  8648. _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'removeAt', this).call(this, featureID, position);
  8649. }
  8650. }
  8651. /**
  8652. * Remove the value from specific feature.
  8653. * @param {BaseMoserObject} item the item to be removed
  8654. * @param {int} featureID the feature id of the attribute to be removed
  8655. */
  8656. }, {
  8657. key: 'remove',
  8658. value: function remove(featureID, item) {
  8659. switch (featureID) {
  8660. case 44:
  8661. this.removeSecurityFilter(item);
  8662. break;
  8663. case 36:
  8664. this.removeRef(item);
  8665. break;
  8666. case 3:
  8667. this.removeItem(item);
  8668. break;
  8669. case 57:
  8670. this.removeColumnDependency(item);
  8671. break;
  8672. case 24:
  8673. this.removeFilter(item);
  8674. break;
  8675. case 28:
  8676. this.removeQueryItem(item);
  8677. break;
  8678. case 60:
  8679. this.removeOriginalRef(item);
  8680. break;
  8681. default:
  8682. _get(QuerySubject.prototype.__proto__ || Object.getPrototypeOf(QuerySubject.prototype), 'remove', this).call(this, featureID, item);
  8683. }
  8684. }
  8685. }], [{
  8686. key: 'fromJSON',
  8687. value: function fromJSON(json, factory) {
  8688. var result = factory.createQuerySubject();
  8689. var featureList = result.getFeatureList(factory);
  8690. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  8691. return result;
  8692. }
  8693. }]);
  8694. return QuerySubject;
  8695. }(_ObjectType3.default);
  8696. /**
  8697. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="keyRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  8698. */
  8699. exports.default = QuerySubject;
  8700. QuerySubject.ColumnDependency = function (_MoserObject) {
  8701. _inherits(_class2, _MoserObject);
  8702. function _class2() {
  8703. var _ref2;
  8704. var _temp2, _this2, _ret2;
  8705. _classCallCheck(this, _class2);
  8706. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  8707. args[_key2] = arguments[_key2];
  8708. }
  8709. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.ref = null, _this2.keyRef = null, _this2._referencedObject = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  8710. }
  8711. _createClass(_class2, [{
  8712. key: 'getRef',
  8713. /**
  8714. * Gets the value of the ref property.
  8715. * @return {String} possible object is {@link String}
  8716. */
  8717. value: function getRef() {
  8718. return this.ref;
  8719. }
  8720. /**
  8721. * Sets the value of the ref property.
  8722. * @param {String} value allowed object is {@link String}
  8723. */
  8724. }, {
  8725. key: 'setRef',
  8726. value: function setRef(value) {
  8727. var oldValue = this.ref;
  8728. this.ref = value;
  8729. this._setAndNotify(36, oldValue, value, false, false);
  8730. this._referencedObject = null;
  8731. }
  8732. /**
  8733. * Gets the value of the keyRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the keyRef property. <p> For example, to add a new item, do as follows: <pre> getKeyRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  8734. */
  8735. }, {
  8736. key: 'getKeyRef',
  8737. value: function getKeyRef() {
  8738. if (!this.keyRef) {
  8739. this.keyRef = [];
  8740. }
  8741. return this.keyRef;
  8742. }
  8743. /**
  8744. * Gets the value of the <code>keyRef</code> property without initializing the property to an empty list if it is unset.
  8745. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  8746. */
  8747. }, {
  8748. key: 'basicGetKeyRef',
  8749. value: function basicGetKeyRef() {
  8750. return this.keyRef;
  8751. }
  8752. /**
  8753. * Creates a new instance of <code>ColumnDependency</code> object from JSON data.
  8754. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  8755. * @param {Object} json JSON data to be used to create the <code> ColumnDependency</code> object from.
  8756. * @return {ColumnDependency} an object of type <code>ColumnDependency</code>
  8757. */
  8758. }, {
  8759. key: 'addKeyRefAt',
  8760. /**
  8761. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  8762. */
  8763. value: function addKeyRefAt(position, item) {
  8764. this._addAtAndNotify(this.getKeyRef(), position, item, 37, false, false);
  8765. }
  8766. /**
  8767. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  8768. */
  8769. }, {
  8770. key: 'addKeyRef',
  8771. value: function addKeyRef(item) {
  8772. this.addKeyRefAt(this.getKeyRef().length, item);
  8773. }
  8774. /**
  8775. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  8776. */
  8777. }, {
  8778. key: 'removeKeyRefAt',
  8779. value: function removeKeyRefAt(position) {
  8780. this._removeAtAndNotify(this.getKeyRef(), position, 37, false);
  8781. }
  8782. /**
  8783. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  8784. */
  8785. }, {
  8786. key: 'removeKeyRef',
  8787. value: function removeKeyRef(item) {
  8788. var i = this.getKeyRef().indexOf(item);
  8789. if (i >= 0) {
  8790. this.removeKeyRefAt(i);
  8791. }
  8792. }
  8793. /**
  8794. * Retrieves the type of this object
  8795. * @return {String} the object type in a <code>String</code>
  8796. */
  8797. }, {
  8798. key: 'getObjectType',
  8799. value: function getObjectType() {
  8800. return "ColumnDependency";
  8801. }
  8802. /**
  8803. * Get a list of FeatureObjects
  8804. * @return {Array} A list of FeatureObjects
  8805. */
  8806. }, {
  8807. key: 'getFeatureList',
  8808. value: function getFeatureList(factory) {
  8809. var featureList = [];
  8810. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  8811. featureList.push(this.createFeature(true, false, false, 37, "keyRef", null));
  8812. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  8813. return featureList;
  8814. }
  8815. /**
  8816. * Set the value of a specific feature.
  8817. * @param {BaseMoserObject} value the value to set
  8818. * @param {int} featureID the feature id of the attribute to be set
  8819. */
  8820. }, {
  8821. key: 'set',
  8822. value: function set(featureID, value) {
  8823. switch (featureID) {
  8824. case 36:
  8825. this.setRef(value);
  8826. break;
  8827. default:
  8828. throw new Error("The feature " + featureID + " is not valid.");
  8829. }
  8830. }
  8831. /**
  8832. * Set the value of a specific feature.
  8833. * @param {BaseMoserObject} value the value to set the value to set
  8834. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  8835. */
  8836. }, {
  8837. key: '_setList',
  8838. value: function _setList(featureID, value) {
  8839. switch (featureID) {
  8840. case 37:
  8841. this.keyRef = value;
  8842. break;
  8843. default:
  8844. throw new Error("The feature " + featureID + " is not valid.");
  8845. }
  8846. }
  8847. /**
  8848. * Get the value of a specific feature.
  8849. * @param {int} featureID the feature id of the attribute to get
  8850. */
  8851. }, {
  8852. key: 'get',
  8853. value: function get(featureID) {
  8854. switch (featureID) {
  8855. case 36:
  8856. return this.getRef();
  8857. case 37:
  8858. return this.getKeyRef();
  8859. default:
  8860. throw new Error("The feature " + featureID + " is not valid.");
  8861. }
  8862. }
  8863. /**
  8864. * Get the value of a specific feature.
  8865. * @param {int} featureID the feature id of the attribute to get
  8866. */
  8867. }, {
  8868. key: 'basicGet',
  8869. value: function basicGet(featureID) {
  8870. switch (featureID) {
  8871. case 36:
  8872. return this.getRef();
  8873. case 37:
  8874. return this.basicGetKeyRef();
  8875. default:
  8876. throw new Error("The feature " + featureID + " is not valid.");
  8877. }
  8878. }
  8879. /**
  8880. * Add the value of a specific feature at a specific position
  8881. * @param {int} position the array position of the item to be added
  8882. * @param {BaseMoserObject} value the value to add
  8883. * @param {int} featureID the feature id of the attribute to be added
  8884. */
  8885. }, {
  8886. key: 'addAt',
  8887. value: function addAt(featureID, position, value) {
  8888. switch (featureID) {
  8889. case 37:
  8890. this.addKeyRefAt(position, value);
  8891. break;
  8892. default:
  8893. throw new Error("The feature " + featureID + " is not valid.");
  8894. }
  8895. }
  8896. /**
  8897. * Add the value to the end of a specific collection feature
  8898. * @param {BaseMoserObject} value the value to add
  8899. * @param {int} featureID the feature id of the attribute to be added
  8900. */
  8901. }, {
  8902. key: 'add',
  8903. value: function add(featureID, value) {
  8904. switch (featureID) {
  8905. case 37:
  8906. this.addKeyRef(value);
  8907. break;
  8908. default:
  8909. throw new Error("The feature " + featureID + " is not valid.");
  8910. }
  8911. }
  8912. /**
  8913. * Remove the value of a specific feature by index.
  8914. * @param {int} position the array position of the item to be removed
  8915. * @param {int} featureID the feature id of the attribute to be removed
  8916. */
  8917. }, {
  8918. key: 'removeAt',
  8919. value: function removeAt(featureID, position) {
  8920. switch (featureID) {
  8921. case 37:
  8922. this.removeKeyRefAt(position);
  8923. break;
  8924. default:
  8925. throw new Error("The feature " + featureID + " is not valid.");
  8926. }
  8927. }
  8928. /**
  8929. * Remove the value from specific feature.
  8930. * @param {BaseMoserObject} item the item to be removed
  8931. * @param {int} featureID the feature id of the attribute to be removed
  8932. */
  8933. }, {
  8934. key: 'remove',
  8935. value: function remove(featureID, item) {
  8936. switch (featureID) {
  8937. case 37:
  8938. this.removeKeyRef(item);
  8939. break;
  8940. default:
  8941. throw new Error("The feature " + featureID + " is not valid.");
  8942. }
  8943. }
  8944. /**
  8945. * Set the resolved object based on reference.
  8946. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  8947. */
  8948. }, {
  8949. key: 'setReferencedObject',
  8950. value: function setReferencedObject(referencedObject) {
  8951. this._referencedObject = referencedObject;
  8952. }
  8953. /**
  8954. * Get the resolved object based on reference.
  8955. * @return {MoserObject} the referenced <code>MoserObject</code>
  8956. */
  8957. }, {
  8958. key: 'getReferencedObject',
  8959. value: function getReferencedObject() {
  8960. return this._referencedObject;
  8961. }
  8962. }, {
  8963. key: 'clone',
  8964. value: function clone() {
  8965. var cloned = _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'clone', this).call(this);
  8966. cloned.setReferencedObject(this._referencedObject);
  8967. return cloned;
  8968. }
  8969. }], [{
  8970. key: 'fromJSON',
  8971. value: function fromJSON(json, factory) {
  8972. var result = factory.createQuerySubjectColumnDependency();
  8973. var featureList = result.getFeatureList(factory);
  8974. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  8975. return result;
  8976. }
  8977. }]);
  8978. return _class2;
  8979. }(_MoserObject5.default);
  8980. /**
  8981. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="queryRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;element ref="{}relationship" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  8982. */
  8983. QuerySubject.JoinOperation = function (_MoserObject2) {
  8984. _inherits(_class4, _MoserObject2);
  8985. function _class4() {
  8986. var _ref3;
  8987. var _temp3, _this3, _ret3;
  8988. _classCallCheck(this, _class4);
  8989. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  8990. args[_key3] = arguments[_key3];
  8991. }
  8992. return _ret3 = (_temp3 = (_this3 = _possibleConstructorReturn(this, (_ref3 = _class4.__proto__ || Object.getPrototypeOf(_class4)).call.apply(_ref3, [this].concat(args))), _this3), _this3.queryRef = null, _this3.relationship = null, _temp3), _possibleConstructorReturn(_this3, _ret3);
  8993. }
  8994. _createClass(_class4, [{
  8995. key: 'getQueryRef',
  8996. /**
  8997. * Gets the value of the queryRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the queryRef property. <p> For example, to add a new item, do as follows: <pre> getQueryRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  8998. */
  8999. value: function getQueryRef() {
  9000. if (!this.queryRef) {
  9001. this.queryRef = [];
  9002. }
  9003. return this.queryRef;
  9004. }
  9005. /**
  9006. * A query that represents the join of two query subjects or tables.Gets the value of the relationship property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the relationship property. <p> For example, to add a new item, do as follows: <pre> getRelationship().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Relationship}
  9007. */
  9008. }, {
  9009. key: 'getRelationship',
  9010. value: function getRelationship() {
  9011. if (!this.relationship) {
  9012. this.relationship = [];
  9013. }
  9014. return this.relationship;
  9015. }
  9016. /**
  9017. * Gets the value of the <code>queryRef</code> property without initializing the property to an empty list if it is unset.
  9018. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  9019. */
  9020. }, {
  9021. key: 'basicGetQueryRef',
  9022. value: function basicGetQueryRef() {
  9023. return this.queryRef;
  9024. }
  9025. /**
  9026. * Gets the value of the <code>relationship</code> property without initializing the property to an empty list if it is unset.
  9027. * @return {Array} the list of <code>Relationship</code> elements, or <code>null</code> if not set
  9028. */
  9029. }, {
  9030. key: 'basicGetRelationship',
  9031. value: function basicGetRelationship() {
  9032. return this.relationship;
  9033. }
  9034. /**
  9035. * Creates a new instance of <code>JoinOperation</code> object from JSON data.
  9036. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  9037. * @param {Object} json JSON data to be used to create the <code> JoinOperation</code> object from.
  9038. * @return {JoinOperation} an object of type <code>JoinOperation</code>
  9039. */
  9040. }, {
  9041. key: 'addQueryRefAt',
  9042. /**
  9043. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  9044. */
  9045. value: function addQueryRefAt(position, item) {
  9046. this._addAtAndNotify(this.getQueryRef(), position, item, 187, false, false);
  9047. }
  9048. /**
  9049. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  9050. */
  9051. }, {
  9052. key: 'addQueryRef',
  9053. value: function addQueryRef(item) {
  9054. this.addQueryRefAt(this.getQueryRef().length, item);
  9055. }
  9056. /**
  9057. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  9058. */
  9059. }, {
  9060. key: 'removeQueryRefAt',
  9061. value: function removeQueryRefAt(position) {
  9062. this._removeAtAndNotify(this.getQueryRef(), position, 187, false);
  9063. }
  9064. /**
  9065. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  9066. */
  9067. }, {
  9068. key: 'removeQueryRef',
  9069. value: function removeQueryRef(item) {
  9070. var i = this.getQueryRef().indexOf(item);
  9071. if (i >= 0) {
  9072. this.removeQueryRefAt(i);
  9073. }
  9074. }
  9075. /**
  9076. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  9077. */
  9078. }, {
  9079. key: 'addRelationshipAt',
  9080. value: function addRelationshipAt(position, item) {
  9081. this._addAtAndNotify(this.getRelationship(), position, item, 133, true, true);
  9082. }
  9083. /**
  9084. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  9085. */
  9086. }, {
  9087. key: 'addRelationship',
  9088. value: function addRelationship(item) {
  9089. this.addRelationshipAt(this.getRelationship().length, item);
  9090. }
  9091. /**
  9092. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  9093. */
  9094. }, {
  9095. key: 'removeRelationshipAt',
  9096. value: function removeRelationshipAt(position) {
  9097. this._removeAtAndNotify(this.getRelationship(), position, 133, true);
  9098. }
  9099. /**
  9100. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  9101. */
  9102. }, {
  9103. key: 'removeRelationship',
  9104. value: function removeRelationship(item) {
  9105. var i = this.getRelationship().indexOf(item);
  9106. if (i >= 0) {
  9107. this.removeRelationshipAt(i);
  9108. }
  9109. }
  9110. /**
  9111. * Retrieves the type of this object
  9112. * @return {String} the object type in a <code>String</code>
  9113. */
  9114. }, {
  9115. key: 'getObjectType',
  9116. value: function getObjectType() {
  9117. return "JoinOperation";
  9118. }
  9119. /**
  9120. * Get a list of FeatureObjects
  9121. * @return {Array} A list of FeatureObjects
  9122. */
  9123. }, {
  9124. key: 'getFeatureList',
  9125. value: function getFeatureList(factory) {
  9126. var featureList = [];
  9127. featureList.push(this.createFeature(true, false, false, 187, "queryRef", null));
  9128. var clazz;
  9129. if (factory) {
  9130. clazz = factory.createRelationship().getClass();
  9131. }
  9132. featureList.push(this.createFeature(true, false, true, 133, "relationship", clazz));
  9133. Array.prototype.push.apply(featureList, _get(_class4.prototype.__proto__ || Object.getPrototypeOf(_class4.prototype), 'getFeatureList', this).call(this, factory));
  9134. return featureList;
  9135. }
  9136. /**
  9137. * Set the value of a specific feature.
  9138. * @param {BaseMoserObject} value the value to set
  9139. * @param {int} featureID the feature id of the attribute to be set
  9140. */
  9141. }, {
  9142. key: 'set',
  9143. value: function set(featureID, value) {
  9144. switch (featureID) {
  9145. default:
  9146. throw new Error("The feature " + featureID + " is not valid.");
  9147. }
  9148. }
  9149. /**
  9150. * Set the value of a specific feature.
  9151. * @param {BaseMoserObject} value the value to set the value to set
  9152. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  9153. */
  9154. }, {
  9155. key: '_setList',
  9156. value: function _setList(featureID, value) {
  9157. switch (featureID) {
  9158. case 133:
  9159. this.relationship = value;
  9160. break;
  9161. case 187:
  9162. this.queryRef = value;
  9163. break;
  9164. default:
  9165. throw new Error("The feature " + featureID + " is not valid.");
  9166. }
  9167. }
  9168. /**
  9169. * Get the value of a specific feature.
  9170. * @param {int} featureID the feature id of the attribute to get
  9171. */
  9172. }, {
  9173. key: 'get',
  9174. value: function get(featureID) {
  9175. switch (featureID) {
  9176. case 133:
  9177. return this.getRelationship();
  9178. case 187:
  9179. return this.getQueryRef();
  9180. default:
  9181. throw new Error("The feature " + featureID + " is not valid.");
  9182. }
  9183. }
  9184. /**
  9185. * Get the value of a specific feature.
  9186. * @param {int} featureID the feature id of the attribute to get
  9187. */
  9188. }, {
  9189. key: 'basicGet',
  9190. value: function basicGet(featureID) {
  9191. switch (featureID) {
  9192. case 133:
  9193. return this.basicGetRelationship();
  9194. case 187:
  9195. return this.basicGetQueryRef();
  9196. default:
  9197. throw new Error("The feature " + featureID + " is not valid.");
  9198. }
  9199. }
  9200. /**
  9201. * Add the value of a specific feature at a specific position
  9202. * @param {int} position the array position of the item to be added
  9203. * @param {BaseMoserObject} value the value to add
  9204. * @param {int} featureID the feature id of the attribute to be added
  9205. */
  9206. }, {
  9207. key: 'addAt',
  9208. value: function addAt(featureID, position, value) {
  9209. switch (featureID) {
  9210. case 133:
  9211. this.addRelationshipAt(position, value);
  9212. break;
  9213. case 187:
  9214. this.addQueryRefAt(position, value);
  9215. break;
  9216. default:
  9217. throw new Error("The feature " + featureID + " is not valid.");
  9218. }
  9219. }
  9220. /**
  9221. * Add the value to the end of a specific collection feature
  9222. * @param {BaseMoserObject} value the value to add
  9223. * @param {int} featureID the feature id of the attribute to be added
  9224. */
  9225. }, {
  9226. key: 'add',
  9227. value: function add(featureID, value) {
  9228. switch (featureID) {
  9229. case 133:
  9230. this.addRelationship(value);
  9231. break;
  9232. case 187:
  9233. this.addQueryRef(value);
  9234. break;
  9235. default:
  9236. throw new Error("The feature " + featureID + " is not valid.");
  9237. }
  9238. }
  9239. /**
  9240. * Remove the value of a specific feature by index.
  9241. * @param {int} position the array position of the item to be removed
  9242. * @param {int} featureID the feature id of the attribute to be removed
  9243. */
  9244. }, {
  9245. key: 'removeAt',
  9246. value: function removeAt(featureID, position) {
  9247. switch (featureID) {
  9248. case 133:
  9249. this.removeRelationshipAt(position);
  9250. break;
  9251. case 187:
  9252. this.removeQueryRefAt(position);
  9253. break;
  9254. default:
  9255. throw new Error("The feature " + featureID + " is not valid.");
  9256. }
  9257. }
  9258. /**
  9259. * Remove the value from specific feature.
  9260. * @param {BaseMoserObject} item the item to be removed
  9261. * @param {int} featureID the feature id of the attribute to be removed
  9262. */
  9263. }, {
  9264. key: 'remove',
  9265. value: function remove(featureID, item) {
  9266. switch (featureID) {
  9267. case 133:
  9268. this.removeRelationship(item);
  9269. break;
  9270. case 187:
  9271. this.removeQueryRef(item);
  9272. break;
  9273. default:
  9274. throw new Error("The feature " + featureID + " is not valid.");
  9275. }
  9276. }
  9277. }], [{
  9278. key: 'fromJSON',
  9279. value: function fromJSON(json, factory) {
  9280. var result = factory.createQuerySubjectJoinOperation();
  9281. var featureList = result.getFeatureList(factory);
  9282. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  9283. return result;
  9284. }
  9285. }]);
  9286. return _class4;
  9287. }(_MoserObject5.default);
  9288. /**
  9289. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="queryRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;element name="setOperation" type="{}setOperation"/&gt; &lt;element name="duplicates" type="{}setOperationDuplicates"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  9290. */
  9291. QuerySubject.QueryOperation = function (_MoserObject3) {
  9292. _inherits(_class6, _MoserObject3);
  9293. function _class6() {
  9294. var _ref4;
  9295. var _temp4, _this4, _ret4;
  9296. _classCallCheck(this, _class6);
  9297. for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  9298. args[_key4] = arguments[_key4];
  9299. }
  9300. return _ret4 = (_temp4 = (_this4 = _possibleConstructorReturn(this, (_ref4 = _class6.__proto__ || Object.getPrototypeOf(_class6)).call.apply(_ref4, [this].concat(args))), _this4), _this4.queryRef = null, _this4.setOperation = null, _this4.duplicates = null, _temp4), _possibleConstructorReturn(_this4, _ret4);
  9301. }
  9302. _createClass(_class6, [{
  9303. key: 'getQueryRef',
  9304. /**
  9305. * Gets the value of the queryRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the queryRef property. <p> For example, to add a new item, do as follows: <pre> getQueryRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  9306. */
  9307. value: function getQueryRef() {
  9308. if (!this.queryRef) {
  9309. this.queryRef = [];
  9310. }
  9311. return this.queryRef;
  9312. }
  9313. /**
  9314. * Gets the value of the setOperation property.
  9315. * @return {SetOperation} possible object is {@link SetOperation}
  9316. */
  9317. }, {
  9318. key: 'getSetOperation',
  9319. value: function getSetOperation() {
  9320. return this.setOperation;
  9321. }
  9322. /**
  9323. * Sets the value of the setOperation property.
  9324. * @param {SetOperation} value allowed object is {@link SetOperation}
  9325. */
  9326. }, {
  9327. key: 'setSetOperation',
  9328. value: function setSetOperation(value) {
  9329. var oldValue = this.setOperation;
  9330. this.setOperation = value;
  9331. this._setAndNotify(185, oldValue, value, false, false);
  9332. }
  9333. /**
  9334. * Gets the value of the duplicates property.
  9335. * @return {SetOperationDuplicates} possible object is {@link SetOperationDuplicates}
  9336. */
  9337. }, {
  9338. key: 'getDuplicates',
  9339. value: function getDuplicates() {
  9340. return this.duplicates;
  9341. }
  9342. /**
  9343. * Sets the value of the duplicates property.
  9344. * @param {SetOperationDuplicates} value allowed object is {@link SetOperationDuplicates}
  9345. */
  9346. }, {
  9347. key: 'setDuplicates',
  9348. value: function setDuplicates(value) {
  9349. var oldValue = this.duplicates;
  9350. this.duplicates = value;
  9351. this._setAndNotify(186, oldValue, value, false, false);
  9352. }
  9353. /**
  9354. * Gets the value of the <code>queryRef</code> property without initializing the property to an empty list if it is unset.
  9355. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  9356. */
  9357. }, {
  9358. key: 'basicGetQueryRef',
  9359. value: function basicGetQueryRef() {
  9360. return this.queryRef;
  9361. }
  9362. /**
  9363. * Creates a new instance of <code>QueryOperation</code> object from JSON data.
  9364. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  9365. * @param {Object} json JSON data to be used to create the <code> QueryOperation</code> object from.
  9366. * @return {QueryOperation} an object of type <code>QueryOperation</code>
  9367. */
  9368. }, {
  9369. key: 'addQueryRefAt',
  9370. /**
  9371. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  9372. */
  9373. value: function addQueryRefAt(position, item) {
  9374. this._addAtAndNotify(this.getQueryRef(), position, item, 187, false, false);
  9375. }
  9376. /**
  9377. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  9378. */
  9379. }, {
  9380. key: 'addQueryRef',
  9381. value: function addQueryRef(item) {
  9382. this.addQueryRefAt(this.getQueryRef().length, item);
  9383. }
  9384. /**
  9385. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  9386. */
  9387. }, {
  9388. key: 'removeQueryRefAt',
  9389. value: function removeQueryRefAt(position) {
  9390. this._removeAtAndNotify(this.getQueryRef(), position, 187, false);
  9391. }
  9392. /**
  9393. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  9394. */
  9395. }, {
  9396. key: 'removeQueryRef',
  9397. value: function removeQueryRef(item) {
  9398. var i = this.getQueryRef().indexOf(item);
  9399. if (i >= 0) {
  9400. this.removeQueryRefAt(i);
  9401. }
  9402. }
  9403. /**
  9404. * Retrieves the type of this object
  9405. * @return {String} the object type in a <code>String</code>
  9406. */
  9407. }, {
  9408. key: 'getObjectType',
  9409. value: function getObjectType() {
  9410. return "QueryOperation";
  9411. }
  9412. /**
  9413. * Get a list of FeatureObjects
  9414. * @return {Array} A list of FeatureObjects
  9415. */
  9416. }, {
  9417. key: 'getFeatureList',
  9418. value: function getFeatureList(factory) {
  9419. var featureList = [];
  9420. featureList.push(this.createFeature(true, false, false, 187, "queryRef", null));
  9421. featureList.push(this.createFeature(false, true, false, 185, "setOperation", _SetOperation2.default));
  9422. featureList.push(this.createFeature(false, true, false, 186, "duplicates", _SetOperationDuplicates2.default));
  9423. Array.prototype.push.apply(featureList, _get(_class6.prototype.__proto__ || Object.getPrototypeOf(_class6.prototype), 'getFeatureList', this).call(this, factory));
  9424. return featureList;
  9425. }
  9426. /**
  9427. * Set the value of a specific feature.
  9428. * @param {BaseMoserObject} value the value to set
  9429. * @param {int} featureID the feature id of the attribute to be set
  9430. */
  9431. }, {
  9432. key: 'set',
  9433. value: function set(featureID, value) {
  9434. switch (featureID) {
  9435. case 185:
  9436. this.setSetOperation(value);
  9437. break;
  9438. case 186:
  9439. this.setDuplicates(value);
  9440. break;
  9441. default:
  9442. throw new Error("The feature " + featureID + " is not valid.");
  9443. }
  9444. }
  9445. /**
  9446. * Set the value of a specific feature.
  9447. * @param {BaseMoserObject} value the value to set the value to set
  9448. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  9449. */
  9450. }, {
  9451. key: '_setList',
  9452. value: function _setList(featureID, value) {
  9453. switch (featureID) {
  9454. case 187:
  9455. this.queryRef = value;
  9456. break;
  9457. default:
  9458. throw new Error("The feature " + featureID + " is not valid.");
  9459. }
  9460. }
  9461. /**
  9462. * Get the value of a specific feature.
  9463. * @param {int} featureID the feature id of the attribute to get
  9464. */
  9465. }, {
  9466. key: 'get',
  9467. value: function get(featureID) {
  9468. switch (featureID) {
  9469. case 185:
  9470. return this.getSetOperation();
  9471. case 186:
  9472. return this.getDuplicates();
  9473. case 187:
  9474. return this.getQueryRef();
  9475. default:
  9476. throw new Error("The feature " + featureID + " is not valid.");
  9477. }
  9478. }
  9479. /**
  9480. * Get the value of a specific feature.
  9481. * @param {int} featureID the feature id of the attribute to get
  9482. */
  9483. }, {
  9484. key: 'basicGet',
  9485. value: function basicGet(featureID) {
  9486. switch (featureID) {
  9487. case 185:
  9488. return this.getSetOperation();
  9489. case 186:
  9490. return this.getDuplicates();
  9491. case 187:
  9492. return this.basicGetQueryRef();
  9493. default:
  9494. throw new Error("The feature " + featureID + " is not valid.");
  9495. }
  9496. }
  9497. /**
  9498. * Add the value of a specific feature at a specific position
  9499. * @param {int} position the array position of the item to be added
  9500. * @param {BaseMoserObject} value the value to add
  9501. * @param {int} featureID the feature id of the attribute to be added
  9502. */
  9503. }, {
  9504. key: 'addAt',
  9505. value: function addAt(featureID, position, value) {
  9506. switch (featureID) {
  9507. case 187:
  9508. this.addQueryRefAt(position, value);
  9509. break;
  9510. default:
  9511. throw new Error("The feature " + featureID + " is not valid.");
  9512. }
  9513. }
  9514. /**
  9515. * Add the value to the end of a specific collection feature
  9516. * @param {BaseMoserObject} value the value to add
  9517. * @param {int} featureID the feature id of the attribute to be added
  9518. */
  9519. }, {
  9520. key: 'add',
  9521. value: function add(featureID, value) {
  9522. switch (featureID) {
  9523. case 187:
  9524. this.addQueryRef(value);
  9525. break;
  9526. default:
  9527. throw new Error("The feature " + featureID + " is not valid.");
  9528. }
  9529. }
  9530. /**
  9531. * Remove the value of a specific feature by index.
  9532. * @param {int} position the array position of the item to be removed
  9533. * @param {int} featureID the feature id of the attribute to be removed
  9534. */
  9535. }, {
  9536. key: 'removeAt',
  9537. value: function removeAt(featureID, position) {
  9538. switch (featureID) {
  9539. case 187:
  9540. this.removeQueryRefAt(position);
  9541. break;
  9542. default:
  9543. throw new Error("The feature " + featureID + " is not valid.");
  9544. }
  9545. }
  9546. /**
  9547. * Remove the value from specific feature.
  9548. * @param {BaseMoserObject} item the item to be removed
  9549. * @param {int} featureID the feature id of the attribute to be removed
  9550. */
  9551. }, {
  9552. key: 'remove',
  9553. value: function remove(featureID, item) {
  9554. switch (featureID) {
  9555. case 187:
  9556. this.removeQueryRef(item);
  9557. break;
  9558. default:
  9559. throw new Error("The feature " + featureID + " is not valid.");
  9560. }
  9561. }
  9562. }], [{
  9563. key: 'fromJSON',
  9564. value: function fromJSON(json, factory) {
  9565. var result = factory.createQuerySubjectQueryOperation();
  9566. var featureList = result.getFeatureList(factory);
  9567. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  9568. return result;
  9569. }
  9570. }]);
  9571. return _class6;
  9572. }(_MoserObject5.default);
  9573. /***/ },
  9574. /* 26 */
  9575. /***/ function(module, exports, __webpack_require__) {
  9576. 'use strict';
  9577. Object.defineProperty(exports, "__esModule", {
  9578. value: true
  9579. });
  9580. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  9581. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  9582. var _BaseObjectType2 = __webpack_require__(5);
  9583. var _BaseObjectType3 = _interopRequireDefault(_BaseObjectType2);
  9584. var _PropertySetter = __webpack_require__(10);
  9585. var _PropertySetter2 = _interopRequireDefault(_PropertySetter);
  9586. var _MoserObject = __webpack_require__(6);
  9587. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  9588. var _MoserObjectUtils = __webpack_require__(27);
  9589. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  9590. var _EditModeType = __webpack_require__(28);
  9591. var _EditModeType2 = _interopRequireDefault(_EditModeType);
  9592. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9593. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  9594. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  9595. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  9596. ** IBM Confidential
  9597. **
  9598. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  9599. **
  9600. ** (C) Copyright IBM Corp. 2021
  9601. **
  9602. ** The source code for this program is not published or otherwise divested of its trade secrets,
  9603. ** irrespective of what has been deposited with the U.S. Copyright Office.
  9604. ************************************************************************/
  9605. // GENERATED
  9606. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseObjectType (loadtime) // superclass
  9607. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertySetter (runtime) // updateModuleReference
  9608. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  9609. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForPropertyType
  9610. //@import com/ibm/bi/platform/moser/common/generated/metadata/EditModeType (runtime) // new
  9611. /**
  9612. * The base metadata object. <p>Java class for objectType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="objectType"&gt; &lt;complexContent&gt; &lt;extension base="{}baseObjectType"&gt; &lt;sequence&gt; &lt;element name="identifier" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="label" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="screenTip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="property" type="{}propertyType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="propertyOverride" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="editMode" type="{}editModeType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  9613. */
  9614. var ObjectType = function (_BaseObjectType) {
  9615. _inherits(ObjectType, _BaseObjectType);
  9616. function ObjectType() {
  9617. var _ref;
  9618. var _temp, _this, _ret;
  9619. _classCallCheck(this, ObjectType);
  9620. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  9621. args[_key] = arguments[_key];
  9622. }
  9623. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ObjectType.__proto__ || Object.getPrototypeOf(ObjectType)).call.apply(_ref, [this].concat(args))), _this), _this.identifier = null, _this.description = null, _this.label = null, _this.comment = null, _this.screenTip = null, _this.hidden = null, _this.property = null, _this.propertyOverride = null, _this.editMode = null, _temp), _possibleConstructorReturn(_this, _ret);
  9624. }
  9625. _createClass(ObjectType, [{
  9626. key: 'getIdentifier',
  9627. /**
  9628. * Gets the value of the identifier property.
  9629. * @return {String} possible object is {@link String}
  9630. */
  9631. value: function getIdentifier() {
  9632. return this.identifier;
  9633. }
  9634. /**
  9635. * Sets the value of the identifier property.
  9636. * @param {String} value allowed object is {@link String}
  9637. */
  9638. }, {
  9639. key: 'setIdentifier',
  9640. value: function setIdentifier(value) {
  9641. var oldValue = this.identifier;
  9642. this.identifier = value;
  9643. this._setAndNotify(38, oldValue, value, false, true);
  9644. _PropertySetter2.default.updateModuleReference(this, oldValue, value);
  9645. }
  9646. /**
  9647. * Gets the value of the description property.
  9648. * @return {String} possible object is {@link String}
  9649. */
  9650. }, {
  9651. key: 'getDescription',
  9652. value: function getDescription() {
  9653. return this.description;
  9654. }
  9655. /**
  9656. * Sets the value of the description property.
  9657. * @param {String} value allowed object is {@link String}
  9658. */
  9659. }, {
  9660. key: 'setDescription',
  9661. value: function setDescription(value) {
  9662. var oldValue = this.description;
  9663. this.description = value;
  9664. this._setAndNotify(7, oldValue, value, false, true);
  9665. }
  9666. /**
  9667. * Gets the value of the label property.
  9668. * @return {String} possible object is {@link String}
  9669. */
  9670. }, {
  9671. key: 'getLabel',
  9672. value: function getLabel() {
  9673. return this.label;
  9674. }
  9675. /**
  9676. * Sets the value of the label property.
  9677. * @param {String} value allowed object is {@link String}
  9678. */
  9679. }, {
  9680. key: 'setLabel',
  9681. value: function setLabel(value) {
  9682. var oldValue = this.label;
  9683. this.label = value;
  9684. this._setAndNotify(169, oldValue, value, false, true);
  9685. }
  9686. /**
  9687. * Gets the value of the comment property.
  9688. * @return {String} possible object is {@link String}
  9689. */
  9690. }, {
  9691. key: 'getComment',
  9692. value: function getComment() {
  9693. return this.comment;
  9694. }
  9695. /**
  9696. * Sets the value of the comment property.
  9697. * @param {String} value allowed object is {@link String}
  9698. */
  9699. }, {
  9700. key: 'setComment',
  9701. value: function setComment(value) {
  9702. var oldValue = this.comment;
  9703. this.comment = value;
  9704. this._setAndNotify(168, oldValue, value, false, true);
  9705. }
  9706. /**
  9707. * Gets the value of the screenTip property.
  9708. * @return {String} possible object is {@link String}
  9709. */
  9710. }, {
  9711. key: 'getScreenTip',
  9712. value: function getScreenTip() {
  9713. return this.screenTip;
  9714. }
  9715. /**
  9716. * Sets the value of the screenTip property.
  9717. * @param {String} value allowed object is {@link String}
  9718. */
  9719. }, {
  9720. key: 'setScreenTip',
  9721. value: function setScreenTip(value) {
  9722. var oldValue = this.screenTip;
  9723. this.screenTip = value;
  9724. this._setAndNotify(170, oldValue, value, false, true);
  9725. }
  9726. /**
  9727. * Gets the value of the hidden property.
  9728. * @return {Boolean} possible object is {@link Boolean}
  9729. */
  9730. }, {
  9731. key: 'isHidden',
  9732. value: function isHidden() {
  9733. return this.hidden;
  9734. }
  9735. /**
  9736. * Sets the value of the hidden property.
  9737. * @param {Boolean} value allowed object is {@link Boolean}
  9738. */
  9739. }, {
  9740. key: 'setHidden',
  9741. value: function setHidden(value) {
  9742. var oldValue = this.hidden;
  9743. this.hidden = value;
  9744. this._setAndNotify(8, oldValue, value, false, true);
  9745. }
  9746. /**
  9747. * Gets the value of the property property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the property property. <p> For example, to add a new item, do as follows: <pre> getProperty().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link PropertyType}
  9748. */
  9749. }, {
  9750. key: 'getProperty',
  9751. value: function getProperty() {
  9752. if (!this.property) {
  9753. this.property = [];
  9754. }
  9755. return this.property;
  9756. }
  9757. /**
  9758. * Gets the value of the propertyOverride property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the propertyOverride property. <p> For example, to add a new item, do as follows: <pre> getPropertyOverride().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  9759. */
  9760. }, {
  9761. key: 'getPropertyOverride',
  9762. value: function getPropertyOverride() {
  9763. if (!this.propertyOverride) {
  9764. this.propertyOverride = [];
  9765. }
  9766. return this.propertyOverride;
  9767. }
  9768. /**
  9769. * Gets the value of the editMode property.
  9770. * @return {EditModeType} possible object is {@link EditModeType}
  9771. */
  9772. }, {
  9773. key: 'getEditMode',
  9774. value: function getEditMode() {
  9775. return this.editMode;
  9776. }
  9777. /**
  9778. * Sets the value of the editMode property.
  9779. * @param {EditModeType} value allowed object is {@link EditModeType}
  9780. */
  9781. }, {
  9782. key: 'setEditMode',
  9783. value: function setEditMode(value) {
  9784. var oldValue = this.editMode;
  9785. this.editMode = value;
  9786. this._setAndNotify(167, oldValue, value, false, true);
  9787. }
  9788. /**
  9789. * Gets the value of the <code>property</code> property without initializing the property to an empty list if it is unset.
  9790. * @return {Array} the list of <code>PropertyType</code> elements, or <code>null</code> if not set
  9791. */
  9792. }, {
  9793. key: 'basicGetProperty',
  9794. value: function basicGetProperty() {
  9795. return this.property;
  9796. }
  9797. /**
  9798. * Gets the value of the <code>propertyOverride</code> property without initializing the property to an empty list if it is unset.
  9799. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  9800. */
  9801. }, {
  9802. key: 'basicGetPropertyOverride',
  9803. value: function basicGetPropertyOverride() {
  9804. return this.propertyOverride;
  9805. }
  9806. /**
  9807. * True if this object is imported
  9808. */
  9809. }, {
  9810. key: 'isImported',
  9811. value: function isImported() {
  9812. if (this.propertyOverride) {
  9813. if (this.propertyOverride.indexOf("Imported") > -1) {
  9814. return true;
  9815. }
  9816. if (this.propertyOverride.indexOf("NEW") > -1) {
  9817. return false;
  9818. }
  9819. }
  9820. var obj = this._parent;
  9821. while (obj) {
  9822. if ("QuerySubject" == obj.getObjectType() || "Folder" == obj.getObjectType() || "FolderType" == obj.getObjectType()) {
  9823. var parentOverrides = obj.basicGetPropertyOverride();
  9824. if (parentOverrides) {
  9825. if (parentOverrides.indexOf("Imported") > -1) {
  9826. return true;
  9827. }
  9828. if (parentOverrides.indexOf("NEW") > -1) {
  9829. return false;
  9830. }
  9831. }
  9832. }
  9833. obj = obj.getParent();
  9834. }
  9835. return false;
  9836. }
  9837. /**
  9838. * Creates a new instance of <code>ObjectType</code> object from JSON data.
  9839. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  9840. * @param {Object} json JSON data to be used to create the <code> ObjectType</code> object from.
  9841. * @return {ObjectType} an object of type <code>ObjectType</code>
  9842. */
  9843. }, {
  9844. key: 'addPropertyAt',
  9845. /**
  9846. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  9847. */
  9848. value: function addPropertyAt(position, item) {
  9849. this._addAtAndNotify(this.getProperty(), position, item, 87, true, false);
  9850. _MoserObjectUtils2.default.propertyOverrideForPropertyType(this, item);
  9851. }
  9852. /**
  9853. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  9854. */
  9855. }, {
  9856. key: 'addProperty',
  9857. value: function addProperty(item) {
  9858. this.addPropertyAt(this.getProperty().length, item);
  9859. }
  9860. /**
  9861. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  9862. */
  9863. }, {
  9864. key: 'removePropertyAt',
  9865. value: function removePropertyAt(position) {
  9866. this._removeAtAndNotify(this.getProperty(), position, 87, true);
  9867. }
  9868. /**
  9869. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  9870. */
  9871. }, {
  9872. key: 'removeProperty',
  9873. value: function removeProperty(item) {
  9874. var i = this.getProperty().indexOf(item);
  9875. if (i >= 0) {
  9876. this.removePropertyAt(i);
  9877. }
  9878. }
  9879. /**
  9880. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  9881. */
  9882. }, {
  9883. key: 'addPropertyOverrideAt',
  9884. value: function addPropertyOverrideAt(position, item) {
  9885. var overrideList = this.getPropertyOverride();
  9886. for (var i = 0; i < overrideList.length; ++i) {
  9887. var override = overrideList[i];
  9888. if (override == item || override == "NEW") {
  9889. return;
  9890. }
  9891. }
  9892. this._addAtAndNotify(this.getPropertyOverride(), position, item, 166, false, false);
  9893. }
  9894. /**
  9895. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  9896. */
  9897. }, {
  9898. key: 'addPropertyOverride',
  9899. value: function addPropertyOverride(item) {
  9900. this.addPropertyOverrideAt(this.getPropertyOverride().length, item);
  9901. }
  9902. /**
  9903. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  9904. */
  9905. }, {
  9906. key: 'removePropertyOverrideAt',
  9907. value: function removePropertyOverrideAt(position) {
  9908. this._removeAtAndNotify(this.getPropertyOverride(), position, 166, false);
  9909. }
  9910. /**
  9911. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  9912. */
  9913. }, {
  9914. key: 'removePropertyOverride',
  9915. value: function removePropertyOverride(item) {
  9916. var i = this.getPropertyOverride().indexOf(item);
  9917. if (i >= 0) {
  9918. this.removePropertyOverrideAt(i);
  9919. }
  9920. }
  9921. /**
  9922. * Retrieves the type of this object
  9923. * @return {String} the object type in a <code>String</code>
  9924. */
  9925. }, {
  9926. key: 'getObjectType',
  9927. value: function getObjectType() {
  9928. return "ObjectType";
  9929. }
  9930. /**
  9931. * Get a list of FeatureObjects
  9932. * @return {Array} A list of FeatureObjects
  9933. */
  9934. }, {
  9935. key: 'getFeatureList',
  9936. value: function getFeatureList(factory) {
  9937. var featureList = [];
  9938. featureList.push(this.createFeature(false, false, false, 38, "identifier", null));
  9939. featureList.push(this.createFeature(false, false, false, 7, "description", null));
  9940. featureList.push(this.createFeature(false, false, false, 169, "label", null));
  9941. featureList.push(this.createFeature(false, false, false, 168, "comment", null));
  9942. featureList.push(this.createFeature(false, false, false, 170, "screenTip", null));
  9943. featureList.push(this.createFeature(false, false, false, 8, "hidden", null));
  9944. var clazz;
  9945. if (factory) {
  9946. clazz = factory.createPropertyType().getClass();
  9947. }
  9948. featureList.push(this.createFeature(true, false, true, 87, "property", clazz));
  9949. featureList.push(this.createFeature(true, false, false, 166, "propertyOverride", null));
  9950. featureList.push(this.createFeature(false, true, false, 167, "editMode", _EditModeType2.default));
  9951. Array.prototype.push.apply(featureList, _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'getFeatureList', this).call(this, factory));
  9952. return featureList;
  9953. }
  9954. /**
  9955. * Set the value of a specific feature.
  9956. * @param {BaseMoserObject} value the value to set
  9957. * @param {int} featureID the feature id of the attribute to be set
  9958. */
  9959. }, {
  9960. key: 'set',
  9961. value: function set(featureID, value) {
  9962. switch (featureID) {
  9963. case 38:
  9964. this.setIdentifier(value);
  9965. break;
  9966. case 8:
  9967. this.setHidden(value);
  9968. break;
  9969. case 167:
  9970. this.setEditMode(value);
  9971. break;
  9972. case 7:
  9973. this.setDescription(value);
  9974. break;
  9975. case 168:
  9976. this.setComment(value);
  9977. break;
  9978. case 169:
  9979. this.setLabel(value);
  9980. break;
  9981. case 170:
  9982. this.setScreenTip(value);
  9983. break;
  9984. default:
  9985. _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'set', this).call(this, featureID, value);
  9986. }
  9987. }
  9988. /**
  9989. * Set the value of a specific feature.
  9990. * @param {BaseMoserObject} value the value to set the value to set
  9991. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  9992. */
  9993. }, {
  9994. key: '_setList',
  9995. value: function _setList(featureID, value) {
  9996. switch (featureID) {
  9997. case 166:
  9998. this.propertyOverride = value;
  9999. break;
  10000. case 87:
  10001. this.property = value;
  10002. break;
  10003. default:
  10004. _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), '_setList', this).call(this, featureID, value);
  10005. }
  10006. }
  10007. /**
  10008. * Get the value of a specific feature.
  10009. * @param {int} featureID the feature id of the attribute to get
  10010. */
  10011. }, {
  10012. key: 'get',
  10013. value: function get(featureID) {
  10014. switch (featureID) {
  10015. case 38:
  10016. return this.getIdentifier();
  10017. case 166:
  10018. return this.getPropertyOverride();
  10019. case 8:
  10020. return this.isHidden();
  10021. case 167:
  10022. return this.getEditMode();
  10023. case 87:
  10024. return this.getProperty();
  10025. case 7:
  10026. return this.getDescription();
  10027. case 168:
  10028. return this.getComment();
  10029. case 169:
  10030. return this.getLabel();
  10031. case 170:
  10032. return this.getScreenTip();
  10033. default:
  10034. return _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'get', this).call(this, featureID);
  10035. }
  10036. }
  10037. /**
  10038. * Get the value of a specific feature.
  10039. * @param {int} featureID the feature id of the attribute to get
  10040. */
  10041. }, {
  10042. key: 'basicGet',
  10043. value: function basicGet(featureID) {
  10044. switch (featureID) {
  10045. case 38:
  10046. return this.getIdentifier();
  10047. case 166:
  10048. return this.basicGetPropertyOverride();
  10049. case 8:
  10050. return this.isHidden();
  10051. case 167:
  10052. return this.getEditMode();
  10053. case 87:
  10054. return this.basicGetProperty();
  10055. case 7:
  10056. return this.getDescription();
  10057. case 168:
  10058. return this.getComment();
  10059. case 169:
  10060. return this.getLabel();
  10061. case 170:
  10062. return this.getScreenTip();
  10063. default:
  10064. return _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'basicGet', this).call(this, featureID);
  10065. }
  10066. }
  10067. /**
  10068. * Add the value of a specific feature at a specific position
  10069. * @param {int} position the array position of the item to be added
  10070. * @param {BaseMoserObject} value the value to add
  10071. * @param {int} featureID the feature id of the attribute to be added
  10072. */
  10073. }, {
  10074. key: 'addAt',
  10075. value: function addAt(featureID, position, value) {
  10076. switch (featureID) {
  10077. case 166:
  10078. this.addPropertyOverrideAt(position, value);
  10079. break;
  10080. case 87:
  10081. this.addPropertyAt(position, value);
  10082. break;
  10083. default:
  10084. _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'addAt', this).call(this, featureID, position, value);
  10085. }
  10086. }
  10087. /**
  10088. * Add the value to the end of a specific collection feature
  10089. * @param {BaseMoserObject} value the value to add
  10090. * @param {int} featureID the feature id of the attribute to be added
  10091. */
  10092. }, {
  10093. key: 'add',
  10094. value: function add(featureID, value) {
  10095. switch (featureID) {
  10096. case 166:
  10097. this.addPropertyOverride(value);
  10098. break;
  10099. case 87:
  10100. this.addProperty(value);
  10101. break;
  10102. default:
  10103. _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'add', this).call(this, featureID, value);
  10104. }
  10105. }
  10106. /**
  10107. * Remove the value of a specific feature by index.
  10108. * @param {int} position the array position of the item to be removed
  10109. * @param {int} featureID the feature id of the attribute to be removed
  10110. */
  10111. }, {
  10112. key: 'removeAt',
  10113. value: function removeAt(featureID, position) {
  10114. switch (featureID) {
  10115. case 166:
  10116. this.removePropertyOverrideAt(position);
  10117. break;
  10118. case 87:
  10119. this.removePropertyAt(position);
  10120. break;
  10121. default:
  10122. _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'removeAt', this).call(this, featureID, position);
  10123. }
  10124. }
  10125. /**
  10126. * Remove the value from specific feature.
  10127. * @param {BaseMoserObject} item the item to be removed
  10128. * @param {int} featureID the feature id of the attribute to be removed
  10129. */
  10130. }, {
  10131. key: 'remove',
  10132. value: function remove(featureID, item) {
  10133. switch (featureID) {
  10134. case 166:
  10135. this.removePropertyOverride(item);
  10136. break;
  10137. case 87:
  10138. this.removeProperty(item);
  10139. break;
  10140. default:
  10141. _get(ObjectType.prototype.__proto__ || Object.getPrototypeOf(ObjectType.prototype), 'remove', this).call(this, featureID, item);
  10142. }
  10143. }
  10144. }], [{
  10145. key: 'fromJSON',
  10146. value: function fromJSON(json, factory) {
  10147. var result = factory.createObjectType();
  10148. var featureList = result.getFeatureList(factory);
  10149. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  10150. return result;
  10151. }
  10152. }]);
  10153. return ObjectType;
  10154. }(_BaseObjectType3.default);
  10155. exports.default = ObjectType;
  10156. /***/ },
  10157. /* 27 */
  10158. /***/ function(module, exports, __webpack_require__) {
  10159. 'use strict';
  10160. Object.defineProperty(exports, "__esModule", {
  10161. value: true
  10162. });
  10163. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10164. var _BaseMoserObject2 = __webpack_require__(2);
  10165. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  10166. var _ObjectType = __webpack_require__(26);
  10167. var _ObjectType2 = _interopRequireDefault(_ObjectType);
  10168. var _MoserObject = __webpack_require__(6);
  10169. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  10170. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10171. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10172. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10173. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10174. ** IBM Confidential
  10175. **
  10176. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10177. **
  10178. ** (C) Copyright IBM Corp. 2021
  10179. **
  10180. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10181. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10182. ************************************************************************/
  10183. // GENERATED
  10184. //@import BaseMoserObject (loadtime) // superclass
  10185. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (static) // new
  10186. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // getModuleObject, updatePropertyOverride
  10187. /**
  10188. * Static utility APIs to support MoserObject
  10189. * @author linzhao
  10190. */
  10191. var MoserObjectUtils = function (_BaseMoserObject) {
  10192. _inherits(MoserObjectUtils, _BaseMoserObject);
  10193. function MoserObjectUtils() {
  10194. _classCallCheck(this, MoserObjectUtils);
  10195. return _possibleConstructorReturn(this, (MoserObjectUtils.__proto__ || Object.getPrototypeOf(MoserObjectUtils)).apply(this, arguments));
  10196. }
  10197. _createClass(MoserObjectUtils, null, [{
  10198. key: 'propertyOverrideForPropertyType',
  10199. /**
  10200. * We have to treat PropertyType differently for WA data asset shaping For any new or updated PropertyType, the ObjectType will have an entry like 'Property.{name}' in its propertyOverride
  10201. * @param {MoserObject} objType the parent of the PropertyType
  10202. * @param {PropertyType} item the changed/new PropertyType
  10203. */
  10204. value: function propertyOverrideForPropertyType(objType, item) {
  10205. if (objType && objType instanceof _ObjectType2.default) {
  10206. var obj = objType;
  10207. var module = _MoserObject2.default.getModuleObject(objType);
  10208. if (module && module.isOverrideMode() && item.getName() != null) {
  10209. MoserObjectUtils._setPropertyOverride(obj.getFeatureName(87) + "." + item.getName(), obj);
  10210. }
  10211. }
  10212. }
  10213. /**
  10214. * We have to treat LocalRefType differently for WA data asset shaping For any changes in LocalRefType, the ItemHierarchy will have an entry like 'LocalRef' in its propertyOverride
  10215. * @param {MoserObject} itemHierarchy
  10216. */
  10217. }, {
  10218. key: 'propertyOverrideForLocalRef',
  10219. value: function propertyOverrideForLocalRef(itemHierarchy) {
  10220. if (itemHierarchy && itemHierarchy instanceof _ObjectType2.default) {
  10221. var obj = itemHierarchy;
  10222. var module = _MoserObject2.default.getModuleObject(itemHierarchy);
  10223. if (module && module.isOverrideMode()) {
  10224. MoserObjectUtils._setPropertyOverride(obj.getFeatureName(73), obj);
  10225. }
  10226. }
  10227. }
  10228. }, {
  10229. key: 'propertyOverrideForTaxonomyType',
  10230. value: function propertyOverrideForTaxonomyType(taxonomyObj) {
  10231. var objType = MoserObjectUtils._getObjectTypeParent(taxonomyObj);
  10232. if (objType) {
  10233. _MoserObject2.default.updatePropertyOverride(objType, objType, 246, false);
  10234. }
  10235. }
  10236. /**
  10237. * To support updating facet definition related properties in embedded module, we have to add the propertyOverride of the parent object (QueryItem) with 'facetDefinition'
  10238. * @param {MoserObject} facetObj
  10239. * @param isAdd
  10240. */
  10241. }, {
  10242. key: 'propertyOverrideForFacetType',
  10243. value: function propertyOverrideForFacetType(facetObj) {
  10244. var objType = MoserObjectUtils._getObjectTypeParent(facetObj);
  10245. if (objType) {
  10246. _MoserObject2.default.updatePropertyOverride(objType, objType, 249, false);
  10247. }
  10248. }
  10249. }, {
  10250. key: '_getObjectTypeParent',
  10251. value: function _getObjectTypeParent(obj) {
  10252. if (!obj) {
  10253. return null;
  10254. }
  10255. if (obj instanceof _ObjectType2.default) {
  10256. return obj;
  10257. }
  10258. return MoserObjectUtils._getObjectTypeParent(obj.getParent());
  10259. }
  10260. }, {
  10261. key: '_setPropertyOverride',
  10262. value: function _setPropertyOverride(featureName, obj) {
  10263. var overrideList = MoserObjectUtils.getList(obj.basicGetPropertyOverride());
  10264. for (var __i_enFor0 = 0, __exp_enFor0 = overrideList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10265. var override = __exp_enFor0[__i_enFor0];
  10266. if (override == featureName || "NEW" == override) {
  10267. return;
  10268. }
  10269. }
  10270. obj.addPropertyOverride(featureName);
  10271. }
  10272. }, {
  10273. key: 'getQueryItems$0',
  10274. value: function getQueryItems$0(items) {
  10275. var qItems = [];
  10276. if (!items) {
  10277. return qItems;
  10278. }
  10279. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10280. var item = __exp_enFor0[__i_enFor0];
  10281. if (item.getQueryItem()) {
  10282. qItems.push(item.getQueryItem());
  10283. } else if (item.getFolder()) {
  10284. Array.prototype.push.apply(qItems, MoserObjectUtils.getQueryItems$0(item.getFolder().basicGetItem()));
  10285. }
  10286. }
  10287. return qItems;
  10288. }
  10289. }, {
  10290. key: 'getQueryItems$1',
  10291. value: function getQueryItems$1(qs) {
  10292. return MoserObjectUtils.getQueryItems$0(qs.basicGetItem());
  10293. }
  10294. }, {
  10295. key: 'getFilters$0',
  10296. value: function getFilters$0(items) {
  10297. var filters = [];
  10298. if (!items) {
  10299. return filters;
  10300. }
  10301. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10302. var item = __exp_enFor0[__i_enFor0];
  10303. if (item.getFilter()) {
  10304. filters.push(item.getFilter());
  10305. } else if (item.getFolder()) {
  10306. Array.prototype.push.apply(filters, MoserObjectUtils.getFilters$0(item.getFolder().basicGetItem()));
  10307. }
  10308. }
  10309. return filters;
  10310. }
  10311. }, {
  10312. key: 'getFilters$1',
  10313. value: function getFilters$1(qs) {
  10314. return MoserObjectUtils.getFilters$0(qs.basicGetItem());
  10315. }
  10316. /**
  10317. * Return all FolderType in the MDTV as a flat list
  10318. * @param {Module} module
  10319. * @return {Array}
  10320. */
  10321. }, {
  10322. key: 'getFolderTypes',
  10323. value: function getFolderTypes(module) {
  10324. var qFolders = [];
  10325. var folders = module.basicGetMetadataTreeView();
  10326. if (folders) {
  10327. for (var __i_enFor0 = 0, __exp_enFor0 = folders, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10328. var folder = __exp_enFor0[__i_enFor0];
  10329. qFolders.push(folder);
  10330. MoserObjectUtils._collectFolderTypes(qFolders, folder.basicGetFolderItem());
  10331. }
  10332. }
  10333. return qFolders;
  10334. }
  10335. /**
  10336. * @param {Array} qFolders
  10337. * @param {Array} folderItems
  10338. * @return {void}
  10339. */
  10340. }, {
  10341. key: '_collectFolderTypes',
  10342. value: function _collectFolderTypes(qFolders, folderItems) {
  10343. if (folderItems) {
  10344. for (var __i_enFor0 = 0, __exp_enFor0 = folderItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10345. var folderItem = __exp_enFor0[__i_enFor0];
  10346. var folder = folderItem.getFolder();
  10347. if (folder) {
  10348. qFolders.push(folder);
  10349. MoserObjectUtils._collectFolderTypes(qFolders, folder.basicGetFolderItem());
  10350. }
  10351. }
  10352. }
  10353. }
  10354. /**
  10355. * Retrieve all items of type 'Filter/Folder/ItemHierarchy/NamedSet/QueryItem/Calculation' under a 'QuerySubject/QueryItem/Folder'
  10356. * @param {ObjectType} obj
  10357. * @return {Array}
  10358. */
  10359. }, {
  10360. key: 'getItems',
  10361. value: function getItems(obj) {
  10362. var qItems = [];
  10363. var objectType = obj.getObjectType();
  10364. if ("QuerySubject" == objectType) {
  10365. MoserObjectUtils._collectItems(qItems, obj.basicGetItem());
  10366. } else if ("QueryItem" == objectType) {
  10367. MoserObjectUtils._collectItems(qItems, obj.basicGetItem());
  10368. } else if ("Folder" == objectType) {
  10369. MoserObjectUtils._collectItems(qItems, obj.basicGetItem());
  10370. }
  10371. return qItems;
  10372. }
  10373. /**
  10374. * Collect all items of an ItemType list into a list.
  10375. * @param {Array} allItems
  10376. * @param {Array} items
  10377. */
  10378. }, {
  10379. key: '_collectItems',
  10380. value: function _collectItems(allItems, items) {
  10381. if (items) {
  10382. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10383. var item = __exp_enFor0[__i_enFor0];
  10384. if (item.getFilter()) {
  10385. allItems.push(item.getFilter());
  10386. } else if (item.getFolder()) {
  10387. var f = item.getFolder();
  10388. allItems.push(f);
  10389. MoserObjectUtils._collectItems(allItems, f.basicGetItem());
  10390. } else if (item.getItemHierarchy()) {
  10391. allItems.push(item.getItemHierarchy());
  10392. } else if (item.getNamedSet()) {
  10393. allItems.push(item.getNamedSet());
  10394. } else if (item.getCalculation()) {
  10395. var calc = item.getCalculation();
  10396. allItems.push(calc);
  10397. MoserObjectUtils._collectItems(allItems, calc.basicGetItem());
  10398. } else if (item.getQueryItem()) {
  10399. var qi = item.getQueryItem();
  10400. allItems.push(qi);
  10401. MoserObjectUtils._collectItems(allItems, qi.basicGetItem());
  10402. }
  10403. }
  10404. }
  10405. }
  10406. }, {
  10407. key: '_removeQueryItem$0',
  10408. value: function _removeQueryItem$0(items, qi) {
  10409. if (!items) {
  10410. return;
  10411. }
  10412. var id = qi.getIdentifier();
  10413. for (var i = items.length - 1; i >= 0; --i) {
  10414. var item = items[i];
  10415. var qitem = item.getQueryItem();
  10416. if (qitem && qitem.getIdentifier() == id) {
  10417. items.splice(i, 1);
  10418. break;
  10419. } else if (item.getFolder()) {
  10420. MoserObjectUtils._removeQueryItem$0(item.getFolder().basicGetItem(), qi);
  10421. var folderItems = item.getFolder().basicGetItem();
  10422. if (!folderItems || folderItems.length == 0) {
  10423. items.splice(i, 1);
  10424. }
  10425. }
  10426. }
  10427. }
  10428. }, {
  10429. key: 'removeQueryItem$1',
  10430. value: function removeQueryItem$1(qs, qi) {
  10431. MoserObjectUtils._removeQueryItem$0(qs.basicGetItem(), qi);
  10432. }
  10433. }, {
  10434. key: 'getMeasures$0',
  10435. value: function getMeasures$0(items) {
  10436. var qItems = [];
  10437. if (!items) {
  10438. return qItems;
  10439. }
  10440. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  10441. var item = __exp_enFor0[__i_enFor0];
  10442. if (item.getQueryItem()) {
  10443. qItems.push(item.getQueryItem());
  10444. Array.prototype.push.apply(qItems, MoserObjectUtils.getMeasures$0(item.getQueryItem().basicGetItem()));
  10445. } else if (item.getFolder()) {
  10446. Array.prototype.push.apply(qItems, MoserObjectUtils.getMeasures$0(item.getFolder().basicGetItem()));
  10447. }
  10448. }
  10449. return qItems;
  10450. }
  10451. }, {
  10452. key: 'getMeasures$1',
  10453. value: function getMeasures$1(qs) {
  10454. return MoserObjectUtils.getMeasures$0(qs.basicGetItem());
  10455. }
  10456. }, {
  10457. key: 'getItemNormalizationGroups',
  10458. value: function getItemNormalizationGroups(qs) {
  10459. var rt = [];
  10460. var itemNormalization = qs.getItemNormalization();
  10461. if (!itemNormalization) {
  10462. return rt;
  10463. }
  10464. var grps = itemNormalization.basicGetItemNormalizationGroup();
  10465. if (grps) {
  10466. Array.prototype.push.apply(rt, grps);
  10467. }
  10468. return rt;
  10469. }
  10470. }, {
  10471. key: 'getList',
  10472. value: function getList(lst) {
  10473. var rt = lst;
  10474. if (!rt) {
  10475. rt = [];
  10476. }
  10477. return rt;
  10478. }
  10479. }, {
  10480. key: 'getQueryItems',
  10481. value: function getQueryItems(a0) {
  10482. var args = arguments;
  10483. if (args.length == 1 && (a0 == null || Object.prototype.toString.call(a0) === "[object Array]")) {
  10484. return MoserObjectUtils.getQueryItems$0(a0);
  10485. }
  10486. return MoserObjectUtils.getQueryItems$1(a0);
  10487. }
  10488. }, {
  10489. key: 'getFilters',
  10490. value: function getFilters(a0) {
  10491. var args = arguments;
  10492. if (args.length == 1 && (a0 == null || Object.prototype.toString.call(a0) === "[object Array]")) {
  10493. return MoserObjectUtils.getFilters$0(a0);
  10494. }
  10495. return MoserObjectUtils.getFilters$1(a0);
  10496. }
  10497. }, {
  10498. key: 'removeQueryItem',
  10499. value: function removeQueryItem(a0, a1) {
  10500. var args = arguments;
  10501. if (args.length == 2 && (a0 == null || Object.prototype.toString.call(a0) === "[object Array]")) {
  10502. return MoserObjectUtils.removeQueryItem$0(a0, a1);
  10503. }
  10504. return MoserObjectUtils.removeQueryItem$1(a0, a1);
  10505. }
  10506. }, {
  10507. key: 'getMeasures',
  10508. value: function getMeasures(a0) {
  10509. var args = arguments;
  10510. if (args.length == 1 && (a0 == null || Object.prototype.toString.call(a0) === "[object Array]")) {
  10511. return MoserObjectUtils.getMeasures$0(a0);
  10512. }
  10513. return MoserObjectUtils.getMeasures$1(a0);
  10514. }
  10515. //constructor()
  10516. }]);
  10517. return MoserObjectUtils;
  10518. }(_BaseMoserObject3.default);
  10519. MoserObjectUtils.ID_SEPARATOR = ".";
  10520. exports.default = MoserObjectUtils;
  10521. /***/ },
  10522. /* 28 */
  10523. /***/ function(module, exports, __webpack_require__) {
  10524. "use strict";
  10525. Object.defineProperty(exports, "__esModule", {
  10526. value: true
  10527. });
  10528. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10529. var _Enum2 = __webpack_require__(12);
  10530. var _Enum3 = _interopRequireDefault(_Enum2);
  10531. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10532. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10533. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10534. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10535. ** IBM Confidential
  10536. **
  10537. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10538. **
  10539. ** (C) Copyright IBM Corp. 2021
  10540. **
  10541. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10542. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10543. ************************************************************************/
  10544. // GENERATED
  10545. //@import Enum (loadtime) // superclass
  10546. /**
  10547. * <p>Java class for editModeType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="editModeType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="RW"/&gt; &lt;enumeration value="RO"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10548. */
  10549. var EditModeType = function (_Enum) {
  10550. _inherits(EditModeType, _Enum);
  10551. function EditModeType() {
  10552. _classCallCheck(this, EditModeType);
  10553. return _possibleConstructorReturn(this, (EditModeType.__proto__ || Object.getPrototypeOf(EditModeType)).apply(this, arguments));
  10554. }
  10555. _createClass(EditModeType, [{
  10556. key: "value",
  10557. /**
  10558. * All aspects of the object are editable.
  10559. */
  10560. value: function value() {
  10561. return this.name();
  10562. }
  10563. /**
  10564. * The object is read-only.
  10565. */
  10566. }, {
  10567. key: "getResourceId",
  10568. value: function getResourceId() {
  10569. return "EditModeType" + "_" + this.value();
  10570. }
  10571. }], [{
  10572. key: "fromValue",
  10573. value: function fromValue(v) {
  10574. return EditModeType.valueOf(v);
  10575. }
  10576. }]);
  10577. return EditModeType;
  10578. }(_Enum3.default);
  10579. EditModeType.RW = EditModeType.newLiteral("RW");
  10580. EditModeType.RO = EditModeType.newLiteral("RO");
  10581. exports.default = EditModeType;
  10582. /***/ },
  10583. /* 29 */
  10584. /***/ function(module, exports, __webpack_require__) {
  10585. "use strict";
  10586. Object.defineProperty(exports, "__esModule", {
  10587. value: true
  10588. });
  10589. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10590. var _Enum2 = __webpack_require__(12);
  10591. var _Enum3 = _interopRequireDefault(_Enum2);
  10592. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10593. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10594. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10595. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10596. ** IBM Confidential
  10597. **
  10598. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10599. **
  10600. ** (C) Copyright IBM Corp. 2020
  10601. **
  10602. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10603. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10604. ************************************************************************/
  10605. // GENERATED
  10606. //@import Enum (loadtime) // superclass
  10607. /**
  10608. * <p>Java class for generateSQL. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="generateSQL"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="asView"/&gt; &lt;enumeration value="minimized"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10609. */
  10610. var GenerateSQL = function (_Enum) {
  10611. _inherits(GenerateSQL, _Enum);
  10612. /**
  10613. * Specifies that all query items appear in the generated SQL.
  10614. */
  10615. function GenerateSQL(v) {
  10616. _classCallCheck(this, GenerateSQL);
  10617. var _this = _possibleConstructorReturn(this, (GenerateSQL.__proto__ || Object.getPrototypeOf(GenerateSQL)).call(this, v));
  10618. _this.enumValue = null;
  10619. _this.enumValue = v;
  10620. return _this;
  10621. }
  10622. /**
  10623. * Specifies that only the required query items appear in the generated SQL.
  10624. */
  10625. _createClass(GenerateSQL, [{
  10626. key: "value",
  10627. value: function value() {
  10628. return this.enumValue;
  10629. }
  10630. }, {
  10631. key: "getResourceId",
  10632. value: function getResourceId() {
  10633. return "GenerateSQL" + "_" + this.value();
  10634. }
  10635. }], [{
  10636. key: "fromValue",
  10637. value: function fromValue(v) {
  10638. for (var i = 0; i < GenerateSQL.values().length; ++i) {
  10639. if (GenerateSQL.values()[i].enumValue == v) {
  10640. return GenerateSQL.values()[i];
  10641. }
  10642. }
  10643. throw new Error(v);
  10644. }
  10645. }]);
  10646. return GenerateSQL;
  10647. }(_Enum3.default);
  10648. GenerateSQL.AS_VIEW = GenerateSQL.newLiteral("asView");
  10649. GenerateSQL.MINIMIZED = GenerateSQL.newLiteral("minimized");
  10650. exports.default = GenerateSQL;
  10651. /***/ },
  10652. /* 30 */
  10653. /***/ function(module, exports, __webpack_require__) {
  10654. "use strict";
  10655. Object.defineProperty(exports, "__esModule", {
  10656. value: true
  10657. });
  10658. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10659. var _Enum2 = __webpack_require__(12);
  10660. var _Enum3 = _interopRequireDefault(_Enum2);
  10661. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10662. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10663. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10664. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10665. ** IBM Confidential
  10666. **
  10667. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10668. **
  10669. ** (C) Copyright IBM Corp. 2020
  10670. **
  10671. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10672. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10673. ************************************************************************/
  10674. // GENERATED
  10675. //@import Enum (loadtime) // superclass
  10676. /**
  10677. * <p>Java class for querySubjectUsage. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="querySubjectUsage"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="automatic"/&gt; &lt;enumeration value="bridge"/&gt; &lt;enumeration value="summaryQuery"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10678. */
  10679. var QuerySubjectUsage = function (_Enum) {
  10680. _inherits(QuerySubjectUsage, _Enum);
  10681. /**
  10682. * Specifies that the querySubject refers to a bridge table.
  10683. */
  10684. function QuerySubjectUsage(v) {
  10685. _classCallCheck(this, QuerySubjectUsage);
  10686. var _this = _possibleConstructorReturn(this, (QuerySubjectUsage.__proto__ || Object.getPrototypeOf(QuerySubjectUsage)).call(this, v));
  10687. _this.enumValue = null;
  10688. _this.enumValue = v;
  10689. return _this;
  10690. }
  10691. /**
  10692. * Specifies that the querySubject will be treated as a summaryQuery.
  10693. */
  10694. /**
  10695. * Specifies that the querySubject usage is automatic and therefore it will be computed by the planning code.
  10696. */
  10697. _createClass(QuerySubjectUsage, [{
  10698. key: "value",
  10699. value: function value() {
  10700. return this.enumValue;
  10701. }
  10702. }, {
  10703. key: "getResourceId",
  10704. value: function getResourceId() {
  10705. return "QuerySubjectUsage" + "_" + this.value();
  10706. }
  10707. }], [{
  10708. key: "fromValue",
  10709. value: function fromValue(v) {
  10710. for (var i = 0; i < QuerySubjectUsage.values().length; ++i) {
  10711. if (QuerySubjectUsage.values()[i].enumValue == v) {
  10712. return QuerySubjectUsage.values()[i];
  10713. }
  10714. }
  10715. throw new Error(v);
  10716. }
  10717. }]);
  10718. return QuerySubjectUsage;
  10719. }(_Enum3.default);
  10720. QuerySubjectUsage.AUTOMATIC = QuerySubjectUsage.newLiteral("automatic");
  10721. QuerySubjectUsage.BRIDGE = QuerySubjectUsage.newLiteral("bridge");
  10722. QuerySubjectUsage.SUMMARY_QUERY = QuerySubjectUsage.newLiteral("summaryQuery");
  10723. exports.default = QuerySubjectUsage;
  10724. /***/ },
  10725. /* 31 */
  10726. /***/ function(module, exports, __webpack_require__) {
  10727. "use strict";
  10728. Object.defineProperty(exports, "__esModule", {
  10729. value: true
  10730. });
  10731. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10732. var _Enum2 = __webpack_require__(12);
  10733. var _Enum3 = _interopRequireDefault(_Enum2);
  10734. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10735. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10736. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10737. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10738. ** IBM Confidential
  10739. **
  10740. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10741. **
  10742. ** (C) Copyright IBM Corp. 2020
  10743. **
  10744. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10745. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10746. ************************************************************************/
  10747. // GENERATED
  10748. //@import Enum (loadtime) // superclass
  10749. /**
  10750. * <p>Java class for selectListControlType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="selectListControlType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="automatic"/&gt; &lt;enumeration value="allQueryItems"/&gt; &lt;enumeration value="usedQueryItems"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10751. */
  10752. var SelectListControlType = function (_Enum) {
  10753. _inherits(SelectListControlType, _Enum);
  10754. /**
  10755. * SQL Select contains all columns of the querysubject.
  10756. */
  10757. function SelectListControlType(v) {
  10758. _classCallCheck(this, SelectListControlType);
  10759. var _this = _possibleConstructorReturn(this, (SelectListControlType.__proto__ || Object.getPrototypeOf(SelectListControlType)).call(this, v));
  10760. _this.enumValue = null;
  10761. _this.enumValue = v;
  10762. return _this;
  10763. }
  10764. /**
  10765. * SQL Select contains used columns.
  10766. */
  10767. /**
  10768. * server determined.
  10769. */
  10770. _createClass(SelectListControlType, [{
  10771. key: "value",
  10772. value: function value() {
  10773. return this.enumValue;
  10774. }
  10775. }, {
  10776. key: "getResourceId",
  10777. value: function getResourceId() {
  10778. return "SelectListControlType" + "_" + this.value();
  10779. }
  10780. }], [{
  10781. key: "fromValue",
  10782. value: function fromValue(v) {
  10783. for (var i = 0; i < SelectListControlType.values().length; ++i) {
  10784. if (SelectListControlType.values()[i].enumValue == v) {
  10785. return SelectListControlType.values()[i];
  10786. }
  10787. }
  10788. throw new Error(v);
  10789. }
  10790. }]);
  10791. return SelectListControlType;
  10792. }(_Enum3.default);
  10793. SelectListControlType.AUTOMATIC = SelectListControlType.newLiteral("automatic");
  10794. SelectListControlType.ALL_QUERY_ITEMS = SelectListControlType.newLiteral("allQueryItems");
  10795. SelectListControlType.USED_QUERY_ITEMS = SelectListControlType.newLiteral("usedQueryItems");
  10796. exports.default = SelectListControlType;
  10797. /***/ },
  10798. /* 32 */
  10799. /***/ function(module, exports, __webpack_require__) {
  10800. "use strict";
  10801. Object.defineProperty(exports, "__esModule", {
  10802. value: true
  10803. });
  10804. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10805. var _Enum2 = __webpack_require__(12);
  10806. var _Enum3 = _interopRequireDefault(_Enum2);
  10807. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10808. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10809. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10810. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10811. ** IBM Confidential
  10812. **
  10813. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10814. **
  10815. ** (C) Copyright IBM Corp. 2020
  10816. **
  10817. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10818. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10819. ************************************************************************/
  10820. // GENERATED
  10821. //@import Enum (loadtime) // superclass
  10822. /**
  10823. * <p>Java class for sourceCategoryType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="sourceCategoryType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="calculation"/&gt; &lt;enumeration value="column"/&gt; &lt;enumeration value="dimension/measure"/&gt; &lt;enumeration value="dimension/regular"/&gt; &lt;enumeration value="folder"/&gt; &lt;enumeration value="hierarchy/level"/&gt; &lt;enumeration value="hierarchy/parent-child"/&gt; &lt;enumeration value="level"/&gt; &lt;enumeration value="measure"/&gt; &lt;enumeration value="namedSet"/&gt; &lt;enumeration value="property"/&gt; &lt;enumeration value="table"/&gt; &lt;enumeration value="variable"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10824. */
  10825. var SourceCategoryType = function (_Enum) {
  10826. _inherits(SourceCategoryType, _Enum);
  10827. function SourceCategoryType(v) {
  10828. _classCallCheck(this, SourceCategoryType);
  10829. var _this = _possibleConstructorReturn(this, (SourceCategoryType.__proto__ || Object.getPrototypeOf(SourceCategoryType)).call(this, v));
  10830. _this.enumValue = null;
  10831. _this.enumValue = v;
  10832. return _this;
  10833. }
  10834. _createClass(SourceCategoryType, [{
  10835. key: "value",
  10836. value: function value() {
  10837. return this.enumValue;
  10838. }
  10839. }, {
  10840. key: "getResourceId",
  10841. value: function getResourceId() {
  10842. return "SourceCategoryType" + "_" + this.value();
  10843. }
  10844. }], [{
  10845. key: "fromValue",
  10846. value: function fromValue(v) {
  10847. for (var i = 0; i < SourceCategoryType.values().length; ++i) {
  10848. if (SourceCategoryType.values()[i].enumValue == v) {
  10849. return SourceCategoryType.values()[i];
  10850. }
  10851. }
  10852. throw new Error(v);
  10853. }
  10854. }]);
  10855. return SourceCategoryType;
  10856. }(_Enum3.default);
  10857. SourceCategoryType.CALCULATION = SourceCategoryType.newLiteral("calculation");
  10858. SourceCategoryType.COLUMN = SourceCategoryType.newLiteral("column");
  10859. SourceCategoryType.DIMENSION_MEASURE = SourceCategoryType.newLiteral("dimension/measure");
  10860. SourceCategoryType.DIMENSION_REGULAR = SourceCategoryType.newLiteral("dimension/regular");
  10861. SourceCategoryType.FOLDER = SourceCategoryType.newLiteral("folder");
  10862. SourceCategoryType.HIERARCHY_LEVEL = SourceCategoryType.newLiteral("hierarchy/level");
  10863. SourceCategoryType.HIERARCHY_PARENT_CHILD = SourceCategoryType.newLiteral("hierarchy/parent-child");
  10864. SourceCategoryType.LEVEL = SourceCategoryType.newLiteral("level");
  10865. SourceCategoryType.MEASURE = SourceCategoryType.newLiteral("measure");
  10866. SourceCategoryType.NAMED_SET = SourceCategoryType.newLiteral("namedSet");
  10867. SourceCategoryType.PROPERTY = SourceCategoryType.newLiteral("property");
  10868. SourceCategoryType.TABLE = SourceCategoryType.newLiteral("table");
  10869. SourceCategoryType.VARIABLE = SourceCategoryType.newLiteral("variable");
  10870. exports.default = SourceCategoryType;
  10871. /***/ },
  10872. /* 33 */
  10873. /***/ function(module, exports, __webpack_require__) {
  10874. "use strict";
  10875. Object.defineProperty(exports, "__esModule", {
  10876. value: true
  10877. });
  10878. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10879. var _Enum2 = __webpack_require__(12);
  10880. var _Enum3 = _interopRequireDefault(_Enum2);
  10881. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10882. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10883. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10884. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10885. ** IBM Confidential
  10886. **
  10887. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10888. **
  10889. ** (C) Copyright IBM Corp. 2020
  10890. **
  10891. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10892. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10893. ************************************************************************/
  10894. // GENERATED
  10895. //@import Enum (loadtime) // superclass
  10896. /**
  10897. * <p>Java class for qsClassifierType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="qsClassifierType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="querySubject"/&gt; &lt;enumeration value="operationQuerySubject"/&gt; &lt;enumeration value="joinQuerySubject"/&gt; &lt;enumeration value="sqlQuerySubject"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10898. */
  10899. var QsClassifierType = function (_Enum) {
  10900. _inherits(QsClassifierType, _Enum);
  10901. function QsClassifierType(v) {
  10902. _classCallCheck(this, QsClassifierType);
  10903. var _this = _possibleConstructorReturn(this, (QsClassifierType.__proto__ || Object.getPrototypeOf(QsClassifierType)).call(this, v));
  10904. _this.enumValue = null;
  10905. _this.enumValue = v;
  10906. return _this;
  10907. }
  10908. _createClass(QsClassifierType, [{
  10909. key: "value",
  10910. value: function value() {
  10911. return this.enumValue;
  10912. }
  10913. }, {
  10914. key: "getResourceId",
  10915. value: function getResourceId() {
  10916. return "QsClassifierType" + "_" + this.value();
  10917. }
  10918. }], [{
  10919. key: "fromValue",
  10920. value: function fromValue(v) {
  10921. for (var i = 0; i < QsClassifierType.values().length; ++i) {
  10922. if (QsClassifierType.values()[i].enumValue == v) {
  10923. return QsClassifierType.values()[i];
  10924. }
  10925. }
  10926. throw new Error(v);
  10927. }
  10928. }]);
  10929. return QsClassifierType;
  10930. }(_Enum3.default);
  10931. QsClassifierType.QUERY_SUBJECT = QsClassifierType.newLiteral("querySubject");
  10932. QsClassifierType.OPERATION_QUERY_SUBJECT = QsClassifierType.newLiteral("operationQuerySubject");
  10933. QsClassifierType.JOIN_QUERY_SUBJECT = QsClassifierType.newLiteral("joinQuerySubject");
  10934. QsClassifierType.SQL_QUERY_SUBJECT = QsClassifierType.newLiteral("sqlQuerySubject");
  10935. exports.default = QsClassifierType;
  10936. /***/ },
  10937. /* 34 */
  10938. /***/ function(module, exports, __webpack_require__) {
  10939. "use strict";
  10940. Object.defineProperty(exports, "__esModule", {
  10941. value: true
  10942. });
  10943. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  10944. var _Enum2 = __webpack_require__(12);
  10945. var _Enum3 = _interopRequireDefault(_Enum2);
  10946. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10947. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10948. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  10949. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  10950. ** IBM Confidential
  10951. **
  10952. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  10953. **
  10954. ** (C) Copyright IBM Corp. 2020
  10955. **
  10956. ** The source code for this program is not published or otherwise divested of its trade secrets,
  10957. ** irrespective of what has been deposited with the U.S. Copyright Office.
  10958. ************************************************************************/
  10959. // GENERATED
  10960. //@import Enum (loadtime) // superclass
  10961. /**
  10962. * <p>Java class for setOperation. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="setOperation"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="UNION"/&gt; &lt;enumeration value="INTERSECT"/&gt; &lt;enumeration value="EXCEPT"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  10963. */
  10964. var SetOperation = function (_Enum) {
  10965. _inherits(SetOperation, _Enum);
  10966. function SetOperation() {
  10967. _classCallCheck(this, SetOperation);
  10968. return _possibleConstructorReturn(this, (SetOperation.__proto__ || Object.getPrototypeOf(SetOperation)).apply(this, arguments));
  10969. }
  10970. _createClass(SetOperation, [{
  10971. key: "value",
  10972. value: function value() {
  10973. return this.name();
  10974. }
  10975. }, {
  10976. key: "getResourceId",
  10977. value: function getResourceId() {
  10978. return "SetOperation" + "_" + this.value();
  10979. }
  10980. }], [{
  10981. key: "fromValue",
  10982. value: function fromValue(v) {
  10983. return SetOperation.valueOf(v);
  10984. }
  10985. }]);
  10986. return SetOperation;
  10987. }(_Enum3.default);
  10988. SetOperation.UNION = SetOperation.newLiteral("UNION");
  10989. SetOperation.INTERSECT = SetOperation.newLiteral("INTERSECT");
  10990. SetOperation.EXCEPT = SetOperation.newLiteral("EXCEPT");
  10991. exports.default = SetOperation;
  10992. /***/ },
  10993. /* 35 */
  10994. /***/ function(module, exports, __webpack_require__) {
  10995. "use strict";
  10996. Object.defineProperty(exports, "__esModule", {
  10997. value: true
  10998. });
  10999. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  11000. var _Enum2 = __webpack_require__(12);
  11001. var _Enum3 = _interopRequireDefault(_Enum2);
  11002. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11003. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  11004. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  11005. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  11006. ** IBM Confidential
  11007. **
  11008. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  11009. **
  11010. ** (C) Copyright IBM Corp. 2020
  11011. **
  11012. ** The source code for this program is not published or otherwise divested of its trade secrets,
  11013. ** irrespective of what has been deposited with the U.S. Copyright Office.
  11014. ************************************************************************/
  11015. // GENERATED
  11016. //@import Enum (loadtime) // superclass
  11017. /**
  11018. * <p>Java class for setOperationDuplicates. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="setOperationDuplicates"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="remove"/&gt; &lt;enumeration value="preserve"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  11019. */
  11020. var SetOperationDuplicates = function (_Enum) {
  11021. _inherits(SetOperationDuplicates, _Enum);
  11022. function SetOperationDuplicates(v) {
  11023. _classCallCheck(this, SetOperationDuplicates);
  11024. var _this = _possibleConstructorReturn(this, (SetOperationDuplicates.__proto__ || Object.getPrototypeOf(SetOperationDuplicates)).call(this, v));
  11025. _this.enumValue = null;
  11026. _this.enumValue = v;
  11027. return _this;
  11028. }
  11029. _createClass(SetOperationDuplicates, [{
  11030. key: "value",
  11031. value: function value() {
  11032. return this.enumValue;
  11033. }
  11034. }, {
  11035. key: "getResourceId",
  11036. value: function getResourceId() {
  11037. return "SetOperationDuplicates" + "_" + this.value();
  11038. }
  11039. }], [{
  11040. key: "fromValue",
  11041. value: function fromValue(v) {
  11042. for (var i = 0; i < SetOperationDuplicates.values().length; ++i) {
  11043. if (SetOperationDuplicates.values()[i].enumValue == v) {
  11044. return SetOperationDuplicates.values()[i];
  11045. }
  11046. }
  11047. throw new Error(v);
  11048. }
  11049. }]);
  11050. return SetOperationDuplicates;
  11051. }(_Enum3.default);
  11052. SetOperationDuplicates.REMOVE = SetOperationDuplicates.newLiteral("remove");
  11053. SetOperationDuplicates.PRESERVE = SetOperationDuplicates.newLiteral("preserve");
  11054. exports.default = SetOperationDuplicates;
  11055. /***/ },
  11056. /* 36 */
  11057. /***/ function(module, exports, __webpack_require__) {
  11058. 'use strict';
  11059. Object.defineProperty(exports, "__esModule", {
  11060. value: true
  11061. });
  11062. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  11063. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  11064. var _ObjectType2 = __webpack_require__(26);
  11065. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  11066. var _MoserObject2 = __webpack_require__(6);
  11067. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  11068. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11069. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  11070. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  11071. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  11072. ** IBM Confidential
  11073. **
  11074. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  11075. **
  11076. ** (C) Copyright IBM Corp. 2021
  11077. **
  11078. ** The source code for this program is not published or otherwise divested of its trade secrets,
  11079. ** irrespective of what has been deposited with the U.S. Copyright Office.
  11080. ************************************************************************/
  11081. // GENERATED
  11082. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  11083. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  11084. /**
  11085. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="securityObject"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="displayPath" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="cmSearchPath" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="expression" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  11086. */
  11087. var SecurityFilter = function (_ObjectType) {
  11088. _inherits(SecurityFilter, _ObjectType);
  11089. function SecurityFilter() {
  11090. var _ref;
  11091. var _temp, _this, _ret;
  11092. _classCallCheck(this, SecurityFilter);
  11093. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  11094. args[_key] = arguments[_key];
  11095. }
  11096. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = SecurityFilter.__proto__ || Object.getPrototypeOf(SecurityFilter)).call.apply(_ref, [this].concat(args))), _this), _this.securityObject = null, _this.expression = null, _temp), _possibleConstructorReturn(_this, _ret);
  11097. }
  11098. _createClass(SecurityFilter, [{
  11099. key: 'getSecurityObject',
  11100. /**
  11101. * Gets the value of the securityObject property.
  11102. * @return {SecurityObject} possible object is {@link SecurityFilter.SecurityObject}
  11103. */
  11104. value: function getSecurityObject() {
  11105. return this.securityObject;
  11106. }
  11107. /**
  11108. * Sets the value of the securityObject property.
  11109. * @param {SecurityObject} value allowed object is {@link SecurityFilter.SecurityObject}
  11110. */
  11111. }, {
  11112. key: 'setSecurityObject',
  11113. value: function setSecurityObject(value) {
  11114. var oldValue = this.securityObject;
  11115. this.securityObject = value;
  11116. this._setAndNotify(42, oldValue, value, true, true);
  11117. }
  11118. /**
  11119. * Gets the value of the expression property.
  11120. * @return {String} possible object is {@link String}
  11121. */
  11122. }, {
  11123. key: 'getExpression',
  11124. value: function getExpression() {
  11125. return this.expression;
  11126. }
  11127. /**
  11128. * Sets the value of the expression property.
  11129. * @param {String} value allowed object is {@link String}
  11130. */
  11131. }, {
  11132. key: 'setExpression',
  11133. value: function setExpression(value) {
  11134. var oldValue = this.expression;
  11135. this.expression = value;
  11136. this._setAndNotify(43, oldValue, value, false, true);
  11137. }
  11138. /**
  11139. * Creates a new instance of <code>SecurityFilter</code> object from JSON data.
  11140. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  11141. * @param {Object} json JSON data to be used to create the <code> SecurityFilter</code> object from.
  11142. * @return {SecurityFilter} an object of type <code>SecurityFilter</code>
  11143. */
  11144. }, {
  11145. key: 'getObjectType',
  11146. /**
  11147. * Retrieves the type of this object
  11148. * @return {String} the object type in a <code>String</code>
  11149. */
  11150. value: function getObjectType() {
  11151. return "SecurityFilter";
  11152. }
  11153. /**
  11154. * Get a list of FeatureObjects
  11155. * @return {Array} A list of FeatureObjects
  11156. */
  11157. }, {
  11158. key: 'getFeatureList',
  11159. value: function getFeatureList(factory) {
  11160. var featureList = [];
  11161. var clazz;
  11162. if (factory) {
  11163. clazz = factory.createSecurityFilterSecurityObject().getClass();
  11164. }
  11165. featureList.push(this.createFeature(false, false, true, 42, "securityObject", clazz));
  11166. featureList.push(this.createFeature(false, false, false, 43, "expression", null));
  11167. Array.prototype.push.apply(featureList, _get(SecurityFilter.prototype.__proto__ || Object.getPrototypeOf(SecurityFilter.prototype), 'getFeatureList', this).call(this, factory));
  11168. return featureList;
  11169. }
  11170. /**
  11171. * Set the value of a specific feature.
  11172. * @param {BaseMoserObject} value the value to set
  11173. * @param {int} featureID the feature id of the attribute to be set
  11174. */
  11175. }, {
  11176. key: 'set',
  11177. value: function set(featureID, value) {
  11178. switch (featureID) {
  11179. case 42:
  11180. this.setSecurityObject(value);
  11181. break;
  11182. case 43:
  11183. this.setExpression(value);
  11184. break;
  11185. default:
  11186. _get(SecurityFilter.prototype.__proto__ || Object.getPrototypeOf(SecurityFilter.prototype), 'set', this).call(this, featureID, value);
  11187. }
  11188. }
  11189. /**
  11190. * Get the value of a specific feature.
  11191. * @param {int} featureID the feature id of the attribute to get
  11192. */
  11193. }, {
  11194. key: 'get',
  11195. value: function get(featureID) {
  11196. switch (featureID) {
  11197. case 42:
  11198. return this.getSecurityObject();
  11199. case 43:
  11200. return this.getExpression();
  11201. default:
  11202. return _get(SecurityFilter.prototype.__proto__ || Object.getPrototypeOf(SecurityFilter.prototype), 'get', this).call(this, featureID);
  11203. }
  11204. }
  11205. /**
  11206. * Get the value of a specific feature.
  11207. * @param {int} featureID the feature id of the attribute to get
  11208. */
  11209. }, {
  11210. key: 'basicGet',
  11211. value: function basicGet(featureID) {
  11212. switch (featureID) {
  11213. case 42:
  11214. return this.getSecurityObject();
  11215. case 43:
  11216. return this.getExpression();
  11217. default:
  11218. return _get(SecurityFilter.prototype.__proto__ || Object.getPrototypeOf(SecurityFilter.prototype), 'basicGet', this).call(this, featureID);
  11219. }
  11220. }
  11221. }], [{
  11222. key: 'fromJSON',
  11223. value: function fromJSON(json, factory) {
  11224. var result = factory.createSecurityFilter();
  11225. var featureList = result.getFeatureList(factory);
  11226. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  11227. return result;
  11228. }
  11229. }]);
  11230. return SecurityFilter;
  11231. }(_ObjectType3.default);
  11232. /**
  11233. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="displayPath" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="cmSearchPath" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  11234. */
  11235. exports.default = SecurityFilter;
  11236. SecurityFilter.SecurityObject = function (_MoserObject) {
  11237. _inherits(_class2, _MoserObject);
  11238. function _class2() {
  11239. var _ref2;
  11240. var _temp2, _this2, _ret2;
  11241. _classCallCheck(this, _class2);
  11242. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  11243. args[_key2] = arguments[_key2];
  11244. }
  11245. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.displayPath = null, _this2.cmSearchPath = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  11246. }
  11247. _createClass(_class2, [{
  11248. key: 'getDisplayPath',
  11249. /**
  11250. * Gets the value of the displayPath property.
  11251. * @return {String} possible object is {@link String}
  11252. */
  11253. value: function getDisplayPath() {
  11254. return this.displayPath;
  11255. }
  11256. /**
  11257. * Sets the value of the displayPath property.
  11258. * @param {String} value allowed object is {@link String}
  11259. */
  11260. }, {
  11261. key: 'setDisplayPath',
  11262. value: function setDisplayPath(value) {
  11263. var oldValue = this.displayPath;
  11264. this.displayPath = value;
  11265. this._setAndNotify(210, oldValue, value, false, false);
  11266. }
  11267. /**
  11268. * Gets the value of the cmSearchPath property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the cmSearchPath property. <p> For example, to add a new item, do as follows: <pre> getCmSearchPath().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  11269. */
  11270. }, {
  11271. key: 'getCmSearchPath',
  11272. value: function getCmSearchPath() {
  11273. if (!this.cmSearchPath) {
  11274. this.cmSearchPath = [];
  11275. }
  11276. return this.cmSearchPath;
  11277. }
  11278. /**
  11279. * Gets the value of the <code>cmSearchPath</code> property without initializing the property to an empty list if it is unset.
  11280. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  11281. */
  11282. }, {
  11283. key: 'basicGetCmSearchPath',
  11284. value: function basicGetCmSearchPath() {
  11285. return this.cmSearchPath;
  11286. }
  11287. /**
  11288. * Creates a new instance of <code>SecurityObject</code> object from JSON data.
  11289. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  11290. * @param {Object} json JSON data to be used to create the <code> SecurityObject</code> object from.
  11291. * @return {SecurityObject} an object of type <code>SecurityObject</code>
  11292. */
  11293. }, {
  11294. key: 'addCmSearchPathAt',
  11295. /**
  11296. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  11297. */
  11298. value: function addCmSearchPathAt(position, item) {
  11299. this._addAtAndNotify(this.getCmSearchPath(), position, item, 209, false, false);
  11300. }
  11301. /**
  11302. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  11303. */
  11304. }, {
  11305. key: 'addCmSearchPath',
  11306. value: function addCmSearchPath(item) {
  11307. this.addCmSearchPathAt(this.getCmSearchPath().length, item);
  11308. }
  11309. /**
  11310. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  11311. */
  11312. }, {
  11313. key: 'removeCmSearchPathAt',
  11314. value: function removeCmSearchPathAt(position) {
  11315. this._removeAtAndNotify(this.getCmSearchPath(), position, 209, false);
  11316. }
  11317. /**
  11318. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  11319. */
  11320. }, {
  11321. key: 'removeCmSearchPath',
  11322. value: function removeCmSearchPath(item) {
  11323. var i = this.getCmSearchPath().indexOf(item);
  11324. if (i >= 0) {
  11325. this.removeCmSearchPathAt(i);
  11326. }
  11327. }
  11328. /**
  11329. * Retrieves the type of this object
  11330. * @return {String} the object type in a <code>String</code>
  11331. */
  11332. }, {
  11333. key: 'getObjectType',
  11334. value: function getObjectType() {
  11335. return "SecurityObject";
  11336. }
  11337. /**
  11338. * Get a list of FeatureObjects
  11339. * @return {Array} A list of FeatureObjects
  11340. */
  11341. }, {
  11342. key: 'getFeatureList',
  11343. value: function getFeatureList(factory) {
  11344. var featureList = [];
  11345. featureList.push(this.createFeature(false, false, false, 210, "displayPath", null));
  11346. featureList.push(this.createFeature(true, false, false, 209, "cmSearchPath", null));
  11347. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  11348. return featureList;
  11349. }
  11350. /**
  11351. * Set the value of a specific feature.
  11352. * @param {BaseMoserObject} value the value to set
  11353. * @param {int} featureID the feature id of the attribute to be set
  11354. */
  11355. }, {
  11356. key: 'set',
  11357. value: function set(featureID, value) {
  11358. switch (featureID) {
  11359. case 210:
  11360. this.setDisplayPath(value);
  11361. break;
  11362. default:
  11363. throw new Error("The feature " + featureID + " is not valid.");
  11364. }
  11365. }
  11366. /**
  11367. * Set the value of a specific feature.
  11368. * @param {BaseMoserObject} value the value to set the value to set
  11369. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  11370. */
  11371. }, {
  11372. key: '_setList',
  11373. value: function _setList(featureID, value) {
  11374. switch (featureID) {
  11375. case 209:
  11376. this.cmSearchPath = value;
  11377. break;
  11378. default:
  11379. throw new Error("The feature " + featureID + " is not valid.");
  11380. }
  11381. }
  11382. /**
  11383. * Get the value of a specific feature.
  11384. * @param {int} featureID the feature id of the attribute to get
  11385. */
  11386. }, {
  11387. key: 'get',
  11388. value: function get(featureID) {
  11389. switch (featureID) {
  11390. case 209:
  11391. return this.getCmSearchPath();
  11392. case 210:
  11393. return this.getDisplayPath();
  11394. default:
  11395. throw new Error("The feature " + featureID + " is not valid.");
  11396. }
  11397. }
  11398. /**
  11399. * Get the value of a specific feature.
  11400. * @param {int} featureID the feature id of the attribute to get
  11401. */
  11402. }, {
  11403. key: 'basicGet',
  11404. value: function basicGet(featureID) {
  11405. switch (featureID) {
  11406. case 209:
  11407. return this.basicGetCmSearchPath();
  11408. case 210:
  11409. return this.getDisplayPath();
  11410. default:
  11411. throw new Error("The feature " + featureID + " is not valid.");
  11412. }
  11413. }
  11414. /**
  11415. * Add the value of a specific feature at a specific position
  11416. * @param {int} position the array position of the item to be added
  11417. * @param {BaseMoserObject} value the value to add
  11418. * @param {int} featureID the feature id of the attribute to be added
  11419. */
  11420. }, {
  11421. key: 'addAt',
  11422. value: function addAt(featureID, position, value) {
  11423. switch (featureID) {
  11424. case 209:
  11425. this.addCmSearchPathAt(position, value);
  11426. break;
  11427. default:
  11428. throw new Error("The feature " + featureID + " is not valid.");
  11429. }
  11430. }
  11431. /**
  11432. * Add the value to the end of a specific collection feature
  11433. * @param {BaseMoserObject} value the value to add
  11434. * @param {int} featureID the feature id of the attribute to be added
  11435. */
  11436. }, {
  11437. key: 'add',
  11438. value: function add(featureID, value) {
  11439. switch (featureID) {
  11440. case 209:
  11441. this.addCmSearchPath(value);
  11442. break;
  11443. default:
  11444. throw new Error("The feature " + featureID + " is not valid.");
  11445. }
  11446. }
  11447. /**
  11448. * Remove the value of a specific feature by index.
  11449. * @param {int} position the array position of the item to be removed
  11450. * @param {int} featureID the feature id of the attribute to be removed
  11451. */
  11452. }, {
  11453. key: 'removeAt',
  11454. value: function removeAt(featureID, position) {
  11455. switch (featureID) {
  11456. case 209:
  11457. this.removeCmSearchPathAt(position);
  11458. break;
  11459. default:
  11460. throw new Error("The feature " + featureID + " is not valid.");
  11461. }
  11462. }
  11463. /**
  11464. * Remove the value from specific feature.
  11465. * @param {BaseMoserObject} item the item to be removed
  11466. * @param {int} featureID the feature id of the attribute to be removed
  11467. */
  11468. }, {
  11469. key: 'remove',
  11470. value: function remove(featureID, item) {
  11471. switch (featureID) {
  11472. case 209:
  11473. this.removeCmSearchPath(item);
  11474. break;
  11475. default:
  11476. throw new Error("The feature " + featureID + " is not valid.");
  11477. }
  11478. }
  11479. }], [{
  11480. key: 'fromJSON',
  11481. value: function fromJSON(json, factory) {
  11482. var result = factory.createSecurityFilterSecurityObject();
  11483. var featureList = result.getFeatureList(factory);
  11484. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  11485. return result;
  11486. }
  11487. }]);
  11488. return _class2;
  11489. }(_MoserObject3.default);
  11490. /***/ },
  11491. /* 37 */
  11492. /***/ function(module, exports, __webpack_require__) {
  11493. 'use strict';
  11494. Object.defineProperty(exports, "__esModule", {
  11495. value: true
  11496. });
  11497. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  11498. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  11499. var _ObjectType2 = __webpack_require__(26);
  11500. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  11501. var _MoserObject2 = __webpack_require__(6);
  11502. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  11503. var _InstanceType = __webpack_require__(11);
  11504. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  11505. var _JoinFilterType = __webpack_require__(38);
  11506. var _JoinFilterType2 = _interopRequireDefault(_JoinFilterType);
  11507. var _ComparisonOperatorType = __webpack_require__(39);
  11508. var _ComparisonOperatorType2 = _interopRequireDefault(_ComparisonOperatorType);
  11509. var _ReferenceResolver = __webpack_require__(40);
  11510. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  11511. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11512. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  11513. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  11514. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  11515. ** IBM Confidential
  11516. **
  11517. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  11518. **
  11519. ** (C) Copyright IBM Corp. 2021
  11520. **
  11521. ** The source code for this program is not published or otherwise divested of its trade secrets,
  11522. ** irrespective of what has been deposited with the U.S. Copyright Office.
  11523. ************************************************************************/
  11524. // GENERATED
  11525. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  11526. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  11527. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (runtime) // new
  11528. //@import com/ibm/bi/platform/moser/common/generated/metadata/JoinFilterType (runtime) // new
  11529. //@import com/ibm/bi/platform/moser/common/generated/metadata/ComparisonOperatorType (runtime) // new
  11530. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (runtime) // resolveRelationshipLink
  11531. /**
  11532. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="instanceType" type="{}instanceType" minOccurs="0"/&gt; &lt;element name="left" type="{}cardinalityType"/&gt; &lt;element name="right" type="{}cardinalityType"/&gt; &lt;choice&gt; &lt;element name="expression" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="link" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="leftRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="rightRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="comparisonOperator" type="{}comparisonOperatorType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/choice&gt; &lt;element name="joinFilterType" type="{}joinFilterType" minOccurs="0"/&gt; &lt;element name="shortcutTargetRelationshipRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  11533. */
  11534. var Relationship = function (_ObjectType) {
  11535. _inherits(Relationship, _ObjectType);
  11536. function Relationship() {
  11537. var _ref;
  11538. var _temp, _this, _ret;
  11539. _classCallCheck(this, Relationship);
  11540. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  11541. args[_key] = arguments[_key];
  11542. }
  11543. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Relationship.__proto__ || Object.getPrototypeOf(Relationship)).call.apply(_ref, [this].concat(args))), _this), _this.ref = null, _this.instanceType = null, _this.left = null, _this.right = null, _this.expression = null, _this.link = null, _this.joinFilterType = null, _this.shortcutTargetRelationshipRef = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  11544. }
  11545. _createClass(Relationship, [{
  11546. key: 'getRef',
  11547. /**
  11548. * Gets the value of the ref property.
  11549. * @return {String} possible object is {@link String}
  11550. */
  11551. value: function getRef() {
  11552. return this.ref;
  11553. }
  11554. /**
  11555. * Sets the value of the ref property.
  11556. * @param {String} value allowed object is {@link String}
  11557. */
  11558. }, {
  11559. key: 'setRef',
  11560. value: function setRef(value) {
  11561. var oldValue = this.ref;
  11562. this.ref = value;
  11563. this._setAndNotify(36, oldValue, value, false, true);
  11564. this._referencedObject = null;
  11565. }
  11566. /**
  11567. * Gets the value of the instanceType property.
  11568. * @return {InstanceType} possible object is {@link InstanceType}
  11569. */
  11570. }, {
  11571. key: 'getInstanceType',
  11572. value: function getInstanceType() {
  11573. return this.instanceType;
  11574. }
  11575. /**
  11576. * Sets the value of the instanceType property.
  11577. * @param {InstanceType} value allowed object is {@link InstanceType}
  11578. */
  11579. }, {
  11580. key: 'setInstanceType',
  11581. value: function setInstanceType(value) {
  11582. var oldValue = this.instanceType;
  11583. this.instanceType = value;
  11584. this._setAndNotify(58, oldValue, value, false, true);
  11585. }
  11586. /**
  11587. * Gets the value of the left property.
  11588. * @return {CardinalityType} possible object is {@link CardinalityType}
  11589. */
  11590. }, {
  11591. key: 'getLeft',
  11592. value: function getLeft() {
  11593. return this.left;
  11594. }
  11595. /**
  11596. * Sets the value of the left property.
  11597. * @param {CardinalityType} value allowed object is {@link CardinalityType}
  11598. */
  11599. }, {
  11600. key: 'setLeft',
  11601. value: function setLeft(value) {
  11602. var oldValue = this.left;
  11603. this.left = value;
  11604. this._setAndNotify(232, oldValue, value, true, true);
  11605. }
  11606. /**
  11607. * Gets the value of the right property.
  11608. * @return {CardinalityType} possible object is {@link CardinalityType}
  11609. */
  11610. }, {
  11611. key: 'getRight',
  11612. value: function getRight() {
  11613. return this.right;
  11614. }
  11615. /**
  11616. * Sets the value of the right property.
  11617. * @param {CardinalityType} value allowed object is {@link CardinalityType}
  11618. */
  11619. }, {
  11620. key: 'setRight',
  11621. value: function setRight(value) {
  11622. var oldValue = this.right;
  11623. this.right = value;
  11624. this._setAndNotify(234, oldValue, value, true, true);
  11625. }
  11626. /**
  11627. * Gets the value of the expression property.
  11628. * @return {String} possible object is {@link String}
  11629. */
  11630. }, {
  11631. key: 'getExpression',
  11632. value: function getExpression() {
  11633. return this.expression;
  11634. }
  11635. /**
  11636. * Sets the value of the expression property.
  11637. * @param {String} value allowed object is {@link String}
  11638. */
  11639. }, {
  11640. key: 'setExpression',
  11641. value: function setExpression(value) {
  11642. var oldValue = this.expression;
  11643. this.expression = value;
  11644. this._setAndNotify(43, oldValue, value, false, true);
  11645. }
  11646. /**
  11647. * Gets the value of the link property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the link property. <p> For example, to add a new item, do as follows: <pre> getLink().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Relationship.Link}
  11648. */
  11649. }, {
  11650. key: 'getLink',
  11651. value: function getLink() {
  11652. if (!this.link) {
  11653. this.link = [];
  11654. }
  11655. return this.link;
  11656. }
  11657. /**
  11658. * Gets the value of the joinFilterType property.
  11659. * @return {JoinFilterType} possible object is {@link JoinFilterType}
  11660. */
  11661. }, {
  11662. key: 'getJoinFilterType',
  11663. value: function getJoinFilterType() {
  11664. return this.joinFilterType;
  11665. }
  11666. /**
  11667. * Sets the value of the joinFilterType property.
  11668. * @param {JoinFilterType} value allowed object is {@link JoinFilterType}
  11669. */
  11670. }, {
  11671. key: 'setJoinFilterType',
  11672. value: function setJoinFilterType(value) {
  11673. var oldValue = this.joinFilterType;
  11674. this.joinFilterType = value;
  11675. this._setAndNotify(235, oldValue, value, false, true);
  11676. }
  11677. /**
  11678. * Gets the value of the shortcutTargetRelationshipRef property.
  11679. * @return {String} possible object is {@link String}
  11680. */
  11681. }, {
  11682. key: 'getShortcutTargetRelationshipRef',
  11683. value: function getShortcutTargetRelationshipRef() {
  11684. return this.shortcutTargetRelationshipRef;
  11685. }
  11686. /**
  11687. * Sets the value of the shortcutTargetRelationshipRef property.
  11688. * @param {String} value allowed object is {@link String}
  11689. */
  11690. }, {
  11691. key: 'setShortcutTargetRelationshipRef',
  11692. value: function setShortcutTargetRelationshipRef(value) {
  11693. var oldValue = this.shortcutTargetRelationshipRef;
  11694. this.shortcutTargetRelationshipRef = value;
  11695. this._setAndNotify(236, oldValue, value, false, true);
  11696. }
  11697. /**
  11698. * Gets the value of the <code>link</code> property without initializing the property to an empty list if it is unset.
  11699. * @return {Array} the list of <code>Link</code> elements, or <code>null</code> if not set
  11700. */
  11701. }, {
  11702. key: 'basicGetLink',
  11703. value: function basicGetLink() {
  11704. return this.link;
  11705. }
  11706. /**
  11707. * Creates a new instance of <code>Relationship</code> object from JSON data.
  11708. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  11709. * @param {Object} json JSON data to be used to create the <code> Relationship</code> object from.
  11710. * @return {Relationship} an object of type <code>Relationship</code>
  11711. */
  11712. }, {
  11713. key: 'addLinkAt',
  11714. /**
  11715. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  11716. */
  11717. value: function addLinkAt(position, item) {
  11718. this._addAtAndNotify(this.getLink(), position, item, 233, true, false);
  11719. }
  11720. /**
  11721. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  11722. */
  11723. }, {
  11724. key: 'addLink',
  11725. value: function addLink(item) {
  11726. this.addLinkAt(this.getLink().length, item);
  11727. }
  11728. /**
  11729. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  11730. */
  11731. }, {
  11732. key: 'removeLinkAt',
  11733. value: function removeLinkAt(position) {
  11734. this._removeAtAndNotify(this.getLink(), position, 233, true);
  11735. }
  11736. /**
  11737. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  11738. */
  11739. }, {
  11740. key: 'removeLink',
  11741. value: function removeLink(item) {
  11742. var i = this.getLink().indexOf(item);
  11743. if (i >= 0) {
  11744. this.removeLinkAt(i);
  11745. }
  11746. }
  11747. /**
  11748. * Retrieves the type of this object
  11749. * @return {String} the object type in a <code>String</code>
  11750. */
  11751. }, {
  11752. key: 'getObjectType',
  11753. value: function getObjectType() {
  11754. return "Relationship";
  11755. }
  11756. /**
  11757. * Get a list of FeatureObjects
  11758. * @return {Array} A list of FeatureObjects
  11759. */
  11760. }, {
  11761. key: 'getFeatureList',
  11762. value: function getFeatureList(factory) {
  11763. var featureList = [];
  11764. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  11765. featureList.push(this.createFeature(false, true, false, 58, "instanceType", _InstanceType2.default));
  11766. var clazz;
  11767. if (factory) {
  11768. clazz = factory.createCardinalityType().getClass();
  11769. }
  11770. featureList.push(this.createFeature(false, false, true, 232, "left", clazz));
  11771. if (factory) {
  11772. clazz = factory.createCardinalityType().getClass();
  11773. }
  11774. featureList.push(this.createFeature(false, false, true, 234, "right", clazz));
  11775. featureList.push(this.createFeature(false, false, false, 43, "expression", null));
  11776. if (factory) {
  11777. clazz = factory.createRelationshipLink().getClass();
  11778. }
  11779. featureList.push(this.createFeature(true, false, true, 233, "link", clazz));
  11780. featureList.push(this.createFeature(false, true, false, 235, "joinFilterType", _JoinFilterType2.default));
  11781. featureList.push(this.createFeature(false, false, false, 236, "shortcutTargetRelationshipRef", null));
  11782. Array.prototype.push.apply(featureList, _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'getFeatureList', this).call(this, factory));
  11783. return featureList;
  11784. }
  11785. /**
  11786. * Set the value of a specific feature.
  11787. * @param {BaseMoserObject} value the value to set
  11788. * @param {int} featureID the feature id of the attribute to be set
  11789. */
  11790. }, {
  11791. key: 'set',
  11792. value: function set(featureID, value) {
  11793. switch (featureID) {
  11794. case 36:
  11795. this.setRef(value);
  11796. break;
  11797. case 43:
  11798. this.setExpression(value);
  11799. break;
  11800. case 232:
  11801. this.setLeft(value);
  11802. break;
  11803. case 58:
  11804. this.setInstanceType(value);
  11805. break;
  11806. case 234:
  11807. this.setRight(value);
  11808. break;
  11809. case 235:
  11810. this.setJoinFilterType(value);
  11811. break;
  11812. case 236:
  11813. this.setShortcutTargetRelationshipRef(value);
  11814. break;
  11815. default:
  11816. _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'set', this).call(this, featureID, value);
  11817. }
  11818. }
  11819. /**
  11820. * Set the value of a specific feature.
  11821. * @param {BaseMoserObject} value the value to set the value to set
  11822. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  11823. */
  11824. }, {
  11825. key: '_setList',
  11826. value: function _setList(featureID, value) {
  11827. switch (featureID) {
  11828. case 233:
  11829. this.link = value;
  11830. break;
  11831. default:
  11832. _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), '_setList', this).call(this, featureID, value);
  11833. }
  11834. }
  11835. /**
  11836. * Get the value of a specific feature.
  11837. * @param {int} featureID the feature id of the attribute to get
  11838. */
  11839. }, {
  11840. key: 'get',
  11841. value: function get(featureID) {
  11842. switch (featureID) {
  11843. case 36:
  11844. return this.getRef();
  11845. case 43:
  11846. return this.getExpression();
  11847. case 232:
  11848. return this.getLeft();
  11849. case 58:
  11850. return this.getInstanceType();
  11851. case 233:
  11852. return this.getLink();
  11853. case 234:
  11854. return this.getRight();
  11855. case 235:
  11856. return this.getJoinFilterType();
  11857. case 236:
  11858. return this.getShortcutTargetRelationshipRef();
  11859. default:
  11860. return _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'get', this).call(this, featureID);
  11861. }
  11862. }
  11863. /**
  11864. * Get the value of a specific feature.
  11865. * @param {int} featureID the feature id of the attribute to get
  11866. */
  11867. }, {
  11868. key: 'basicGet',
  11869. value: function basicGet(featureID) {
  11870. switch (featureID) {
  11871. case 36:
  11872. return this.getRef();
  11873. case 43:
  11874. return this.getExpression();
  11875. case 232:
  11876. return this.getLeft();
  11877. case 58:
  11878. return this.getInstanceType();
  11879. case 233:
  11880. return this.basicGetLink();
  11881. case 234:
  11882. return this.getRight();
  11883. case 235:
  11884. return this.getJoinFilterType();
  11885. case 236:
  11886. return this.getShortcutTargetRelationshipRef();
  11887. default:
  11888. return _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'basicGet', this).call(this, featureID);
  11889. }
  11890. }
  11891. /**
  11892. * Add the value of a specific feature at a specific position
  11893. * @param {int} position the array position of the item to be added
  11894. * @param {BaseMoserObject} value the value to add
  11895. * @param {int} featureID the feature id of the attribute to be added
  11896. */
  11897. }, {
  11898. key: 'addAt',
  11899. value: function addAt(featureID, position, value) {
  11900. switch (featureID) {
  11901. case 233:
  11902. this.addLinkAt(position, value);
  11903. break;
  11904. default:
  11905. _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'addAt', this).call(this, featureID, position, value);
  11906. }
  11907. }
  11908. /**
  11909. * Add the value to the end of a specific collection feature
  11910. * @param {BaseMoserObject} value the value to add
  11911. * @param {int} featureID the feature id of the attribute to be added
  11912. */
  11913. }, {
  11914. key: 'add',
  11915. value: function add(featureID, value) {
  11916. switch (featureID) {
  11917. case 233:
  11918. this.addLink(value);
  11919. break;
  11920. default:
  11921. _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'add', this).call(this, featureID, value);
  11922. }
  11923. }
  11924. /**
  11925. * Remove the value of a specific feature by index.
  11926. * @param {int} position the array position of the item to be removed
  11927. * @param {int} featureID the feature id of the attribute to be removed
  11928. */
  11929. }, {
  11930. key: 'removeAt',
  11931. value: function removeAt(featureID, position) {
  11932. switch (featureID) {
  11933. case 233:
  11934. this.removeLinkAt(position);
  11935. break;
  11936. default:
  11937. _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'removeAt', this).call(this, featureID, position);
  11938. }
  11939. }
  11940. /**
  11941. * Remove the value from specific feature.
  11942. * @param {BaseMoserObject} item the item to be removed
  11943. * @param {int} featureID the feature id of the attribute to be removed
  11944. */
  11945. }, {
  11946. key: 'remove',
  11947. value: function remove(featureID, item) {
  11948. switch (featureID) {
  11949. case 233:
  11950. this.removeLink(item);
  11951. break;
  11952. default:
  11953. _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'remove', this).call(this, featureID, item);
  11954. }
  11955. }
  11956. /**
  11957. * Set the resolved object based on reference.
  11958. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  11959. */
  11960. }, {
  11961. key: 'setReferencedObject',
  11962. value: function setReferencedObject(referencedObject) {
  11963. this._referencedObject = referencedObject;
  11964. }
  11965. /**
  11966. * Get the resolved object based on reference.
  11967. * @return {MoserObject} the referenced <code>MoserObject</code>
  11968. */
  11969. }, {
  11970. key: 'getReferencedObject',
  11971. value: function getReferencedObject() {
  11972. return this._referencedObject;
  11973. }
  11974. }, {
  11975. key: 'clone',
  11976. value: function clone() {
  11977. var cloned = _get(Relationship.prototype.__proto__ || Object.getPrototypeOf(Relationship.prototype), 'clone', this).call(this);
  11978. cloned.setReferencedObject(this._referencedObject);
  11979. return cloned;
  11980. }
  11981. }], [{
  11982. key: 'fromJSON',
  11983. value: function fromJSON(json, factory) {
  11984. var result = factory.createRelationship();
  11985. var featureList = result.getFeatureList(factory);
  11986. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  11987. return result;
  11988. }
  11989. }]);
  11990. return Relationship;
  11991. }(_ObjectType3.default);
  11992. /**
  11993. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="leftRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="rightRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="comparisonOperator" type="{}comparisonOperatorType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  11994. */
  11995. exports.default = Relationship;
  11996. Relationship.Link = function (_MoserObject) {
  11997. _inherits(_class2, _MoserObject);
  11998. function _class2() {
  11999. var _ref2;
  12000. var _temp2, _this2, _ret2;
  12001. _classCallCheck(this, _class2);
  12002. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  12003. args[_key2] = arguments[_key2];
  12004. }
  12005. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.leftRef = null, _this2.rightRef = null, _this2.comparisonOperator = null, _this2._referencedObjectLeft = null, _this2._referencedObjectRight = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  12006. }
  12007. _createClass(_class2, [{
  12008. key: 'getLeftRef',
  12009. /**
  12010. * Gets the value of the leftRef property.
  12011. * @return {String} possible object is {@link String}
  12012. */
  12013. value: function getLeftRef() {
  12014. return this.leftRef;
  12015. }
  12016. /**
  12017. * Sets the value of the leftRef property.
  12018. * @param {String} value allowed object is {@link String}
  12019. */
  12020. }, {
  12021. key: 'setLeftRef',
  12022. value: function setLeftRef(value) {
  12023. var oldValue = this.leftRef;
  12024. this.leftRef = value;
  12025. this._setAndNotify(150, oldValue, value, false, false);
  12026. this._referencedObjectLeft = null;
  12027. }
  12028. /**
  12029. * Gets the value of the rightRef property.
  12030. * @return {String} possible object is {@link String}
  12031. */
  12032. }, {
  12033. key: 'getRightRef',
  12034. value: function getRightRef() {
  12035. return this.rightRef;
  12036. }
  12037. /**
  12038. * Sets the value of the rightRef property.
  12039. * @param {String} value allowed object is {@link String}
  12040. */
  12041. }, {
  12042. key: 'setRightRef',
  12043. value: function setRightRef(value) {
  12044. var oldValue = this.rightRef;
  12045. this.rightRef = value;
  12046. this._setAndNotify(151, oldValue, value, false, false);
  12047. this._referencedObjectRight = null;
  12048. }
  12049. /**
  12050. * Gets the value of the comparisonOperator property.
  12051. * @return {ComparisonOperatorType} possible object is {@link ComparisonOperatorType}
  12052. */
  12053. }, {
  12054. key: 'getComparisonOperator',
  12055. value: function getComparisonOperator() {
  12056. return this.comparisonOperator;
  12057. }
  12058. /**
  12059. * Sets the value of the comparisonOperator property.
  12060. * @param {ComparisonOperatorType} value allowed object is {@link ComparisonOperatorType}
  12061. */
  12062. }, {
  12063. key: 'setComparisonOperator',
  12064. value: function setComparisonOperator(value) {
  12065. var oldValue = this.comparisonOperator;
  12066. this.comparisonOperator = value;
  12067. this._setAndNotify(152, oldValue, value, false, false);
  12068. }
  12069. /**
  12070. * Creates a new instance of <code>Link</code> object from JSON data.
  12071. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  12072. * @param {Object} json JSON data to be used to create the <code> Link</code> object from.
  12073. * @return {Link} an object of type <code>Link</code>
  12074. */
  12075. }, {
  12076. key: 'getObjectType',
  12077. /**
  12078. * Retrieves the type of this object
  12079. * @return {String} the object type in a <code>String</code>
  12080. */
  12081. value: function getObjectType() {
  12082. return "Link";
  12083. }
  12084. /**
  12085. * Get a list of FeatureObjects
  12086. * @return {Array} A list of FeatureObjects
  12087. */
  12088. }, {
  12089. key: 'getFeatureList',
  12090. value: function getFeatureList(factory) {
  12091. var featureList = [];
  12092. featureList.push(this.createFeature(false, false, false, 150, "leftRef", null));
  12093. featureList.push(this.createFeature(false, false, false, 151, "rightRef", null));
  12094. featureList.push(this.createFeature(false, true, false, 152, "comparisonOperator", _ComparisonOperatorType2.default));
  12095. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  12096. return featureList;
  12097. }
  12098. /**
  12099. * Set the value of a specific feature.
  12100. * @param {BaseMoserObject} value the value to set
  12101. * @param {int} featureID the feature id of the attribute to be set
  12102. */
  12103. }, {
  12104. key: 'set',
  12105. value: function set(featureID, value) {
  12106. switch (featureID) {
  12107. case 150:
  12108. this.setLeftRef(value);
  12109. break;
  12110. case 151:
  12111. this.setRightRef(value);
  12112. break;
  12113. case 152:
  12114. this.setComparisonOperator(value);
  12115. break;
  12116. default:
  12117. throw new Error("The feature " + featureID + " is not valid.");
  12118. }
  12119. }
  12120. /**
  12121. * Get the value of a specific feature.
  12122. * @param {int} featureID the feature id of the attribute to get
  12123. */
  12124. }, {
  12125. key: 'get',
  12126. value: function get(featureID) {
  12127. switch (featureID) {
  12128. case 150:
  12129. return this.getLeftRef();
  12130. case 151:
  12131. return this.getRightRef();
  12132. case 152:
  12133. return this.getComparisonOperator();
  12134. default:
  12135. throw new Error("The feature " + featureID + " is not valid.");
  12136. }
  12137. }
  12138. /**
  12139. * Get the value of a specific feature.
  12140. * @param {int} featureID the feature id of the attribute to get
  12141. */
  12142. }, {
  12143. key: 'basicGet',
  12144. value: function basicGet(featureID) {
  12145. switch (featureID) {
  12146. case 150:
  12147. return this.getLeftRef();
  12148. case 151:
  12149. return this.getRightRef();
  12150. case 152:
  12151. return this.getComparisonOperator();
  12152. default:
  12153. throw new Error("The feature " + featureID + " is not valid.");
  12154. }
  12155. }
  12156. /**
  12157. * Set the resolved object based on reference.
  12158. * @param {MoserObject} referencedObjectLeft the referenced <code>MoserObject</code> from 'leftRef
  12159. */
  12160. }, {
  12161. key: 'setReferencedObjectLeft',
  12162. value: function setReferencedObjectLeft(referencedObjectLeft) {
  12163. this._referencedObjectLeft = referencedObjectLeft;
  12164. }
  12165. /**
  12166. * Get the resolved object based on reference.
  12167. * @return {MoserObject} the referenced <code>MoserObject</code> from 'leftRef
  12168. */
  12169. }, {
  12170. key: 'getReferencedObjectLeft',
  12171. value: function getReferencedObjectLeft() {
  12172. if (!this._referencedObjectLeft) {
  12173. _ReferenceResolver2.default.resolveRelationshipLink(this.getParent());
  12174. }
  12175. return this._referencedObjectLeft;
  12176. }
  12177. /**
  12178. * Set the resolved object based on reference.
  12179. * @param {MoserObject} referencedObjectRight the referenced <code>MoserObject</code> from 'rightRef
  12180. */
  12181. }, {
  12182. key: 'setReferencedObjectRight',
  12183. value: function setReferencedObjectRight(referencedObjectRight) {
  12184. this._referencedObjectRight = referencedObjectRight;
  12185. }
  12186. /**
  12187. * Get the resolved object based on reference.
  12188. * @return {MoserObject} the referenced <code>MoserObject</code> from 'rightRef
  12189. */
  12190. }, {
  12191. key: 'getReferencedObjectRight',
  12192. value: function getReferencedObjectRight() {
  12193. if (!this._referencedObjectRight) {
  12194. _ReferenceResolver2.default.resolveRelationshipLink(this.getParent());
  12195. }
  12196. return this._referencedObjectRight;
  12197. }
  12198. }], [{
  12199. key: 'fromJSON',
  12200. value: function fromJSON(json, factory) {
  12201. var result = factory.createRelationshipLink();
  12202. var featureList = result.getFeatureList(factory);
  12203. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  12204. return result;
  12205. }
  12206. }]);
  12207. return _class2;
  12208. }(_MoserObject3.default);
  12209. /***/ },
  12210. /* 38 */
  12211. /***/ function(module, exports, __webpack_require__) {
  12212. "use strict";
  12213. Object.defineProperty(exports, "__esModule", {
  12214. value: true
  12215. });
  12216. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  12217. var _Enum2 = __webpack_require__(12);
  12218. var _Enum3 = _interopRequireDefault(_Enum2);
  12219. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12220. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  12221. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  12222. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  12223. ** IBM Confidential
  12224. **
  12225. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  12226. **
  12227. ** (C) Copyright IBM Corp. 2020
  12228. **
  12229. ** The source code for this program is not published or otherwise divested of its trade secrets,
  12230. ** irrespective of what has been deposited with the U.S. Copyright Office.
  12231. ************************************************************************/
  12232. // GENERATED
  12233. //@import Enum (loadtime) // superclass
  12234. /**
  12235. * <p>Java class for joinFilterType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="joinFilterType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="none"/&gt; &lt;enumeration value="in"/&gt; &lt;enumeration value="between"/&gt; &lt;enumeration value="table"/&gt; &lt;enumeration value="flexible"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  12236. */
  12237. var JoinFilterType = function (_Enum) {
  12238. _inherits(JoinFilterType, _Enum);
  12239. /**
  12240. * Generates a table row constructor form of the IN predicate.
  12241. */
  12242. /**
  12243. * Generates an IN predicate of constant values.
  12244. */
  12245. function JoinFilterType(v) {
  12246. _classCallCheck(this, JoinFilterType);
  12247. var _this = _possibleConstructorReturn(this, (JoinFilterType.__proto__ || Object.getPrototypeOf(JoinFilterType)).call(this, v));
  12248. _this.enumValue = null;
  12249. _this.enumValue = v;
  12250. return _this;
  12251. }
  12252. /**
  12253. * Use values from the left table to filter the table on the right. This uses either IN predicates or BETWEEN predicates. An error is thrown if the optimization can not be applied.
  12254. */
  12255. /**
  12256. * Generates a BETWEEN predicate comprised of MIN and MAX values of the join keys.
  12257. */
  12258. /**
  12259. * No predicate is generated.
  12260. */
  12261. _createClass(JoinFilterType, [{
  12262. key: "value",
  12263. value: function value() {
  12264. return this.enumValue;
  12265. }
  12266. }, {
  12267. key: "getResourceId",
  12268. value: function getResourceId() {
  12269. return "JoinFilterType" + "_" + this.value();
  12270. }
  12271. }], [{
  12272. key: "fromValue",
  12273. value: function fromValue(v) {
  12274. for (var i = 0; i < JoinFilterType.values().length; ++i) {
  12275. if (JoinFilterType.values()[i].enumValue == v) {
  12276. return JoinFilterType.values()[i];
  12277. }
  12278. }
  12279. throw new Error(v);
  12280. }
  12281. }]);
  12282. return JoinFilterType;
  12283. }(_Enum3.default);
  12284. JoinFilterType.NONE = JoinFilterType.newLiteral("none");
  12285. JoinFilterType.IN = JoinFilterType.newLiteral("in");
  12286. JoinFilterType.BETWEEN = JoinFilterType.newLiteral("between");
  12287. JoinFilterType.TABLE = JoinFilterType.newLiteral("table");
  12288. JoinFilterType.FLEXIBLE = JoinFilterType.newLiteral("flexible");
  12289. exports.default = JoinFilterType;
  12290. /***/ },
  12291. /* 39 */
  12292. /***/ function(module, exports, __webpack_require__) {
  12293. "use strict";
  12294. Object.defineProperty(exports, "__esModule", {
  12295. value: true
  12296. });
  12297. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  12298. var _Enum2 = __webpack_require__(12);
  12299. var _Enum3 = _interopRequireDefault(_Enum2);
  12300. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12301. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  12302. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  12303. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  12304. ** IBM Confidential
  12305. **
  12306. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  12307. **
  12308. ** (C) Copyright IBM Corp. 2020
  12309. **
  12310. ** The source code for this program is not published or otherwise divested of its trade secrets,
  12311. ** irrespective of what has been deposited with the U.S. Copyright Office.
  12312. ************************************************************************/
  12313. // GENERATED
  12314. //@import Enum (loadtime) // superclass
  12315. /**
  12316. * <p>Java class for comparisonOperatorType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="comparisonOperatorType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="equalTo"/&gt; &lt;enumeration value="greaterThan"/&gt; &lt;enumeration value="lessThan"/&gt; &lt;enumeration value="greaterThanOrEqualTo"/&gt; &lt;enumeration value="lessThanOrEqualTo"/&gt; &lt;enumeration value="notEqualTo"/&gt; &lt;enumeration value="equalToOrBothNull"/&gt; &lt;enumeration value="notEqualToOrOneNull"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  12317. */
  12318. var ComparisonOperatorType = function (_Enum) {
  12319. _inherits(ComparisonOperatorType, _Enum);
  12320. /**
  12321. * Equal to or both are null values. equivalent to IS NOT DISTINCT FROM in SQL standard.
  12322. */
  12323. /**
  12324. * Less than or equal to.
  12325. */
  12326. /**
  12327. * Less than.
  12328. */
  12329. /**
  12330. * Equal to.
  12331. */
  12332. function ComparisonOperatorType(v) {
  12333. _classCallCheck(this, ComparisonOperatorType);
  12334. var _this = _possibleConstructorReturn(this, (ComparisonOperatorType.__proto__ || Object.getPrototypeOf(ComparisonOperatorType)).call(this, v));
  12335. _this.enumValue = null;
  12336. _this.enumValue = v;
  12337. return _this;
  12338. }
  12339. /**
  12340. * Not equal to or only one null of the two values. equivalent to IS DISTINCT FROM in SQL standard.
  12341. */
  12342. /**
  12343. * Not equal to.
  12344. */
  12345. /**
  12346. * Greater than or equal to.
  12347. */
  12348. /**
  12349. * Greater than.
  12350. */
  12351. _createClass(ComparisonOperatorType, [{
  12352. key: "value",
  12353. value: function value() {
  12354. return this.enumValue;
  12355. }
  12356. }, {
  12357. key: "getResourceId",
  12358. value: function getResourceId() {
  12359. return "ComparisonOperatorType" + "_" + this.value();
  12360. }
  12361. }], [{
  12362. key: "fromValue",
  12363. value: function fromValue(v) {
  12364. for (var i = 0; i < ComparisonOperatorType.values().length; ++i) {
  12365. if (ComparisonOperatorType.values()[i].enumValue == v) {
  12366. return ComparisonOperatorType.values()[i];
  12367. }
  12368. }
  12369. throw new Error(v);
  12370. }
  12371. }]);
  12372. return ComparisonOperatorType;
  12373. }(_Enum3.default);
  12374. ComparisonOperatorType.EQUAL_TO = ComparisonOperatorType.newLiteral("equalTo");
  12375. ComparisonOperatorType.GREATER_THAN = ComparisonOperatorType.newLiteral("greaterThan");
  12376. ComparisonOperatorType.LESS_THAN = ComparisonOperatorType.newLiteral("lessThan");
  12377. ComparisonOperatorType.GREATER_THAN_OR_EQUAL_TO = ComparisonOperatorType.newLiteral("greaterThanOrEqualTo");
  12378. ComparisonOperatorType.LESS_THAN_OR_EQUAL_TO = ComparisonOperatorType.newLiteral("lessThanOrEqualTo");
  12379. ComparisonOperatorType.NOT_EQUAL_TO = ComparisonOperatorType.newLiteral("notEqualTo");
  12380. ComparisonOperatorType.EQUAL_TO_OR_BOTH_NULL = ComparisonOperatorType.newLiteral("equalToOrBothNull");
  12381. ComparisonOperatorType.NOT_EQUAL_TO_OR_ONE_NULL = ComparisonOperatorType.newLiteral("notEqualToOrOneNull");
  12382. exports.default = ComparisonOperatorType;
  12383. /***/ },
  12384. /* 40 */
  12385. /***/ function(module, exports, __webpack_require__) {
  12386. 'use strict';
  12387. Object.defineProperty(exports, "__esModule", {
  12388. value: true
  12389. });
  12390. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  12391. var _BaseMoserObject2 = __webpack_require__(2);
  12392. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  12393. var _QuerySubject = __webpack_require__(25);
  12394. var _QuerySubject2 = _interopRequireDefault(_QuerySubject);
  12395. var _Filter = __webpack_require__(41);
  12396. var _Filter2 = _interopRequireDefault(_Filter);
  12397. var _Calculation = __webpack_require__(42);
  12398. var _Calculation2 = _interopRequireDefault(_Calculation);
  12399. var _FolderItemType = __webpack_require__(47);
  12400. var _FolderItemType2 = _interopRequireDefault(_FolderItemType);
  12401. var _DefLinkType = __webpack_require__(48);
  12402. var _DefLinkType2 = _interopRequireDefault(_DefLinkType);
  12403. var _InstanceType = __webpack_require__(11);
  12404. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  12405. var _BaseObjectType = __webpack_require__(5);
  12406. var _BaseObjectType2 = _interopRequireDefault(_BaseObjectType);
  12407. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12408. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  12409. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  12410. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  12411. ** IBM Confidential
  12412. **
  12413. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  12414. **
  12415. ** (C) Copyright IBM Corp. 2020
  12416. **
  12417. ** The source code for this program is not published or otherwise divested of its trade secrets,
  12418. ** irrespective of what has been deposited with the U.S. Copyright Office.
  12419. ************************************************************************/
  12420. // GENERATED
  12421. //@import BaseMoserObject (loadtime) // superclass
  12422. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubject (static) // new
  12423. //@import com/ibm/bi/platform/moser/common/generated/metadata/Filter (static) // new
  12424. //@import com/ibm/bi/platform/moser/common/generated/metadata/Calculation (static) // new
  12425. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderItemType (static) // new
  12426. //@import com/ibm/bi/platform/moser/common/generated/metadata/DefLinkType (static) // new
  12427. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (static) // InstanceType
  12428. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseObjectType (static) // new
  12429. /**
  12430. * A helper class to resolve references in a module. Currently, it resolves the references in those areas: 1. MDTV: the MDTV is fully populated with its referenced objects for both datamodules and FM packages 2. Relationships: resolves the left, right, and link references created from both datamodule and FM packages. 3. Segment: resolves the referenced QueryItem 3. FacetDefinition: resolves the references for Context and SortItem
  12431. */
  12432. var ReferenceResolver = function (_BaseMoserObject) {
  12433. _inherits(ReferenceResolver, _BaseMoserObject);
  12434. function ReferenceResolver() {
  12435. _classCallCheck(this, ReferenceResolver);
  12436. return _possibleConstructorReturn(this, (ReferenceResolver.__proto__ || Object.getPrototypeOf(ReferenceResolver)).apply(this, arguments));
  12437. }
  12438. _createClass(ReferenceResolver, null, [{
  12439. key: 'resolve',
  12440. value: function resolve(module) {
  12441. if (!module) {
  12442. return;
  12443. }
  12444. var overrideMode = module.isOverrideMode();
  12445. module.setOverrideMode(false);
  12446. ReferenceResolver._resolveItemHierarchyLocalRef(module);
  12447. ReferenceResolver.resolveMDTVReferences(module);
  12448. ReferenceResolver._resolveSegmentReferences(module);
  12449. ReferenceResolver._resolveRelationships(module);
  12450. ReferenceResolver._resolveFacetDef(module);
  12451. module.setOverrideMode(overrideMode);
  12452. }
  12453. /**
  12454. */
  12455. }, {
  12456. key: '_resolveFacetDef',
  12457. value: function _resolveFacetDef(module) {
  12458. if (!module) {
  12459. return;
  12460. }
  12461. var querySubjects = module.basicGetQuerySubject();
  12462. if (querySubjects) {
  12463. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12464. var querySubject = __exp_enFor0[__i_enFor0];
  12465. ReferenceResolver._resolveFacetDefFromQuerySubject(querySubject);
  12466. }
  12467. }
  12468. }
  12469. }, {
  12470. key: '_resolveFacetDefFromQuerySubject',
  12471. value: function _resolveFacetDefFromQuerySubject(qs) {
  12472. if (!qs) {
  12473. return;
  12474. }
  12475. var queryItemTypeList = qs.basicGetItem();
  12476. if (queryItemTypeList) {
  12477. for (var __i_enFor0 = 0, __exp_enFor0 = queryItemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12478. var queryItemType = __exp_enFor0[__i_enFor0];
  12479. ReferenceResolver._resolveFacetDefFromItemType(queryItemType, qs);
  12480. }
  12481. }
  12482. }
  12483. }, {
  12484. key: '_resolveFacetDefFromQueryItemDirect',
  12485. value: function _resolveFacetDefFromQueryItemDirect(item, qs) {
  12486. if (!item) {
  12487. return;
  12488. }
  12489. var ft = item.getFacetDefinition();
  12490. if (!ft) {
  12491. return;
  12492. }
  12493. var sl = ft.getSortList();
  12494. if (sl) {
  12495. var sortItems = sl.basicGetSortItem();
  12496. if (sortItems) {
  12497. for (var __i_enFor0 = 0, __exp_enFor0 = sortItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12498. var sortItem = __exp_enFor0[__i_enFor0];
  12499. if (!sortItem.getReferencedObject()) {
  12500. var ref = sortItem.getRef();
  12501. var qi = ReferenceResolver.getQueryItemByIdAndQuerySubject(ref, qs, false);
  12502. if (qi) {
  12503. sortItem.setReferencedObject(qi);
  12504. }
  12505. }
  12506. }
  12507. }
  12508. }
  12509. var context = ft.getContext();
  12510. if (context) {
  12511. if (!context.getReferencedObject()) {
  12512. var ref = context.getRef();
  12513. var qi = ReferenceResolver.getQueryItemByIdAndQuerySubject(ref, qs, false);
  12514. context.setReferencedObject(qi);
  12515. }
  12516. }
  12517. }
  12518. }, {
  12519. key: '_resolveFacetDefFromItemType',
  12520. value: function _resolveFacetDefFromItemType(queryItemType, qs) {
  12521. var queryItem = queryItemType.getQueryItem();
  12522. if (queryItem) {
  12523. ReferenceResolver._resolveFacetDefFromItem(queryItem, qs);
  12524. }
  12525. var nestedFolder = queryItemType.getFolder();
  12526. if (nestedFolder) {
  12527. ReferenceResolver._resolveFacetDefFromFolder(nestedFolder, qs);
  12528. }
  12529. }
  12530. }, {
  12531. key: '_resolveFacetDefFromItem',
  12532. value: function _resolveFacetDefFromItem(item, qs) {
  12533. ReferenceResolver._resolveFacetDefFromQueryItemDirect(item, qs);
  12534. var queryItems = item.basicGetItem();
  12535. if (queryItems) {
  12536. for (var __i_enFor0 = 0, __exp_enFor0 = queryItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12537. var queryItemType = __exp_enFor0[__i_enFor0];
  12538. ReferenceResolver._resolveFacetDefFromItemType(queryItemType, qs);
  12539. }
  12540. }
  12541. }
  12542. }, {
  12543. key: '_resolveFacetDefFromFolder',
  12544. value: function _resolveFacetDefFromFolder(folder, qs) {
  12545. var queryItemTypeList = folder.basicGetItem();
  12546. if (queryItemTypeList) {
  12547. for (var __i_enFor0 = 0, __exp_enFor0 = queryItemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12548. var queryItemType = __exp_enFor0[__i_enFor0];
  12549. ReferenceResolver._resolveFacetDefFromItemType(queryItemType, qs);
  12550. }
  12551. }
  12552. }
  12553. /**
  12554. */
  12555. }, {
  12556. key: '_resolveRelationships',
  12557. value: function _resolveRelationships(module) {
  12558. if (!module) {
  12559. return;
  12560. }
  12561. var relationships = module.basicGetRelationship();
  12562. if (relationships) {
  12563. for (var __i_enFor0 = 0, __exp_enFor0 = relationships, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12564. var relationship = __exp_enFor0[__i_enFor0];
  12565. ReferenceResolver.resolveRelationship(relationship, module);
  12566. }
  12567. }
  12568. }
  12569. }, {
  12570. key: 'resolveRelationship',
  12571. value: function resolveRelationship(relationship, module) {
  12572. ReferenceResolver.resolveCardinalityType(relationship.getLeft(), module);
  12573. ReferenceResolver.resolveCardinalityType(relationship.getRight(), module);
  12574. ReferenceResolver.resolveRelationshipLink(relationship);
  12575. }
  12576. }, {
  12577. key: 'resolveRelationshipLink',
  12578. value: function resolveRelationshipLink(relationship) {
  12579. if (!relationship) {
  12580. return;
  12581. }
  12582. if (relationship.getLeft() && relationship.getRight()) {
  12583. ReferenceResolver._resolveRelationshipLinkByQuerySubjects(relationship.getLeft().getReferencedObject(), relationship.getRight().getReferencedObject(), relationship);
  12584. }
  12585. }
  12586. }, {
  12587. key: '_resolveRelationshipLinkByQuerySubjects',
  12588. value: function _resolveRelationshipLinkByQuerySubjects(resolvedObjLeft, resolvedObjRight, relationship) {
  12589. var links = relationship.basicGetLink();
  12590. if (links) {
  12591. for (var __i_enFor0 = 0, __exp_enFor0 = links, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12592. var link = __exp_enFor0[__i_enFor0];
  12593. link.setReferencedObjectLeft(ReferenceResolver.getQueryItemByIdAndQuerySubject(link.getLeftRef(), resolvedObjLeft, false));
  12594. link.setReferencedObjectRight(ReferenceResolver.getQueryItemByIdAndQuerySubject(link.getRightRef(), resolvedObjRight, false));
  12595. }
  12596. }
  12597. }
  12598. }, {
  12599. key: 'resolveCardinalityType',
  12600. value: function resolveCardinalityType(cardinality, module) {
  12601. if (!cardinality || !module) {
  12602. return;
  12603. }
  12604. var ref = cardinality.getRef();
  12605. var resolveObj = ReferenceResolver._getQuerySubjectById(ref, module);
  12606. if (!resolveObj) {
  12607. var defLinkType = ReferenceResolver._getDefLinkByIdForExpression(ref, module, false);
  12608. if (defLinkType) {
  12609. resolveObj = defLinkType.getReferencedObject();
  12610. }
  12611. }
  12612. cardinality.setReferencedObject(resolveObj);
  12613. }
  12614. }, {
  12615. key: '_getDefLinkByIdForExpression',
  12616. value: function _getDefLinkByIdForExpression(id, module, isIdForQueryItem) {
  12617. if (!module) {
  12618. return null;
  12619. }
  12620. var result;
  12621. var mdtv = module.basicGetMetadataTreeView();
  12622. if (mdtv) {
  12623. for (var __i_enFor0 = 0, __exp_enFor0 = mdtv, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12624. var folderType = __exp_enFor0[__i_enFor0];
  12625. result = ReferenceResolver._getFolderTypeReferences(id, folderType, module, isIdForQueryItem);
  12626. }
  12627. }
  12628. return result;
  12629. }
  12630. }, {
  12631. key: '_getFolderTypeReferences',
  12632. value: function _getFolderTypeReferences(id, folderType, module, isIdForQueryItem) {
  12633. if (!module) {
  12634. return null;
  12635. }
  12636. var result;
  12637. var folderItemTypes = folderType.basicGetFolderItem();
  12638. if (folderItemTypes) {
  12639. for (var __i_enFor0 = 0, __exp_enFor0 = folderItemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12640. var folderItemType = __exp_enFor0[__i_enFor0];
  12641. var nestedFolder = folderItemType.getFolder();
  12642. if (nestedFolder) {
  12643. result = ReferenceResolver._getFolderTypeReferences(id, nestedFolder, module, isIdForQueryItem);
  12644. if (result) {
  12645. break;
  12646. }
  12647. }
  12648. var defLinkType = folderItemType.getDefLink();
  12649. if (defLinkType) {
  12650. var defLinkId = defLinkType.basicGetIdForExpression();
  12651. if (defLinkId != null) {
  12652. if (defLinkId == id || isIdForQueryItem && id.indexOf(defLinkId) == 0) {
  12653. result = defLinkType;
  12654. break;
  12655. }
  12656. }
  12657. }
  12658. }
  12659. }
  12660. return result;
  12661. }
  12662. /**
  12663. */
  12664. }, {
  12665. key: '_resolveSegmentReferences',
  12666. value: function _resolveSegmentReferences(module) {
  12667. if (!module) {
  12668. return;
  12669. }
  12670. var drillGroups = module.basicGetDrillGroup();
  12671. if (drillGroups) {
  12672. for (var __i_enFor0 = 0, __exp_enFor0 = drillGroups, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12673. var drillGroup = __exp_enFor0[__i_enFor0];
  12674. var segments = drillGroup.basicGetSegment();
  12675. if (segments) {
  12676. for (var __i_enFor1 = 0, __exp_enFor1 = segments, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  12677. var segment = __exp_enFor1[__i_enFor1];
  12678. ReferenceResolver.resolveSegment(segment, module);
  12679. }
  12680. }
  12681. }
  12682. }
  12683. }
  12684. }, {
  12685. key: 'resolveSegment',
  12686. value: function resolveSegment(segment, module) {
  12687. if (segment && module) {
  12688. var ref = segment.getRef();
  12689. var id = segment.getIdentifier();
  12690. if (id.indexOf("[") == 0 && id.indexOf("]") == id.length - 1 && ref.indexOf("ES") == 0) {
  12691. var idx = ref.indexOf(".");
  12692. if (idx > -1) {
  12693. ref = ref.substring(idx + 1);
  12694. segment.setRef(ref);
  12695. }
  12696. }
  12697. var queryItem = ReferenceResolver._getQueryItemById(ref, module);
  12698. if (!queryItem) {
  12699. var defLinkType = ReferenceResolver._getDefLinkByIdForExpression(ref, module, true);
  12700. if (defLinkType) {
  12701. var obj = defLinkType.getReferencedObject();
  12702. if (obj instanceof _QuerySubject2.default) {
  12703. queryItem = ReferenceResolver.getQueryItemByIdAndQuerySubject(ref, obj, true);
  12704. }
  12705. }
  12706. }
  12707. segment.setReferencedObject(queryItem);
  12708. }
  12709. }
  12710. /**
  12711. * Flattened QuerySubject List by MDTV reference resolving This API is requested by Smart module to be able to get the IdForExpression for querysubjects for data modules and FM packages.
  12712. * @param {Module} module
  12713. * @return {Array} A list of querysubjects containing the duplicates if it is FM package
  12714. */
  12715. }, {
  12716. key: 'getFlattenedQuerySubjectList',
  12717. value: function getFlattenedQuerySubjectList(module) {
  12718. var qsFlatList = [];
  12719. if (!module) {
  12720. return qsFlatList;
  12721. }
  12722. var otFlatList = ReferenceResolver._getFlattenedBaseObjectTypeList(module);
  12723. if (otFlatList) {
  12724. for (var __i_enFor0 = 0, __exp_enFor0 = otFlatList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12725. var obj = __exp_enFor0[__i_enFor0];
  12726. if (obj instanceof _QuerySubject2.default) {
  12727. qsFlatList.push(obj);
  12728. }
  12729. }
  12730. }
  12731. return qsFlatList;
  12732. }
  12733. /**
  12734. * Flattened Filter List by MDTV reference resolving This API is requested by Smart module to be able to get the IdForExpression for filters for data modules and FM packages.
  12735. * @param {Module} module
  12736. * @return {Array} A list of Filters
  12737. */
  12738. }, {
  12739. key: 'getFlattenedFilterList',
  12740. value: function getFlattenedFilterList(module) {
  12741. var filterFlatList = [];
  12742. if (!module) {
  12743. return filterFlatList;
  12744. }
  12745. var otFlatList = ReferenceResolver._getFlattenedBaseObjectTypeList(module);
  12746. if (otFlatList) {
  12747. for (var __i_enFor0 = 0, __exp_enFor0 = otFlatList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12748. var obj = __exp_enFor0[__i_enFor0];
  12749. if (obj instanceof _Filter2.default) {
  12750. filterFlatList.push(obj);
  12751. }
  12752. }
  12753. }
  12754. return filterFlatList;
  12755. }
  12756. /**
  12757. * Flattened Calculation List by MDTV reference resolving This API is requested by Smart module to be able to get the IdForExpression for Calculation for data modules and FM packages.
  12758. * @param {Module} module
  12759. * @return {Array} A list of Calculation
  12760. */
  12761. }, {
  12762. key: 'getFlattenedCalculationList',
  12763. value: function getFlattenedCalculationList(module) {
  12764. var calcFlatList = [];
  12765. if (!module) {
  12766. return calcFlatList;
  12767. }
  12768. var otFlatList = ReferenceResolver._getFlattenedBaseObjectTypeList(module);
  12769. if (otFlatList) {
  12770. for (var __i_enFor0 = 0, __exp_enFor0 = otFlatList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12771. var obj = __exp_enFor0[__i_enFor0];
  12772. if (obj instanceof _Calculation2.default) {
  12773. calcFlatList.push(obj);
  12774. }
  12775. }
  12776. }
  12777. return calcFlatList;
  12778. }
  12779. }, {
  12780. key: '_getFlattenedBaseObjectTypeList',
  12781. value: function _getFlattenedBaseObjectTypeList(module) {
  12782. if (!module) {
  12783. return null;
  12784. }
  12785. var otFlatList = module.getFlattenedBaseObjectTypeList();
  12786. if (!otFlatList) {
  12787. otFlatList = [];
  12788. ReferenceResolver.resolveMDTVReferences(module, otFlatList);
  12789. }
  12790. return otFlatList;
  12791. }
  12792. /**
  12793. */
  12794. }, {
  12795. key: 'resolveMDTVReferences$0',
  12796. value: function resolveMDTVReferences$0(module) {
  12797. if (!module) {
  12798. return;
  12799. }
  12800. var otFlatList = [];
  12801. ReferenceResolver.resolveMDTVReferences$1(module, otFlatList);
  12802. }
  12803. }, {
  12804. key: 'resolveMDTVReferences$1',
  12805. value: function resolveMDTVReferences$1(module, otFlatList) {
  12806. if (!module) {
  12807. return;
  12808. }
  12809. var mdtv = module.basicGetMetadataTreeView();
  12810. if (mdtv) {
  12811. for (var __i_enFor0 = 0, __exp_enFor0 = mdtv, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12812. var folderType = __exp_enFor0[__i_enFor0];
  12813. ReferenceResolver._resolveFolderTypeReferences(null, folderType, module, otFlatList);
  12814. }
  12815. }
  12816. if (otFlatList && !(otFlatList.length == 0)) {
  12817. module.setFlattenedBaseObjectTypeList(otFlatList);
  12818. }
  12819. }
  12820. }, {
  12821. key: '_resolveFolderTypeReferences',
  12822. value: function _resolveFolderTypeReferences(ancestorFolderTypeId, folderType, module, otFlatList) {
  12823. if (!module) {
  12824. return;
  12825. }
  12826. var folderTypeId = folderType.getIdentifier();
  12827. if (folderTypeId == null) {
  12828. folderTypeId = ancestorFolderTypeId;
  12829. }
  12830. var folderItemTypes = folderType.basicGetFolderItem();
  12831. if (folderItemTypes) {
  12832. for (var __i_enFor0 = 0, __exp_enFor0 = folderItemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12833. var folderItemType = __exp_enFor0[__i_enFor0];
  12834. var ref = folderItemType.getRef();
  12835. if (ref != null && !folderItemType.getReferencedObject()) {
  12836. ReferenceResolver._resolveByRef(null, ref, folderItemType, module, otFlatList);
  12837. }
  12838. var nestedFolder = folderItemType.getFolder();
  12839. if (nestedFolder) {
  12840. ReferenceResolver._resolveFolderTypeReferences(folderTypeId, nestedFolder, module, otFlatList);
  12841. }
  12842. var defLinkType = folderItemType.getDefLink();
  12843. if (defLinkType) {
  12844. var idToPrepend = null;
  12845. if (defLinkType.getIdentifier() != null) {
  12846. idToPrepend = defLinkType.getIdentifier();
  12847. if (folderTypeId != null) {
  12848. idToPrepend = folderTypeId + "." + idToPrepend;
  12849. }
  12850. }
  12851. ReferenceResolver._resolveByRef(idToPrepend, defLinkType.getRef(), defLinkType, module, otFlatList);
  12852. }
  12853. }
  12854. }
  12855. }
  12856. }, {
  12857. key: '_resolveByRef',
  12858. value: function _resolveByRef(idToPrepend, ref, scope, module, otFlatList) {
  12859. if (!module) {
  12860. return;
  12861. }
  12862. var qs = ReferenceResolver._getQuerySubjectById(ref, module);
  12863. if (qs) {
  12864. ReferenceResolver._setResolvedObject(idToPrepend, scope, qs, otFlatList);
  12865. return;
  12866. }
  12867. var calc = ReferenceResolver._getCalculationById(ref, module);
  12868. if (calc) {
  12869. ReferenceResolver._setResolvedObject(idToPrepend, scope, calc, otFlatList);
  12870. return;
  12871. }
  12872. var filter = ReferenceResolver._getFilterById(ref, module);
  12873. if (filter) {
  12874. ReferenceResolver._setResolvedObject(idToPrepend, scope, filter, otFlatList);
  12875. return;
  12876. }
  12877. var namedSet = ReferenceResolver._getNamedSetById(ref, module);
  12878. if (namedSet) {
  12879. ReferenceResolver._setResolvedObject(idToPrepend, scope, namedSet, otFlatList);
  12880. return;
  12881. }
  12882. }
  12883. /**
  12884. * update query subject label.
  12885. * @param {QuerySubject} qs query subject.
  12886. * @param {String} label new label.
  12887. */
  12888. }, {
  12889. key: '_updateQSLabel',
  12890. value: function _updateQSLabel(qs, label) {
  12891. if (label != null && !(label.length === 0) && !(label == qs.getLabel())) {
  12892. qs.setLabel(label);
  12893. }
  12894. }
  12895. }, {
  12896. key: '_setResolvedObject',
  12897. value: function _setResolvedObject(composedIdForExprn, scope, resolvedObj, otFlatList) {
  12898. var isPackage = false;
  12899. if (scope instanceof _FolderItemType2.default) {
  12900. scope.setReferencedObject(resolvedObj);
  12901. } else if (scope instanceof _DefLinkType2.default) {
  12902. isPackage = true;
  12903. var defLink = scope;
  12904. resolvedObj.setIdForExpression(composedIdForExprn);
  12905. defLink.setReferencedObject(resolvedObj);
  12906. defLink.setIdForExpression(composedIdForExprn);
  12907. if (otFlatList) {
  12908. otFlatList.push(resolvedObj);
  12909. }
  12910. if (resolvedObj instanceof _QuerySubject2.default) {
  12911. var qs = resolvedObj;
  12912. ReferenceResolver._resolveShortenedRootMember(qs, defLink.getIdForExpression());
  12913. ReferenceResolver._updateQSLabel(qs, defLink.getLabel());
  12914. }
  12915. }
  12916. if (resolvedObj instanceof _QuerySubject2.default) {
  12917. if (resolvedObj.getInstanceType() != _InstanceType2.default.MISSING) {
  12918. var idForExprn = composedIdForExprn;
  12919. if (idForExprn == null || idForExprn.length == 0) {
  12920. idForExprn = resolvedObj.getIdentifier();
  12921. }
  12922. ReferenceResolver._setQuerySubjectIdForExprn(idForExprn, resolvedObj, isPackage);
  12923. }
  12924. }
  12925. }
  12926. }, {
  12927. key: '_setQuerySubjectIdForExprn',
  12928. value: function _setQuerySubjectIdForExprn(idToPrepend, querySubject, isPackage) {
  12929. var itemTypeList = querySubject.basicGetItem();
  12930. if (itemTypeList) {
  12931. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12932. var itemType = __exp_enFor0[__i_enFor0];
  12933. var queryItem = itemType.getQueryItem();
  12934. if (queryItem && queryItem.basicGetIdForExpression() == null) {
  12935. ReferenceResolver._setQueryItemIdForExprn(queryItem, idToPrepend);
  12936. }
  12937. var itemHierarchy = itemType.getItemHierarchy();
  12938. if (itemHierarchy && itemHierarchy.basicGetIdForExpression() == null) {
  12939. itemHierarchy.setIdForExpression(idToPrepend + "." + itemHierarchy.getIdentifier());
  12940. }
  12941. var folder = itemType.getFolder();
  12942. if (folder) {
  12943. ReferenceResolver._setFolderIdForExprn(folder, idToPrepend);
  12944. }
  12945. }
  12946. }
  12947. }
  12948. }, {
  12949. key: '_resolveItemHierarchyLocalRef',
  12950. value: function _resolveItemHierarchyLocalRef(module) {
  12951. if (!module) {
  12952. return;
  12953. }
  12954. var querySubjectList = module.basicGetQuerySubject();
  12955. if (querySubjectList) {
  12956. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjectList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12957. var querySubject = __exp_enFor0[__i_enFor0];
  12958. var queryItemTypeList = querySubject.basicGetItem();
  12959. if (queryItemTypeList) {
  12960. for (var __i_enFor1 = 0, __exp_enFor1 = queryItemTypeList, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  12961. var queryItemType = __exp_enFor1[__i_enFor1];
  12962. var hierarchy = queryItemType.getItemHierarchy();
  12963. if (hierarchy) {
  12964. ReferenceResolver._resolveLocalRef(hierarchy, querySubject);
  12965. }
  12966. }
  12967. }
  12968. }
  12969. }
  12970. }
  12971. }, {
  12972. key: '_resolveLocalRef',
  12973. value: function _resolveLocalRef(hierarchy, querySubject) {
  12974. if (hierarchy && querySubject) {
  12975. var localRefList = hierarchy.basicGetLocalRef();
  12976. if (localRefList) {
  12977. for (var __i_enFor0 = 0, __exp_enFor0 = localRefList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12978. var localRef = __exp_enFor0[__i_enFor0];
  12979. var ref = localRef.getRef();
  12980. if (ref != null) {
  12981. var qi = ReferenceResolver.getQueryItemByIdAndQuerySubject(ref, querySubject, false);
  12982. localRef.setReferencedObject(qi);
  12983. }
  12984. }
  12985. }
  12986. }
  12987. }
  12988. }, {
  12989. key: '_setFolderIdForExprn',
  12990. value: function _setFolderIdForExprn(folder, idToPrepend) {
  12991. var queryItemTypeList = folder.basicGetItem();
  12992. if (queryItemTypeList) {
  12993. for (var __i_enFor0 = 0, __exp_enFor0 = queryItemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  12994. var queryItemType = __exp_enFor0[__i_enFor0];
  12995. var queryItem = queryItemType.getQueryItem();
  12996. if (queryItem) {
  12997. ReferenceResolver._setQueryItemIdForExprn(queryItem, idToPrepend);
  12998. }
  12999. var nestedFolder = queryItemType.getFolder();
  13000. if (nestedFolder) {
  13001. ReferenceResolver._setFolderIdForExprn(nestedFolder, idToPrepend);
  13002. }
  13003. }
  13004. }
  13005. }
  13006. }, {
  13007. key: '_setQueryItemIdForExprn',
  13008. value: function _setQueryItemIdForExprn(item, idToPrepend) {
  13009. var queryItems = item.basicGetItem();
  13010. var newIdToPrepend = idToPrepend;
  13011. if (newIdToPrepend != null) {
  13012. newIdToPrepend = newIdToPrepend + "." + item.getIdentifier();
  13013. }
  13014. if (queryItems) {
  13015. for (var __i_enFor0 = 0, __exp_enFor0 = queryItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13016. var queryItemType = __exp_enFor0[__i_enFor0];
  13017. var queryItem = queryItemType.getQueryItem();
  13018. if (queryItem) {
  13019. ReferenceResolver._setQueryItemIdForExprn(queryItem, newIdToPrepend);
  13020. }
  13021. var namedSet = queryItemType.getNamedSet();
  13022. if (namedSet && namedSet.basicGetIdForExpression() == null) {
  13023. namedSet.setIdForExpression(newIdToPrepend + "." + namedSet.getIdentifier());
  13024. }
  13025. var nestedFolder = queryItemType.getFolder();
  13026. if (nestedFolder) {
  13027. ReferenceResolver._setFolderIdForExprn(nestedFolder, newIdToPrepend);
  13028. }
  13029. }
  13030. }
  13031. item.setIdForExpression(newIdToPrepend);
  13032. }
  13033. /**
  13034. */
  13035. }, {
  13036. key: '_getQuerySubjectById',
  13037. value: function _getQuerySubjectById(id, module) {
  13038. if (!module) {
  13039. return null;
  13040. }
  13041. var querySubject;
  13042. var qsList = module.basicGetQuerySubject();
  13043. if (qsList) {
  13044. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13045. var qs = __exp_enFor0[__i_enFor0];
  13046. if (qs.getIdentifier() == id) {
  13047. querySubject = qs;
  13048. break;
  13049. }
  13050. }
  13051. }
  13052. return querySubject;
  13053. }
  13054. }, {
  13055. key: '_getCalculationById',
  13056. value: function _getCalculationById(id, module) {
  13057. if (!module) {
  13058. return null;
  13059. }
  13060. var calculation;
  13061. var calculations = module.basicGetCalculation();
  13062. if (calculations) {
  13063. for (var __i_enFor0 = 0, __exp_enFor0 = calculations, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13064. var calc = __exp_enFor0[__i_enFor0];
  13065. if (calc.getIdentifier() == id) {
  13066. calculation = calc;
  13067. break;
  13068. }
  13069. }
  13070. }
  13071. return calculation;
  13072. }
  13073. }, {
  13074. key: '_getFilterById',
  13075. value: function _getFilterById(id, module) {
  13076. if (!module) {
  13077. return null;
  13078. }
  13079. var filter;
  13080. var filterList = module.basicGetFilter();
  13081. if (filterList) {
  13082. for (var __i_enFor0 = 0, __exp_enFor0 = filterList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13083. var fltr = __exp_enFor0[__i_enFor0];
  13084. if (fltr.getIdentifier() == id) {
  13085. filter = fltr;
  13086. break;
  13087. }
  13088. }
  13089. }
  13090. return filter;
  13091. }
  13092. }, {
  13093. key: '_getNamedSetById',
  13094. value: function _getNamedSetById(id, module) {
  13095. if (!module) {
  13096. return null;
  13097. }
  13098. var namedSet;
  13099. var namedSetList = module.basicGetNamedSet();
  13100. if (namedSetList) {
  13101. for (var __i_enFor0 = 0, __exp_enFor0 = namedSetList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13102. var nSet = __exp_enFor0[__i_enFor0];
  13103. if (nSet.getIdentifier() == id) {
  13104. namedSet = nSet;
  13105. break;
  13106. }
  13107. }
  13108. }
  13109. return namedSet;
  13110. }
  13111. /**
  13112. * Find an object in the module using the MDTV folderItem ref
  13113. * @param {String} ref
  13114. * @param {Module} module
  13115. * @return {ObjectType} the objectType that was referred to by the ref or null if not found
  13116. */
  13117. }, {
  13118. key: 'findRefById',
  13119. value: function findRefById(ref, module) {
  13120. if (!module) {
  13121. return null;
  13122. }
  13123. var obj;
  13124. if (obj = ReferenceResolver._getQuerySubjectById(ref, module)) {
  13125. return obj;
  13126. }
  13127. if (obj = ReferenceResolver._getCalculationById(ref, module)) {
  13128. return obj;
  13129. }
  13130. if (obj = ReferenceResolver._getFilterById(ref, module)) {
  13131. return obj;
  13132. }
  13133. if (obj = ReferenceResolver._getNamedSetById(ref, module)) {
  13134. return obj;
  13135. }
  13136. return null;
  13137. }
  13138. }, {
  13139. key: '_getQueryItemById',
  13140. value: function _getQueryItemById(qualifiedID, module) {
  13141. if (!module) {
  13142. return null;
  13143. }
  13144. var queryItem;
  13145. var qsId = ReferenceResolver.getFirstPart(qualifiedID);
  13146. if (qsId != null && qsId.length > 0) {
  13147. var qs = ReferenceResolver._getQuerySubjectById(qsId, module);
  13148. var qiId = ReferenceResolver.getSecondPart(qualifiedID);
  13149. if (qs && qiId != null && qiId.length > 0) {
  13150. queryItem = ReferenceResolver.getQueryItemByIdAndQuerySubject(qiId, qs, false);
  13151. }
  13152. }
  13153. return queryItem;
  13154. }
  13155. }, {
  13156. key: 'getQueryItemListByIdExprListAndQuerySubject',
  13157. value: function getQueryItemListByIdExprListAndQuerySubject(idExprList, qs, isIdForExprn) {
  13158. var qiList = [];
  13159. if (!qs || !idExprList || idExprList.length == 0) {
  13160. return qiList;
  13161. }
  13162. var idExprMap = {};
  13163. var items = qs.basicGetItem();
  13164. if (!items || items.length == 0) {
  13165. return qiList;
  13166. }
  13167. ReferenceResolver._collectObjectByIdInItemList(items, idExprMap, isIdForExprn);
  13168. for (var __i_enFor0 = 0, __exp_enFor0 = idExprList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13169. var id = __exp_enFor0[__i_enFor0];
  13170. var aQI = idExprMap[id];
  13171. if (aQI) {
  13172. qiList.push(aQI);
  13173. }
  13174. }
  13175. return qiList;
  13176. }
  13177. }, {
  13178. key: '_collectObjectByIdInItemList',
  13179. value: function _collectObjectByIdInItemList(items, idExprMap, isIdForExprn) {
  13180. if (!items || items.length == 0) {
  13181. return;
  13182. }
  13183. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13184. var itm = __exp_enFor0[__i_enFor0];
  13185. ReferenceResolver._collectObjectByIdInItem(itm, idExprMap, isIdForExprn);
  13186. }
  13187. }
  13188. }, {
  13189. key: '_collectObjectByIdInItem',
  13190. value: function _collectObjectByIdInItem(itm, idExprMap, isIdForExprn) {
  13191. var qi = itm.getQueryItem();
  13192. if (qi) {
  13193. ReferenceResolver._updateObjectMap(qi, idExprMap, isIdForExprn);
  13194. var childItems = qi.basicGetItem();
  13195. ReferenceResolver._collectObjectByIdInItemList(childItems, idExprMap, isIdForExprn);
  13196. return;
  13197. }
  13198. var nmSet = itm.getNamedSet();
  13199. if (nmSet) {
  13200. ReferenceResolver._updateObjectMap(nmSet, idExprMap, isIdForExprn);
  13201. var childItems = nmSet.basicGetItem();
  13202. ReferenceResolver._collectObjectByIdInItemList(childItems, idExprMap, isIdForExprn);
  13203. return;
  13204. }
  13205. var fld = itm.getFolder();
  13206. if (fld) {
  13207. var childItems = fld.basicGetItem();
  13208. ReferenceResolver._collectObjectByIdInItemList(childItems, idExprMap, isIdForExprn);
  13209. return;
  13210. }
  13211. }
  13212. }, {
  13213. key: '_updateObjectMap',
  13214. value: function _updateObjectMap(baseItem, idExprMap, isIdForExprn) {
  13215. var idExpr;
  13216. if (isIdForExprn) {
  13217. idExpr = baseItem.basicGetIdForExpression();
  13218. } else {
  13219. idExpr = baseItem.getIdentifier();
  13220. }
  13221. if (idExpr != null) {
  13222. idExprMap[idExpr] = baseItem;
  13223. }
  13224. }
  13225. /**
  13226. * Retrieve <code>QueryItem</code> by identifier within a <code>QuerySubject</code>
  13227. * @param {String} id the identifier of the <code>QueryItem</code>
  13228. * @param {QuerySubject} qs the <code>QuerySubject</code> of this <code>QueryItem</code>
  13229. * @param {boolean} isIdForExprn true if the id is idForExpression, otherwise, it is identifier
  13230. * @return {BaseQueryItemType} a reference of the <code>QueryItem</code>
  13231. */
  13232. }, {
  13233. key: 'getQueryItemByIdAndQuerySubject',
  13234. value: function getQueryItemByIdAndQuerySubject(id, qs, isIdForExprn) {
  13235. if (!qs) {
  13236. return null;
  13237. }
  13238. var queryItemTypeList = qs.basicGetItem();
  13239. return ReferenceResolver._getQueryItemFromItemTypeList(id, queryItemTypeList, isIdForExprn);
  13240. }
  13241. }, {
  13242. key: 'getItemHierarchyByIdAndQuerySubject',
  13243. value: function getItemHierarchyByIdAndQuerySubject(id, qs, isIdForExprn) {
  13244. if (!qs) {
  13245. return null;
  13246. }
  13247. var itemHierarchy;
  13248. var itemTypeList = qs.basicGetItem();
  13249. if (itemTypeList) {
  13250. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13251. var itemType = __exp_enFor0[__i_enFor0];
  13252. itemHierarchy = ReferenceResolver._getItemHierarchyFromItemType(id, itemType, isIdForExprn);
  13253. if (itemHierarchy) {
  13254. break;
  13255. }
  13256. }
  13257. }
  13258. return itemHierarchy;
  13259. }
  13260. /**
  13261. * get Filter inside item by id.
  13262. * @param {String} id id.
  13263. * @param {QuerySubject} qs QuerySubject.
  13264. * @param {boolean} isIdForExprn true: match by idForExpression.
  13265. * @return {Filter} Filter or null.
  13266. */
  13267. }, {
  13268. key: 'getItemFilterByIdAndQuerySubject',
  13269. value: function getItemFilterByIdAndQuerySubject(id, qs, isIdForExprn) {
  13270. if (!qs) {
  13271. return null;
  13272. }
  13273. var filterItem;
  13274. var itemTypeList = qs.basicGetItem();
  13275. if (itemTypeList) {
  13276. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13277. var itemType = __exp_enFor0[__i_enFor0];
  13278. filterItem = ReferenceResolver._getFilterFromItemType(id, itemType, isIdForExprn);
  13279. if (filterItem) {
  13280. break;
  13281. }
  13282. }
  13283. }
  13284. return filterItem;
  13285. }
  13286. }, {
  13287. key: '_getQueryItemFromItem',
  13288. value: function _getQueryItemFromItem(id, item, isIdForExprn) {
  13289. if (!item || item.getIdentifier() == null) {
  13290. return null;
  13291. }
  13292. if (ReferenceResolver._isIdMatch(id, item, isIdForExprn)) {
  13293. return item;
  13294. }
  13295. var queryItems = item.basicGetItem();
  13296. return ReferenceResolver._getQueryItemFromItemTypeList(id, queryItems, isIdForExprn);
  13297. }
  13298. }, {
  13299. key: '_isIdMatch',
  13300. value: function _isIdMatch(id, obj, isIdForExprn) {
  13301. if (!obj || obj.getIdentifier() == null) {
  13302. return false;
  13303. }
  13304. var itemId = isIdForExprn ? obj.basicGetIdForExpression() : obj.getIdentifier();
  13305. if (id != null && id == itemId) {
  13306. return true;
  13307. }
  13308. return false;
  13309. }
  13310. }, {
  13311. key: '_getItemHierarchyFromItemType',
  13312. value: function _getItemHierarchyFromItemType(id, itemType, isIdForExprn) {
  13313. var ih;
  13314. var itemHierarchy = itemType.getItemHierarchy();
  13315. if (itemHierarchy && ReferenceResolver._isIdMatch(id, itemHierarchy, isIdForExprn)) {
  13316. return itemHierarchy;
  13317. }
  13318. var nestedFolder = itemType.getFolder();
  13319. if (nestedFolder) {
  13320. ih = ReferenceResolver._getItemHierarchyFromFolder(id, nestedFolder, isIdForExprn);
  13321. if (ih) {
  13322. return ih;
  13323. }
  13324. }
  13325. return null;
  13326. }
  13327. }, {
  13328. key: '_getFilterFromItemType',
  13329. value: function _getFilterFromItemType(id, itemType, isIdForExprn) {
  13330. var itemFilter = itemType.getFilter();
  13331. if (itemFilter && ReferenceResolver._isIdMatch(id, itemFilter, isIdForExprn)) {
  13332. return itemFilter;
  13333. }
  13334. var flt;
  13335. var nestedFolder = itemType.getFolder();
  13336. if (nestedFolder) {
  13337. flt = ReferenceResolver._getFilterFromFolder(id, nestedFolder, isIdForExprn);
  13338. if (flt) {
  13339. return flt;
  13340. }
  13341. }
  13342. var queryItem = itemType.getQueryItem();
  13343. if (queryItem) {
  13344. var childItems = queryItem.basicGetItem();
  13345. if (childItems) {
  13346. for (var __i_enFor0 = 0, __exp_enFor0 = childItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13347. var cItemType = __exp_enFor0[__i_enFor0];
  13348. flt = ReferenceResolver._getFilterFromItemType(id, cItemType, isIdForExprn);
  13349. if (flt) {
  13350. return flt;
  13351. }
  13352. }
  13353. }
  13354. }
  13355. return null;
  13356. }
  13357. }, {
  13358. key: '_getItemHierarchyFromFolder',
  13359. value: function _getItemHierarchyFromFolder(id, folder, isIdForExprn) {
  13360. var ih;
  13361. var itemTypeList = folder.basicGetItem();
  13362. if (itemTypeList) {
  13363. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13364. var itemType = __exp_enFor0[__i_enFor0];
  13365. ih = ReferenceResolver._getItemHierarchyFromItemType(id, itemType, isIdForExprn);
  13366. if (ih) {
  13367. break;
  13368. }
  13369. }
  13370. }
  13371. return ih;
  13372. }
  13373. }, {
  13374. key: '_getFilterFromFolder',
  13375. value: function _getFilterFromFolder(id, folder, isIdForExprn) {
  13376. var flt;
  13377. var itemTypeList = folder.basicGetItem();
  13378. if (itemTypeList) {
  13379. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13380. var itemType = __exp_enFor0[__i_enFor0];
  13381. flt = ReferenceResolver._getFilterFromItemType(id, itemType, isIdForExprn);
  13382. if (flt) {
  13383. break;
  13384. }
  13385. }
  13386. }
  13387. return flt;
  13388. }
  13389. }, {
  13390. key: '_getQueryItemFromFolder',
  13391. value: function _getQueryItemFromFolder(id, folder, isIdForExprn) {
  13392. var queryItemTypeList = folder.basicGetItem();
  13393. return ReferenceResolver._getQueryItemFromItemTypeList(id, queryItemTypeList, isIdForExprn);
  13394. }
  13395. /**
  13396. * Retrieve <code>BaseQueryItemType</code> by identifier within a list of <code>ItemType</code>
  13397. * @param {String} id the identifier or idForExpression of the <code>BaseQueryItemType</code> to retrieve
  13398. * @param {Array} queryItemTypeList the list <code>ItemType</code> to iterate over
  13399. * @param {boolean} isIdForExprn true if the id is idForExpression, otherwise, it is identifier
  13400. * @return {BaseQueryItemType} a reference of the child <code>BaseQueryItemType</code>
  13401. */
  13402. }, {
  13403. key: '_getQueryItemFromItemTypeList',
  13404. value: function _getQueryItemFromItemTypeList(id, queryItemTypeList, isIdForExprn) {
  13405. var qi;
  13406. if (queryItemTypeList) {
  13407. for (var __i_enFor0 = 0, __exp_enFor0 = queryItemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13408. var queryItemType = __exp_enFor0[__i_enFor0];
  13409. qi = ReferenceResolver._getQueryItemFromItemType(id, queryItemType, isIdForExprn);
  13410. if (qi) {
  13411. return qi;
  13412. }
  13413. }
  13414. }
  13415. return null;
  13416. }
  13417. }, {
  13418. key: '_getQueryItemFromItemType',
  13419. value: function _getQueryItemFromItemType(id, queryItemType, isIdForExprn) {
  13420. var qi;
  13421. var queryItem = queryItemType.getQueryItem();
  13422. if (queryItem) {
  13423. qi = ReferenceResolver._getQueryItemFromItem(id, queryItem, isIdForExprn);
  13424. if (qi) {
  13425. return qi;
  13426. }
  13427. }
  13428. var calc = queryItemType.getCalculation();
  13429. if (calc) {
  13430. qi = ReferenceResolver._getQueryItemFromItem(id, calc, isIdForExprn);
  13431. if (qi) {
  13432. return qi;
  13433. }
  13434. }
  13435. var namedSet = queryItemType.getNamedSet();
  13436. if (namedSet && namedSet.getIdentifier() != null && ReferenceResolver._isIdMatch(id, namedSet, isIdForExprn)) {
  13437. return namedSet;
  13438. }
  13439. var nestedFolder = queryItemType.getFolder();
  13440. if (nestedFolder) {
  13441. qi = ReferenceResolver._getQueryItemFromFolder(id, nestedFolder, isIdForExprn);
  13442. if (qi) {
  13443. return qi;
  13444. }
  13445. }
  13446. return null;
  13447. }
  13448. /**
  13449. * Retrieve <code>BaseQueryItemType</code> by identifier within a parent <code>Calculation</code>
  13450. * @param {String} id the identifier or idForExpression of the <code>BaseQueryItemType</code> to retrieve
  13451. * @param {Calculation} calc the parent <code>Calculation</code> of this child <code>BaseQueryItemType</code>
  13452. * @param {boolean} isIdForExprn true if the id is idForExpression, otherwise, it is identifier
  13453. * @return {BaseQueryItemType} a reference of the child <code>BaseQueryItemType</code>
  13454. */
  13455. }, {
  13456. key: '_getQueryItemByIdAndCalculation',
  13457. value: function _getQueryItemByIdAndCalculation(id, calc, isIdForExprn) {
  13458. if (!calc) {
  13459. return null;
  13460. }
  13461. var queryItemTypeList = calc.basicGetItem();
  13462. return ReferenceResolver._getQueryItemFromItemTypeList(id, queryItemTypeList, isIdForExprn);
  13463. }
  13464. }, {
  13465. key: 'getFirstPart',
  13466. value: function getFirstPart(qualifiedID) {
  13467. if (qualifiedID == null) {
  13468. return null;
  13469. }
  13470. var pos = qualifiedID.indexOf(".");
  13471. if (pos < 0) {
  13472. return "";
  13473. }
  13474. return qualifiedID.substring(0, pos);
  13475. }
  13476. }, {
  13477. key: 'getSecondPart',
  13478. value: function getSecondPart(qualifiedID) {
  13479. if (qualifiedID == null) {
  13480. return null;
  13481. }
  13482. var pos = qualifiedID.indexOf(".");
  13483. if (pos < 0) {
  13484. return "";
  13485. }
  13486. return qualifiedID.substring(pos + 1);
  13487. }
  13488. }, {
  13489. key: '_resolveShortenedRootMember',
  13490. value: function _resolveShortenedRootMember(querySubject, prefix) {
  13491. if (!querySubject) {
  13492. return;
  13493. }
  13494. var itemList = querySubject.basicGetItem();
  13495. if (!itemList || itemList.length == 0) {
  13496. return;
  13497. }
  13498. for (var __i_enFor0 = 0, __exp_enFor0 = itemList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13499. var item = __exp_enFor0[__i_enFor0];
  13500. var qi = item.getQueryItem();
  13501. if (qi) {
  13502. var rootMember = qi.getRootMember();
  13503. if (rootMember != null && !(rootMember.indexOf(prefix) == 0 || rootMember.indexOf(ReferenceResolver._squareBracket(prefix)) == 0) && !(rootMember.length === 0) && ReferenceResolver._isShortened(rootMember)) {
  13504. qi.setRootMember(prefix + "." + rootMember);
  13505. }
  13506. }
  13507. }
  13508. }
  13509. /**
  13510. * Put square brackets around given string.
  13511. * @param prefix
  13512. * @return {String}
  13513. */
  13514. }, {
  13515. key: '_squareBracket',
  13516. value: function _squareBracket(theString) {
  13517. return "[" + theString + "]";
  13518. }
  13519. }, {
  13520. key: '_isShortened',
  13521. value: function _isShortened(rootMember) {
  13522. var mdParts = rootMember.split(new RegExp("\\."));
  13523. if (mdParts && mdParts.length == 2) {
  13524. return mdParts[1].indexOf("]->[") > 0 ? true : false;
  13525. }
  13526. return false;
  13527. }
  13528. /**
  13529. * Retrieve <code>MoserObject</code> by idForExpression
  13530. * @param {String} idForExprn the idForExpression to look for.
  13531. * @param {Module} module the data module
  13532. * @return {MoserObject} a reference of the <code>MoserObject</code> including QuerySubject, QueryItem, Calculation and Filter
  13533. */
  13534. }, {
  13535. key: 'getMoserObjectByIdForExpression',
  13536. value: function getMoserObjectByIdForExpression(idForExprn, module) {
  13537. var mdtv = module.basicGetMetadataTreeView();
  13538. var moserObject;
  13539. if (mdtv) {
  13540. for (var __i_enFor0 = 0, __exp_enFor0 = mdtv, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13541. var folderType = __exp_enFor0[__i_enFor0];
  13542. moserObject = ReferenceResolver._getMoserObjectFromFolderType(idForExprn, folderType);
  13543. if (moserObject) {
  13544. break;
  13545. }
  13546. }
  13547. }
  13548. return moserObject;
  13549. }
  13550. }, {
  13551. key: '_getMoserObjectFromFolderType',
  13552. value: function _getMoserObjectFromFolderType(idForExprn, folderType) {
  13553. var folderItemTypes = folderType.basicGetFolderItem();
  13554. var moserObject;
  13555. if (folderItemTypes) {
  13556. for (var __i_enFor0 = 0, __exp_enFor0 = folderItemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13557. var folderItemType = __exp_enFor0[__i_enFor0];
  13558. moserObject = ReferenceResolver._getMoserObjectByIdForExprnAndRefObj(idForExprn, folderItemType.getReferencedObject());
  13559. if (moserObject) {
  13560. break;
  13561. }
  13562. var nestedFolder = folderItemType.getFolder();
  13563. if (nestedFolder) {
  13564. moserObject = ReferenceResolver._getMoserObjectFromFolderType(idForExprn, nestedFolder);
  13565. if (moserObject) {
  13566. break;
  13567. }
  13568. }
  13569. var defLinkType = folderItemType.getDefLink();
  13570. if (defLinkType) {
  13571. moserObject = ReferenceResolver._getMoserObjectByIdForExprnAndRefObj(idForExprn, defLinkType.getReferencedObject());
  13572. if (moserObject) {
  13573. break;
  13574. }
  13575. }
  13576. }
  13577. }
  13578. return moserObject;
  13579. }
  13580. }, {
  13581. key: '_getMoserObjectByIdForExprnAndRefObj',
  13582. value: function _getMoserObjectByIdForExprnAndRefObj(idForExprn, refObj) {
  13583. if (refObj) {
  13584. if (ReferenceResolver._foundMoserObjectByIdForExprn(idForExprn, refObj)) {
  13585. return refObj;
  13586. } else if (refObj instanceof _QuerySubject2.default) {
  13587. var obj = ReferenceResolver.getQueryItemByIdAndQuerySubject(idForExprn, refObj, true);
  13588. if (!obj) {
  13589. obj = ReferenceResolver.getItemHierarchyByIdAndQuerySubject(idForExprn, refObj, true);
  13590. }
  13591. if (!obj) {
  13592. obj = ReferenceResolver.getItemFilterByIdAndQuerySubject(idForExprn, refObj, true);
  13593. }
  13594. return obj;
  13595. } else if (refObj instanceof _Calculation2.default) {
  13596. return ReferenceResolver._getQueryItemByIdAndCalculation(idForExprn, refObj, true);
  13597. }
  13598. }
  13599. return null;
  13600. }
  13601. }, {
  13602. key: '_foundMoserObjectByIdForExprn',
  13603. value: function _foundMoserObjectByIdForExprn(idForExprn, refObj) {
  13604. if (refObj && refObj instanceof _BaseObjectType2.default) {
  13605. var baseObjType = refObj;
  13606. var id = baseObjType.getIdForExpression();
  13607. if (id != null && id == idForExprn) {
  13608. return true;
  13609. }
  13610. }
  13611. return false;
  13612. }
  13613. /**
  13614. * Bind the given id to a moser metadata object.
  13615. * @param {Module} module - Module that is searched for the object.
  13616. * @param {String} multiPartID - input id.
  13617. * @return {MoserObject} MoserObject.
  13618. */
  13619. }, {
  13620. key: 'bindMoserObject',
  13621. value: function bindMoserObject(module, multiPartID) {
  13622. var mo = ReferenceResolver.getMoserObjectByIdForExpression(multiPartID, module);
  13623. if (!mo) {
  13624. mo = ReferenceResolver._getQueryItemById(multiPartID, module);
  13625. }
  13626. if (!mo) {
  13627. mo = ReferenceResolver._getCalculationById(multiPartID, module);
  13628. }
  13629. if (!mo) {
  13630. mo = ReferenceResolver.findRefById(multiPartID, module);
  13631. }
  13632. if (!mo) {
  13633. for (var __i_enFor0 = 0, __exp_enFor0 = module.getUseSpec(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  13634. var useSpec = __exp_enFor0[__i_enFor0];
  13635. var alias = useSpec.getIdentifier();
  13636. if (alias != null) {
  13637. var newID = alias + "." + multiPartID;
  13638. mo = ReferenceResolver.getMoserObjectByIdForExpression(newID, module);
  13639. if (mo) {
  13640. break;
  13641. }
  13642. }
  13643. }
  13644. if (!mo) {
  13645. var alias = ReferenceResolver.strBetween(multiPartID, "[", "].");
  13646. if (alias != null) {
  13647. for (var __i_enFor1 = 0, __exp_enFor1 = module.getUseSpec(), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  13648. var useSpec = __exp_enFor1[__i_enFor1];
  13649. if (alias == useSpec.getIdentifier()) {
  13650. var newID = alias + "." + ReferenceResolver.strAfter(multiPartID, "].");
  13651. return ReferenceResolver.bindMoserObject(module, newID);
  13652. }
  13653. }
  13654. }
  13655. }
  13656. }
  13657. return mo;
  13658. }
  13659. /**
  13660. * @param {String} inString
  13661. * @param string
  13662. * @return {String}
  13663. */
  13664. }, {
  13665. key: 'strAfter',
  13666. value: function strAfter(inString, after) {
  13667. if (inString == null || inString.length === 0) {
  13668. return inString;
  13669. }
  13670. if (after == null) {
  13671. return "";
  13672. }
  13673. var pos = inString.indexOf(after);
  13674. if (pos == -1) {
  13675. return "";
  13676. }
  13677. return inString.substring(pos + after.length);
  13678. }
  13679. /**
  13680. * @param {String} inString
  13681. * @param {String} str1
  13682. * @param {String} str2
  13683. * @return {String}
  13684. */
  13685. }, {
  13686. key: 'strBetween',
  13687. value: function strBetween(inString, str1, str2) {
  13688. if (inString == null || str1 == null || str2 == null) {
  13689. return null;
  13690. }
  13691. var idxStr1 = inString.indexOf(str1);
  13692. if (idxStr1 == -1) {
  13693. return null;
  13694. }
  13695. var idxStr2 = inString.indexOf(str2, idxStr1 + str1.length);
  13696. if (idxStr2 == -1) {
  13697. return null;
  13698. }
  13699. return inString.substring(idxStr1 + str1.length, idxStr2);
  13700. }
  13701. }, {
  13702. key: 'resolveMDTVReferences',
  13703. value: function resolveMDTVReferences(a0, a1) {
  13704. var args = arguments;
  13705. if (args.length == 1) {
  13706. return ReferenceResolver.resolveMDTVReferences$0(a0);
  13707. }
  13708. return ReferenceResolver.resolveMDTVReferences$1(a0, a1);
  13709. }
  13710. //constructor()
  13711. }]);
  13712. return ReferenceResolver;
  13713. }(_BaseMoserObject3.default);
  13714. ReferenceResolver.ID_SEPARATOR = ".";
  13715. ReferenceResolver.EMBEDDED_MODULE_ALIAS = "ES";
  13716. ReferenceResolver.MODULE_ALIAS_PREFIX = "M";
  13717. ReferenceResolver.RESOLVED_BASE_MODULE_ALIAS_PREFIX = "__Base";
  13718. ReferenceResolver.IMPORT_ALL = "*";
  13719. ReferenceResolver.PROP_NEW = "NEW";
  13720. ReferenceResolver.PROP_LABEL = "label";
  13721. ReferenceResolver.PROP_COMMENT = "comment";
  13722. ReferenceResolver.PROP_DESCRIPTION = "description";
  13723. ReferenceResolver.PROP_LOCALREF = "localRef";
  13724. ReferenceResolver.PROP_PROPERTY_DOT = "property.";
  13725. ReferenceResolver.PROP_SCREENTIP = "screenTip";
  13726. ReferenceResolver.PROP_ISHIDDEN = "hidden";
  13727. ReferenceResolver.PROP_FORMAT = "format";
  13728. ReferenceResolver.PROP_TAXONOMY = "taxonomy";
  13729. ReferenceResolver.PROP_USAGE = "usage";
  13730. ReferenceResolver.PROP_REGULARAGGREGATE = "regularAggregate";
  13731. ReferenceResolver.PROP_FACETDEFINITION = "facetDefinition";
  13732. ReferenceResolver.PROP_IMPORTED = "Imported";
  13733. exports.default = ReferenceResolver;
  13734. /***/ },
  13735. /* 41 */
  13736. /***/ function(module, exports, __webpack_require__) {
  13737. 'use strict';
  13738. Object.defineProperty(exports, "__esModule", {
  13739. value: true
  13740. });
  13741. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  13742. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  13743. var _ObjectType2 = __webpack_require__(26);
  13744. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  13745. var _MoserObject = __webpack_require__(6);
  13746. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  13747. var _InstanceType = __webpack_require__(11);
  13748. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  13749. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  13750. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  13751. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  13752. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  13753. ** IBM Confidential
  13754. **
  13755. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  13756. **
  13757. ** (C) Copyright IBM Corp. 2021
  13758. **
  13759. ** The source code for this program is not published or otherwise divested of its trade secrets,
  13760. ** irrespective of what has been deposited with the U.S. Copyright Office.
  13761. ************************************************************************/
  13762. // GENERATED
  13763. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  13764. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  13765. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (runtime) // new
  13766. /**
  13767. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="expression" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="postAutoAggregation" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="instanceType" type="{}instanceType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  13768. */
  13769. var Filter = function (_ObjectType) {
  13770. _inherits(Filter, _ObjectType);
  13771. function Filter() {
  13772. var _ref;
  13773. var _temp, _this, _ret;
  13774. _classCallCheck(this, Filter);
  13775. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  13776. args[_key] = arguments[_key];
  13777. }
  13778. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Filter.__proto__ || Object.getPrototypeOf(Filter)).call.apply(_ref, [this].concat(args))), _this), _this.expression = null, _this.postAutoAggregation = null, _this.ref = null, _this.instanceType = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  13779. }
  13780. _createClass(Filter, [{
  13781. key: 'getExpression',
  13782. /**
  13783. * Gets the value of the expression property.
  13784. * @return {String} possible object is {@link String}
  13785. */
  13786. value: function getExpression() {
  13787. return this.expression;
  13788. }
  13789. /**
  13790. * Sets the value of the expression property.
  13791. * @param {String} value allowed object is {@link String}
  13792. */
  13793. }, {
  13794. key: 'setExpression',
  13795. value: function setExpression(value) {
  13796. var oldValue = this.expression;
  13797. this.expression = value;
  13798. this._setAndNotify(43, oldValue, value, false, true);
  13799. }
  13800. /**
  13801. * Gets the value of the postAutoAggregation property.
  13802. * @return {Boolean} possible object is {@link Boolean}
  13803. */
  13804. }, {
  13805. key: 'isPostAutoAggregation',
  13806. value: function isPostAutoAggregation() {
  13807. return this.postAutoAggregation;
  13808. }
  13809. /**
  13810. * Sets the value of the postAutoAggregation property.
  13811. * @param {Boolean} value allowed object is {@link Boolean}
  13812. */
  13813. }, {
  13814. key: 'setPostAutoAggregation',
  13815. value: function setPostAutoAggregation(value) {
  13816. var oldValue = this.postAutoAggregation;
  13817. this.postAutoAggregation = value;
  13818. this._setAndNotify(230, oldValue, value, false, true);
  13819. }
  13820. /**
  13821. * Gets the value of the ref property.
  13822. * @return {String} possible object is {@link String}
  13823. */
  13824. }, {
  13825. key: 'getRef',
  13826. value: function getRef() {
  13827. return this.ref;
  13828. }
  13829. /**
  13830. * Sets the value of the ref property.
  13831. * @param {String} value allowed object is {@link String}
  13832. */
  13833. }, {
  13834. key: 'setRef',
  13835. value: function setRef(value) {
  13836. var oldValue = this.ref;
  13837. this.ref = value;
  13838. this._setAndNotify(36, oldValue, value, false, true);
  13839. this._referencedObject = null;
  13840. }
  13841. /**
  13842. * Gets the value of the instanceType property.
  13843. * @return {InstanceType} possible object is {@link InstanceType}
  13844. */
  13845. }, {
  13846. key: 'getInstanceType',
  13847. value: function getInstanceType() {
  13848. return this.instanceType;
  13849. }
  13850. /**
  13851. * Sets the value of the instanceType property.
  13852. * @param {InstanceType} value allowed object is {@link InstanceType}
  13853. */
  13854. }, {
  13855. key: 'setInstanceType',
  13856. value: function setInstanceType(value) {
  13857. var oldValue = this.instanceType;
  13858. this.instanceType = value;
  13859. this._setAndNotify(58, oldValue, value, false, true);
  13860. }
  13861. /**
  13862. * Creates a new instance of <code>Filter</code> object from JSON data.
  13863. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  13864. * @param {Object} json JSON data to be used to create the <code> Filter</code> object from.
  13865. * @return {Filter} an object of type <code>Filter</code>
  13866. */
  13867. }, {
  13868. key: 'getObjectType',
  13869. /**
  13870. * Retrieves the type of this object
  13871. * @return {String} the object type in a <code>String</code>
  13872. */
  13873. value: function getObjectType() {
  13874. return "Filter";
  13875. }
  13876. /**
  13877. * Get a list of FeatureObjects
  13878. * @return {Array} A list of FeatureObjects
  13879. */
  13880. }, {
  13881. key: 'getFeatureList',
  13882. value: function getFeatureList(factory) {
  13883. var featureList = [];
  13884. featureList.push(this.createFeature(false, false, false, 43, "expression", null));
  13885. featureList.push(this.createFeature(false, false, false, 230, "postAutoAggregation", null));
  13886. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  13887. featureList.push(this.createFeature(false, true, false, 58, "instanceType", _InstanceType2.default));
  13888. Array.prototype.push.apply(featureList, _get(Filter.prototype.__proto__ || Object.getPrototypeOf(Filter.prototype), 'getFeatureList', this).call(this, factory));
  13889. return featureList;
  13890. }
  13891. /**
  13892. * Set the value of a specific feature.
  13893. * @param {BaseMoserObject} value the value to set
  13894. * @param {int} featureID the feature id of the attribute to be set
  13895. */
  13896. }, {
  13897. key: 'set',
  13898. value: function set(featureID, value) {
  13899. switch (featureID) {
  13900. case 36:
  13901. this.setRef(value);
  13902. break;
  13903. case 43:
  13904. this.setExpression(value);
  13905. break;
  13906. case 230:
  13907. this.setPostAutoAggregation(value);
  13908. break;
  13909. case 58:
  13910. this.setInstanceType(value);
  13911. break;
  13912. default:
  13913. _get(Filter.prototype.__proto__ || Object.getPrototypeOf(Filter.prototype), 'set', this).call(this, featureID, value);
  13914. }
  13915. }
  13916. /**
  13917. * Get the value of a specific feature.
  13918. * @param {int} featureID the feature id of the attribute to get
  13919. */
  13920. }, {
  13921. key: 'get',
  13922. value: function get(featureID) {
  13923. switch (featureID) {
  13924. case 36:
  13925. return this.getRef();
  13926. case 43:
  13927. return this.getExpression();
  13928. case 230:
  13929. return this.isPostAutoAggregation();
  13930. case 58:
  13931. return this.getInstanceType();
  13932. default:
  13933. return _get(Filter.prototype.__proto__ || Object.getPrototypeOf(Filter.prototype), 'get', this).call(this, featureID);
  13934. }
  13935. }
  13936. /**
  13937. * Get the value of a specific feature.
  13938. * @param {int} featureID the feature id of the attribute to get
  13939. */
  13940. }, {
  13941. key: 'basicGet',
  13942. value: function basicGet(featureID) {
  13943. switch (featureID) {
  13944. case 36:
  13945. return this.getRef();
  13946. case 43:
  13947. return this.getExpression();
  13948. case 230:
  13949. return this.isPostAutoAggregation();
  13950. case 58:
  13951. return this.getInstanceType();
  13952. default:
  13953. return _get(Filter.prototype.__proto__ || Object.getPrototypeOf(Filter.prototype), 'basicGet', this).call(this, featureID);
  13954. }
  13955. }
  13956. /**
  13957. * Set the resolved object based on reference.
  13958. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  13959. */
  13960. }, {
  13961. key: 'setReferencedObject',
  13962. value: function setReferencedObject(referencedObject) {
  13963. this._referencedObject = referencedObject;
  13964. }
  13965. /**
  13966. * Get the resolved object based on reference.
  13967. * @return {MoserObject} the referenced <code>MoserObject</code>
  13968. */
  13969. }, {
  13970. key: 'getReferencedObject',
  13971. value: function getReferencedObject() {
  13972. return this._referencedObject;
  13973. }
  13974. }, {
  13975. key: 'clone',
  13976. value: function clone() {
  13977. var cloned = _get(Filter.prototype.__proto__ || Object.getPrototypeOf(Filter.prototype), 'clone', this).call(this);
  13978. cloned.setReferencedObject(this._referencedObject);
  13979. return cloned;
  13980. }
  13981. }], [{
  13982. key: 'fromJSON',
  13983. value: function fromJSON(json, factory) {
  13984. var result = factory.createFilter();
  13985. var featureList = result.getFeatureList(factory);
  13986. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  13987. return result;
  13988. }
  13989. }]);
  13990. return Filter;
  13991. }(_ObjectType3.default);
  13992. exports.default = Filter;
  13993. /***/ },
  13994. /* 42 */
  13995. /***/ function(module, exports, __webpack_require__) {
  13996. 'use strict';
  13997. Object.defineProperty(exports, "__esModule", {
  13998. value: true
  13999. });
  14000. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  14001. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  14002. var _BaseQueryItemType2 = __webpack_require__(43);
  14003. var _BaseQueryItemType3 = _interopRequireDefault(_BaseQueryItemType2);
  14004. var _MoserObject = __webpack_require__(6);
  14005. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  14006. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  14007. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  14008. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  14009. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  14010. ** IBM Confidential
  14011. **
  14012. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  14013. **
  14014. ** (C) Copyright IBM Corp. 2020
  14015. **
  14016. ** The source code for this program is not published or otherwise divested of its trade secrets,
  14017. ** irrespective of what has been deposited with the U.S. Copyright Office.
  14018. ************************************************************************/
  14019. // GENERATED
  14020. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseQueryItemType (loadtime) // superclass
  14021. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  14022. /**
  14023. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}baseQueryItemType"&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  14024. */
  14025. var Calculation = function (_BaseQueryItemType) {
  14026. _inherits(Calculation, _BaseQueryItemType);
  14027. function Calculation() {
  14028. _classCallCheck(this, Calculation);
  14029. return _possibleConstructorReturn(this, (Calculation.__proto__ || Object.getPrototypeOf(Calculation)).apply(this, arguments));
  14030. }
  14031. _createClass(Calculation, [{
  14032. key: 'getObjectType',
  14033. /**
  14034. * Retrieves the type of this object
  14035. * @return {String} the object type in a <code>String</code>
  14036. */
  14037. value: function getObjectType() {
  14038. return "Calculation";
  14039. }
  14040. /**
  14041. * Get a list of FeatureObjects
  14042. * @return {Array} A list of FeatureObjects
  14043. */
  14044. }, {
  14045. key: 'getFeatureList',
  14046. value: function getFeatureList(factory) {
  14047. var featureList = [];
  14048. Array.prototype.push.apply(featureList, _get(Calculation.prototype.__proto__ || Object.getPrototypeOf(Calculation.prototype), 'getFeatureList', this).call(this, factory));
  14049. return featureList;
  14050. }
  14051. /**
  14052. * Set the value of a specific feature.
  14053. * @param {BaseMoserObject} value the value to set
  14054. * @param {int} featureID the feature id of the attribute to be set
  14055. */
  14056. }, {
  14057. key: 'set',
  14058. value: function set(featureID, value) {
  14059. switch (featureID) {
  14060. default:
  14061. _get(Calculation.prototype.__proto__ || Object.getPrototypeOf(Calculation.prototype), 'set', this).call(this, featureID, value);
  14062. }
  14063. }
  14064. /**
  14065. * Get the value of a specific feature.
  14066. * @param {int} featureID the feature id of the attribute to get
  14067. */
  14068. }, {
  14069. key: 'get',
  14070. value: function get(featureID) {
  14071. switch (featureID) {
  14072. default:
  14073. return _get(Calculation.prototype.__proto__ || Object.getPrototypeOf(Calculation.prototype), 'get', this).call(this, featureID);
  14074. }
  14075. }
  14076. /**
  14077. * Get the value of a specific feature.
  14078. * @param {int} featureID the feature id of the attribute to get
  14079. */
  14080. }, {
  14081. key: 'basicGet',
  14082. value: function basicGet(featureID) {
  14083. switch (featureID) {
  14084. default:
  14085. return _get(Calculation.prototype.__proto__ || Object.getPrototypeOf(Calculation.prototype), 'basicGet', this).call(this, featureID);
  14086. }
  14087. }
  14088. }], [{
  14089. key: 'fromJSON',
  14090. /**
  14091. * Creates a new instance of <code>Calculation</code> object from JSON data.
  14092. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  14093. * @param {Object} json JSON data to be used to create the <code> Calculation</code> object from.
  14094. * @return {Calculation} an object of type <code>Calculation</code>
  14095. */
  14096. value: function fromJSON(json, factory) {
  14097. var result = factory.createCalculation();
  14098. var featureList = result.getFeatureList(factory);
  14099. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  14100. return result;
  14101. }
  14102. }]);
  14103. return Calculation;
  14104. }(_BaseQueryItemType3.default);
  14105. exports.default = Calculation;
  14106. /***/ },
  14107. /* 43 */
  14108. /***/ function(module, exports, __webpack_require__) {
  14109. 'use strict';
  14110. Object.defineProperty(exports, "__esModule", {
  14111. value: true
  14112. });
  14113. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  14114. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  14115. var _ObjectType2 = __webpack_require__(26);
  14116. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  14117. var _MoserObject = __webpack_require__(6);
  14118. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  14119. var _InstanceType = __webpack_require__(11);
  14120. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  14121. var _UsageType = __webpack_require__(44);
  14122. var _UsageType2 = _interopRequireDefault(_UsageType);
  14123. var _RegularAggregateType = __webpack_require__(22);
  14124. var _RegularAggregateType2 = _interopRequireDefault(_RegularAggregateType);
  14125. var _HighLevelDataType = __webpack_require__(15);
  14126. var _HighLevelDataType2 = _interopRequireDefault(_HighLevelDataType);
  14127. var _SourceCategoryType = __webpack_require__(32);
  14128. var _SourceCategoryType2 = _interopRequireDefault(_SourceCategoryType);
  14129. var _AggregateMode = __webpack_require__(45);
  14130. var _AggregateMode2 = _interopRequireDefault(_AggregateMode);
  14131. var _RoleType = __webpack_require__(46);
  14132. var _RoleType2 = _interopRequireDefault(_RoleType);
  14133. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  14134. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  14135. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  14136. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  14137. ** IBM Confidential
  14138. **
  14139. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  14140. **
  14141. ** (C) Copyright IBM Corp. 2021
  14142. **
  14143. ** The source code for this program is not published or otherwise divested of its trade secrets,
  14144. ** irrespective of what has been deposited with the U.S. Copyright Office.
  14145. ************************************************************************/
  14146. // GENERATED
  14147. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  14148. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (runtime) // updatePropertyOverride
  14149. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (runtime) // new
  14150. //@import com/ibm/bi/platform/moser/common/generated/metadata/UsageType (runtime) // new
  14151. //@import com/ibm/bi/platform/moser/common/generated/metadata/RegularAggregateType (runtime) // new
  14152. //@import com/ibm/bi/platform/moser/common/generated/metadata/HighLevelDataType (runtime) // new
  14153. //@import com/ibm/bi/platform/moser/common/generated/metadata/SourceCategoryType (runtime) // new
  14154. //@import com/ibm/bi/platform/moser/common/generated/metadata/AggregateMode (runtime) // new
  14155. //@import com/ibm/bi/platform/moser/common/generated/metadata/RoleType (runtime) // new
  14156. /**
  14157. * <p>Java class for baseQueryItemType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="baseQueryItemType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;group ref="{}queryItemGroup"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  14158. */
  14159. var BaseQueryItemType = function (_ObjectType) {
  14160. _inherits(BaseQueryItemType, _ObjectType);
  14161. function BaseQueryItemType() {
  14162. var _ref;
  14163. var _temp, _this, _ret;
  14164. _classCallCheck(this, BaseQueryItemType);
  14165. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  14166. args[_key] = arguments[_key];
  14167. }
  14168. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseQueryItemType.__proto__ || Object.getPrototypeOf(BaseQueryItemType)).call.apply(_ref, [this].concat(args))), _this), _this.expression = null, _this.ref = null, _this.instanceType = null, _this.usage = null, _this.format = null, _this.datatype = null, _this.nullable = null, _this.regularAggregate = null, _this.datatypeCategory = null, _this.highlevelDatatype = null, _this.facetDefinition = null, _this.taxonomy = null, _this.splitDefinition = null, _this.sourceCategory = null, _this.item = null, _this.aggregateMode = null, _this.role = null, _this.promptInfo = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  14169. }
  14170. _createClass(BaseQueryItemType, [{
  14171. key: 'getExpression',
  14172. /**
  14173. * Gets the value of the expression property.
  14174. * @return {String} possible object is {@link String}
  14175. */
  14176. value: function getExpression() {
  14177. return this.expression;
  14178. }
  14179. /**
  14180. * Sets the value of the expression property.
  14181. * @param {String} value allowed object is {@link String}
  14182. */
  14183. }, {
  14184. key: 'setExpression',
  14185. value: function setExpression(value) {
  14186. var oldValue = this.expression;
  14187. this.expression = value;
  14188. this._setAndNotify(43, oldValue, value, false, true);
  14189. }
  14190. /**
  14191. * Gets the value of the ref property.
  14192. * @return {String} possible object is {@link String}
  14193. */
  14194. }, {
  14195. key: 'getRef',
  14196. value: function getRef() {
  14197. return this.ref;
  14198. }
  14199. /**
  14200. * Sets the value of the ref property.
  14201. * @param {String} value allowed object is {@link String}
  14202. */
  14203. }, {
  14204. key: 'setRef',
  14205. value: function setRef(value) {
  14206. var oldValue = this.ref;
  14207. this.ref = value;
  14208. this._setAndNotify(36, oldValue, value, false, true);
  14209. this._referencedObject = null;
  14210. }
  14211. /**
  14212. * Gets the value of the instanceType property.
  14213. * @return {InstanceType} possible object is {@link InstanceType}
  14214. */
  14215. }, {
  14216. key: 'getInstanceType',
  14217. value: function getInstanceType() {
  14218. return this.instanceType;
  14219. }
  14220. /**
  14221. * Sets the value of the instanceType property.
  14222. * @param {InstanceType} value allowed object is {@link InstanceType}
  14223. */
  14224. }, {
  14225. key: 'setInstanceType',
  14226. value: function setInstanceType(value) {
  14227. var oldValue = this.instanceType;
  14228. this.instanceType = value;
  14229. this._setAndNotify(58, oldValue, value, false, true);
  14230. }
  14231. /**
  14232. * Gets the value of the usage property.
  14233. * @return {UsageType} possible object is {@link UsageType}
  14234. */
  14235. }, {
  14236. key: 'getUsage',
  14237. value: function getUsage() {
  14238. return this.usage;
  14239. }
  14240. /**
  14241. * Sets the value of the usage property.
  14242. * @param {UsageType} value allowed object is {@link UsageType}
  14243. */
  14244. }, {
  14245. key: 'setUsage',
  14246. value: function setUsage(value) {
  14247. var oldValue = this.usage;
  14248. this.usage = value;
  14249. this._setAndNotify(77, oldValue, value, false, true);
  14250. }
  14251. /**
  14252. * Gets the value of the format property.
  14253. * @return {String} possible object is {@link String}
  14254. */
  14255. }, {
  14256. key: 'getFormat',
  14257. value: function getFormat() {
  14258. return this.format;
  14259. }
  14260. /**
  14261. * Sets the value of the format property.
  14262. * @param {String} value allowed object is {@link String}
  14263. */
  14264. }, {
  14265. key: 'setFormat',
  14266. value: function setFormat(value) {
  14267. var oldValue = this.format;
  14268. this.format = value;
  14269. this._setAndNotify(245, oldValue, value, false, true);
  14270. }
  14271. /**
  14272. * Gets the value of the datatype property.
  14273. * @return {String} possible object is {@link String}
  14274. */
  14275. }, {
  14276. key: 'getDatatype',
  14277. value: function getDatatype() {
  14278. return this.datatype;
  14279. }
  14280. /**
  14281. * Sets the value of the datatype property.
  14282. * @param {String} value allowed object is {@link String}
  14283. */
  14284. }, {
  14285. key: 'setDatatype',
  14286. value: function setDatatype(value) {
  14287. var oldValue = this.datatype;
  14288. this.datatype = value;
  14289. this._setAndNotify(64, oldValue, value, false, true);
  14290. }
  14291. /**
  14292. * Gets the value of the nullable property.
  14293. * @return {Boolean} possible object is {@link Boolean}
  14294. */
  14295. }, {
  14296. key: 'isNullable',
  14297. value: function isNullable() {
  14298. return this.nullable;
  14299. }
  14300. /**
  14301. * Sets the value of the nullable property.
  14302. * @param {Boolean} value allowed object is {@link Boolean}
  14303. */
  14304. }, {
  14305. key: 'setNullable',
  14306. value: function setNullable(value) {
  14307. var oldValue = this.nullable;
  14308. this.nullable = value;
  14309. this._setAndNotify(74, oldValue, value, false, true);
  14310. }
  14311. /**
  14312. * Gets the value of the regularAggregate property.
  14313. * @return {RegularAggregateType} possible object is {@link RegularAggregateType}
  14314. */
  14315. }, {
  14316. key: 'getRegularAggregate',
  14317. value: function getRegularAggregate() {
  14318. return this.regularAggregate;
  14319. }
  14320. /**
  14321. * Sets the value of the regularAggregate property.
  14322. * @param {RegularAggregateType} value allowed object is {@link RegularAggregateType}
  14323. */
  14324. }, {
  14325. key: 'setRegularAggregate',
  14326. value: function setRegularAggregate(value) {
  14327. var oldValue = this.regularAggregate;
  14328. this.regularAggregate = value;
  14329. this._setAndNotify(78, oldValue, value, false, true);
  14330. }
  14331. /**
  14332. * Gets the value of the datatypeCategory property.
  14333. * @return {String} possible object is {@link String}
  14334. */
  14335. }, {
  14336. key: 'getDatatypeCategory',
  14337. value: function getDatatypeCategory() {
  14338. return this.datatypeCategory;
  14339. }
  14340. /**
  14341. * Sets the value of the datatypeCategory property.
  14342. * @param {String} value allowed object is {@link String}
  14343. */
  14344. }, {
  14345. key: 'setDatatypeCategory',
  14346. value: function setDatatypeCategory(value) {
  14347. var oldValue = this.datatypeCategory;
  14348. this.datatypeCategory = value;
  14349. this._setAndNotify(250, oldValue, value, false, true);
  14350. }
  14351. /**
  14352. * Gets the value of the highlevelDatatype property.
  14353. * @return {HighLevelDataType} possible object is {@link HighLevelDataType}
  14354. */
  14355. }, {
  14356. key: 'getHighlevelDatatype',
  14357. value: function getHighlevelDatatype() {
  14358. return this.highlevelDatatype;
  14359. }
  14360. /**
  14361. * Sets the value of the highlevelDatatype property.
  14362. * @param {HighLevelDataType} value allowed object is {@link HighLevelDataType}
  14363. */
  14364. }, {
  14365. key: 'setHighlevelDatatype',
  14366. value: function setHighlevelDatatype(value) {
  14367. var oldValue = this.highlevelDatatype;
  14368. this.highlevelDatatype = value;
  14369. this._setAndNotify(75, oldValue, value, false, true);
  14370. }
  14371. /**
  14372. * Gets the value of the facetDefinition property.
  14373. * @return {FacetType} possible object is {@link FacetType}
  14374. */
  14375. }, {
  14376. key: 'getFacetDefinition',
  14377. value: function getFacetDefinition() {
  14378. return this.facetDefinition;
  14379. }
  14380. /**
  14381. * Sets the value of the facetDefinition property.
  14382. * @param {FacetType} value allowed object is {@link FacetType}
  14383. */
  14384. }, {
  14385. key: 'setFacetDefinition',
  14386. value: function setFacetDefinition(value) {
  14387. var oldValue = this.facetDefinition;
  14388. this.facetDefinition = value;
  14389. this._setAndNotify(249, oldValue, value, true, true);
  14390. }
  14391. /**
  14392. * Gets the value of the taxonomy property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the taxonomy property. <p> For example, to add a new item, do as follows: <pre> getTaxonomy().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link TaxonomyType}
  14393. */
  14394. }, {
  14395. key: 'getTaxonomy',
  14396. value: function getTaxonomy() {
  14397. if (!this.taxonomy) {
  14398. this.taxonomy = [];
  14399. }
  14400. return this.taxonomy;
  14401. }
  14402. /**
  14403. * Gets the value of the splitDefinition property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the splitDefinition property. <p> For example, to add a new item, do as follows: <pre> getSplitDefinition().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link SplitType}
  14404. */
  14405. }, {
  14406. key: 'getSplitDefinition',
  14407. value: function getSplitDefinition() {
  14408. if (!this.splitDefinition) {
  14409. this.splitDefinition = [];
  14410. }
  14411. return this.splitDefinition;
  14412. }
  14413. /**
  14414. * Gets the value of the sourceCategory property.
  14415. * @return {SourceCategoryType} possible object is {@link SourceCategoryType}
  14416. */
  14417. }, {
  14418. key: 'getSourceCategory',
  14419. value: function getSourceCategory() {
  14420. return this.sourceCategory;
  14421. }
  14422. /**
  14423. * Sets the value of the sourceCategory property.
  14424. * @param {SourceCategoryType} value allowed object is {@link SourceCategoryType}
  14425. */
  14426. }, {
  14427. key: 'setSourceCategory',
  14428. value: function setSourceCategory(value) {
  14429. var oldValue = this.sourceCategory;
  14430. this.sourceCategory = value;
  14431. this._setAndNotify(46, oldValue, value, false, true);
  14432. }
  14433. /**
  14434. * Gets the value of the item property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the item property. <p> For example, to add a new item, do as follows: <pre> getItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ItemType}
  14435. */
  14436. }, {
  14437. key: 'getItem',
  14438. value: function getItem() {
  14439. if (!this.item) {
  14440. this.item = [];
  14441. }
  14442. return this.item;
  14443. }
  14444. /**
  14445. * Gets the value of the aggregateMode property.
  14446. * @return {AggregateMode} possible object is {@link AggregateMode}
  14447. */
  14448. }, {
  14449. key: 'getAggregateMode',
  14450. value: function getAggregateMode() {
  14451. return this.aggregateMode;
  14452. }
  14453. /**
  14454. * Sets the value of the aggregateMode property.
  14455. * @param {AggregateMode} value allowed object is {@link AggregateMode}
  14456. */
  14457. }, {
  14458. key: 'setAggregateMode',
  14459. value: function setAggregateMode(value) {
  14460. var oldValue = this.aggregateMode;
  14461. this.aggregateMode = value;
  14462. this._setAndNotify(247, oldValue, value, false, true);
  14463. }
  14464. /**
  14465. * Gets the value of the role property.
  14466. * @return {RoleType} possible object is {@link RoleType}
  14467. */
  14468. }, {
  14469. key: 'getRole',
  14470. value: function getRole() {
  14471. return this.role;
  14472. }
  14473. /**
  14474. * Sets the value of the role property.
  14475. * @param {RoleType} value allowed object is {@link RoleType}
  14476. */
  14477. }, {
  14478. key: 'setRole',
  14479. value: function setRole(value) {
  14480. var oldValue = this.role;
  14481. this.role = value;
  14482. this._setAndNotify(244, oldValue, value, false, true);
  14483. }
  14484. /**
  14485. * Gets the value of the promptInfo property.
  14486. * @return {PromptInfoType} possible object is {@link PromptInfoType}
  14487. */
  14488. }, {
  14489. key: 'getPromptInfo',
  14490. value: function getPromptInfo() {
  14491. return this.promptInfo;
  14492. }
  14493. /**
  14494. * Sets the value of the promptInfo property.
  14495. * @param {PromptInfoType} value allowed object is {@link PromptInfoType}
  14496. */
  14497. }, {
  14498. key: 'setPromptInfo',
  14499. value: function setPromptInfo(value) {
  14500. var oldValue = this.promptInfo;
  14501. this.promptInfo = value;
  14502. this._setAndNotify(251, oldValue, value, true, true);
  14503. }
  14504. /**
  14505. * Gets the value of the <code>taxonomy</code> property without initializing the property to an empty list if it is unset.
  14506. * @return {Array} the list of <code>TaxonomyType</code> elements, or <code>null</code> if not set
  14507. */
  14508. }, {
  14509. key: 'basicGetTaxonomy',
  14510. value: function basicGetTaxonomy() {
  14511. return this.taxonomy;
  14512. }
  14513. /**
  14514. * Gets the value of the <code>splitDefinition</code> property without initializing the property to an empty list if it is unset.
  14515. * @return {Array} the list of <code>SplitType</code> elements, or <code>null</code> if not set
  14516. */
  14517. }, {
  14518. key: 'basicGetSplitDefinition',
  14519. value: function basicGetSplitDefinition() {
  14520. return this.splitDefinition;
  14521. }
  14522. /**
  14523. * Gets the value of the <code>item</code> property without initializing the property to an empty list if it is unset.
  14524. * @return {Array} the list of <code>ItemType</code> elements, or <code>null</code> if not set
  14525. */
  14526. }, {
  14527. key: 'basicGetItem',
  14528. value: function basicGetItem() {
  14529. return this.item;
  14530. }
  14531. /**
  14532. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  14533. */
  14534. }, {
  14535. key: 'addTaxonomyAt',
  14536. value: function addTaxonomyAt(position, item) {
  14537. this._addAtAndNotify(this.getTaxonomy(), position, item, 246, true, false);
  14538. }
  14539. /**
  14540. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  14541. */
  14542. }, {
  14543. key: 'addTaxonomy',
  14544. value: function addTaxonomy(item) {
  14545. this.addTaxonomyAt(this.getTaxonomy().length, item);
  14546. }
  14547. /**
  14548. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  14549. */
  14550. }, {
  14551. key: 'removeTaxonomyAt',
  14552. value: function removeTaxonomyAt(position) {
  14553. this._removeAtAndNotify(this.getTaxonomy(), position, 246, true);
  14554. }
  14555. /**
  14556. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  14557. */
  14558. }, {
  14559. key: 'removeTaxonomy',
  14560. value: function removeTaxonomy(item) {
  14561. var i = this.getTaxonomy().indexOf(item);
  14562. if (i >= 0) {
  14563. this.removeTaxonomyAt(i);
  14564. }
  14565. }
  14566. /**
  14567. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  14568. */
  14569. }, {
  14570. key: 'addSplitDefinitionAt',
  14571. value: function addSplitDefinitionAt(position, item) {
  14572. this._addAtAndNotify(this.getSplitDefinition(), position, item, 248, true, false);
  14573. }
  14574. /**
  14575. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  14576. */
  14577. }, {
  14578. key: 'addSplitDefinition',
  14579. value: function addSplitDefinition(item) {
  14580. this.addSplitDefinitionAt(this.getSplitDefinition().length, item);
  14581. }
  14582. /**
  14583. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  14584. */
  14585. }, {
  14586. key: 'removeSplitDefinitionAt',
  14587. value: function removeSplitDefinitionAt(position) {
  14588. this._removeAtAndNotify(this.getSplitDefinition(), position, 248, true);
  14589. }
  14590. /**
  14591. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  14592. */
  14593. }, {
  14594. key: 'removeSplitDefinition',
  14595. value: function removeSplitDefinition(item) {
  14596. var i = this.getSplitDefinition().indexOf(item);
  14597. if (i >= 0) {
  14598. this.removeSplitDefinitionAt(i);
  14599. }
  14600. }
  14601. /**
  14602. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  14603. */
  14604. }, {
  14605. key: 'addItemAt',
  14606. value: function addItemAt(position, item) {
  14607. this._addAtAndNotify(this.getItem(), position, item, 3, true, false);
  14608. var qi = item.getQueryItem();
  14609. if (qi) {
  14610. _MoserObject2.default.updatePropertyOverride(qi, this, 28, true);
  14611. }
  14612. var hierarchy = item.getItemHierarchy();
  14613. if (hierarchy) {
  14614. _MoserObject2.default.updatePropertyOverride(hierarchy, this, 27, true);
  14615. }
  14616. var namedSet = item.getNamedSet();
  14617. if (namedSet) {
  14618. _MoserObject2.default.updatePropertyOverride(namedSet, this, 26, true);
  14619. }
  14620. var filter = item.getFilter();
  14621. if (filter) {
  14622. _MoserObject2.default.updatePropertyOverride(filter, this, 24, true);
  14623. }
  14624. }
  14625. /**
  14626. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  14627. */
  14628. }, {
  14629. key: 'addItem',
  14630. value: function addItem(item) {
  14631. this.addItemAt(this.getItem().length, item);
  14632. }
  14633. /**
  14634. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  14635. */
  14636. }, {
  14637. key: 'removeItemAt',
  14638. value: function removeItemAt(position) {
  14639. this._removeAtAndNotify(this.getItem(), position, 3, true);
  14640. }
  14641. /**
  14642. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  14643. */
  14644. }, {
  14645. key: 'removeItem',
  14646. value: function removeItem(item) {
  14647. var i = this.getItem().indexOf(item);
  14648. if (i >= 0) {
  14649. this.removeItemAt(i);
  14650. }
  14651. }
  14652. /**
  14653. * Retrieves the type of this object
  14654. * @return {String} the object type in a <code>String</code>
  14655. */
  14656. }, {
  14657. key: 'getObjectType',
  14658. value: function getObjectType() {
  14659. return "BaseQueryItemType";
  14660. }
  14661. /**
  14662. * Get a list of FeatureObjects
  14663. * @return {Array} A list of FeatureObjects
  14664. */
  14665. }, {
  14666. key: 'getFeatureList',
  14667. value: function getFeatureList(factory) {
  14668. var featureList = [];
  14669. featureList.push(this.createFeature(false, false, false, 43, "expression", null));
  14670. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  14671. featureList.push(this.createFeature(false, true, false, 58, "instanceType", _InstanceType2.default));
  14672. featureList.push(this.createFeature(false, true, false, 77, "usage", _UsageType2.default));
  14673. featureList.push(this.createFeature(false, false, false, 245, "format", null));
  14674. featureList.push(this.createFeature(false, false, false, 64, "datatype", null));
  14675. featureList.push(this.createFeature(false, false, false, 74, "nullable", null));
  14676. featureList.push(this.createFeature(false, true, false, 78, "regularAggregate", _RegularAggregateType2.default));
  14677. featureList.push(this.createFeature(false, false, false, 250, "datatypeCategory", null));
  14678. featureList.push(this.createFeature(false, true, false, 75, "highlevelDatatype", _HighLevelDataType2.default));
  14679. var clazz;
  14680. if (factory) {
  14681. clazz = factory.createFacetType().getClass();
  14682. }
  14683. featureList.push(this.createFeature(false, false, true, 249, "facetDefinition", clazz));
  14684. if (factory) {
  14685. clazz = factory.createTaxonomyType().getClass();
  14686. }
  14687. featureList.push(this.createFeature(true, false, true, 246, "taxonomy", clazz));
  14688. if (factory) {
  14689. clazz = factory.createSplitType().getClass();
  14690. }
  14691. featureList.push(this.createFeature(true, false, true, 248, "splitDefinition", clazz));
  14692. featureList.push(this.createFeature(false, true, false, 46, "sourceCategory", _SourceCategoryType2.default));
  14693. if (factory) {
  14694. clazz = factory.createItemType().getClass();
  14695. }
  14696. featureList.push(this.createFeature(true, false, true, 3, "item", clazz));
  14697. featureList.push(this.createFeature(false, true, false, 247, "aggregateMode", _AggregateMode2.default));
  14698. featureList.push(this.createFeature(false, true, false, 244, "role", _RoleType2.default));
  14699. if (factory) {
  14700. clazz = factory.createPromptInfoType().getClass();
  14701. }
  14702. featureList.push(this.createFeature(false, false, true, 251, "promptInfo", clazz));
  14703. Array.prototype.push.apply(featureList, _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'getFeatureList', this).call(this, factory));
  14704. return featureList;
  14705. }
  14706. /**
  14707. * Set the value of a specific feature.
  14708. * @param {BaseMoserObject} value the value to set
  14709. * @param {int} featureID the feature id of the attribute to be set
  14710. */
  14711. }, {
  14712. key: 'set',
  14713. value: function set(featureID, value) {
  14714. switch (featureID) {
  14715. case 43:
  14716. this.setExpression(value);
  14717. break;
  14718. case 244:
  14719. this.setRole(value);
  14720. break;
  14721. case 74:
  14722. this.setNullable(value);
  14723. break;
  14724. case 46:
  14725. this.setSourceCategory(value);
  14726. break;
  14727. case 75:
  14728. this.setHighlevelDatatype(value);
  14729. break;
  14730. case 58:
  14731. this.setInstanceType(value);
  14732. break;
  14733. case 77:
  14734. this.setUsage(value);
  14735. break;
  14736. case 245:
  14737. this.setFormat(value);
  14738. break;
  14739. case 247:
  14740. this.setAggregateMode(value);
  14741. break;
  14742. case 36:
  14743. this.setRef(value);
  14744. break;
  14745. case 64:
  14746. this.setDatatype(value);
  14747. break;
  14748. case 78:
  14749. this.setRegularAggregate(value);
  14750. break;
  14751. case 249:
  14752. this.setFacetDefinition(value);
  14753. break;
  14754. case 250:
  14755. this.setDatatypeCategory(value);
  14756. break;
  14757. case 251:
  14758. this.setPromptInfo(value);
  14759. break;
  14760. default:
  14761. _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'set', this).call(this, featureID, value);
  14762. }
  14763. }
  14764. /**
  14765. * Set the value of a specific feature.
  14766. * @param {BaseMoserObject} value the value to set the value to set
  14767. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  14768. */
  14769. }, {
  14770. key: '_setList',
  14771. value: function _setList(featureID, value) {
  14772. switch (featureID) {
  14773. case 3:
  14774. this.item = value;
  14775. break;
  14776. case 246:
  14777. this.taxonomy = value;
  14778. break;
  14779. case 248:
  14780. this.splitDefinition = value;
  14781. break;
  14782. default:
  14783. _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), '_setList', this).call(this, featureID, value);
  14784. }
  14785. }
  14786. /**
  14787. * Get the value of a specific feature.
  14788. * @param {int} featureID the feature id of the attribute to get
  14789. */
  14790. }, {
  14791. key: 'get',
  14792. value: function get(featureID) {
  14793. switch (featureID) {
  14794. case 3:
  14795. return this.getItem();
  14796. case 43:
  14797. return this.getExpression();
  14798. case 244:
  14799. return this.getRole();
  14800. case 74:
  14801. return this.isNullable();
  14802. case 46:
  14803. return this.getSourceCategory();
  14804. case 75:
  14805. return this.getHighlevelDatatype();
  14806. case 58:
  14807. return this.getInstanceType();
  14808. case 77:
  14809. return this.getUsage();
  14810. case 245:
  14811. return this.getFormat();
  14812. case 246:
  14813. return this.getTaxonomy();
  14814. case 247:
  14815. return this.getAggregateMode();
  14816. case 36:
  14817. return this.getRef();
  14818. case 64:
  14819. return this.getDatatype();
  14820. case 248:
  14821. return this.getSplitDefinition();
  14822. case 78:
  14823. return this.getRegularAggregate();
  14824. case 249:
  14825. return this.getFacetDefinition();
  14826. case 250:
  14827. return this.getDatatypeCategory();
  14828. case 251:
  14829. return this.getPromptInfo();
  14830. default:
  14831. return _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'get', this).call(this, featureID);
  14832. }
  14833. }
  14834. /**
  14835. * Get the value of a specific feature.
  14836. * @param {int} featureID the feature id of the attribute to get
  14837. */
  14838. }, {
  14839. key: 'basicGet',
  14840. value: function basicGet(featureID) {
  14841. switch (featureID) {
  14842. case 3:
  14843. return this.basicGetItem();
  14844. case 43:
  14845. return this.getExpression();
  14846. case 244:
  14847. return this.getRole();
  14848. case 74:
  14849. return this.isNullable();
  14850. case 46:
  14851. return this.getSourceCategory();
  14852. case 75:
  14853. return this.getHighlevelDatatype();
  14854. case 58:
  14855. return this.getInstanceType();
  14856. case 77:
  14857. return this.getUsage();
  14858. case 245:
  14859. return this.getFormat();
  14860. case 246:
  14861. return this.basicGetTaxonomy();
  14862. case 247:
  14863. return this.getAggregateMode();
  14864. case 36:
  14865. return this.getRef();
  14866. case 64:
  14867. return this.getDatatype();
  14868. case 248:
  14869. return this.basicGetSplitDefinition();
  14870. case 78:
  14871. return this.getRegularAggregate();
  14872. case 249:
  14873. return this.getFacetDefinition();
  14874. case 250:
  14875. return this.getDatatypeCategory();
  14876. case 251:
  14877. return this.getPromptInfo();
  14878. default:
  14879. return _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'basicGet', this).call(this, featureID);
  14880. }
  14881. }
  14882. /**
  14883. * Add the value of a specific feature at a specific position
  14884. * @param {int} position the array position of the item to be added
  14885. * @param {BaseMoserObject} value the value to add
  14886. * @param {int} featureID the feature id of the attribute to be added
  14887. */
  14888. }, {
  14889. key: 'addAt',
  14890. value: function addAt(featureID, position, value) {
  14891. switch (featureID) {
  14892. case 3:
  14893. this.addItemAt(position, value);
  14894. break;
  14895. case 246:
  14896. this.addTaxonomyAt(position, value);
  14897. break;
  14898. case 248:
  14899. this.addSplitDefinitionAt(position, value);
  14900. break;
  14901. default:
  14902. _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'addAt', this).call(this, featureID, position, value);
  14903. }
  14904. }
  14905. /**
  14906. * Add the value to the end of a specific collection feature
  14907. * @param {BaseMoserObject} value the value to add
  14908. * @param {int} featureID the feature id of the attribute to be added
  14909. */
  14910. }, {
  14911. key: 'add',
  14912. value: function add(featureID, value) {
  14913. switch (featureID) {
  14914. case 3:
  14915. this.addItem(value);
  14916. break;
  14917. case 246:
  14918. this.addTaxonomy(value);
  14919. break;
  14920. case 248:
  14921. this.addSplitDefinition(value);
  14922. break;
  14923. default:
  14924. _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'add', this).call(this, featureID, value);
  14925. }
  14926. }
  14927. /**
  14928. * Remove the value of a specific feature by index.
  14929. * @param {int} position the array position of the item to be removed
  14930. * @param {int} featureID the feature id of the attribute to be removed
  14931. */
  14932. }, {
  14933. key: 'removeAt',
  14934. value: function removeAt(featureID, position) {
  14935. switch (featureID) {
  14936. case 3:
  14937. this.removeItemAt(position);
  14938. break;
  14939. case 246:
  14940. this.removeTaxonomyAt(position);
  14941. break;
  14942. case 248:
  14943. this.removeSplitDefinitionAt(position);
  14944. break;
  14945. default:
  14946. _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'removeAt', this).call(this, featureID, position);
  14947. }
  14948. }
  14949. /**
  14950. * Remove the value from specific feature.
  14951. * @param {BaseMoserObject} item the item to be removed
  14952. * @param {int} featureID the feature id of the attribute to be removed
  14953. */
  14954. }, {
  14955. key: 'remove',
  14956. value: function remove(featureID, item) {
  14957. switch (featureID) {
  14958. case 3:
  14959. this.removeItem(item);
  14960. break;
  14961. case 246:
  14962. this.removeTaxonomy(item);
  14963. break;
  14964. case 248:
  14965. this.removeSplitDefinition(item);
  14966. break;
  14967. default:
  14968. _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'remove', this).call(this, featureID, item);
  14969. }
  14970. }
  14971. /**
  14972. * Set the resolved object based on reference.
  14973. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  14974. */
  14975. }, {
  14976. key: 'setReferencedObject',
  14977. value: function setReferencedObject(referencedObject) {
  14978. this._referencedObject = referencedObject;
  14979. }
  14980. /**
  14981. * Get the resolved object based on reference.
  14982. * @return {MoserObject} the referenced <code>MoserObject</code>
  14983. */
  14984. }, {
  14985. key: 'getReferencedObject',
  14986. value: function getReferencedObject() {
  14987. return this._referencedObject;
  14988. }
  14989. }, {
  14990. key: 'clone',
  14991. value: function clone() {
  14992. var cloned = _get(BaseQueryItemType.prototype.__proto__ || Object.getPrototypeOf(BaseQueryItemType.prototype), 'clone', this).call(this);
  14993. cloned.setReferencedObject(this._referencedObject);
  14994. return cloned;
  14995. }
  14996. }]);
  14997. return BaseQueryItemType;
  14998. }(_ObjectType3.default);
  14999. exports.default = BaseQueryItemType;
  15000. /***/ },
  15001. /* 44 */
  15002. /***/ function(module, exports, __webpack_require__) {
  15003. "use strict";
  15004. Object.defineProperty(exports, "__esModule", {
  15005. value: true
  15006. });
  15007. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  15008. var _Enum2 = __webpack_require__(12);
  15009. var _Enum3 = _interopRequireDefault(_Enum2);
  15010. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15011. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  15012. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  15013. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  15014. ** IBM Confidential
  15015. **
  15016. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  15017. **
  15018. ** (C) Copyright IBM Corp. 2020
  15019. **
  15020. ** The source code for this program is not published or otherwise divested of its trade secrets,
  15021. ** irrespective of what has been deposited with the U.S. Copyright Office.
  15022. ************************************************************************/
  15023. // GENERATED
  15024. //@import Enum (loadtime) // superclass
  15025. /**
  15026. * <p>Java class for usageType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="usageType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="automatic"/&gt; &lt;enumeration value="identifier"/&gt; &lt;enumeration value="fact"/&gt; &lt;enumeration value="attribute"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  15027. */
  15028. var UsageType = function (_Enum) {
  15029. _inherits(UsageType, _Enum);
  15030. /**
  15031. * Specifies that the object is to be treated as a fact.
  15032. */
  15033. /**
  15034. * Specifies that the usage is not known.
  15035. */
  15036. function UsageType(v) {
  15037. _classCallCheck(this, UsageType);
  15038. var _this = _possibleConstructorReturn(this, (UsageType.__proto__ || Object.getPrototypeOf(UsageType)).call(this, v));
  15039. _this.enumValue = null;
  15040. _this.enumValue = v;
  15041. return _this;
  15042. }
  15043. /**
  15044. * Specifies that the object is to be treated as an attribute.
  15045. */
  15046. /**
  15047. * Specifies that the object is to be treated as an identifier.
  15048. */
  15049. _createClass(UsageType, [{
  15050. key: "value",
  15051. value: function value() {
  15052. return this.enumValue;
  15053. }
  15054. }, {
  15055. key: "getResourceId",
  15056. value: function getResourceId() {
  15057. return "UsageType" + "_" + this.value();
  15058. }
  15059. }], [{
  15060. key: "fromValue",
  15061. value: function fromValue(v) {
  15062. for (var i = 0; i < UsageType.values().length; ++i) {
  15063. if (UsageType.values()[i].enumValue == v) {
  15064. return UsageType.values()[i];
  15065. }
  15066. }
  15067. throw new Error(v);
  15068. }
  15069. }]);
  15070. return UsageType;
  15071. }(_Enum3.default);
  15072. UsageType.AUTOMATIC = UsageType.newLiteral("automatic");
  15073. UsageType.IDENTIFIER = UsageType.newLiteral("identifier");
  15074. UsageType.FACT = UsageType.newLiteral("fact");
  15075. UsageType.ATTRIBUTE = UsageType.newLiteral("attribute");
  15076. exports.default = UsageType;
  15077. /***/ },
  15078. /* 45 */
  15079. /***/ function(module, exports, __webpack_require__) {
  15080. "use strict";
  15081. Object.defineProperty(exports, "__esModule", {
  15082. value: true
  15083. });
  15084. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  15085. var _Enum2 = __webpack_require__(12);
  15086. var _Enum3 = _interopRequireDefault(_Enum2);
  15087. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15088. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  15089. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  15090. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  15091. ** IBM Confidential
  15092. **
  15093. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  15094. **
  15095. ** (C) Copyright IBM Corp. 2020
  15096. **
  15097. ** The source code for this program is not published or otherwise divested of its trade secrets,
  15098. ** irrespective of what has been deposited with the U.S. Copyright Office.
  15099. ************************************************************************/
  15100. // GENERATED
  15101. //@import Enum (loadtime) // superclass
  15102. /**
  15103. * <p>Java class for aggregateMode. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="aggregateMode"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="dynamic"/&gt; &lt;enumeration value="static"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  15104. */
  15105. var AggregateMode = function (_Enum) {
  15106. _inherits(AggregateMode, _Enum);
  15107. function AggregateMode(v) {
  15108. _classCallCheck(this, AggregateMode);
  15109. var _this = _possibleConstructorReturn(this, (AggregateMode.__proto__ || Object.getPrototypeOf(AggregateMode)).call(this, v));
  15110. _this.enumValue = null;
  15111. _this.enumValue = v;
  15112. return _this;
  15113. }
  15114. _createClass(AggregateMode, [{
  15115. key: "value",
  15116. value: function value() {
  15117. return this.enumValue;
  15118. }
  15119. }, {
  15120. key: "getResourceId",
  15121. value: function getResourceId() {
  15122. return "AggregateMode" + "_" + this.value();
  15123. }
  15124. }], [{
  15125. key: "fromValue",
  15126. value: function fromValue(v) {
  15127. for (var i = 0; i < AggregateMode.values().length; ++i) {
  15128. if (AggregateMode.values()[i].enumValue == v) {
  15129. return AggregateMode.values()[i];
  15130. }
  15131. }
  15132. throw new Error(v);
  15133. }
  15134. }]);
  15135. return AggregateMode;
  15136. }(_Enum3.default);
  15137. AggregateMode.DYNAMIC = AggregateMode.newLiteral("dynamic");
  15138. AggregateMode.STATIC = AggregateMode.newLiteral("static");
  15139. exports.default = AggregateMode;
  15140. /***/ },
  15141. /* 46 */
  15142. /***/ function(module, exports, __webpack_require__) {
  15143. "use strict";
  15144. Object.defineProperty(exports, "__esModule", {
  15145. value: true
  15146. });
  15147. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  15148. var _Enum2 = __webpack_require__(12);
  15149. var _Enum3 = _interopRequireDefault(_Enum2);
  15150. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15151. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  15152. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  15153. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  15154. ** IBM Confidential
  15155. **
  15156. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  15157. **
  15158. ** (C) Copyright IBM Corp. 2020
  15159. **
  15160. ** The source code for this program is not published or otherwise divested of its trade secrets,
  15161. ** irrespective of what has been deposited with the U.S. Copyright Office.
  15162. ************************************************************************/
  15163. // GENERATED
  15164. //@import Enum (loadtime) // superclass
  15165. /**
  15166. * <p>Java class for roleType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="roleType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="target"/&gt; &lt;enumeration value="input"/&gt; &lt;enumeration value="id"/&gt; &lt;enumeration value="exclude"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  15167. */
  15168. var RoleType = function (_Enum) {
  15169. _inherits(RoleType, _Enum);
  15170. function RoleType(v) {
  15171. _classCallCheck(this, RoleType);
  15172. var _this = _possibleConstructorReturn(this, (RoleType.__proto__ || Object.getPrototypeOf(RoleType)).call(this, v));
  15173. _this.enumValue = null;
  15174. _this.enumValue = v;
  15175. return _this;
  15176. }
  15177. _createClass(RoleType, [{
  15178. key: "value",
  15179. value: function value() {
  15180. return this.enumValue;
  15181. }
  15182. }, {
  15183. key: "getResourceId",
  15184. value: function getResourceId() {
  15185. return "RoleType" + "_" + this.value();
  15186. }
  15187. }], [{
  15188. key: "fromValue",
  15189. value: function fromValue(v) {
  15190. for (var i = 0; i < RoleType.values().length; ++i) {
  15191. if (RoleType.values()[i].enumValue == v) {
  15192. return RoleType.values()[i];
  15193. }
  15194. }
  15195. throw new Error(v);
  15196. }
  15197. }]);
  15198. return RoleType;
  15199. }(_Enum3.default);
  15200. RoleType.TARGET = RoleType.newLiteral("target");
  15201. RoleType.INPUT = RoleType.newLiteral("input");
  15202. RoleType.ID = RoleType.newLiteral("id");
  15203. RoleType.EXCLUDE = RoleType.newLiteral("exclude");
  15204. exports.default = RoleType;
  15205. /***/ },
  15206. /* 47 */
  15207. /***/ function(module, exports, __webpack_require__) {
  15208. "use strict";
  15209. Object.defineProperty(exports, "__esModule", {
  15210. value: true
  15211. });
  15212. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  15213. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  15214. var _MoserObject2 = __webpack_require__(6);
  15215. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  15216. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15217. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  15218. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  15219. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  15220. ** IBM Confidential
  15221. **
  15222. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  15223. **
  15224. ** (C) Copyright IBM Corp. 2020
  15225. **
  15226. ** The source code for this program is not published or otherwise divested of its trade secrets,
  15227. ** irrespective of what has been deposited with the U.S. Copyright Office.
  15228. ************************************************************************/
  15229. // GENERATED
  15230. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  15231. /**
  15232. * wrapper object to support mixed folders and references in the user defined order. <p>Java class for folderItemType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="folderItemType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;choice&gt; &lt;element name="folder" type="{}folderType" minOccurs="0"/&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="defLink" type="{}defLinkType" minOccurs="0"/&gt; &lt;/choice&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  15233. */
  15234. var FolderItemType = function (_MoserObject) {
  15235. _inherits(FolderItemType, _MoserObject);
  15236. function FolderItemType() {
  15237. var _ref;
  15238. var _temp, _this, _ret;
  15239. _classCallCheck(this, FolderItemType);
  15240. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  15241. args[_key] = arguments[_key];
  15242. }
  15243. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = FolderItemType.__proto__ || Object.getPrototypeOf(FolderItemType)).call.apply(_ref, [this].concat(args))), _this), _this.folder = null, _this.ref = null, _this.defLink = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  15244. }
  15245. _createClass(FolderItemType, [{
  15246. key: "getFolder",
  15247. /**
  15248. * Gets the value of the folder property.
  15249. * @return {FolderType} possible object is {@link FolderType}
  15250. */
  15251. value: function getFolder() {
  15252. return this.folder;
  15253. }
  15254. /**
  15255. * Sets the value of the folder property.
  15256. * @param {FolderType} value allowed object is {@link FolderType}
  15257. */
  15258. }, {
  15259. key: "setFolder",
  15260. value: function setFolder(value) {
  15261. var oldValue = this.folder;
  15262. this.folder = value;
  15263. this._setAndNotify(29, oldValue, value, true, false);
  15264. }
  15265. /**
  15266. * Gets the value of the ref property.
  15267. * @return {String} possible object is {@link String}
  15268. */
  15269. }, {
  15270. key: "getRef",
  15271. value: function getRef() {
  15272. return this.ref;
  15273. }
  15274. /**
  15275. * Sets the value of the ref property.
  15276. * @param {String} value allowed object is {@link String}
  15277. */
  15278. }, {
  15279. key: "setRef",
  15280. value: function setRef(value) {
  15281. var oldValue = this.ref;
  15282. this.ref = value;
  15283. this._setAndNotify(36, oldValue, value, false, false);
  15284. this._referencedObject = null;
  15285. }
  15286. /**
  15287. * Gets the value of the defLink property.
  15288. * @return {DefLinkType} possible object is {@link DefLinkType}
  15289. */
  15290. }, {
  15291. key: "getDefLink",
  15292. value: function getDefLink() {
  15293. return this.defLink;
  15294. }
  15295. /**
  15296. * Sets the value of the defLink property.
  15297. * @param {DefLinkType} value allowed object is {@link DefLinkType}
  15298. */
  15299. }, {
  15300. key: "setDefLink",
  15301. value: function setDefLink(value) {
  15302. var oldValue = this.defLink;
  15303. this.defLink = value;
  15304. this._setAndNotify(79, oldValue, value, true, false);
  15305. }
  15306. /**
  15307. * Creates a new instance of <code>FolderItemType</code> object from JSON data.
  15308. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  15309. * @param {Object} json JSON data to be used to create the <code> FolderItemType</code> object from.
  15310. * @return {FolderItemType} an object of type <code>FolderItemType</code>
  15311. */
  15312. }, {
  15313. key: "getObjectType",
  15314. /**
  15315. * Retrieves the type of this object
  15316. * @return {String} the object type in a <code>String</code>
  15317. */
  15318. value: function getObjectType() {
  15319. return "FolderItemType";
  15320. }
  15321. /**
  15322. * Get a list of FeatureObjects
  15323. * @return {Array} A list of FeatureObjects
  15324. */
  15325. }, {
  15326. key: "getFeatureList",
  15327. value: function getFeatureList(factory) {
  15328. var featureList = [];
  15329. var clazz;
  15330. if (factory) {
  15331. clazz = factory.createFolderType().getClass();
  15332. }
  15333. featureList.push(this.createFeature(false, false, true, 29, "folder", clazz));
  15334. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  15335. if (factory) {
  15336. clazz = factory.createDefLinkType().getClass();
  15337. }
  15338. featureList.push(this.createFeature(false, false, true, 79, "defLink", clazz));
  15339. Array.prototype.push.apply(featureList, _get(FolderItemType.prototype.__proto__ || Object.getPrototypeOf(FolderItemType.prototype), "getFeatureList", this).call(this, factory));
  15340. return featureList;
  15341. }
  15342. /**
  15343. * Set the value of a specific feature.
  15344. * @param {BaseMoserObject} value the value to set
  15345. * @param {int} featureID the feature id of the attribute to be set
  15346. */
  15347. }, {
  15348. key: "set",
  15349. value: function set(featureID, value) {
  15350. switch (featureID) {
  15351. case 36:
  15352. this.setRef(value);
  15353. break;
  15354. case 29:
  15355. this.setFolder(value);
  15356. break;
  15357. case 79:
  15358. this.setDefLink(value);
  15359. break;
  15360. default:
  15361. throw new Error("The feature " + featureID + " is not valid.");
  15362. }
  15363. }
  15364. /**
  15365. * Get the value of a specific feature.
  15366. * @param {int} featureID the feature id of the attribute to get
  15367. */
  15368. }, {
  15369. key: "get",
  15370. value: function get(featureID) {
  15371. switch (featureID) {
  15372. case 36:
  15373. return this.getRef();
  15374. case 29:
  15375. return this.getFolder();
  15376. case 79:
  15377. return this.getDefLink();
  15378. default:
  15379. throw new Error("The feature " + featureID + " is not valid.");
  15380. }
  15381. }
  15382. /**
  15383. * Get the value of a specific feature.
  15384. * @param {int} featureID the feature id of the attribute to get
  15385. */
  15386. }, {
  15387. key: "basicGet",
  15388. value: function basicGet(featureID) {
  15389. switch (featureID) {
  15390. case 36:
  15391. return this.getRef();
  15392. case 29:
  15393. return this.getFolder();
  15394. case 79:
  15395. return this.getDefLink();
  15396. default:
  15397. throw new Error("The feature " + featureID + " is not valid.");
  15398. }
  15399. }
  15400. /**
  15401. * Set the resolved object based on reference.
  15402. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  15403. */
  15404. }, {
  15405. key: "setReferencedObject",
  15406. value: function setReferencedObject(referencedObject) {
  15407. this._referencedObject = referencedObject;
  15408. }
  15409. /**
  15410. * Get the resolved object based on reference.
  15411. * @return {MoserObject} the referenced <code>MoserObject</code>
  15412. */
  15413. }, {
  15414. key: "getReferencedObject",
  15415. value: function getReferencedObject() {
  15416. return this._referencedObject;
  15417. }
  15418. }, {
  15419. key: "clone",
  15420. value: function clone() {
  15421. var cloned = _get(FolderItemType.prototype.__proto__ || Object.getPrototypeOf(FolderItemType.prototype), "clone", this).call(this);
  15422. cloned.setReferencedObject(this._referencedObject);
  15423. return cloned;
  15424. }
  15425. }], [{
  15426. key: "fromJSON",
  15427. value: function fromJSON(json, factory) {
  15428. var result = factory.createFolderItemType();
  15429. var featureList = result.getFeatureList(factory);
  15430. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  15431. return result;
  15432. }
  15433. }]);
  15434. return FolderItemType;
  15435. }(_MoserObject3.default);
  15436. exports.default = FolderItemType;
  15437. /***/ },
  15438. /* 48 */
  15439. /***/ function(module, exports, __webpack_require__) {
  15440. 'use strict';
  15441. Object.defineProperty(exports, "__esModule", {
  15442. value: true
  15443. });
  15444. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  15445. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  15446. var _ObjectType2 = __webpack_require__(26);
  15447. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  15448. var _MoserObject = __webpack_require__(6);
  15449. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  15450. var _ReferenceResolver = __webpack_require__(40);
  15451. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  15452. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15453. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  15454. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  15455. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  15456. ** IBM Confidential
  15457. **
  15458. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  15459. **
  15460. ** (C) Copyright IBM Corp. 2020
  15461. **
  15462. ** The source code for this program is not published or otherwise divested of its trade secrets,
  15463. ** irrespective of what has been deposited with the U.S. Copyright Office.
  15464. ************************************************************************/
  15465. // GENERATED
  15466. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  15467. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // getModuleObject, fromJSONHelper
  15468. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (runtime) // resolveMDTVReferences
  15469. /**
  15470. * <p>Java class for defLinkType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="defLinkType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  15471. */
  15472. var DefLinkType = function (_ObjectType) {
  15473. _inherits(DefLinkType, _ObjectType);
  15474. function DefLinkType() {
  15475. var _ref;
  15476. var _temp, _this, _ret;
  15477. _classCallCheck(this, DefLinkType);
  15478. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  15479. args[_key] = arguments[_key];
  15480. }
  15481. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DefLinkType.__proto__ || Object.getPrototypeOf(DefLinkType)).call.apply(_ref, [this].concat(args))), _this), _this.ref = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  15482. }
  15483. _createClass(DefLinkType, [{
  15484. key: 'getRef',
  15485. /**
  15486. * Gets the value of the ref property.
  15487. * @return {String} possible object is {@link String}
  15488. */
  15489. value: function getRef() {
  15490. return this.ref;
  15491. }
  15492. /**
  15493. * Sets the value of the ref property.
  15494. * @param {String} value allowed object is {@link String}
  15495. */
  15496. }, {
  15497. key: 'setRef',
  15498. value: function setRef(value) {
  15499. var oldValue = this.ref;
  15500. this.ref = value;
  15501. this._setAndNotify(36, oldValue, value, false, true);
  15502. this._referencedObject = null;
  15503. }
  15504. /**
  15505. * Creates a new instance of <code>DefLinkType</code> object from JSON data.
  15506. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  15507. * @param {Object} json JSON data to be used to create the <code> DefLinkType</code> object from.
  15508. * @return {DefLinkType} an object of type <code>DefLinkType</code>
  15509. */
  15510. }, {
  15511. key: 'getObjectType',
  15512. /**
  15513. * Retrieves the type of this object
  15514. * @return {String} the object type in a <code>String</code>
  15515. */
  15516. value: function getObjectType() {
  15517. return "DefLinkType";
  15518. }
  15519. /**
  15520. * Get a list of FeatureObjects
  15521. * @return {Array} A list of FeatureObjects
  15522. */
  15523. }, {
  15524. key: 'getFeatureList',
  15525. value: function getFeatureList(factory) {
  15526. var featureList = [];
  15527. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  15528. Array.prototype.push.apply(featureList, _get(DefLinkType.prototype.__proto__ || Object.getPrototypeOf(DefLinkType.prototype), 'getFeatureList', this).call(this, factory));
  15529. return featureList;
  15530. }
  15531. /**
  15532. * Set the value of a specific feature.
  15533. * @param {BaseMoserObject} value the value to set
  15534. * @param {int} featureID the feature id of the attribute to be set
  15535. */
  15536. }, {
  15537. key: 'set',
  15538. value: function set(featureID, value) {
  15539. switch (featureID) {
  15540. case 36:
  15541. this.setRef(value);
  15542. break;
  15543. default:
  15544. _get(DefLinkType.prototype.__proto__ || Object.getPrototypeOf(DefLinkType.prototype), 'set', this).call(this, featureID, value);
  15545. }
  15546. }
  15547. /**
  15548. * Get the value of a specific feature.
  15549. * @param {int} featureID the feature id of the attribute to get
  15550. */
  15551. }, {
  15552. key: 'get',
  15553. value: function get(featureID) {
  15554. switch (featureID) {
  15555. case 36:
  15556. return this.getRef();
  15557. default:
  15558. return _get(DefLinkType.prototype.__proto__ || Object.getPrototypeOf(DefLinkType.prototype), 'get', this).call(this, featureID);
  15559. }
  15560. }
  15561. /**
  15562. * Get the value of a specific feature.
  15563. * @param {int} featureID the feature id of the attribute to get
  15564. */
  15565. }, {
  15566. key: 'basicGet',
  15567. value: function basicGet(featureID) {
  15568. switch (featureID) {
  15569. case 36:
  15570. return this.getRef();
  15571. default:
  15572. return _get(DefLinkType.prototype.__proto__ || Object.getPrototypeOf(DefLinkType.prototype), 'basicGet', this).call(this, featureID);
  15573. }
  15574. }
  15575. /**
  15576. * Set the resolved object based on reference.
  15577. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  15578. */
  15579. }, {
  15580. key: 'setReferencedObject',
  15581. value: function setReferencedObject(referencedObject) {
  15582. this._referencedObject = referencedObject;
  15583. }
  15584. /**
  15585. * Get the resolved object based on reference.
  15586. * @return {MoserObject} the referenced <code>MoserObject</code>
  15587. */
  15588. }, {
  15589. key: 'getReferencedObject',
  15590. value: function getReferencedObject() {
  15591. if (!this._referencedObject) {
  15592. _ReferenceResolver2.default.resolveMDTVReferences(_MoserObject2.default.getModuleObject(this));
  15593. }
  15594. return this._referencedObject;
  15595. }
  15596. }, {
  15597. key: 'clone',
  15598. value: function clone() {
  15599. var cloned = _get(DefLinkType.prototype.__proto__ || Object.getPrototypeOf(DefLinkType.prototype), 'clone', this).call(this);
  15600. cloned.setReferencedObject(this._referencedObject);
  15601. return cloned;
  15602. }
  15603. }], [{
  15604. key: 'fromJSON',
  15605. value: function fromJSON(json, factory) {
  15606. var result = factory.createDefLinkType();
  15607. var featureList = result.getFeatureList(factory);
  15608. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  15609. return result;
  15610. }
  15611. }]);
  15612. return DefLinkType;
  15613. }(_ObjectType3.default);
  15614. exports.default = DefLinkType;
  15615. /***/ },
  15616. /* 49 */
  15617. /***/ function(module, exports, __webpack_require__) {
  15618. 'use strict';
  15619. Object.defineProperty(exports, "__esModule", {
  15620. value: true
  15621. });
  15622. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  15623. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  15624. var _ObjectType2 = __webpack_require__(26);
  15625. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  15626. var _MoserObject3 = __webpack_require__(6);
  15627. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  15628. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15629. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  15630. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  15631. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  15632. ** IBM Confidential
  15633. **
  15634. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  15635. **
  15636. ** (C) Copyright IBM Corp. 2021
  15637. **
  15638. ** The source code for this program is not published or otherwise divested of its trade secrets,
  15639. ** irrespective of what has been deposited with the U.S. Copyright Office.
  15640. ************************************************************************/
  15641. // GENERATED
  15642. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  15643. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  15644. /**
  15645. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="freshness" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="loadAsNeeded" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;choice minOccurs="0"&gt; &lt;element name="parameterMapEntry" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="queryItemMap" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="keyRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="valueRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/choice&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  15646. */
  15647. var ParameterMap = function (_ObjectType) {
  15648. _inherits(ParameterMap, _ObjectType);
  15649. function ParameterMap() {
  15650. var _ref;
  15651. var _temp, _this, _ret;
  15652. _classCallCheck(this, ParameterMap);
  15653. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  15654. args[_key] = arguments[_key];
  15655. }
  15656. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ParameterMap.__proto__ || Object.getPrototypeOf(ParameterMap)).call.apply(_ref, [this].concat(args))), _this), _this.defaultValue = null, _this.freshness = null, _this.loadAsNeeded = null, _this.parameterMapEntry = null, _this.queryItemMap = null, _temp), _possibleConstructorReturn(_this, _ret);
  15657. }
  15658. _createClass(ParameterMap, [{
  15659. key: 'getDefaultValue',
  15660. /**
  15661. * Gets the value of the defaultValue property.
  15662. * @return {String} possible object is {@link String}
  15663. */
  15664. value: function getDefaultValue() {
  15665. return this.defaultValue;
  15666. }
  15667. /**
  15668. * Sets the value of the defaultValue property.
  15669. * @param {String} value allowed object is {@link String}
  15670. */
  15671. }, {
  15672. key: 'setDefaultValue',
  15673. value: function setDefaultValue(value) {
  15674. var oldValue = this.defaultValue;
  15675. this.defaultValue = value;
  15676. this._setAndNotify(94, oldValue, value, false, true);
  15677. }
  15678. /**
  15679. * Gets the value of the freshness property.
  15680. * @return {String} possible object is {@link String}
  15681. */
  15682. }, {
  15683. key: 'getFreshness',
  15684. value: function getFreshness() {
  15685. return this.freshness;
  15686. }
  15687. /**
  15688. * Sets the value of the freshness property.
  15689. * @param {String} value allowed object is {@link String}
  15690. */
  15691. }, {
  15692. key: 'setFreshness',
  15693. value: function setFreshness(value) {
  15694. var oldValue = this.freshness;
  15695. this.freshness = value;
  15696. this._setAndNotify(92, oldValue, value, false, true);
  15697. }
  15698. /**
  15699. * Gets the value of the loadAsNeeded property.
  15700. * @return {Boolean} possible object is {@link Boolean}
  15701. */
  15702. }, {
  15703. key: 'isLoadAsNeeded',
  15704. value: function isLoadAsNeeded() {
  15705. return this.loadAsNeeded;
  15706. }
  15707. /**
  15708. * Sets the value of the loadAsNeeded property.
  15709. * @param {Boolean} value allowed object is {@link Boolean}
  15710. */
  15711. }, {
  15712. key: 'setLoadAsNeeded',
  15713. value: function setLoadAsNeeded(value) {
  15714. var oldValue = this.loadAsNeeded;
  15715. this.loadAsNeeded = value;
  15716. this._setAndNotify(90, oldValue, value, false, true);
  15717. }
  15718. /**
  15719. * Gets the value of the parameterMapEntry property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the parameterMapEntry property. <p> For example, to add a new item, do as follows: <pre> getParameterMapEntry().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ParameterMap.ParameterMapEntry}
  15720. */
  15721. }, {
  15722. key: 'getParameterMapEntry',
  15723. value: function getParameterMapEntry() {
  15724. if (!this.parameterMapEntry) {
  15725. this.parameterMapEntry = [];
  15726. }
  15727. return this.parameterMapEntry;
  15728. }
  15729. /**
  15730. * Gets the value of the queryItemMap property.
  15731. * @return {QueryItemMap} possible object is {@link ParameterMap.QueryItemMap}
  15732. */
  15733. }, {
  15734. key: 'getQueryItemMap',
  15735. value: function getQueryItemMap() {
  15736. return this.queryItemMap;
  15737. }
  15738. /**
  15739. * Sets the value of the queryItemMap property.
  15740. * @param {QueryItemMap} value allowed object is {@link ParameterMap.QueryItemMap}
  15741. */
  15742. }, {
  15743. key: 'setQueryItemMap',
  15744. value: function setQueryItemMap(value) {
  15745. var oldValue = this.queryItemMap;
  15746. this.queryItemMap = value;
  15747. this._setAndNotify(93, oldValue, value, true, true);
  15748. }
  15749. /**
  15750. * Gets the value of the <code>parameterMapEntry</code> property without initializing the property to an empty list if it is unset.
  15751. * @return {Array} the list of <code>ParameterMapEntry</code> elements, or <code>null</code> if not set
  15752. */
  15753. }, {
  15754. key: 'basicGetParameterMapEntry',
  15755. value: function basicGetParameterMapEntry() {
  15756. return this.parameterMapEntry;
  15757. }
  15758. /**
  15759. * Creates a new instance of <code>ParameterMap</code> object from JSON data.
  15760. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  15761. * @param {Object} json JSON data to be used to create the <code> ParameterMap</code> object from.
  15762. * @return {ParameterMap} an object of type <code>ParameterMap</code>
  15763. */
  15764. }, {
  15765. key: 'addParameterMapEntryAt',
  15766. /**
  15767. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  15768. */
  15769. value: function addParameterMapEntryAt(position, item) {
  15770. this._addAtAndNotify(this.getParameterMapEntry(), position, item, 91, true, false);
  15771. }
  15772. /**
  15773. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  15774. */
  15775. }, {
  15776. key: 'addParameterMapEntry',
  15777. value: function addParameterMapEntry(item) {
  15778. this.addParameterMapEntryAt(this.getParameterMapEntry().length, item);
  15779. }
  15780. /**
  15781. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  15782. */
  15783. }, {
  15784. key: 'removeParameterMapEntryAt',
  15785. value: function removeParameterMapEntryAt(position) {
  15786. this._removeAtAndNotify(this.getParameterMapEntry(), position, 91, true);
  15787. }
  15788. /**
  15789. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  15790. */
  15791. }, {
  15792. key: 'removeParameterMapEntry',
  15793. value: function removeParameterMapEntry(item) {
  15794. var i = this.getParameterMapEntry().indexOf(item);
  15795. if (i >= 0) {
  15796. this.removeParameterMapEntryAt(i);
  15797. }
  15798. }
  15799. /**
  15800. * Retrieves the type of this object
  15801. * @return {String} the object type in a <code>String</code>
  15802. */
  15803. }, {
  15804. key: 'getObjectType',
  15805. value: function getObjectType() {
  15806. return "ParameterMap";
  15807. }
  15808. /**
  15809. * Get a list of FeatureObjects
  15810. * @return {Array} A list of FeatureObjects
  15811. */
  15812. }, {
  15813. key: 'getFeatureList',
  15814. value: function getFeatureList(factory) {
  15815. var featureList = [];
  15816. featureList.push(this.createFeature(false, false, false, 94, "defaultValue", null));
  15817. featureList.push(this.createFeature(false, false, false, 92, "freshness", null));
  15818. featureList.push(this.createFeature(false, false, false, 90, "loadAsNeeded", null));
  15819. var clazz;
  15820. if (factory) {
  15821. clazz = factory.createParameterMapParameterMapEntry().getClass();
  15822. }
  15823. featureList.push(this.createFeature(true, false, true, 91, "parameterMapEntry", clazz));
  15824. if (factory) {
  15825. clazz = factory.createParameterMapQueryItemMap().getClass();
  15826. }
  15827. featureList.push(this.createFeature(false, false, true, 93, "queryItemMap", clazz));
  15828. Array.prototype.push.apply(featureList, _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'getFeatureList', this).call(this, factory));
  15829. return featureList;
  15830. }
  15831. /**
  15832. * Set the value of a specific feature.
  15833. * @param {BaseMoserObject} value the value to set
  15834. * @param {int} featureID the feature id of the attribute to be set
  15835. */
  15836. }, {
  15837. key: 'set',
  15838. value: function set(featureID, value) {
  15839. switch (featureID) {
  15840. case 90:
  15841. this.setLoadAsNeeded(value);
  15842. break;
  15843. case 92:
  15844. this.setFreshness(value);
  15845. break;
  15846. case 93:
  15847. this.setQueryItemMap(value);
  15848. break;
  15849. case 94:
  15850. this.setDefaultValue(value);
  15851. break;
  15852. default:
  15853. _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'set', this).call(this, featureID, value);
  15854. }
  15855. }
  15856. /**
  15857. * Set the value of a specific feature.
  15858. * @param {BaseMoserObject} value the value to set the value to set
  15859. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  15860. */
  15861. }, {
  15862. key: '_setList',
  15863. value: function _setList(featureID, value) {
  15864. switch (featureID) {
  15865. case 91:
  15866. this.parameterMapEntry = value;
  15867. break;
  15868. default:
  15869. _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), '_setList', this).call(this, featureID, value);
  15870. }
  15871. }
  15872. /**
  15873. * Get the value of a specific feature.
  15874. * @param {int} featureID the feature id of the attribute to get
  15875. */
  15876. }, {
  15877. key: 'get',
  15878. value: function get(featureID) {
  15879. switch (featureID) {
  15880. case 90:
  15881. return this.isLoadAsNeeded();
  15882. case 91:
  15883. return this.getParameterMapEntry();
  15884. case 92:
  15885. return this.getFreshness();
  15886. case 93:
  15887. return this.getQueryItemMap();
  15888. case 94:
  15889. return this.getDefaultValue();
  15890. default:
  15891. return _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'get', this).call(this, featureID);
  15892. }
  15893. }
  15894. /**
  15895. * Get the value of a specific feature.
  15896. * @param {int} featureID the feature id of the attribute to get
  15897. */
  15898. }, {
  15899. key: 'basicGet',
  15900. value: function basicGet(featureID) {
  15901. switch (featureID) {
  15902. case 90:
  15903. return this.isLoadAsNeeded();
  15904. case 91:
  15905. return this.basicGetParameterMapEntry();
  15906. case 92:
  15907. return this.getFreshness();
  15908. case 93:
  15909. return this.getQueryItemMap();
  15910. case 94:
  15911. return this.getDefaultValue();
  15912. default:
  15913. return _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'basicGet', this).call(this, featureID);
  15914. }
  15915. }
  15916. /**
  15917. * Add the value of a specific feature at a specific position
  15918. * @param {int} position the array position of the item to be added
  15919. * @param {BaseMoserObject} value the value to add
  15920. * @param {int} featureID the feature id of the attribute to be added
  15921. */
  15922. }, {
  15923. key: 'addAt',
  15924. value: function addAt(featureID, position, value) {
  15925. switch (featureID) {
  15926. case 91:
  15927. this.addParameterMapEntryAt(position, value);
  15928. break;
  15929. default:
  15930. _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'addAt', this).call(this, featureID, position, value);
  15931. }
  15932. }
  15933. /**
  15934. * Add the value to the end of a specific collection feature
  15935. * @param {BaseMoserObject} value the value to add
  15936. * @param {int} featureID the feature id of the attribute to be added
  15937. */
  15938. }, {
  15939. key: 'add',
  15940. value: function add(featureID, value) {
  15941. switch (featureID) {
  15942. case 91:
  15943. this.addParameterMapEntry(value);
  15944. break;
  15945. default:
  15946. _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'add', this).call(this, featureID, value);
  15947. }
  15948. }
  15949. /**
  15950. * Remove the value of a specific feature by index.
  15951. * @param {int} position the array position of the item to be removed
  15952. * @param {int} featureID the feature id of the attribute to be removed
  15953. */
  15954. }, {
  15955. key: 'removeAt',
  15956. value: function removeAt(featureID, position) {
  15957. switch (featureID) {
  15958. case 91:
  15959. this.removeParameterMapEntryAt(position);
  15960. break;
  15961. default:
  15962. _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'removeAt', this).call(this, featureID, position);
  15963. }
  15964. }
  15965. /**
  15966. * Remove the value from specific feature.
  15967. * @param {BaseMoserObject} item the item to be removed
  15968. * @param {int} featureID the feature id of the attribute to be removed
  15969. */
  15970. }, {
  15971. key: 'remove',
  15972. value: function remove(featureID, item) {
  15973. switch (featureID) {
  15974. case 91:
  15975. this.removeParameterMapEntry(item);
  15976. break;
  15977. default:
  15978. _get(ParameterMap.prototype.__proto__ || Object.getPrototypeOf(ParameterMap.prototype), 'remove', this).call(this, featureID, item);
  15979. }
  15980. }
  15981. }], [{
  15982. key: 'fromJSON',
  15983. value: function fromJSON(json, factory) {
  15984. var result = factory.createParameterMap();
  15985. var featureList = result.getFeatureList(factory);
  15986. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  15987. return result;
  15988. }
  15989. }]);
  15990. return ParameterMap;
  15991. }(_ObjectType3.default);
  15992. /**
  15993. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  15994. */
  15995. exports.default = ParameterMap;
  15996. ParameterMap.ParameterMapEntry = function (_MoserObject) {
  15997. _inherits(_class2, _MoserObject);
  15998. function _class2() {
  15999. var _ref2;
  16000. var _temp2, _this2, _ret2;
  16001. _classCallCheck(this, _class2);
  16002. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  16003. args[_key2] = arguments[_key2];
  16004. }
  16005. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.key = null, _this2.value = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  16006. }
  16007. _createClass(_class2, [{
  16008. key: 'getKey',
  16009. /**
  16010. * Gets the value of the key property.
  16011. * @return {String} possible object is {@link String}
  16012. */
  16013. value: function getKey() {
  16014. return this.key;
  16015. }
  16016. /**
  16017. * Sets the value of the key property.
  16018. * @param {String} value allowed object is {@link String}
  16019. */
  16020. }, {
  16021. key: 'setKey',
  16022. value: function setKey(value) {
  16023. var oldValue = this.key;
  16024. this.key = value;
  16025. this._setAndNotify(147, oldValue, value, false, false);
  16026. }
  16027. /**
  16028. * Gets the value of the value property.
  16029. * @return {String} possible object is {@link String}
  16030. */
  16031. }, {
  16032. key: 'getValue',
  16033. value: function getValue() {
  16034. return this.value;
  16035. }
  16036. /**
  16037. * Sets the value of the value property.
  16038. * @param {String} value allowed object is {@link String}
  16039. */
  16040. }, {
  16041. key: 'setValue',
  16042. value: function setValue(value) {
  16043. var oldValue = this.value;
  16044. this.value = value;
  16045. this._setAndNotify(35, oldValue, value, false, false);
  16046. }
  16047. /**
  16048. * Creates a new instance of <code>ParameterMapEntry</code> object from JSON data.
  16049. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  16050. * @param {Object} json JSON data to be used to create the <code> ParameterMapEntry</code> object from.
  16051. * @return {ParameterMapEntry} an object of type <code>ParameterMapEntry</code>
  16052. */
  16053. }, {
  16054. key: 'getObjectType',
  16055. /**
  16056. * Retrieves the type of this object
  16057. * @return {String} the object type in a <code>String</code>
  16058. */
  16059. value: function getObjectType() {
  16060. return "ParameterMapEntry";
  16061. }
  16062. /**
  16063. * Get a list of FeatureObjects
  16064. * @return {Array} A list of FeatureObjects
  16065. */
  16066. }, {
  16067. key: 'getFeatureList',
  16068. value: function getFeatureList(factory) {
  16069. var featureList = [];
  16070. featureList.push(this.createFeature(false, false, false, 147, "key", null));
  16071. featureList.push(this.createFeature(false, false, false, 35, "value", null));
  16072. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  16073. return featureList;
  16074. }
  16075. /**
  16076. * Set the value of a specific feature.
  16077. * @param {BaseMoserObject} value the value to set
  16078. * @param {int} featureID the feature id of the attribute to be set
  16079. */
  16080. }, {
  16081. key: 'set',
  16082. value: function set(featureID, value) {
  16083. switch (featureID) {
  16084. case 35:
  16085. this.setValue(value);
  16086. break;
  16087. case 147:
  16088. this.setKey(value);
  16089. break;
  16090. default:
  16091. throw new Error("The feature " + featureID + " is not valid.");
  16092. }
  16093. }
  16094. /**
  16095. * Get the value of a specific feature.
  16096. * @param {int} featureID the feature id of the attribute to get
  16097. */
  16098. }, {
  16099. key: 'get',
  16100. value: function get(featureID) {
  16101. switch (featureID) {
  16102. case 35:
  16103. return this.getValue();
  16104. case 147:
  16105. return this.getKey();
  16106. default:
  16107. throw new Error("The feature " + featureID + " is not valid.");
  16108. }
  16109. }
  16110. /**
  16111. * Get the value of a specific feature.
  16112. * @param {int} featureID the feature id of the attribute to get
  16113. */
  16114. }, {
  16115. key: 'basicGet',
  16116. value: function basicGet(featureID) {
  16117. switch (featureID) {
  16118. case 35:
  16119. return this.getValue();
  16120. case 147:
  16121. return this.getKey();
  16122. default:
  16123. throw new Error("The feature " + featureID + " is not valid.");
  16124. }
  16125. }
  16126. }], [{
  16127. key: 'fromJSON',
  16128. value: function fromJSON(json, factory) {
  16129. var result = factory.createParameterMapParameterMapEntry();
  16130. var featureList = result.getFeatureList(factory);
  16131. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  16132. return result;
  16133. }
  16134. }]);
  16135. return _class2;
  16136. }(_MoserObject4.default);
  16137. /**
  16138. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="keyRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="valueRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  16139. */
  16140. ParameterMap.QueryItemMap = function (_MoserObject2) {
  16141. _inherits(_class4, _MoserObject2);
  16142. function _class4() {
  16143. var _ref3;
  16144. var _temp3, _this3, _ret3;
  16145. _classCallCheck(this, _class4);
  16146. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  16147. args[_key3] = arguments[_key3];
  16148. }
  16149. return _ret3 = (_temp3 = (_this3 = _possibleConstructorReturn(this, (_ref3 = _class4.__proto__ || Object.getPrototypeOf(_class4)).call.apply(_ref3, [this].concat(args))), _this3), _this3.keyRef = null, _this3.valueRef = null, _temp3), _possibleConstructorReturn(_this3, _ret3);
  16150. }
  16151. _createClass(_class4, [{
  16152. key: 'getKeyRef',
  16153. /**
  16154. * Gets the value of the keyRef property.
  16155. * @return {String} possible object is {@link String}
  16156. */
  16157. value: function getKeyRef() {
  16158. return this.keyRef;
  16159. }
  16160. /**
  16161. * Sets the value of the keyRef property.
  16162. * @param {String} value allowed object is {@link String}
  16163. */
  16164. }, {
  16165. key: 'setKeyRef',
  16166. value: function setKeyRef(value) {
  16167. var oldValue = this.keyRef;
  16168. this.keyRef = value;
  16169. this._setAndNotify(37, oldValue, value, false, false);
  16170. }
  16171. /**
  16172. * Gets the value of the valueRef property.
  16173. * @return {String} possible object is {@link String}
  16174. */
  16175. }, {
  16176. key: 'getValueRef',
  16177. value: function getValueRef() {
  16178. return this.valueRef;
  16179. }
  16180. /**
  16181. * Sets the value of the valueRef property.
  16182. * @param {String} value allowed object is {@link String}
  16183. */
  16184. }, {
  16185. key: 'setValueRef',
  16186. value: function setValueRef(value) {
  16187. var oldValue = this.valueRef;
  16188. this.valueRef = value;
  16189. this._setAndNotify(231, oldValue, value, false, false);
  16190. }
  16191. /**
  16192. * Creates a new instance of <code>QueryItemMap</code> object from JSON data.
  16193. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  16194. * @param {Object} json JSON data to be used to create the <code> QueryItemMap</code> object from.
  16195. * @return {QueryItemMap} an object of type <code>QueryItemMap</code>
  16196. */
  16197. }, {
  16198. key: 'getObjectType',
  16199. /**
  16200. * Retrieves the type of this object
  16201. * @return {String} the object type in a <code>String</code>
  16202. */
  16203. value: function getObjectType() {
  16204. return "QueryItemMap";
  16205. }
  16206. /**
  16207. * Get a list of FeatureObjects
  16208. * @return {Array} A list of FeatureObjects
  16209. */
  16210. }, {
  16211. key: 'getFeatureList',
  16212. value: function getFeatureList(factory) {
  16213. var featureList = [];
  16214. featureList.push(this.createFeature(false, false, false, 37, "keyRef", null));
  16215. featureList.push(this.createFeature(false, false, false, 231, "valueRef", null));
  16216. Array.prototype.push.apply(featureList, _get(_class4.prototype.__proto__ || Object.getPrototypeOf(_class4.prototype), 'getFeatureList', this).call(this, factory));
  16217. return featureList;
  16218. }
  16219. /**
  16220. * Set the value of a specific feature.
  16221. * @param {BaseMoserObject} value the value to set
  16222. * @param {int} featureID the feature id of the attribute to be set
  16223. */
  16224. }, {
  16225. key: 'set',
  16226. value: function set(featureID, value) {
  16227. switch (featureID) {
  16228. case 231:
  16229. this.setValueRef(value);
  16230. break;
  16231. case 37:
  16232. this.setKeyRef(value);
  16233. break;
  16234. default:
  16235. throw new Error("The feature " + featureID + " is not valid.");
  16236. }
  16237. }
  16238. /**
  16239. * Get the value of a specific feature.
  16240. * @param {int} featureID the feature id of the attribute to get
  16241. */
  16242. }, {
  16243. key: 'get',
  16244. value: function get(featureID) {
  16245. switch (featureID) {
  16246. case 231:
  16247. return this.getValueRef();
  16248. case 37:
  16249. return this.getKeyRef();
  16250. default:
  16251. throw new Error("The feature " + featureID + " is not valid.");
  16252. }
  16253. }
  16254. /**
  16255. * Get the value of a specific feature.
  16256. * @param {int} featureID the feature id of the attribute to get
  16257. */
  16258. }, {
  16259. key: 'basicGet',
  16260. value: function basicGet(featureID) {
  16261. switch (featureID) {
  16262. case 231:
  16263. return this.getValueRef();
  16264. case 37:
  16265. return this.getKeyRef();
  16266. default:
  16267. throw new Error("The feature " + featureID + " is not valid.");
  16268. }
  16269. }
  16270. }], [{
  16271. key: 'fromJSON',
  16272. value: function fromJSON(json, factory) {
  16273. var result = factory.createParameterMapQueryItemMap();
  16274. var featureList = result.getFeatureList(factory);
  16275. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  16276. return result;
  16277. }
  16278. }]);
  16279. return _class4;
  16280. }(_MoserObject4.default);
  16281. /***/ },
  16282. /* 50 */
  16283. /***/ function(module, exports, __webpack_require__) {
  16284. 'use strict';
  16285. Object.defineProperty(exports, "__esModule", {
  16286. value: true
  16287. });
  16288. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  16289. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  16290. var _ObjectType3 = __webpack_require__(26);
  16291. var _ObjectType4 = _interopRequireDefault(_ObjectType3);
  16292. var _MoserObject = __webpack_require__(6);
  16293. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  16294. var _ReferenceResolver = __webpack_require__(40);
  16295. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  16296. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  16297. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  16298. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  16299. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  16300. ** IBM Confidential
  16301. **
  16302. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  16303. **
  16304. ** (C) Copyright IBM Corp. 2021
  16305. **
  16306. ** The source code for this program is not published or otherwise divested of its trade secrets,
  16307. ** irrespective of what has been deposited with the U.S. Copyright Office.
  16308. ************************************************************************/
  16309. // GENERATED
  16310. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  16311. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // getModuleObject, fromJSONHelper
  16312. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (runtime) // resolveSegment
  16313. /**
  16314. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="segment" maxOccurs="unbounded"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  16315. */
  16316. var DrillGroup = function (_ObjectType) {
  16317. _inherits(DrillGroup, _ObjectType);
  16318. function DrillGroup() {
  16319. var _ref;
  16320. var _temp, _this, _ret;
  16321. _classCallCheck(this, DrillGroup);
  16322. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  16323. args[_key] = arguments[_key];
  16324. }
  16325. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DrillGroup.__proto__ || Object.getPrototypeOf(DrillGroup)).call.apply(_ref, [this].concat(args))), _this), _this.segment = null, _temp), _possibleConstructorReturn(_this, _ret);
  16326. }
  16327. _createClass(DrillGroup, [{
  16328. key: 'getSegment',
  16329. /**
  16330. * Gets the value of the segment property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the segment property. <p> For example, to add a new item, do as follows: <pre> getSegment().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link DrillGroup.Segment}
  16331. */
  16332. value: function getSegment() {
  16333. if (!this.segment) {
  16334. this.segment = [];
  16335. }
  16336. return this.segment;
  16337. }
  16338. /**
  16339. * Gets the value of the <code>segment</code> property without initializing the property to an empty list if it is unset.
  16340. * @return {Array} the list of <code>Segment</code> elements, or <code>null</code> if not set
  16341. */
  16342. }, {
  16343. key: 'basicGetSegment',
  16344. value: function basicGetSegment() {
  16345. return this.segment;
  16346. }
  16347. /**
  16348. * Creates a new instance of <code>DrillGroup</code> object from JSON data.
  16349. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  16350. * @param {Object} json JSON data to be used to create the <code> DrillGroup</code> object from.
  16351. * @return {DrillGroup} an object of type <code>DrillGroup</code>
  16352. */
  16353. }, {
  16354. key: 'addSegmentAt',
  16355. /**
  16356. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  16357. */
  16358. value: function addSegmentAt(position, item) {
  16359. this._addAtAndNotify(this.getSegment(), position, item, 203, true, true);
  16360. }
  16361. /**
  16362. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  16363. */
  16364. }, {
  16365. key: 'addSegment',
  16366. value: function addSegment(item) {
  16367. this.addSegmentAt(this.getSegment().length, item);
  16368. }
  16369. /**
  16370. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  16371. */
  16372. }, {
  16373. key: 'removeSegmentAt',
  16374. value: function removeSegmentAt(position) {
  16375. this._removeAtAndNotify(this.getSegment(), position, 203, true);
  16376. }
  16377. /**
  16378. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  16379. */
  16380. }, {
  16381. key: 'removeSegment',
  16382. value: function removeSegment(item) {
  16383. var i = this.getSegment().indexOf(item);
  16384. if (i >= 0) {
  16385. this.removeSegmentAt(i);
  16386. }
  16387. }
  16388. /**
  16389. * Retrieves the type of this object
  16390. * @return {String} the object type in a <code>String</code>
  16391. */
  16392. }, {
  16393. key: 'getObjectType',
  16394. value: function getObjectType() {
  16395. return "DrillGroup";
  16396. }
  16397. /**
  16398. * Get a list of FeatureObjects
  16399. * @return {Array} A list of FeatureObjects
  16400. */
  16401. }, {
  16402. key: 'getFeatureList',
  16403. value: function getFeatureList(factory) {
  16404. var featureList = [];
  16405. var clazz;
  16406. if (factory) {
  16407. clazz = factory.createDrillGroupSegment().getClass();
  16408. }
  16409. featureList.push(this.createFeature(true, false, true, 203, "segment", clazz));
  16410. Array.prototype.push.apply(featureList, _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'getFeatureList', this).call(this, factory));
  16411. return featureList;
  16412. }
  16413. /**
  16414. * Set the value of a specific feature.
  16415. * @param {BaseMoserObject} value the value to set
  16416. * @param {int} featureID the feature id of the attribute to be set
  16417. */
  16418. }, {
  16419. key: 'set',
  16420. value: function set(featureID, value) {
  16421. switch (featureID) {
  16422. default:
  16423. _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'set', this).call(this, featureID, value);
  16424. }
  16425. }
  16426. /**
  16427. * Set the value of a specific feature.
  16428. * @param {BaseMoserObject} value the value to set the value to set
  16429. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  16430. */
  16431. }, {
  16432. key: '_setList',
  16433. value: function _setList(featureID, value) {
  16434. switch (featureID) {
  16435. case 203:
  16436. this.segment = value;
  16437. break;
  16438. default:
  16439. _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), '_setList', this).call(this, featureID, value);
  16440. }
  16441. }
  16442. /**
  16443. * Get the value of a specific feature.
  16444. * @param {int} featureID the feature id of the attribute to get
  16445. */
  16446. }, {
  16447. key: 'get',
  16448. value: function get(featureID) {
  16449. switch (featureID) {
  16450. case 203:
  16451. return this.getSegment();
  16452. default:
  16453. return _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'get', this).call(this, featureID);
  16454. }
  16455. }
  16456. /**
  16457. * Get the value of a specific feature.
  16458. * @param {int} featureID the feature id of the attribute to get
  16459. */
  16460. }, {
  16461. key: 'basicGet',
  16462. value: function basicGet(featureID) {
  16463. switch (featureID) {
  16464. case 203:
  16465. return this.basicGetSegment();
  16466. default:
  16467. return _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'basicGet', this).call(this, featureID);
  16468. }
  16469. }
  16470. /**
  16471. * Add the value of a specific feature at a specific position
  16472. * @param {int} position the array position of the item to be added
  16473. * @param {BaseMoserObject} value the value to add
  16474. * @param {int} featureID the feature id of the attribute to be added
  16475. */
  16476. }, {
  16477. key: 'addAt',
  16478. value: function addAt(featureID, position, value) {
  16479. switch (featureID) {
  16480. case 203:
  16481. this.addSegmentAt(position, value);
  16482. break;
  16483. default:
  16484. _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'addAt', this).call(this, featureID, position, value);
  16485. }
  16486. }
  16487. /**
  16488. * Add the value to the end of a specific collection feature
  16489. * @param {BaseMoserObject} value the value to add
  16490. * @param {int} featureID the feature id of the attribute to be added
  16491. */
  16492. }, {
  16493. key: 'add',
  16494. value: function add(featureID, value) {
  16495. switch (featureID) {
  16496. case 203:
  16497. this.addSegment(value);
  16498. break;
  16499. default:
  16500. _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'add', this).call(this, featureID, value);
  16501. }
  16502. }
  16503. /**
  16504. * Remove the value of a specific feature by index.
  16505. * @param {int} position the array position of the item to be removed
  16506. * @param {int} featureID the feature id of the attribute to be removed
  16507. */
  16508. }, {
  16509. key: 'removeAt',
  16510. value: function removeAt(featureID, position) {
  16511. switch (featureID) {
  16512. case 203:
  16513. this.removeSegmentAt(position);
  16514. break;
  16515. default:
  16516. _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'removeAt', this).call(this, featureID, position);
  16517. }
  16518. }
  16519. /**
  16520. * Remove the value from specific feature.
  16521. * @param {BaseMoserObject} item the item to be removed
  16522. * @param {int} featureID the feature id of the attribute to be removed
  16523. */
  16524. }, {
  16525. key: 'remove',
  16526. value: function remove(featureID, item) {
  16527. switch (featureID) {
  16528. case 203:
  16529. this.removeSegment(item);
  16530. break;
  16531. default:
  16532. _get(DrillGroup.prototype.__proto__ || Object.getPrototypeOf(DrillGroup.prototype), 'remove', this).call(this, featureID, item);
  16533. }
  16534. }
  16535. }], [{
  16536. key: 'fromJSON',
  16537. value: function fromJSON(json, factory) {
  16538. var result = factory.createDrillGroup();
  16539. var featureList = result.getFeatureList(factory);
  16540. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  16541. return result;
  16542. }
  16543. }]);
  16544. return DrillGroup;
  16545. }(_ObjectType4.default);
  16546. /**
  16547. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  16548. */
  16549. exports.default = DrillGroup;
  16550. DrillGroup.Segment = function (_ObjectType2) {
  16551. _inherits(_class2, _ObjectType2);
  16552. function _class2() {
  16553. var _ref2;
  16554. var _temp2, _this2, _ret2;
  16555. _classCallCheck(this, _class2);
  16556. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  16557. args[_key2] = arguments[_key2];
  16558. }
  16559. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.ref = null, _this2._referencedObject = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  16560. }
  16561. _createClass(_class2, [{
  16562. key: 'getRef',
  16563. /**
  16564. * Gets the value of the ref property.
  16565. * @return {String} possible object is {@link String}
  16566. */
  16567. value: function getRef() {
  16568. return this.ref;
  16569. }
  16570. /**
  16571. * Sets the value of the ref property.
  16572. * @param {String} value allowed object is {@link String}
  16573. */
  16574. }, {
  16575. key: 'setRef',
  16576. value: function setRef(value) {
  16577. var oldValue = this.ref;
  16578. this.ref = value;
  16579. this._setAndNotify(36, oldValue, value, false, true);
  16580. this._referencedObject = null;
  16581. }
  16582. /**
  16583. * Creates a new instance of <code>Segment</code> object from JSON data.
  16584. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  16585. * @param {Object} json JSON data to be used to create the <code> Segment</code> object from.
  16586. * @return {Segment} an object of type <code>Segment</code>
  16587. */
  16588. }, {
  16589. key: 'getObjectType',
  16590. /**
  16591. * Retrieves the type of this object
  16592. * @return {String} the object type in a <code>String</code>
  16593. */
  16594. value: function getObjectType() {
  16595. return "Segment";
  16596. }
  16597. /**
  16598. * Get a list of FeatureObjects
  16599. * @return {Array} A list of FeatureObjects
  16600. */
  16601. }, {
  16602. key: 'getFeatureList',
  16603. value: function getFeatureList(factory) {
  16604. var featureList = [];
  16605. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  16606. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  16607. return featureList;
  16608. }
  16609. /**
  16610. * Set the value of a specific feature.
  16611. * @param {BaseMoserObject} value the value to set
  16612. * @param {int} featureID the feature id of the attribute to be set
  16613. */
  16614. }, {
  16615. key: 'set',
  16616. value: function set(featureID, value) {
  16617. switch (featureID) {
  16618. case 36:
  16619. this.setRef(value);
  16620. break;
  16621. default:
  16622. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'set', this).call(this, featureID, value);
  16623. }
  16624. }
  16625. /**
  16626. * Get the value of a specific feature.
  16627. * @param {int} featureID the feature id of the attribute to get
  16628. */
  16629. }, {
  16630. key: 'get',
  16631. value: function get(featureID) {
  16632. switch (featureID) {
  16633. case 36:
  16634. return this.getRef();
  16635. default:
  16636. return _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'get', this).call(this, featureID);
  16637. }
  16638. }
  16639. /**
  16640. * Get the value of a specific feature.
  16641. * @param {int} featureID the feature id of the attribute to get
  16642. */
  16643. }, {
  16644. key: 'basicGet',
  16645. value: function basicGet(featureID) {
  16646. switch (featureID) {
  16647. case 36:
  16648. return this.getRef();
  16649. default:
  16650. return _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'basicGet', this).call(this, featureID);
  16651. }
  16652. }
  16653. /**
  16654. * Set the resolved object based on reference.
  16655. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  16656. */
  16657. }, {
  16658. key: 'setReferencedObject',
  16659. value: function setReferencedObject(referencedObject) {
  16660. this._referencedObject = referencedObject;
  16661. }
  16662. /**
  16663. * Get the resolved object based on reference.
  16664. * @return {MoserObject} the referenced <code>MoserObject</code>
  16665. */
  16666. }, {
  16667. key: 'getReferencedObject',
  16668. value: function getReferencedObject() {
  16669. if (!this._referencedObject) {
  16670. _ReferenceResolver2.default.resolveSegment(this, _MoserObject2.default.getModuleObject(this));
  16671. }
  16672. return this._referencedObject;
  16673. }
  16674. }, {
  16675. key: 'clone',
  16676. value: function clone() {
  16677. var cloned = _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'clone', this).call(this);
  16678. cloned.setReferencedObject(this._referencedObject);
  16679. return cloned;
  16680. }
  16681. }], [{
  16682. key: 'fromJSON',
  16683. value: function fromJSON(json, factory) {
  16684. var result = factory.createDrillGroupSegment();
  16685. var featureList = result.getFeatureList(factory);
  16686. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  16687. return result;
  16688. }
  16689. }]);
  16690. return _class2;
  16691. }(_ObjectType4.default);
  16692. /***/ },
  16693. /* 51 */
  16694. /***/ function(module, exports, __webpack_require__) {
  16695. 'use strict';
  16696. Object.defineProperty(exports, "__esModule", {
  16697. value: true
  16698. });
  16699. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  16700. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  16701. var _MoserObject3 = __webpack_require__(6);
  16702. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  16703. var _SortOrder = __webpack_require__(52);
  16704. var _SortOrder2 = _interopRequireDefault(_SortOrder);
  16705. var _SortOrderNullPlacement = __webpack_require__(53);
  16706. var _SortOrderNullPlacement2 = _interopRequireDefault(_SortOrderNullPlacement);
  16707. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  16708. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  16709. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  16710. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  16711. ** IBM Confidential
  16712. **
  16713. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  16714. **
  16715. ** (C) Copyright IBM Corp. 2020
  16716. **
  16717. ** The source code for this program is not published or otherwise divested of its trade secrets,
  16718. ** irrespective of what has been deposited with the U.S. Copyright Office.
  16719. ************************************************************************/
  16720. // GENERATED
  16721. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  16722. //@import com/ibm/bi/platform/moser/common/generated/metadata/SortOrder (runtime) // new
  16723. //@import com/ibm/bi/platform/moser/common/generated/metadata/SortOrderNullPlacement (runtime) // new
  16724. /**
  16725. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="useExpression" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="displayExpression" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="sortExpression" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="direction" type="{}sortOrder" minOccurs="0"/&gt; &lt;element name="nullPlacement" type="{}sortOrderNullPlacement" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  16726. */
  16727. var QueryValueSelector = function (_MoserObject) {
  16728. _inherits(QueryValueSelector, _MoserObject);
  16729. function QueryValueSelector() {
  16730. var _ref;
  16731. var _temp, _this, _ret;
  16732. _classCallCheck(this, QueryValueSelector);
  16733. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  16734. args[_key] = arguments[_key];
  16735. }
  16736. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = QueryValueSelector.__proto__ || Object.getPrototypeOf(QueryValueSelector)).call.apply(_ref, [this].concat(args))), _this), _this.useExpression = null, _this.displayExpression = null, _this.sortExpression = null, _temp), _possibleConstructorReturn(_this, _ret);
  16737. }
  16738. _createClass(QueryValueSelector, [{
  16739. key: 'getUseExpression',
  16740. /**
  16741. * Gets the value of the useExpression property.
  16742. * @return {String} possible object is {@link String}
  16743. */
  16744. value: function getUseExpression() {
  16745. return this.useExpression;
  16746. }
  16747. /**
  16748. * Sets the value of the useExpression property.
  16749. * @param {String} value allowed object is {@link String}
  16750. */
  16751. }, {
  16752. key: 'setUseExpression',
  16753. value: function setUseExpression(value) {
  16754. var oldValue = this.useExpression;
  16755. this.useExpression = value;
  16756. this._setAndNotify(30, oldValue, value, false, false);
  16757. }
  16758. /**
  16759. * Gets the value of the displayExpression property.
  16760. * @return {String} possible object is {@link String}
  16761. */
  16762. }, {
  16763. key: 'getDisplayExpression',
  16764. value: function getDisplayExpression() {
  16765. return this.displayExpression;
  16766. }
  16767. /**
  16768. * Sets the value of the displayExpression property.
  16769. * @param {String} value allowed object is {@link String}
  16770. */
  16771. }, {
  16772. key: 'setDisplayExpression',
  16773. value: function setDisplayExpression(value) {
  16774. var oldValue = this.displayExpression;
  16775. this.displayExpression = value;
  16776. this._setAndNotify(31, oldValue, value, false, false);
  16777. }
  16778. /**
  16779. * Gets the value of the sortExpression property.
  16780. * @return {SortExpression} possible object is {@link QueryValueSelector.SortExpression}
  16781. */
  16782. }, {
  16783. key: 'getSortExpression',
  16784. value: function getSortExpression() {
  16785. return this.sortExpression;
  16786. }
  16787. /**
  16788. * Sets the value of the sortExpression property.
  16789. * @param {SortExpression} value allowed object is {@link QueryValueSelector.SortExpression}
  16790. */
  16791. }, {
  16792. key: 'setSortExpression',
  16793. value: function setSortExpression(value) {
  16794. var oldValue = this.sortExpression;
  16795. this.sortExpression = value;
  16796. this._setAndNotify(32, oldValue, value, true, false);
  16797. }
  16798. /**
  16799. * Creates a new instance of <code>QueryValueSelector</code> object from JSON data.
  16800. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  16801. * @param {Object} json JSON data to be used to create the <code> QueryValueSelector</code> object from.
  16802. * @return {QueryValueSelector} an object of type <code>QueryValueSelector</code>
  16803. */
  16804. }, {
  16805. key: 'getObjectType',
  16806. /**
  16807. * Retrieves the type of this object
  16808. * @return {String} the object type in a <code>String</code>
  16809. */
  16810. value: function getObjectType() {
  16811. return "QueryValueSelector";
  16812. }
  16813. /**
  16814. * Get a list of FeatureObjects
  16815. * @return {Array} A list of FeatureObjects
  16816. */
  16817. }, {
  16818. key: 'getFeatureList',
  16819. value: function getFeatureList(factory) {
  16820. var featureList = [];
  16821. featureList.push(this.createFeature(false, false, false, 30, "useExpression", null));
  16822. featureList.push(this.createFeature(false, false, false, 31, "displayExpression", null));
  16823. var clazz;
  16824. if (factory) {
  16825. clazz = factory.createQueryValueSelectorSortExpression().getClass();
  16826. }
  16827. featureList.push(this.createFeature(false, false, true, 32, "sortExpression", clazz));
  16828. Array.prototype.push.apply(featureList, _get(QueryValueSelector.prototype.__proto__ || Object.getPrototypeOf(QueryValueSelector.prototype), 'getFeatureList', this).call(this, factory));
  16829. return featureList;
  16830. }
  16831. /**
  16832. * Set the value of a specific feature.
  16833. * @param {BaseMoserObject} value the value to set
  16834. * @param {int} featureID the feature id of the attribute to be set
  16835. */
  16836. }, {
  16837. key: 'set',
  16838. value: function set(featureID, value) {
  16839. switch (featureID) {
  16840. case 30:
  16841. this.setUseExpression(value);
  16842. break;
  16843. case 31:
  16844. this.setDisplayExpression(value);
  16845. break;
  16846. case 32:
  16847. this.setSortExpression(value);
  16848. break;
  16849. default:
  16850. throw new Error("The feature " + featureID + " is not valid.");
  16851. }
  16852. }
  16853. /**
  16854. * Get the value of a specific feature.
  16855. * @param {int} featureID the feature id of the attribute to get
  16856. */
  16857. }, {
  16858. key: 'get',
  16859. value: function get(featureID) {
  16860. switch (featureID) {
  16861. case 30:
  16862. return this.getUseExpression();
  16863. case 31:
  16864. return this.getDisplayExpression();
  16865. case 32:
  16866. return this.getSortExpression();
  16867. default:
  16868. throw new Error("The feature " + featureID + " is not valid.");
  16869. }
  16870. }
  16871. /**
  16872. * Get the value of a specific feature.
  16873. * @param {int} featureID the feature id of the attribute to get
  16874. */
  16875. }, {
  16876. key: 'basicGet',
  16877. value: function basicGet(featureID) {
  16878. switch (featureID) {
  16879. case 30:
  16880. return this.getUseExpression();
  16881. case 31:
  16882. return this.getDisplayExpression();
  16883. case 32:
  16884. return this.getSortExpression();
  16885. default:
  16886. throw new Error("The feature " + featureID + " is not valid.");
  16887. }
  16888. }
  16889. }], [{
  16890. key: 'fromJSON',
  16891. value: function fromJSON(json, factory) {
  16892. var result = factory.createQueryValueSelector();
  16893. var featureList = result.getFeatureList(factory);
  16894. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  16895. return result;
  16896. }
  16897. }]);
  16898. return QueryValueSelector;
  16899. }(_MoserObject4.default);
  16900. /**
  16901. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="direction" type="{}sortOrder" minOccurs="0"/&gt; &lt;element name="nullPlacement" type="{}sortOrderNullPlacement" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  16902. */
  16903. exports.default = QueryValueSelector;
  16904. QueryValueSelector.SortExpression = function (_MoserObject2) {
  16905. _inherits(_class2, _MoserObject2);
  16906. function _class2() {
  16907. var _ref2;
  16908. var _temp2, _this2, _ret2;
  16909. _classCallCheck(this, _class2);
  16910. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  16911. args[_key2] = arguments[_key2];
  16912. }
  16913. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.direction = null, _this2.nullPlacement = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  16914. }
  16915. _createClass(_class2, [{
  16916. key: 'getDirection',
  16917. /**
  16918. * Gets the value of the direction property.
  16919. * @return {SortOrder} possible object is {@link SortOrder}
  16920. */
  16921. value: function getDirection() {
  16922. return this.direction;
  16923. }
  16924. /**
  16925. * Sets the value of the direction property.
  16926. * @param {SortOrder} value allowed object is {@link SortOrder}
  16927. */
  16928. }, {
  16929. key: 'setDirection',
  16930. value: function setDirection(value) {
  16931. var oldValue = this.direction;
  16932. this.direction = value;
  16933. this._setAndNotify(119, oldValue, value, false, false);
  16934. }
  16935. /**
  16936. * Gets the value of the nullPlacement property.
  16937. * @return {SortOrderNullPlacement} possible object is {@link SortOrderNullPlacement}
  16938. */
  16939. }, {
  16940. key: 'getNullPlacement',
  16941. value: function getNullPlacement() {
  16942. return this.nullPlacement;
  16943. }
  16944. /**
  16945. * Sets the value of the nullPlacement property.
  16946. * @param {SortOrderNullPlacement} value allowed object is {@link SortOrderNullPlacement}
  16947. */
  16948. }, {
  16949. key: 'setNullPlacement',
  16950. value: function setNullPlacement(value) {
  16951. var oldValue = this.nullPlacement;
  16952. this.nullPlacement = value;
  16953. this._setAndNotify(40, oldValue, value, false, false);
  16954. }
  16955. /**
  16956. * Creates a new instance of <code>SortExpression</code> object from JSON data.
  16957. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  16958. * @param {Object} json JSON data to be used to create the <code> SortExpression</code> object from.
  16959. * @return {SortExpression} an object of type <code>SortExpression</code>
  16960. */
  16961. }, {
  16962. key: 'getObjectType',
  16963. /**
  16964. * Retrieves the type of this object
  16965. * @return {String} the object type in a <code>String</code>
  16966. */
  16967. value: function getObjectType() {
  16968. return "SortExpression";
  16969. }
  16970. /**
  16971. * Get a list of FeatureObjects
  16972. * @return {Array} A list of FeatureObjects
  16973. */
  16974. }, {
  16975. key: 'getFeatureList',
  16976. value: function getFeatureList(factory) {
  16977. var featureList = [];
  16978. featureList.push(this.createFeature(false, true, false, 119, "direction", _SortOrder2.default));
  16979. featureList.push(this.createFeature(false, true, false, 40, "nullPlacement", _SortOrderNullPlacement2.default));
  16980. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  16981. return featureList;
  16982. }
  16983. /**
  16984. * Set the value of a specific feature.
  16985. * @param {BaseMoserObject} value the value to set
  16986. * @param {int} featureID the feature id of the attribute to be set
  16987. */
  16988. }, {
  16989. key: 'set',
  16990. value: function set(featureID, value) {
  16991. switch (featureID) {
  16992. case 40:
  16993. this.setNullPlacement(value);
  16994. break;
  16995. case 119:
  16996. this.setDirection(value);
  16997. break;
  16998. default:
  16999. throw new Error("The feature " + featureID + " is not valid.");
  17000. }
  17001. }
  17002. /**
  17003. * Get the value of a specific feature.
  17004. * @param {int} featureID the feature id of the attribute to get
  17005. */
  17006. }, {
  17007. key: 'get',
  17008. value: function get(featureID) {
  17009. switch (featureID) {
  17010. case 40:
  17011. return this.getNullPlacement();
  17012. case 119:
  17013. return this.getDirection();
  17014. default:
  17015. throw new Error("The feature " + featureID + " is not valid.");
  17016. }
  17017. }
  17018. /**
  17019. * Get the value of a specific feature.
  17020. * @param {int} featureID the feature id of the attribute to get
  17021. */
  17022. }, {
  17023. key: 'basicGet',
  17024. value: function basicGet(featureID) {
  17025. switch (featureID) {
  17026. case 40:
  17027. return this.getNullPlacement();
  17028. case 119:
  17029. return this.getDirection();
  17030. default:
  17031. throw new Error("The feature " + featureID + " is not valid.");
  17032. }
  17033. }
  17034. }], [{
  17035. key: 'fromJSON',
  17036. value: function fromJSON(json, factory) {
  17037. var result = factory.createQueryValueSelectorSortExpression();
  17038. var featureList = result.getFeatureList(factory);
  17039. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  17040. return result;
  17041. }
  17042. }]);
  17043. return _class2;
  17044. }(_MoserObject4.default);
  17045. /***/ },
  17046. /* 52 */
  17047. /***/ function(module, exports, __webpack_require__) {
  17048. "use strict";
  17049. Object.defineProperty(exports, "__esModule", {
  17050. value: true
  17051. });
  17052. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  17053. var _Enum2 = __webpack_require__(12);
  17054. var _Enum3 = _interopRequireDefault(_Enum2);
  17055. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17056. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  17057. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  17058. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  17059. ** IBM Confidential
  17060. **
  17061. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  17062. **
  17063. ** (C) Copyright IBM Corp. 2020
  17064. **
  17065. ** The source code for this program is not published or otherwise divested of its trade secrets,
  17066. ** irrespective of what has been deposited with the U.S. Copyright Office.
  17067. ************************************************************************/
  17068. // GENERATED
  17069. //@import Enum (loadtime) // superclass
  17070. /**
  17071. * <p>Java class for sortOrder. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="sortOrder"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="ascending"/&gt; &lt;enumeration value="descending"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  17072. */
  17073. var SortOrder = function (_Enum) {
  17074. _inherits(SortOrder, _Enum);
  17075. function SortOrder(v) {
  17076. _classCallCheck(this, SortOrder);
  17077. var _this = _possibleConstructorReturn(this, (SortOrder.__proto__ || Object.getPrototypeOf(SortOrder)).call(this, v));
  17078. _this.enumValue = null;
  17079. _this.enumValue = v;
  17080. return _this;
  17081. }
  17082. _createClass(SortOrder, [{
  17083. key: "value",
  17084. value: function value() {
  17085. return this.enumValue;
  17086. }
  17087. }, {
  17088. key: "getResourceId",
  17089. value: function getResourceId() {
  17090. return "SortOrder" + "_" + this.value();
  17091. }
  17092. }], [{
  17093. key: "fromValue",
  17094. value: function fromValue(v) {
  17095. for (var i = 0; i < SortOrder.values().length; ++i) {
  17096. if (SortOrder.values()[i].enumValue == v) {
  17097. return SortOrder.values()[i];
  17098. }
  17099. }
  17100. throw new Error(v);
  17101. }
  17102. }]);
  17103. return SortOrder;
  17104. }(_Enum3.default);
  17105. SortOrder.ASCENDING = SortOrder.newLiteral("ascending");
  17106. SortOrder.DESCENDING = SortOrder.newLiteral("descending");
  17107. exports.default = SortOrder;
  17108. /***/ },
  17109. /* 53 */
  17110. /***/ function(module, exports, __webpack_require__) {
  17111. "use strict";
  17112. Object.defineProperty(exports, "__esModule", {
  17113. value: true
  17114. });
  17115. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  17116. var _Enum2 = __webpack_require__(12);
  17117. var _Enum3 = _interopRequireDefault(_Enum2);
  17118. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17119. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  17120. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  17121. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  17122. ** IBM Confidential
  17123. **
  17124. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  17125. **
  17126. ** (C) Copyright IBM Corp. 2020
  17127. **
  17128. ** The source code for this program is not published or otherwise divested of its trade secrets,
  17129. ** irrespective of what has been deposited with the U.S. Copyright Office.
  17130. ************************************************************************/
  17131. // GENERATED
  17132. //@import Enum (loadtime) // superclass
  17133. /**
  17134. * <p>Java class for sortOrderNullPlacement. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="sortOrderNullPlacement"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="first"/&gt; &lt;enumeration value="last"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  17135. */
  17136. var SortOrderNullPlacement = function (_Enum) {
  17137. _inherits(SortOrderNullPlacement, _Enum);
  17138. function SortOrderNullPlacement(v) {
  17139. _classCallCheck(this, SortOrderNullPlacement);
  17140. var _this = _possibleConstructorReturn(this, (SortOrderNullPlacement.__proto__ || Object.getPrototypeOf(SortOrderNullPlacement)).call(this, v));
  17141. _this.enumValue = null;
  17142. _this.enumValue = v;
  17143. return _this;
  17144. }
  17145. _createClass(SortOrderNullPlacement, [{
  17146. key: "value",
  17147. value: function value() {
  17148. return this.enumValue;
  17149. }
  17150. }, {
  17151. key: "getResourceId",
  17152. value: function getResourceId() {
  17153. return "SortOrderNullPlacement" + "_" + this.value();
  17154. }
  17155. }], [{
  17156. key: "fromValue",
  17157. value: function fromValue(v) {
  17158. for (var i = 0; i < SortOrderNullPlacement.values().length; ++i) {
  17159. if (SortOrderNullPlacement.values()[i].enumValue == v) {
  17160. return SortOrderNullPlacement.values()[i];
  17161. }
  17162. }
  17163. throw new Error(v);
  17164. }
  17165. }]);
  17166. return SortOrderNullPlacement;
  17167. }(_Enum3.default);
  17168. SortOrderNullPlacement.FIRST = SortOrderNullPlacement.newLiteral("first");
  17169. SortOrderNullPlacement.LAST = SortOrderNullPlacement.newLiteral("last");
  17170. exports.default = SortOrderNullPlacement;
  17171. /***/ },
  17172. /* 54 */
  17173. /***/ function(module, exports, __webpack_require__) {
  17174. 'use strict';
  17175. Object.defineProperty(exports, "__esModule", {
  17176. value: true
  17177. });
  17178. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  17179. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  17180. var _ObjectType2 = __webpack_require__(26);
  17181. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  17182. var _MoserObject3 = __webpack_require__(6);
  17183. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  17184. var _UseSpecType = __webpack_require__(55);
  17185. var _UseSpecType2 = _interopRequireDefault(_UseSpecType);
  17186. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17187. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  17188. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  17189. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  17190. ** IBM Confidential
  17191. **
  17192. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  17193. **
  17194. ** (C) Copyright IBM Corp. 2021
  17195. **
  17196. ** The source code for this program is not published or otherwise divested of its trade secrets,
  17197. ** irrespective of what has been deposited with the U.S. Copyright Office.
  17198. ************************************************************************/
  17199. // GENERATED
  17200. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  17201. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  17202. //@import com/ibm/bi/platform/moser/common/generated/metadata/UseSpecType (runtime) // new
  17203. /**
  17204. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="container" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;sequence&gt; &lt;element name="use" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;sequence&gt; &lt;element name="useSpec" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="identifier" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="type" type="{}useSpecType" minOccurs="0"/&gt; &lt;element name="storeID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="searchPath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="imports" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="ancestors" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="defaultName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="storeID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="dataCacheExpiry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="property" type="{}propertyType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;element name="expressionLocale" type="{http://www.w3.org/2001/XMLSchema}language" minOccurs="0"/&gt; &lt;element name="fmModel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;choice&gt; &lt;element ref="{}dataSource" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}querySubject" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}filter" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}calculation" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}relationship" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}parameterMap" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="metadataTreeView" type="{}folderType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="metadataTreeViewFocus" type="{}focus" minOccurs="0"/&gt; &lt;element name="textResource" type="{}textResource" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}drillGroup" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}namedSet" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}parameterValueSet" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}prompt" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/choice&gt; &lt;element name="dataRetrievalMode" minOccurs="0"&gt; &lt;simpleType&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="liveConnection"/&gt; &lt;enumeration value="snapShot"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; &lt;/element&gt; &lt;element name="refActiveParameterValueSet" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  17205. */
  17206. var Module = function (_ObjectType) {
  17207. _inherits(Module, _ObjectType);
  17208. function Module() {
  17209. var _ref;
  17210. var _temp, _this, _ret;
  17211. _classCallCheck(this, Module);
  17212. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  17213. args[_key] = arguments[_key];
  17214. }
  17215. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Module.__proto__ || Object.getPrototypeOf(Module)).call.apply(_ref, [this].concat(args))), _this), _this.version = null, _this.container = null, _this.use = null, _this.useSpec = null, _this.expressionLocale = null, _this.fmModel = null, _this.dataSource = null, _this.querySubject = null, _this.filter = null, _this.calculation = null, _this.relationship = null, _this.parameterMap = null, _this.metadataTreeView = null, _this.metadataTreeViewFocus = null, _this.textResource = null, _this.drillGroup = null, _this.namedSet = null, _this.parameterValueSet = null, _this.prompt = null, _this.dataRetrievalMode = null, _this.refActiveParameterValueSet = null, _this._overrideMode = false, _this._originalVersion = 0.0, _temp), _possibleConstructorReturn(_this, _ret);
  17216. }
  17217. //_flattenedObjectTypeList = null;
  17218. _createClass(Module, [{
  17219. key: 'getVersion',
  17220. /**
  17221. * Gets the value of the version property.
  17222. * @return {String} possible object is {@link String}
  17223. */
  17224. value: function getVersion() {
  17225. return this.version;
  17226. }
  17227. /**
  17228. * Sets the value of the version property.
  17229. * @param {String} value allowed object is {@link String}
  17230. */
  17231. }, {
  17232. key: 'setVersion',
  17233. value: function setVersion(value) {
  17234. var oldValue = this.version;
  17235. this.version = value;
  17236. this._setAndNotify(139, oldValue, value, false, true);
  17237. }
  17238. /**
  17239. * Gets the value of the container property.
  17240. * @return {String} possible object is {@link String}
  17241. */
  17242. }, {
  17243. key: 'getContainer',
  17244. value: function getContainer() {
  17245. return this.container;
  17246. }
  17247. /**
  17248. * Sets the value of the container property.
  17249. * @param {String} value allowed object is {@link String}
  17250. */
  17251. }, {
  17252. key: 'setContainer',
  17253. value: function setContainer(value) {
  17254. var oldValue = this.container;
  17255. this.container = value;
  17256. this._setAndNotify(129, oldValue, value, false, true);
  17257. }
  17258. /**
  17259. * Gets the value of the use property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the use property. <p> For example, to add a new item, do as follows: <pre> getUse().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  17260. */
  17261. }, {
  17262. key: 'getUse',
  17263. value: function getUse() {
  17264. if (!this.use) {
  17265. this.use = [];
  17266. }
  17267. return this.use;
  17268. }
  17269. /**
  17270. * Gets the value of the useSpec property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the useSpec property. <p> For example, to add a new item, do as follows: <pre> getUseSpec().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Module.UseSpec}
  17271. */
  17272. }, {
  17273. key: 'getUseSpec',
  17274. value: function getUseSpec() {
  17275. if (!this.useSpec) {
  17276. this.useSpec = [];
  17277. }
  17278. return this.useSpec;
  17279. }
  17280. /**
  17281. * Gets the value of the expressionLocale property.
  17282. * @return {String} possible object is {@link String}
  17283. */
  17284. }, {
  17285. key: 'getExpressionLocale',
  17286. value: function getExpressionLocale() {
  17287. return this.expressionLocale;
  17288. }
  17289. /**
  17290. * Sets the value of the expressionLocale property.
  17291. * @param {String} value allowed object is {@link String}
  17292. */
  17293. }, {
  17294. key: 'setExpressionLocale',
  17295. value: function setExpressionLocale(value) {
  17296. var oldValue = this.expressionLocale;
  17297. this.expressionLocale = value;
  17298. this._setAndNotify(137, oldValue, value, false, true);
  17299. }
  17300. /**
  17301. * Gets the value of the fmModel property.
  17302. * @return {String} possible object is {@link String}
  17303. */
  17304. }, {
  17305. key: 'getFmModel',
  17306. value: function getFmModel() {
  17307. return this.fmModel;
  17308. }
  17309. /**
  17310. * Sets the value of the fmModel property.
  17311. * @param {String} value allowed object is {@link String}
  17312. */
  17313. }, {
  17314. key: 'setFmModel',
  17315. value: function setFmModel(value) {
  17316. var oldValue = this.fmModel;
  17317. this.fmModel = value;
  17318. this._setAndNotify(131, oldValue, value, false, true);
  17319. }
  17320. /**
  17321. * Gets the value of the dataSource property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the dataSource property. <p> For example, to add a new item, do as follows: <pre> getDataSource().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link DataSource}
  17322. */
  17323. }, {
  17324. key: 'getDataSource',
  17325. value: function getDataSource() {
  17326. if (!this.dataSource) {
  17327. this.dataSource = [];
  17328. }
  17329. return this.dataSource;
  17330. }
  17331. /**
  17332. * Gets the value of the querySubject property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the querySubject property. <p> For example, to add a new item, do as follows: <pre> getQuerySubject().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link QuerySubject}
  17333. */
  17334. }, {
  17335. key: 'getQuerySubject',
  17336. value: function getQuerySubject() {
  17337. if (!this.querySubject) {
  17338. this.querySubject = [];
  17339. }
  17340. return this.querySubject;
  17341. }
  17342. /**
  17343. * Gets the value of the filter property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the filter property. <p> For example, to add a new item, do as follows: <pre> getFilter().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Filter}
  17344. */
  17345. }, {
  17346. key: 'getFilter',
  17347. value: function getFilter() {
  17348. if (!this.filter) {
  17349. this.filter = [];
  17350. }
  17351. return this.filter;
  17352. }
  17353. /**
  17354. * Gets the value of the calculation property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the calculation property. <p> For example, to add a new item, do as follows: <pre> getCalculation().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Calculation}
  17355. */
  17356. }, {
  17357. key: 'getCalculation',
  17358. value: function getCalculation() {
  17359. if (!this.calculation) {
  17360. this.calculation = [];
  17361. }
  17362. return this.calculation;
  17363. }
  17364. /**
  17365. * Gets the value of the relationship property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the relationship property. <p> For example, to add a new item, do as follows: <pre> getRelationship().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Relationship}
  17366. */
  17367. }, {
  17368. key: 'getRelationship',
  17369. value: function getRelationship() {
  17370. if (!this.relationship) {
  17371. this.relationship = [];
  17372. }
  17373. return this.relationship;
  17374. }
  17375. /**
  17376. * Gets the value of the parameterMap property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the parameterMap property. <p> For example, to add a new item, do as follows: <pre> getParameterMap().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ParameterMap}
  17377. */
  17378. }, {
  17379. key: 'getParameterMap',
  17380. value: function getParameterMap() {
  17381. if (!this.parameterMap) {
  17382. this.parameterMap = [];
  17383. }
  17384. return this.parameterMap;
  17385. }
  17386. /**
  17387. * Gets the value of the metadataTreeView property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the metadataTreeView property. <p> For example, to add a new item, do as follows: <pre> getMetadataTreeView().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link FolderType}
  17388. */
  17389. }, {
  17390. key: 'getMetadataTreeView',
  17391. value: function getMetadataTreeView() {
  17392. if (!this.metadataTreeView) {
  17393. this.metadataTreeView = [];
  17394. }
  17395. return this.metadataTreeView;
  17396. }
  17397. /**
  17398. * Gets the value of the metadataTreeViewFocus property.
  17399. * @return {Focus} possible object is {@link Focus}
  17400. */
  17401. }, {
  17402. key: 'getMetadataTreeViewFocus',
  17403. value: function getMetadataTreeViewFocus() {
  17404. return this.metadataTreeViewFocus;
  17405. }
  17406. /**
  17407. * Sets the value of the metadataTreeViewFocus property.
  17408. * @param {Focus} value allowed object is {@link Focus}
  17409. */
  17410. }, {
  17411. key: 'setMetadataTreeViewFocus',
  17412. value: function setMetadataTreeViewFocus(value) {
  17413. var oldValue = this.metadataTreeViewFocus;
  17414. this.metadataTreeViewFocus = value;
  17415. this._setAndNotify(135, oldValue, value, true, true);
  17416. }
  17417. /**
  17418. * Gets the value of the textResource property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the textResource property. <p> For example, to add a new item, do as follows: <pre> getTextResource().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link TextResource}
  17419. */
  17420. }, {
  17421. key: 'getTextResource',
  17422. value: function getTextResource() {
  17423. if (!this.textResource) {
  17424. this.textResource = [];
  17425. }
  17426. return this.textResource;
  17427. }
  17428. /**
  17429. * drill Information.Gets the value of the drillGroup property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the drillGroup property. <p> For example, to add a new item, do as follows: <pre> getDrillGroup().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link DrillGroup}
  17430. */
  17431. }, {
  17432. key: 'getDrillGroup',
  17433. value: function getDrillGroup() {
  17434. if (!this.drillGroup) {
  17435. this.drillGroup = [];
  17436. }
  17437. return this.drillGroup;
  17438. }
  17439. /**
  17440. * Gets the value of the namedSet property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the namedSet property. <p> For example, to add a new item, do as follows: <pre> getNamedSet().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link NamedSet}
  17441. */
  17442. }, {
  17443. key: 'getNamedSet',
  17444. value: function getNamedSet() {
  17445. if (!this.namedSet) {
  17446. this.namedSet = [];
  17447. }
  17448. return this.namedSet;
  17449. }
  17450. /**
  17451. * Gets the value of the parameterValueSet property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the parameterValueSet property. <p> For example, to add a new item, do as follows: <pre> getParameterValueSet().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ParameterValueSet}
  17452. */
  17453. }, {
  17454. key: 'getParameterValueSet',
  17455. value: function getParameterValueSet() {
  17456. if (!this.parameterValueSet) {
  17457. this.parameterValueSet = [];
  17458. }
  17459. return this.parameterValueSet;
  17460. }
  17461. /**
  17462. * Gets the value of the prompt property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the prompt property. <p> For example, to add a new item, do as follows: <pre> getPrompt().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Prompt}
  17463. */
  17464. }, {
  17465. key: 'getPrompt',
  17466. value: function getPrompt() {
  17467. if (!this.prompt) {
  17468. this.prompt = [];
  17469. }
  17470. return this.prompt;
  17471. }
  17472. /**
  17473. * Gets the value of the dataRetrievalMode property.
  17474. * @return {String} possible object is {@link String}
  17475. */
  17476. }, {
  17477. key: 'getDataRetrievalMode',
  17478. value: function getDataRetrievalMode() {
  17479. return this.dataRetrievalMode;
  17480. }
  17481. /**
  17482. * Sets the value of the dataRetrievalMode property.
  17483. * @param {String} value allowed object is {@link String}
  17484. */
  17485. }, {
  17486. key: 'setDataRetrievalMode',
  17487. value: function setDataRetrievalMode(value) {
  17488. var oldValue = this.dataRetrievalMode;
  17489. this.dataRetrievalMode = value;
  17490. this._setAndNotify(141, oldValue, value, false, true);
  17491. }
  17492. /**
  17493. * Gets the value of the refActiveParameterValueSet property.
  17494. * @return {String} possible object is {@link String}
  17495. */
  17496. }, {
  17497. key: 'getRefActiveParameterValueSet',
  17498. value: function getRefActiveParameterValueSet() {
  17499. return this.refActiveParameterValueSet;
  17500. }
  17501. /**
  17502. * Sets the value of the refActiveParameterValueSet property.
  17503. * @param {String} value allowed object is {@link String}
  17504. */
  17505. }, {
  17506. key: 'setRefActiveParameterValueSet',
  17507. value: function setRefActiveParameterValueSet(value) {
  17508. var oldValue = this.refActiveParameterValueSet;
  17509. this.refActiveParameterValueSet = value;
  17510. this._setAndNotify(136, oldValue, value, false, true);
  17511. }
  17512. /**
  17513. * Gets the value of the <code>use</code> property without initializing the property to an empty list if it is unset.
  17514. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  17515. */
  17516. }, {
  17517. key: 'basicGetUse',
  17518. value: function basicGetUse() {
  17519. return this.use;
  17520. }
  17521. /**
  17522. * Gets the value of the <code>useSpec</code> property without initializing the property to an empty list if it is unset.
  17523. * @return {Array} the list of <code>UseSpec</code> elements, or <code>null</code> if not set
  17524. */
  17525. }, {
  17526. key: 'basicGetUseSpec',
  17527. value: function basicGetUseSpec() {
  17528. return this.useSpec;
  17529. }
  17530. /**
  17531. * Gets the value of the <code>dataSource</code> property without initializing the property to an empty list if it is unset.
  17532. * @return {Array} the list of <code>DataSource</code> elements, or <code>null</code> if not set
  17533. */
  17534. }, {
  17535. key: 'basicGetDataSource',
  17536. value: function basicGetDataSource() {
  17537. return this.dataSource;
  17538. }
  17539. /**
  17540. * Gets the value of the <code>querySubject</code> property without initializing the property to an empty list if it is unset.
  17541. * @return {Array} the list of <code>QuerySubject</code> elements, or <code>null</code> if not set
  17542. */
  17543. }, {
  17544. key: 'basicGetQuerySubject',
  17545. value: function basicGetQuerySubject() {
  17546. return this.querySubject;
  17547. }
  17548. /**
  17549. * Gets the value of the <code>filter</code> property without initializing the property to an empty list if it is unset.
  17550. * @return {Array} the list of <code>Filter</code> elements, or <code>null</code> if not set
  17551. */
  17552. }, {
  17553. key: 'basicGetFilter',
  17554. value: function basicGetFilter() {
  17555. return this.filter;
  17556. }
  17557. /**
  17558. * Gets the value of the <code>calculation</code> property without initializing the property to an empty list if it is unset.
  17559. * @return {Array} the list of <code>Calculation</code> elements, or <code>null</code> if not set
  17560. */
  17561. }, {
  17562. key: 'basicGetCalculation',
  17563. value: function basicGetCalculation() {
  17564. return this.calculation;
  17565. }
  17566. /**
  17567. * Gets the value of the <code>relationship</code> property without initializing the property to an empty list if it is unset.
  17568. * @return {Array} the list of <code>Relationship</code> elements, or <code>null</code> if not set
  17569. */
  17570. }, {
  17571. key: 'basicGetRelationship',
  17572. value: function basicGetRelationship() {
  17573. return this.relationship;
  17574. }
  17575. /**
  17576. * Gets the value of the <code>parameterMap</code> property without initializing the property to an empty list if it is unset.
  17577. * @return {Array} the list of <code>ParameterMap</code> elements, or <code>null</code> if not set
  17578. */
  17579. }, {
  17580. key: 'basicGetParameterMap',
  17581. value: function basicGetParameterMap() {
  17582. return this.parameterMap;
  17583. }
  17584. /**
  17585. * Gets the value of the <code>metadataTreeView</code> property without initializing the property to an empty list if it is unset.
  17586. * @return {Array} the list of <code>FolderType</code> elements, or <code>null</code> if not set
  17587. */
  17588. }, {
  17589. key: 'basicGetMetadataTreeView',
  17590. value: function basicGetMetadataTreeView() {
  17591. return this.metadataTreeView;
  17592. }
  17593. /**
  17594. * Gets the value of the <code>textResource</code> property without initializing the property to an empty list if it is unset.
  17595. * @return {Array} the list of <code>TextResource</code> elements, or <code>null</code> if not set
  17596. */
  17597. }, {
  17598. key: 'basicGetTextResource',
  17599. value: function basicGetTextResource() {
  17600. return this.textResource;
  17601. }
  17602. /**
  17603. * Gets the value of the <code>drillGroup</code> property without initializing the property to an empty list if it is unset.
  17604. * @return {Array} the list of <code>DrillGroup</code> elements, or <code>null</code> if not set
  17605. */
  17606. }, {
  17607. key: 'basicGetDrillGroup',
  17608. value: function basicGetDrillGroup() {
  17609. return this.drillGroup;
  17610. }
  17611. /**
  17612. * Gets the value of the <code>namedSet</code> property without initializing the property to an empty list if it is unset.
  17613. * @return {Array} the list of <code>NamedSet</code> elements, or <code>null</code> if not set
  17614. */
  17615. }, {
  17616. key: 'basicGetNamedSet',
  17617. value: function basicGetNamedSet() {
  17618. return this.namedSet;
  17619. }
  17620. /**
  17621. * Gets the value of the <code>parameterValueSet</code> property without initializing the property to an empty list if it is unset.
  17622. * @return {Array} the list of <code>ParameterValueSet</code> elements, or <code>null</code> if not set
  17623. */
  17624. }, {
  17625. key: 'basicGetParameterValueSet',
  17626. value: function basicGetParameterValueSet() {
  17627. return this.parameterValueSet;
  17628. }
  17629. /**
  17630. * Gets the value of the <code>prompt</code> property without initializing the property to an empty list if it is unset.
  17631. * @return {Array} the list of <code>Prompt</code> elements, or <code>null</code> if not set
  17632. */
  17633. }, {
  17634. key: 'basicGetPrompt',
  17635. value: function basicGetPrompt() {
  17636. return this.prompt;
  17637. }
  17638. /**
  17639. * True if the module is in override mode
  17640. */
  17641. }, {
  17642. key: 'isOverrideMode',
  17643. value: function isOverrideMode() {
  17644. return this._overrideMode;
  17645. }
  17646. /**
  17647. * Set the override mode
  17648. * @param {boolean} override true to be in override mode
  17649. */
  17650. }, {
  17651. key: 'setOverrideMode',
  17652. value: function setOverrideMode(override) {
  17653. this._overrideMode = override;
  17654. }
  17655. /**
  17656. * Return a list of flatened ObjectType objects including QuerySubject, Filters, and Calculations
  17657. * @return {Array} Return a list of flatened ObjectType
  17658. */
  17659. }, {
  17660. key: 'getFlattenedBaseObjectTypeList',
  17661. value: function getFlattenedBaseObjectTypeList() {
  17662. return this._flattenedObjectTypeList;
  17663. }
  17664. /**
  17665. * Set the faltened ObjectType list
  17666. * @param {Array} objectTypeList a list of flatened ObjectType
  17667. */
  17668. }, {
  17669. key: 'setFlattenedBaseObjectTypeList',
  17670. value: function setFlattenedBaseObjectTypeList(objectTypeList) {
  17671. this._flattenedObjectTypeList = objectTypeList;
  17672. }
  17673. /**
  17674. * get original version
  17675. */
  17676. }, {
  17677. key: 'getOriginalVersion',
  17678. value: function getOriginalVersion() {
  17679. return this._originalVersion;
  17680. }
  17681. /**
  17682. * Set the original version
  17683. * @param {float} orgVersion original version
  17684. */
  17685. }, {
  17686. key: 'setOriginalVersion',
  17687. value: function setOriginalVersion(orgVersion) {
  17688. this._originalVersion = orgVersion;
  17689. }
  17690. /**
  17691. * Creates a new instance of <code>Module</code> object from JSON data.
  17692. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  17693. * @param {Object} json JSON data to be used to create the <code> Module</code> object from.
  17694. * @return {Module} an object of type <code>Module</code>
  17695. */
  17696. }, {
  17697. key: 'addUseAt',
  17698. /**
  17699. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17700. */
  17701. value: function addUseAt(position, item) {
  17702. this._addAtAndNotify(this.getUse(), position, item, 130, false, false);
  17703. }
  17704. /**
  17705. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17706. */
  17707. }, {
  17708. key: 'addUse',
  17709. value: function addUse(item) {
  17710. this.addUseAt(this.getUse().length, item);
  17711. }
  17712. /**
  17713. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17714. */
  17715. }, {
  17716. key: 'removeUseAt',
  17717. value: function removeUseAt(position) {
  17718. this._removeAtAndNotify(this.getUse(), position, 130, false);
  17719. }
  17720. /**
  17721. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17722. */
  17723. }, {
  17724. key: 'removeUse',
  17725. value: function removeUse(item) {
  17726. var i = this.getUse().indexOf(item);
  17727. if (i >= 0) {
  17728. this.removeUseAt(i);
  17729. }
  17730. }
  17731. /**
  17732. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17733. */
  17734. }, {
  17735. key: 'addUseSpecAt',
  17736. value: function addUseSpecAt(position, item) {
  17737. this._addAtAndNotify(this.getUseSpec(), position, item, 132, true, false);
  17738. }
  17739. /**
  17740. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17741. */
  17742. }, {
  17743. key: 'addUseSpec',
  17744. value: function addUseSpec(item) {
  17745. this.addUseSpecAt(this.getUseSpec().length, item);
  17746. }
  17747. /**
  17748. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17749. */
  17750. }, {
  17751. key: 'removeUseSpecAt',
  17752. value: function removeUseSpecAt(position) {
  17753. this._removeAtAndNotify(this.getUseSpec(), position, 132, true);
  17754. }
  17755. /**
  17756. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17757. */
  17758. }, {
  17759. key: 'removeUseSpec',
  17760. value: function removeUseSpec(item) {
  17761. var i = this.getUseSpec().indexOf(item);
  17762. if (i >= 0) {
  17763. this.removeUseSpecAt(i);
  17764. }
  17765. }
  17766. /**
  17767. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17768. */
  17769. }, {
  17770. key: 'addDataSourceAt',
  17771. value: function addDataSourceAt(position, item) {
  17772. this._addAtAndNotify(this.getDataSource(), position, item, 144, true, false);
  17773. }
  17774. /**
  17775. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17776. */
  17777. }, {
  17778. key: 'addDataSource',
  17779. value: function addDataSource(item) {
  17780. this.addDataSourceAt(this.getDataSource().length, item);
  17781. }
  17782. /**
  17783. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17784. */
  17785. }, {
  17786. key: 'removeDataSourceAt',
  17787. value: function removeDataSourceAt(position) {
  17788. this._removeAtAndNotify(this.getDataSource(), position, 144, true);
  17789. }
  17790. /**
  17791. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17792. */
  17793. }, {
  17794. key: 'removeDataSource',
  17795. value: function removeDataSource(item) {
  17796. var i = this.getDataSource().indexOf(item);
  17797. if (i >= 0) {
  17798. this.removeDataSourceAt(i);
  17799. }
  17800. }
  17801. /**
  17802. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17803. */
  17804. }, {
  17805. key: 'addQuerySubjectAt',
  17806. value: function addQuerySubjectAt(position, item) {
  17807. this._addAtAndNotify(this.getQuerySubject(), position, item, 143, true, true);
  17808. }
  17809. /**
  17810. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17811. */
  17812. }, {
  17813. key: 'addQuerySubject',
  17814. value: function addQuerySubject(item) {
  17815. this.addQuerySubjectAt(this.getQuerySubject().length, item);
  17816. }
  17817. /**
  17818. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17819. */
  17820. }, {
  17821. key: 'removeQuerySubjectAt',
  17822. value: function removeQuerySubjectAt(position) {
  17823. this._removeAtAndNotify(this.getQuerySubject(), position, 143, true);
  17824. }
  17825. /**
  17826. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17827. */
  17828. }, {
  17829. key: 'removeQuerySubject',
  17830. value: function removeQuerySubject(item) {
  17831. var i = this.getQuerySubject().indexOf(item);
  17832. if (i >= 0) {
  17833. this.removeQuerySubjectAt(i);
  17834. }
  17835. }
  17836. /**
  17837. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17838. */
  17839. }, {
  17840. key: 'addFilterAt',
  17841. value: function addFilterAt(position, item) {
  17842. this._addAtAndNotify(this.getFilter(), position, item, 24, true, true);
  17843. }
  17844. /**
  17845. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17846. */
  17847. }, {
  17848. key: 'addFilter',
  17849. value: function addFilter(item) {
  17850. this.addFilterAt(this.getFilter().length, item);
  17851. }
  17852. /**
  17853. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17854. */
  17855. }, {
  17856. key: 'removeFilterAt',
  17857. value: function removeFilterAt(position) {
  17858. this._removeAtAndNotify(this.getFilter(), position, 24, true);
  17859. }
  17860. /**
  17861. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17862. */
  17863. }, {
  17864. key: 'removeFilter',
  17865. value: function removeFilter(item) {
  17866. var i = this.getFilter().indexOf(item);
  17867. if (i >= 0) {
  17868. this.removeFilterAt(i);
  17869. }
  17870. }
  17871. /**
  17872. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17873. */
  17874. }, {
  17875. key: 'addCalculationAt',
  17876. value: function addCalculationAt(position, item) {
  17877. this._addAtAndNotify(this.getCalculation(), position, item, 25, true, true);
  17878. }
  17879. /**
  17880. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17881. */
  17882. }, {
  17883. key: 'addCalculation',
  17884. value: function addCalculation(item) {
  17885. this.addCalculationAt(this.getCalculation().length, item);
  17886. }
  17887. /**
  17888. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17889. */
  17890. }, {
  17891. key: 'removeCalculationAt',
  17892. value: function removeCalculationAt(position) {
  17893. this._removeAtAndNotify(this.getCalculation(), position, 25, true);
  17894. }
  17895. /**
  17896. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17897. */
  17898. }, {
  17899. key: 'removeCalculation',
  17900. value: function removeCalculation(item) {
  17901. var i = this.getCalculation().indexOf(item);
  17902. if (i >= 0) {
  17903. this.removeCalculationAt(i);
  17904. }
  17905. }
  17906. /**
  17907. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17908. */
  17909. }, {
  17910. key: 'addRelationshipAt',
  17911. value: function addRelationshipAt(position, item) {
  17912. this._addAtAndNotify(this.getRelationship(), position, item, 133, true, true);
  17913. }
  17914. /**
  17915. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17916. */
  17917. }, {
  17918. key: 'addRelationship',
  17919. value: function addRelationship(item) {
  17920. this.addRelationshipAt(this.getRelationship().length, item);
  17921. }
  17922. /**
  17923. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17924. */
  17925. }, {
  17926. key: 'removeRelationshipAt',
  17927. value: function removeRelationshipAt(position) {
  17928. this._removeAtAndNotify(this.getRelationship(), position, 133, true);
  17929. }
  17930. /**
  17931. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17932. */
  17933. }, {
  17934. key: 'removeRelationship',
  17935. value: function removeRelationship(item) {
  17936. var i = this.getRelationship().indexOf(item);
  17937. if (i >= 0) {
  17938. this.removeRelationshipAt(i);
  17939. }
  17940. }
  17941. /**
  17942. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17943. */
  17944. }, {
  17945. key: 'addParameterMapAt',
  17946. value: function addParameterMapAt(position, item) {
  17947. this._addAtAndNotify(this.getParameterMap(), position, item, 134, true, true);
  17948. }
  17949. /**
  17950. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17951. */
  17952. }, {
  17953. key: 'addParameterMap',
  17954. value: function addParameterMap(item) {
  17955. this.addParameterMapAt(this.getParameterMap().length, item);
  17956. }
  17957. /**
  17958. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17959. */
  17960. }, {
  17961. key: 'removeParameterMapAt',
  17962. value: function removeParameterMapAt(position) {
  17963. this._removeAtAndNotify(this.getParameterMap(), position, 134, true);
  17964. }
  17965. /**
  17966. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  17967. */
  17968. }, {
  17969. key: 'removeParameterMap',
  17970. value: function removeParameterMap(item) {
  17971. var i = this.getParameterMap().indexOf(item);
  17972. if (i >= 0) {
  17973. this.removeParameterMapAt(i);
  17974. }
  17975. }
  17976. /**
  17977. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  17978. */
  17979. }, {
  17980. key: 'addMetadataTreeViewAt',
  17981. value: function addMetadataTreeViewAt(position, item) {
  17982. this._addAtAndNotify(this.getMetadataTreeView(), position, item, 146, true, true);
  17983. }
  17984. /**
  17985. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  17986. */
  17987. }, {
  17988. key: 'addMetadataTreeView',
  17989. value: function addMetadataTreeView(item) {
  17990. this.addMetadataTreeViewAt(this.getMetadataTreeView().length, item);
  17991. }
  17992. /**
  17993. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  17994. */
  17995. }, {
  17996. key: 'removeMetadataTreeViewAt',
  17997. value: function removeMetadataTreeViewAt(position) {
  17998. this._removeAtAndNotify(this.getMetadataTreeView(), position, 146, true);
  17999. }
  18000. /**
  18001. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18002. */
  18003. }, {
  18004. key: 'removeMetadataTreeView',
  18005. value: function removeMetadataTreeView(item) {
  18006. var i = this.getMetadataTreeView().indexOf(item);
  18007. if (i >= 0) {
  18008. this.removeMetadataTreeViewAt(i);
  18009. }
  18010. }
  18011. /**
  18012. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18013. */
  18014. }, {
  18015. key: 'addTextResourceAt',
  18016. value: function addTextResourceAt(position, item) {
  18017. this._addAtAndNotify(this.getTextResource(), position, item, 142, true, false);
  18018. }
  18019. /**
  18020. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18021. */
  18022. }, {
  18023. key: 'addTextResource',
  18024. value: function addTextResource(item) {
  18025. this.addTextResourceAt(this.getTextResource().length, item);
  18026. }
  18027. /**
  18028. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18029. */
  18030. }, {
  18031. key: 'removeTextResourceAt',
  18032. value: function removeTextResourceAt(position) {
  18033. this._removeAtAndNotify(this.getTextResource(), position, 142, true);
  18034. }
  18035. /**
  18036. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18037. */
  18038. }, {
  18039. key: 'removeTextResource',
  18040. value: function removeTextResource(item) {
  18041. var i = this.getTextResource().indexOf(item);
  18042. if (i >= 0) {
  18043. this.removeTextResourceAt(i);
  18044. }
  18045. }
  18046. /**
  18047. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18048. */
  18049. }, {
  18050. key: 'addDrillGroupAt',
  18051. value: function addDrillGroupAt(position, item) {
  18052. this._addAtAndNotify(this.getDrillGroup(), position, item, 138, true, true);
  18053. }
  18054. /**
  18055. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18056. */
  18057. }, {
  18058. key: 'addDrillGroup',
  18059. value: function addDrillGroup(item) {
  18060. this.addDrillGroupAt(this.getDrillGroup().length, item);
  18061. }
  18062. /**
  18063. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18064. */
  18065. }, {
  18066. key: 'removeDrillGroupAt',
  18067. value: function removeDrillGroupAt(position) {
  18068. this._removeAtAndNotify(this.getDrillGroup(), position, 138, true);
  18069. }
  18070. /**
  18071. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18072. */
  18073. }, {
  18074. key: 'removeDrillGroup',
  18075. value: function removeDrillGroup(item) {
  18076. var i = this.getDrillGroup().indexOf(item);
  18077. if (i >= 0) {
  18078. this.removeDrillGroupAt(i);
  18079. }
  18080. }
  18081. /**
  18082. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18083. */
  18084. }, {
  18085. key: 'addNamedSetAt',
  18086. value: function addNamedSetAt(position, item) {
  18087. this._addAtAndNotify(this.getNamedSet(), position, item, 26, true, true);
  18088. }
  18089. /**
  18090. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18091. */
  18092. }, {
  18093. key: 'addNamedSet',
  18094. value: function addNamedSet(item) {
  18095. this.addNamedSetAt(this.getNamedSet().length, item);
  18096. }
  18097. /**
  18098. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18099. */
  18100. }, {
  18101. key: 'removeNamedSetAt',
  18102. value: function removeNamedSetAt(position) {
  18103. this._removeAtAndNotify(this.getNamedSet(), position, 26, true);
  18104. }
  18105. /**
  18106. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18107. */
  18108. }, {
  18109. key: 'removeNamedSet',
  18110. value: function removeNamedSet(item) {
  18111. var i = this.getNamedSet().indexOf(item);
  18112. if (i >= 0) {
  18113. this.removeNamedSetAt(i);
  18114. }
  18115. }
  18116. /**
  18117. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18118. */
  18119. }, {
  18120. key: 'addParameterValueSetAt',
  18121. value: function addParameterValueSetAt(position, item) {
  18122. this._addAtAndNotify(this.getParameterValueSet(), position, item, 140, true, true);
  18123. }
  18124. /**
  18125. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18126. */
  18127. }, {
  18128. key: 'addParameterValueSet',
  18129. value: function addParameterValueSet(item) {
  18130. this.addParameterValueSetAt(this.getParameterValueSet().length, item);
  18131. }
  18132. /**
  18133. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18134. */
  18135. }, {
  18136. key: 'removeParameterValueSetAt',
  18137. value: function removeParameterValueSetAt(position) {
  18138. this._removeAtAndNotify(this.getParameterValueSet(), position, 140, true);
  18139. }
  18140. /**
  18141. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18142. */
  18143. }, {
  18144. key: 'removeParameterValueSet',
  18145. value: function removeParameterValueSet(item) {
  18146. var i = this.getParameterValueSet().indexOf(item);
  18147. if (i >= 0) {
  18148. this.removeParameterValueSetAt(i);
  18149. }
  18150. }
  18151. /**
  18152. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18153. */
  18154. }, {
  18155. key: 'addPromptAt',
  18156. value: function addPromptAt(position, item) {
  18157. this._addAtAndNotify(this.getPrompt(), position, item, 145, true, true);
  18158. }
  18159. /**
  18160. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18161. */
  18162. }, {
  18163. key: 'addPrompt',
  18164. value: function addPrompt(item) {
  18165. this.addPromptAt(this.getPrompt().length, item);
  18166. }
  18167. /**
  18168. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18169. */
  18170. }, {
  18171. key: 'removePromptAt',
  18172. value: function removePromptAt(position) {
  18173. this._removeAtAndNotify(this.getPrompt(), position, 145, true);
  18174. }
  18175. /**
  18176. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18177. */
  18178. }, {
  18179. key: 'removePrompt',
  18180. value: function removePrompt(item) {
  18181. var i = this.getPrompt().indexOf(item);
  18182. if (i >= 0) {
  18183. this.removePromptAt(i);
  18184. }
  18185. }
  18186. /**
  18187. * Retrieves the type of this object
  18188. * @return {String} the object type in a <code>String</code>
  18189. */
  18190. }, {
  18191. key: 'getObjectType',
  18192. value: function getObjectType() {
  18193. return "Module";
  18194. }
  18195. /**
  18196. * Get a list of FeatureObjects
  18197. * @return {Array} A list of FeatureObjects
  18198. */
  18199. }, {
  18200. key: 'getFeatureList',
  18201. value: function getFeatureList(factory) {
  18202. var featureList = [];
  18203. featureList.push(this.createFeature(false, false, false, 139, "version", null));
  18204. featureList.push(this.createFeature(false, false, false, 129, "container", null));
  18205. featureList.push(this.createFeature(true, false, false, 130, "use", null));
  18206. var clazz;
  18207. if (factory) {
  18208. clazz = factory.createModuleUseSpec().getClass();
  18209. }
  18210. featureList.push(this.createFeature(true, false, true, 132, "useSpec", clazz));
  18211. featureList.push(this.createFeature(false, false, false, 137, "expressionLocale", null));
  18212. featureList.push(this.createFeature(false, false, false, 131, "fmModel", null));
  18213. if (factory) {
  18214. clazz = factory.createDataSource().getClass();
  18215. }
  18216. featureList.push(this.createFeature(true, false, true, 144, "dataSource", clazz));
  18217. if (factory) {
  18218. clazz = factory.createQuerySubject().getClass();
  18219. }
  18220. featureList.push(this.createFeature(true, false, true, 143, "querySubject", clazz));
  18221. if (factory) {
  18222. clazz = factory.createFilter().getClass();
  18223. }
  18224. featureList.push(this.createFeature(true, false, true, 24, "filter", clazz));
  18225. if (factory) {
  18226. clazz = factory.createCalculation().getClass();
  18227. }
  18228. featureList.push(this.createFeature(true, false, true, 25, "calculation", clazz));
  18229. if (factory) {
  18230. clazz = factory.createRelationship().getClass();
  18231. }
  18232. featureList.push(this.createFeature(true, false, true, 133, "relationship", clazz));
  18233. if (factory) {
  18234. clazz = factory.createParameterMap().getClass();
  18235. }
  18236. featureList.push(this.createFeature(true, false, true, 134, "parameterMap", clazz));
  18237. if (factory) {
  18238. clazz = factory.createFolderType().getClass();
  18239. }
  18240. featureList.push(this.createFeature(true, false, true, 146, "metadataTreeView", clazz));
  18241. if (factory) {
  18242. clazz = factory.createFocus().getClass();
  18243. }
  18244. featureList.push(this.createFeature(false, false, true, 135, "metadataTreeViewFocus", clazz));
  18245. if (factory) {
  18246. clazz = factory.createTextResource().getClass();
  18247. }
  18248. featureList.push(this.createFeature(true, false, true, 142, "textResource", clazz));
  18249. if (factory) {
  18250. clazz = factory.createDrillGroup().getClass();
  18251. }
  18252. featureList.push(this.createFeature(true, false, true, 138, "drillGroup", clazz));
  18253. if (factory) {
  18254. clazz = factory.createNamedSet().getClass();
  18255. }
  18256. featureList.push(this.createFeature(true, false, true, 26, "namedSet", clazz));
  18257. if (factory) {
  18258. clazz = factory.createParameterValueSet().getClass();
  18259. }
  18260. featureList.push(this.createFeature(true, false, true, 140, "parameterValueSet", clazz));
  18261. if (factory) {
  18262. clazz = factory.createPrompt().getClass();
  18263. }
  18264. featureList.push(this.createFeature(true, false, true, 145, "prompt", clazz));
  18265. featureList.push(this.createFeature(false, false, false, 141, "dataRetrievalMode", null));
  18266. featureList.push(this.createFeature(false, false, false, 136, "refActiveParameterValueSet", null));
  18267. Array.prototype.push.apply(featureList, _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'getFeatureList', this).call(this, factory));
  18268. return featureList;
  18269. }
  18270. /**
  18271. * Set the value of a specific feature.
  18272. * @param {BaseMoserObject} value the value to set
  18273. * @param {int} featureID the feature id of the attribute to be set
  18274. */
  18275. }, {
  18276. key: 'set',
  18277. value: function set(featureID, value) {
  18278. switch (featureID) {
  18279. case 129:
  18280. this.setContainer(value);
  18281. break;
  18282. case 131:
  18283. this.setFmModel(value);
  18284. break;
  18285. case 135:
  18286. this.setMetadataTreeViewFocus(value);
  18287. break;
  18288. case 136:
  18289. this.setRefActiveParameterValueSet(value);
  18290. break;
  18291. case 137:
  18292. this.setExpressionLocale(value);
  18293. break;
  18294. case 139:
  18295. this.setVersion(value);
  18296. break;
  18297. case 141:
  18298. this.setDataRetrievalMode(value);
  18299. break;
  18300. default:
  18301. _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'set', this).call(this, featureID, value);
  18302. }
  18303. }
  18304. /**
  18305. * Set the value of a specific feature.
  18306. * @param {BaseMoserObject} value the value to set the value to set
  18307. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  18308. */
  18309. }, {
  18310. key: '_setList',
  18311. value: function _setList(featureID, value) {
  18312. switch (featureID) {
  18313. case 25:
  18314. this.calculation = value;
  18315. break;
  18316. case 130:
  18317. this.use = value;
  18318. break;
  18319. case 132:
  18320. this.useSpec = value;
  18321. break;
  18322. case 26:
  18323. this.namedSet = value;
  18324. break;
  18325. case 133:
  18326. this.relationship = value;
  18327. break;
  18328. case 134:
  18329. this.parameterMap = value;
  18330. break;
  18331. case 138:
  18332. this.drillGroup = value;
  18333. break;
  18334. case 140:
  18335. this.parameterValueSet = value;
  18336. break;
  18337. case 24:
  18338. this.filter = value;
  18339. break;
  18340. case 142:
  18341. this.textResource = value;
  18342. break;
  18343. case 143:
  18344. this.querySubject = value;
  18345. break;
  18346. case 144:
  18347. this.dataSource = value;
  18348. break;
  18349. case 145:
  18350. this.prompt = value;
  18351. break;
  18352. case 146:
  18353. this.metadataTreeView = value;
  18354. break;
  18355. default:
  18356. _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), '_setList', this).call(this, featureID, value);
  18357. }
  18358. }
  18359. /**
  18360. * Get the value of a specific feature.
  18361. * @param {int} featureID the feature id of the attribute to get
  18362. */
  18363. }, {
  18364. key: 'get',
  18365. value: function get(featureID) {
  18366. switch (featureID) {
  18367. case 129:
  18368. return this.getContainer();
  18369. case 25:
  18370. return this.getCalculation();
  18371. case 130:
  18372. return this.getUse();
  18373. case 131:
  18374. return this.getFmModel();
  18375. case 132:
  18376. return this.getUseSpec();
  18377. case 26:
  18378. return this.getNamedSet();
  18379. case 133:
  18380. return this.getRelationship();
  18381. case 134:
  18382. return this.getParameterMap();
  18383. case 135:
  18384. return this.getMetadataTreeViewFocus();
  18385. case 136:
  18386. return this.getRefActiveParameterValueSet();
  18387. case 137:
  18388. return this.getExpressionLocale();
  18389. case 138:
  18390. return this.getDrillGroup();
  18391. case 139:
  18392. return this.getVersion();
  18393. case 140:
  18394. return this.getParameterValueSet();
  18395. case 24:
  18396. return this.getFilter();
  18397. case 141:
  18398. return this.getDataRetrievalMode();
  18399. case 142:
  18400. return this.getTextResource();
  18401. case 143:
  18402. return this.getQuerySubject();
  18403. case 144:
  18404. return this.getDataSource();
  18405. case 145:
  18406. return this.getPrompt();
  18407. case 146:
  18408. return this.getMetadataTreeView();
  18409. default:
  18410. return _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'get', this).call(this, featureID);
  18411. }
  18412. }
  18413. /**
  18414. * Get the value of a specific feature.
  18415. * @param {int} featureID the feature id of the attribute to get
  18416. */
  18417. }, {
  18418. key: 'basicGet',
  18419. value: function basicGet(featureID) {
  18420. switch (featureID) {
  18421. case 129:
  18422. return this.getContainer();
  18423. case 25:
  18424. return this.basicGetCalculation();
  18425. case 130:
  18426. return this.basicGetUse();
  18427. case 131:
  18428. return this.getFmModel();
  18429. case 132:
  18430. return this.basicGetUseSpec();
  18431. case 26:
  18432. return this.basicGetNamedSet();
  18433. case 133:
  18434. return this.basicGetRelationship();
  18435. case 134:
  18436. return this.basicGetParameterMap();
  18437. case 135:
  18438. return this.getMetadataTreeViewFocus();
  18439. case 136:
  18440. return this.getRefActiveParameterValueSet();
  18441. case 137:
  18442. return this.getExpressionLocale();
  18443. case 138:
  18444. return this.basicGetDrillGroup();
  18445. case 139:
  18446. return this.getVersion();
  18447. case 140:
  18448. return this.basicGetParameterValueSet();
  18449. case 24:
  18450. return this.basicGetFilter();
  18451. case 141:
  18452. return this.getDataRetrievalMode();
  18453. case 142:
  18454. return this.basicGetTextResource();
  18455. case 143:
  18456. return this.basicGetQuerySubject();
  18457. case 144:
  18458. return this.basicGetDataSource();
  18459. case 145:
  18460. return this.basicGetPrompt();
  18461. case 146:
  18462. return this.basicGetMetadataTreeView();
  18463. default:
  18464. return _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'basicGet', this).call(this, featureID);
  18465. }
  18466. }
  18467. /**
  18468. * Add the value of a specific feature at a specific position
  18469. * @param {int} position the array position of the item to be added
  18470. * @param {BaseMoserObject} value the value to add
  18471. * @param {int} featureID the feature id of the attribute to be added
  18472. */
  18473. }, {
  18474. key: 'addAt',
  18475. value: function addAt(featureID, position, value) {
  18476. switch (featureID) {
  18477. case 25:
  18478. this.addCalculationAt(position, value);
  18479. break;
  18480. case 130:
  18481. this.addUseAt(position, value);
  18482. break;
  18483. case 132:
  18484. this.addUseSpecAt(position, value);
  18485. break;
  18486. case 26:
  18487. this.addNamedSetAt(position, value);
  18488. break;
  18489. case 133:
  18490. this.addRelationshipAt(position, value);
  18491. break;
  18492. case 134:
  18493. this.addParameterMapAt(position, value);
  18494. break;
  18495. case 138:
  18496. this.addDrillGroupAt(position, value);
  18497. break;
  18498. case 140:
  18499. this.addParameterValueSetAt(position, value);
  18500. break;
  18501. case 24:
  18502. this.addFilterAt(position, value);
  18503. break;
  18504. case 142:
  18505. this.addTextResourceAt(position, value);
  18506. break;
  18507. case 143:
  18508. this.addQuerySubjectAt(position, value);
  18509. break;
  18510. case 144:
  18511. this.addDataSourceAt(position, value);
  18512. break;
  18513. case 145:
  18514. this.addPromptAt(position, value);
  18515. break;
  18516. case 146:
  18517. this.addMetadataTreeViewAt(position, value);
  18518. break;
  18519. default:
  18520. _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'addAt', this).call(this, featureID, position, value);
  18521. }
  18522. }
  18523. /**
  18524. * Add the value to the end of a specific collection feature
  18525. * @param {BaseMoserObject} value the value to add
  18526. * @param {int} featureID the feature id of the attribute to be added
  18527. */
  18528. }, {
  18529. key: 'add',
  18530. value: function add(featureID, value) {
  18531. switch (featureID) {
  18532. case 25:
  18533. this.addCalculation(value);
  18534. break;
  18535. case 130:
  18536. this.addUse(value);
  18537. break;
  18538. case 132:
  18539. this.addUseSpec(value);
  18540. break;
  18541. case 26:
  18542. this.addNamedSet(value);
  18543. break;
  18544. case 133:
  18545. this.addRelationship(value);
  18546. break;
  18547. case 134:
  18548. this.addParameterMap(value);
  18549. break;
  18550. case 138:
  18551. this.addDrillGroup(value);
  18552. break;
  18553. case 140:
  18554. this.addParameterValueSet(value);
  18555. break;
  18556. case 24:
  18557. this.addFilter(value);
  18558. break;
  18559. case 142:
  18560. this.addTextResource(value);
  18561. break;
  18562. case 143:
  18563. this.addQuerySubject(value);
  18564. break;
  18565. case 144:
  18566. this.addDataSource(value);
  18567. break;
  18568. case 145:
  18569. this.addPrompt(value);
  18570. break;
  18571. case 146:
  18572. this.addMetadataTreeView(value);
  18573. break;
  18574. default:
  18575. _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'add', this).call(this, featureID, value);
  18576. }
  18577. }
  18578. /**
  18579. * Remove the value of a specific feature by index.
  18580. * @param {int} position the array position of the item to be removed
  18581. * @param {int} featureID the feature id of the attribute to be removed
  18582. */
  18583. }, {
  18584. key: 'removeAt',
  18585. value: function removeAt(featureID, position) {
  18586. switch (featureID) {
  18587. case 25:
  18588. this.removeCalculationAt(position);
  18589. break;
  18590. case 130:
  18591. this.removeUseAt(position);
  18592. break;
  18593. case 132:
  18594. this.removeUseSpecAt(position);
  18595. break;
  18596. case 26:
  18597. this.removeNamedSetAt(position);
  18598. break;
  18599. case 133:
  18600. this.removeRelationshipAt(position);
  18601. break;
  18602. case 134:
  18603. this.removeParameterMapAt(position);
  18604. break;
  18605. case 138:
  18606. this.removeDrillGroupAt(position);
  18607. break;
  18608. case 140:
  18609. this.removeParameterValueSetAt(position);
  18610. break;
  18611. case 24:
  18612. this.removeFilterAt(position);
  18613. break;
  18614. case 142:
  18615. this.removeTextResourceAt(position);
  18616. break;
  18617. case 143:
  18618. this.removeQuerySubjectAt(position);
  18619. break;
  18620. case 144:
  18621. this.removeDataSourceAt(position);
  18622. break;
  18623. case 145:
  18624. this.removePromptAt(position);
  18625. break;
  18626. case 146:
  18627. this.removeMetadataTreeViewAt(position);
  18628. break;
  18629. default:
  18630. _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'removeAt', this).call(this, featureID, position);
  18631. }
  18632. }
  18633. /**
  18634. * Remove the value from specific feature.
  18635. * @param {BaseMoserObject} item the item to be removed
  18636. * @param {int} featureID the feature id of the attribute to be removed
  18637. */
  18638. }, {
  18639. key: 'remove',
  18640. value: function remove(featureID, item) {
  18641. switch (featureID) {
  18642. case 25:
  18643. this.removeCalculation(item);
  18644. break;
  18645. case 130:
  18646. this.removeUse(item);
  18647. break;
  18648. case 132:
  18649. this.removeUseSpec(item);
  18650. break;
  18651. case 26:
  18652. this.removeNamedSet(item);
  18653. break;
  18654. case 133:
  18655. this.removeRelationship(item);
  18656. break;
  18657. case 134:
  18658. this.removeParameterMap(item);
  18659. break;
  18660. case 138:
  18661. this.removeDrillGroup(item);
  18662. break;
  18663. case 140:
  18664. this.removeParameterValueSet(item);
  18665. break;
  18666. case 24:
  18667. this.removeFilter(item);
  18668. break;
  18669. case 142:
  18670. this.removeTextResource(item);
  18671. break;
  18672. case 143:
  18673. this.removeQuerySubject(item);
  18674. break;
  18675. case 144:
  18676. this.removeDataSource(item);
  18677. break;
  18678. case 145:
  18679. this.removePrompt(item);
  18680. break;
  18681. case 146:
  18682. this.removeMetadataTreeView(item);
  18683. break;
  18684. default:
  18685. _get(Module.prototype.__proto__ || Object.getPrototypeOf(Module.prototype), 'remove', this).call(this, featureID, item);
  18686. }
  18687. }
  18688. }], [{
  18689. key: 'fromJSON',
  18690. value: function fromJSON(json, factory) {
  18691. var result = factory.createModule();
  18692. var featureList = result.getFeatureList(factory);
  18693. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  18694. return result;
  18695. }
  18696. }]);
  18697. return Module;
  18698. }(_ObjectType3.default);
  18699. /**
  18700. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="identifier" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="type" type="{}useSpecType" minOccurs="0"/&gt; &lt;element name="storeID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="searchPath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="imports" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="ancestors" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="defaultName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="storeID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="dataCacheExpiry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="property" type="{}propertyType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  18701. */
  18702. exports.default = Module;
  18703. Module.UseSpec = function (_MoserObject) {
  18704. _inherits(_class2, _MoserObject);
  18705. function _class2() {
  18706. var _ref2;
  18707. var _temp2, _this2, _ret2;
  18708. _classCallCheck(this, _class2);
  18709. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  18710. args[_key2] = arguments[_key2];
  18711. }
  18712. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.identifier = null, _this2.type = null, _this2.storeID = null, _this2.searchPath = null, _this2.imports = null, _this2.ancestors = null, _this2.dataCacheExpiry = null, _this2.property = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  18713. }
  18714. _createClass(_class2, [{
  18715. key: 'getIdentifier',
  18716. /**
  18717. * Gets the value of the identifier property.
  18718. * @return {String} possible object is {@link String}
  18719. */
  18720. value: function getIdentifier() {
  18721. return this.identifier;
  18722. }
  18723. /**
  18724. * Sets the value of the identifier property.
  18725. * @param {String} value allowed object is {@link String}
  18726. */
  18727. }, {
  18728. key: 'setIdentifier',
  18729. value: function setIdentifier(value) {
  18730. var oldValue = this.identifier;
  18731. this.identifier = value;
  18732. this._setAndNotify(38, oldValue, value, false, false);
  18733. }
  18734. /**
  18735. * Gets the value of the type property.
  18736. * @return {UseSpecType} possible object is {@link UseSpecType}
  18737. */
  18738. }, {
  18739. key: 'getType',
  18740. value: function getType() {
  18741. return this.type;
  18742. }
  18743. /**
  18744. * Sets the value of the type property.
  18745. * @param {UseSpecType} value allowed object is {@link UseSpecType}
  18746. */
  18747. }, {
  18748. key: 'setType',
  18749. value: function setType(value) {
  18750. var oldValue = this.type;
  18751. this.type = value;
  18752. this._setAndNotify(15, oldValue, value, false, false);
  18753. }
  18754. /**
  18755. * Gets the value of the storeID property.
  18756. * @return {String} possible object is {@link String}
  18757. */
  18758. }, {
  18759. key: 'getStoreID',
  18760. value: function getStoreID() {
  18761. return this.storeID;
  18762. }
  18763. /**
  18764. * Sets the value of the storeID property.
  18765. * @param {String} value allowed object is {@link String}
  18766. */
  18767. }, {
  18768. key: 'setStoreID',
  18769. value: function setStoreID(value) {
  18770. var oldValue = this.storeID;
  18771. this.storeID = value;
  18772. this._setAndNotify(88, oldValue, value, false, false);
  18773. }
  18774. /**
  18775. * Gets the value of the searchPath property.
  18776. * @return {String} possible object is {@link String}
  18777. */
  18778. }, {
  18779. key: 'getSearchPath',
  18780. value: function getSearchPath() {
  18781. return this.searchPath;
  18782. }
  18783. /**
  18784. * Sets the value of the searchPath property.
  18785. * @param {String} value allowed object is {@link String}
  18786. */
  18787. }, {
  18788. key: 'setSearchPath',
  18789. value: function setSearchPath(value) {
  18790. var oldValue = this.searchPath;
  18791. this.searchPath = value;
  18792. this._setAndNotify(86, oldValue, value, false, false);
  18793. }
  18794. /**
  18795. * Gets the value of the imports property.
  18796. * @return {String} possible object is {@link String}
  18797. */
  18798. }, {
  18799. key: 'getImports',
  18800. value: function getImports() {
  18801. return this.imports;
  18802. }
  18803. /**
  18804. * Sets the value of the imports property.
  18805. * @param {String} value allowed object is {@link String}
  18806. */
  18807. }, {
  18808. key: 'setImports',
  18809. value: function setImports(value) {
  18810. var oldValue = this.imports;
  18811. this.imports = value;
  18812. this._setAndNotify(85, oldValue, value, false, false);
  18813. }
  18814. /**
  18815. * Gets the value of the ancestors property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the ancestors property. <p> For example, to add a new item, do as follows: <pre> getAncestors().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Module.UseSpec.Ancestors}
  18816. */
  18817. }, {
  18818. key: 'getAncestors',
  18819. value: function getAncestors() {
  18820. if (!this.ancestors) {
  18821. this.ancestors = [];
  18822. }
  18823. return this.ancestors;
  18824. }
  18825. /**
  18826. * Gets the value of the dataCacheExpiry property.
  18827. * @return {String} possible object is {@link String}
  18828. */
  18829. }, {
  18830. key: 'getDataCacheExpiry',
  18831. value: function getDataCacheExpiry() {
  18832. return this.dataCacheExpiry;
  18833. }
  18834. /**
  18835. * Sets the value of the dataCacheExpiry property.
  18836. * @param {String} value allowed object is {@link String}
  18837. */
  18838. }, {
  18839. key: 'setDataCacheExpiry',
  18840. value: function setDataCacheExpiry(value) {
  18841. var oldValue = this.dataCacheExpiry;
  18842. this.dataCacheExpiry = value;
  18843. this._setAndNotify(62, oldValue, value, false, false);
  18844. }
  18845. /**
  18846. * Gets the value of the property property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the property property. <p> For example, to add a new item, do as follows: <pre> getProperty().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link PropertyType}
  18847. */
  18848. }, {
  18849. key: 'getProperty',
  18850. value: function getProperty() {
  18851. if (!this.property) {
  18852. this.property = [];
  18853. }
  18854. return this.property;
  18855. }
  18856. /**
  18857. * Gets the value of the <code>ancestors</code> property without initializing the property to an empty list if it is unset.
  18858. * @return {Array} the list of <code>Ancestors</code> elements, or <code>null</code> if not set
  18859. */
  18860. }, {
  18861. key: 'basicGetAncestors',
  18862. value: function basicGetAncestors() {
  18863. return this.ancestors;
  18864. }
  18865. /**
  18866. * Gets the value of the <code>property</code> property without initializing the property to an empty list if it is unset.
  18867. * @return {Array} the list of <code>PropertyType</code> elements, or <code>null</code> if not set
  18868. */
  18869. }, {
  18870. key: 'basicGetProperty',
  18871. value: function basicGetProperty() {
  18872. return this.property;
  18873. }
  18874. /**
  18875. * Creates a new instance of <code>UseSpec</code> object from JSON data.
  18876. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  18877. * @param {Object} json JSON data to be used to create the <code> UseSpec</code> object from.
  18878. * @return {UseSpec} an object of type <code>UseSpec</code>
  18879. */
  18880. }, {
  18881. key: 'addAncestorsAt',
  18882. /**
  18883. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18884. */
  18885. value: function addAncestorsAt(position, item) {
  18886. this._addAtAndNotify(this.getAncestors(), position, item, 89, true, false);
  18887. }
  18888. /**
  18889. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18890. */
  18891. }, {
  18892. key: 'addAncestors',
  18893. value: function addAncestors(item) {
  18894. this.addAncestorsAt(this.getAncestors().length, item);
  18895. }
  18896. /**
  18897. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18898. */
  18899. }, {
  18900. key: 'removeAncestorsAt',
  18901. value: function removeAncestorsAt(position) {
  18902. this._removeAtAndNotify(this.getAncestors(), position, 89, true);
  18903. }
  18904. /**
  18905. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18906. */
  18907. }, {
  18908. key: 'removeAncestors',
  18909. value: function removeAncestors(item) {
  18910. var i = this.getAncestors().indexOf(item);
  18911. if (i >= 0) {
  18912. this.removeAncestorsAt(i);
  18913. }
  18914. }
  18915. /**
  18916. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  18917. */
  18918. }, {
  18919. key: 'addPropertyAt',
  18920. value: function addPropertyAt(position, item) {
  18921. this._addAtAndNotify(this.getProperty(), position, item, 87, true, false);
  18922. }
  18923. /**
  18924. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  18925. */
  18926. }, {
  18927. key: 'addProperty',
  18928. value: function addProperty(item) {
  18929. this.addPropertyAt(this.getProperty().length, item);
  18930. }
  18931. /**
  18932. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  18933. */
  18934. }, {
  18935. key: 'removePropertyAt',
  18936. value: function removePropertyAt(position) {
  18937. this._removeAtAndNotify(this.getProperty(), position, 87, true);
  18938. }
  18939. /**
  18940. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  18941. */
  18942. }, {
  18943. key: 'removeProperty',
  18944. value: function removeProperty(item) {
  18945. var i = this.getProperty().indexOf(item);
  18946. if (i >= 0) {
  18947. this.removePropertyAt(i);
  18948. }
  18949. }
  18950. /**
  18951. * Retrieves the type of this object
  18952. * @return {String} the object type in a <code>String</code>
  18953. */
  18954. }, {
  18955. key: 'getObjectType',
  18956. value: function getObjectType() {
  18957. return "UseSpec";
  18958. }
  18959. /**
  18960. * Get a list of FeatureObjects
  18961. * @return {Array} A list of FeatureObjects
  18962. */
  18963. }, {
  18964. key: 'getFeatureList',
  18965. value: function getFeatureList(factory) {
  18966. var featureList = [];
  18967. featureList.push(this.createFeature(false, false, false, 38, "identifier", null));
  18968. featureList.push(this.createFeature(false, true, false, 15, "type", _UseSpecType2.default));
  18969. featureList.push(this.createFeature(false, false, false, 88, "storeID", null));
  18970. featureList.push(this.createFeature(false, false, false, 86, "searchPath", null));
  18971. featureList.push(this.createFeature(false, false, false, 85, "imports", null));
  18972. var clazz;
  18973. if (factory) {
  18974. clazz = factory.createModuleUseSpecAncestors().getClass();
  18975. }
  18976. featureList.push(this.createFeature(true, false, true, 89, "ancestors", clazz));
  18977. featureList.push(this.createFeature(false, false, false, 62, "dataCacheExpiry", null));
  18978. if (factory) {
  18979. clazz = factory.createPropertyType().getClass();
  18980. }
  18981. featureList.push(this.createFeature(true, false, true, 87, "property", clazz));
  18982. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  18983. return featureList;
  18984. }
  18985. /**
  18986. * Set the value of a specific feature.
  18987. * @param {BaseMoserObject} value the value to set
  18988. * @param {int} featureID the feature id of the attribute to be set
  18989. */
  18990. }, {
  18991. key: 'set',
  18992. value: function set(featureID, value) {
  18993. switch (featureID) {
  18994. case 38:
  18995. this.setIdentifier(value);
  18996. break;
  18997. case 85:
  18998. this.setImports(value);
  18999. break;
  19000. case 86:
  19001. this.setSearchPath(value);
  19002. break;
  19003. case 62:
  19004. this.setDataCacheExpiry(value);
  19005. break;
  19006. case 15:
  19007. this.setType(value);
  19008. break;
  19009. case 88:
  19010. this.setStoreID(value);
  19011. break;
  19012. default:
  19013. throw new Error("The feature " + featureID + " is not valid.");
  19014. }
  19015. }
  19016. /**
  19017. * Set the value of a specific feature.
  19018. * @param {BaseMoserObject} value the value to set the value to set
  19019. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  19020. */
  19021. }, {
  19022. key: '_setList',
  19023. value: function _setList(featureID, value) {
  19024. switch (featureID) {
  19025. case 87:
  19026. this.property = value;
  19027. break;
  19028. case 89:
  19029. this.ancestors = value;
  19030. break;
  19031. default:
  19032. throw new Error("The feature " + featureID + " is not valid.");
  19033. }
  19034. }
  19035. /**
  19036. * Get the value of a specific feature.
  19037. * @param {int} featureID the feature id of the attribute to get
  19038. */
  19039. }, {
  19040. key: 'get',
  19041. value: function get(featureID) {
  19042. switch (featureID) {
  19043. case 38:
  19044. return this.getIdentifier();
  19045. case 85:
  19046. return this.getImports();
  19047. case 86:
  19048. return this.getSearchPath();
  19049. case 87:
  19050. return this.getProperty();
  19051. case 62:
  19052. return this.getDataCacheExpiry();
  19053. case 15:
  19054. return this.getType();
  19055. case 88:
  19056. return this.getStoreID();
  19057. case 89:
  19058. return this.getAncestors();
  19059. default:
  19060. throw new Error("The feature " + featureID + " is not valid.");
  19061. }
  19062. }
  19063. /**
  19064. * Get the value of a specific feature.
  19065. * @param {int} featureID the feature id of the attribute to get
  19066. */
  19067. }, {
  19068. key: 'basicGet',
  19069. value: function basicGet(featureID) {
  19070. switch (featureID) {
  19071. case 38:
  19072. return this.getIdentifier();
  19073. case 85:
  19074. return this.getImports();
  19075. case 86:
  19076. return this.getSearchPath();
  19077. case 87:
  19078. return this.basicGetProperty();
  19079. case 62:
  19080. return this.getDataCacheExpiry();
  19081. case 15:
  19082. return this.getType();
  19083. case 88:
  19084. return this.getStoreID();
  19085. case 89:
  19086. return this.basicGetAncestors();
  19087. default:
  19088. throw new Error("The feature " + featureID + " is not valid.");
  19089. }
  19090. }
  19091. /**
  19092. * Add the value of a specific feature at a specific position
  19093. * @param {int} position the array position of the item to be added
  19094. * @param {BaseMoserObject} value the value to add
  19095. * @param {int} featureID the feature id of the attribute to be added
  19096. */
  19097. }, {
  19098. key: 'addAt',
  19099. value: function addAt(featureID, position, value) {
  19100. switch (featureID) {
  19101. case 87:
  19102. this.addPropertyAt(position, value);
  19103. break;
  19104. case 89:
  19105. this.addAncestorsAt(position, value);
  19106. break;
  19107. default:
  19108. throw new Error("The feature " + featureID + " is not valid.");
  19109. }
  19110. }
  19111. /**
  19112. * Add the value to the end of a specific collection feature
  19113. * @param {BaseMoserObject} value the value to add
  19114. * @param {int} featureID the feature id of the attribute to be added
  19115. */
  19116. }, {
  19117. key: 'add',
  19118. value: function add(featureID, value) {
  19119. switch (featureID) {
  19120. case 87:
  19121. this.addProperty(value);
  19122. break;
  19123. case 89:
  19124. this.addAncestors(value);
  19125. break;
  19126. default:
  19127. throw new Error("The feature " + featureID + " is not valid.");
  19128. }
  19129. }
  19130. /**
  19131. * Remove the value of a specific feature by index.
  19132. * @param {int} position the array position of the item to be removed
  19133. * @param {int} featureID the feature id of the attribute to be removed
  19134. */
  19135. }, {
  19136. key: 'removeAt',
  19137. value: function removeAt(featureID, position) {
  19138. switch (featureID) {
  19139. case 87:
  19140. this.removePropertyAt(position);
  19141. break;
  19142. case 89:
  19143. this.removeAncestorsAt(position);
  19144. break;
  19145. default:
  19146. throw new Error("The feature " + featureID + " is not valid.");
  19147. }
  19148. }
  19149. /**
  19150. * Remove the value from specific feature.
  19151. * @param {BaseMoserObject} item the item to be removed
  19152. * @param {int} featureID the feature id of the attribute to be removed
  19153. */
  19154. }, {
  19155. key: 'remove',
  19156. value: function remove(featureID, item) {
  19157. switch (featureID) {
  19158. case 87:
  19159. this.removeProperty(item);
  19160. break;
  19161. case 89:
  19162. this.removeAncestors(item);
  19163. break;
  19164. default:
  19165. throw new Error("The feature " + featureID + " is not valid.");
  19166. }
  19167. }
  19168. }], [{
  19169. key: 'fromJSON',
  19170. value: function fromJSON(json, factory) {
  19171. var result = factory.createModuleUseSpec();
  19172. var featureList = result.getFeatureList(factory);
  19173. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  19174. return result;
  19175. }
  19176. }]);
  19177. return _class2;
  19178. }(_MoserObject4.default);
  19179. /**
  19180. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="defaultName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="storeID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  19181. */
  19182. Module.UseSpec.Ancestors = function (_MoserObject2) {
  19183. _inherits(_class4, _MoserObject2);
  19184. function _class4() {
  19185. var _ref3;
  19186. var _temp3, _this3, _ret3;
  19187. _classCallCheck(this, _class4);
  19188. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  19189. args[_key3] = arguments[_key3];
  19190. }
  19191. return _ret3 = (_temp3 = (_this3 = _possibleConstructorReturn(this, (_ref3 = _class4.__proto__ || Object.getPrototypeOf(_class4)).call.apply(_ref3, [this].concat(args))), _this3), _this3.defaultName = null, _this3.storeID = null, _temp3), _possibleConstructorReturn(_this3, _ret3);
  19192. }
  19193. _createClass(_class4, [{
  19194. key: 'getDefaultName',
  19195. /**
  19196. * Gets the value of the defaultName property.
  19197. * @return {String} possible object is {@link String}
  19198. */
  19199. value: function getDefaultName() {
  19200. return this.defaultName;
  19201. }
  19202. /**
  19203. * Sets the value of the defaultName property.
  19204. * @param {String} value allowed object is {@link String}
  19205. */
  19206. }, {
  19207. key: 'setDefaultName',
  19208. value: function setDefaultName(value) {
  19209. var oldValue = this.defaultName;
  19210. this.defaultName = value;
  19211. this._setAndNotify(221, oldValue, value, false, false);
  19212. }
  19213. /**
  19214. * Gets the value of the storeID property.
  19215. * @return {String} possible object is {@link String}
  19216. */
  19217. }, {
  19218. key: 'getStoreID',
  19219. value: function getStoreID() {
  19220. return this.storeID;
  19221. }
  19222. /**
  19223. * Sets the value of the storeID property.
  19224. * @param {String} value allowed object is {@link String}
  19225. */
  19226. }, {
  19227. key: 'setStoreID',
  19228. value: function setStoreID(value) {
  19229. var oldValue = this.storeID;
  19230. this.storeID = value;
  19231. this._setAndNotify(88, oldValue, value, false, false);
  19232. }
  19233. /**
  19234. * Creates a new instance of <code>Ancestors</code> object from JSON data.
  19235. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  19236. * @param {Object} json JSON data to be used to create the <code> Ancestors</code> object from.
  19237. * @return {Ancestors} an object of type <code>Ancestors</code>
  19238. */
  19239. }, {
  19240. key: 'getObjectType',
  19241. /**
  19242. * Retrieves the type of this object
  19243. * @return {String} the object type in a <code>String</code>
  19244. */
  19245. value: function getObjectType() {
  19246. return "Ancestors";
  19247. }
  19248. /**
  19249. * Get a list of FeatureObjects
  19250. * @return {Array} A list of FeatureObjects
  19251. */
  19252. }, {
  19253. key: 'getFeatureList',
  19254. value: function getFeatureList(factory) {
  19255. var featureList = [];
  19256. featureList.push(this.createFeature(false, false, false, 221, "defaultName", null));
  19257. featureList.push(this.createFeature(false, false, false, 88, "storeID", null));
  19258. Array.prototype.push.apply(featureList, _get(_class4.prototype.__proto__ || Object.getPrototypeOf(_class4.prototype), 'getFeatureList', this).call(this, factory));
  19259. return featureList;
  19260. }
  19261. /**
  19262. * Set the value of a specific feature.
  19263. * @param {BaseMoserObject} value the value to set
  19264. * @param {int} featureID the feature id of the attribute to be set
  19265. */
  19266. }, {
  19267. key: 'set',
  19268. value: function set(featureID, value) {
  19269. switch (featureID) {
  19270. case 88:
  19271. this.setStoreID(value);
  19272. break;
  19273. case 221:
  19274. this.setDefaultName(value);
  19275. break;
  19276. default:
  19277. throw new Error("The feature " + featureID + " is not valid.");
  19278. }
  19279. }
  19280. /**
  19281. * Get the value of a specific feature.
  19282. * @param {int} featureID the feature id of the attribute to get
  19283. */
  19284. }, {
  19285. key: 'get',
  19286. value: function get(featureID) {
  19287. switch (featureID) {
  19288. case 88:
  19289. return this.getStoreID();
  19290. case 221:
  19291. return this.getDefaultName();
  19292. default:
  19293. throw new Error("The feature " + featureID + " is not valid.");
  19294. }
  19295. }
  19296. /**
  19297. * Get the value of a specific feature.
  19298. * @param {int} featureID the feature id of the attribute to get
  19299. */
  19300. }, {
  19301. key: 'basicGet',
  19302. value: function basicGet(featureID) {
  19303. switch (featureID) {
  19304. case 88:
  19305. return this.getStoreID();
  19306. case 221:
  19307. return this.getDefaultName();
  19308. default:
  19309. throw new Error("The feature " + featureID + " is not valid.");
  19310. }
  19311. }
  19312. }], [{
  19313. key: 'fromJSON',
  19314. value: function fromJSON(json, factory) {
  19315. var result = factory.createModuleUseSpecAncestors();
  19316. var featureList = result.getFeatureList(factory);
  19317. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  19318. return result;
  19319. }
  19320. }]);
  19321. return _class4;
  19322. }(_MoserObject4.default);
  19323. /***/ },
  19324. /* 55 */
  19325. /***/ function(module, exports, __webpack_require__) {
  19326. "use strict";
  19327. Object.defineProperty(exports, "__esModule", {
  19328. value: true
  19329. });
  19330. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  19331. var _Enum2 = __webpack_require__(12);
  19332. var _Enum3 = _interopRequireDefault(_Enum2);
  19333. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19334. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19335. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  19336. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  19337. ** IBM Confidential
  19338. **
  19339. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  19340. **
  19341. ** (C) Copyright IBM Corp. 2020
  19342. **
  19343. ** The source code for this program is not published or otherwise divested of its trade secrets,
  19344. ** irrespective of what has been deposited with the U.S. Copyright Office.
  19345. ************************************************************************/
  19346. // GENERATED
  19347. //@import Enum (loadtime) // superclass
  19348. /**
  19349. * <p>Java class for useSpecType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="useSpecType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="database"/&gt; &lt;enumeration value="file"/&gt; &lt;enumeration value="module"/&gt; &lt;enumeration value="dataset"/&gt; &lt;enumeration value="package"/&gt; &lt;enumeration value="wa_data_asset"/&gt; &lt;enumeration value="lwOLAP"/&gt; &lt;enumeration value="url"/&gt; &lt;enumeration value="report"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  19350. */
  19351. var UseSpecType = function (_Enum) {
  19352. _inherits(UseSpecType, _Enum);
  19353. function UseSpecType(v) {
  19354. _classCallCheck(this, UseSpecType);
  19355. var _this = _possibleConstructorReturn(this, (UseSpecType.__proto__ || Object.getPrototypeOf(UseSpecType)).call(this, v));
  19356. _this.enumValue = null;
  19357. _this.enumValue = v;
  19358. return _this;
  19359. }
  19360. _createClass(UseSpecType, [{
  19361. key: "value",
  19362. value: function value() {
  19363. return this.enumValue;
  19364. }
  19365. }, {
  19366. key: "getResourceId",
  19367. value: function getResourceId() {
  19368. return "UseSpecType" + "_" + this.value();
  19369. }
  19370. }], [{
  19371. key: "fromValue",
  19372. value: function fromValue(v) {
  19373. for (var i = 0; i < UseSpecType.values().length; ++i) {
  19374. if (UseSpecType.values()[i].enumValue == v) {
  19375. return UseSpecType.values()[i];
  19376. }
  19377. }
  19378. throw new Error(v);
  19379. }
  19380. }]);
  19381. return UseSpecType;
  19382. }(_Enum3.default);
  19383. UseSpecType.DATABASE = UseSpecType.newLiteral("database");
  19384. UseSpecType.FILE = UseSpecType.newLiteral("file");
  19385. UseSpecType.MODULE = UseSpecType.newLiteral("module");
  19386. UseSpecType.DATASET = UseSpecType.newLiteral("dataset");
  19387. UseSpecType.PACKAGE = UseSpecType.newLiteral("package");
  19388. UseSpecType.WA_DATA_ASSET = UseSpecType.newLiteral("wa_data_asset");
  19389. UseSpecType.LW_OLAP = UseSpecType.newLiteral("lwOLAP");
  19390. UseSpecType.URL = UseSpecType.newLiteral("url");
  19391. UseSpecType.REPORT = UseSpecType.newLiteral("report");
  19392. exports.default = UseSpecType;
  19393. /***/ },
  19394. /* 56 */
  19395. /***/ function(module, exports, __webpack_require__) {
  19396. "use strict";
  19397. Object.defineProperty(exports, "__esModule", {
  19398. value: true
  19399. });
  19400. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  19401. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  19402. var _MoserObject3 = __webpack_require__(6);
  19403. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  19404. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19405. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19406. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  19407. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  19408. ** IBM Confidential
  19409. **
  19410. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  19411. **
  19412. ** (C) Copyright IBM Corp. 2020
  19413. **
  19414. ** The source code for this program is not published or otherwise divested of its trade secrets,
  19415. ** irrespective of what has been deposited with the U.S. Copyright Office.
  19416. ************************************************************************/
  19417. // GENERATED
  19418. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  19419. /**
  19420. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="location" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="msg" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="ruleId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="detailMsg" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="errorData" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="line" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="character" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  19421. */
  19422. var ValidationMessage = function (_MoserObject) {
  19423. _inherits(ValidationMessage, _MoserObject);
  19424. function ValidationMessage() {
  19425. var _ref;
  19426. var _temp, _this, _ret;
  19427. _classCallCheck(this, ValidationMessage);
  19428. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  19429. args[_key] = arguments[_key];
  19430. }
  19431. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ValidationMessage.__proto__ || Object.getPrototypeOf(ValidationMessage)).call.apply(_ref, [this].concat(args))), _this), _this.location = null, _this.errorCode = null, _this.msg = null, _this.severity = null, _this.ruleId = null, _this.detailMsg = null, _this.errorData = null, _this.type = null, _temp), _possibleConstructorReturn(_this, _ret);
  19432. }
  19433. _createClass(ValidationMessage, [{
  19434. key: "getLocation",
  19435. /**
  19436. * Gets the value of the location property.
  19437. * @return {String} possible object is {@link String}
  19438. */
  19439. value: function getLocation() {
  19440. return this.location;
  19441. }
  19442. /**
  19443. * Sets the value of the location property.
  19444. * @param {String} value allowed object is {@link String}
  19445. */
  19446. }, {
  19447. key: "setLocation",
  19448. value: function setLocation(value) {
  19449. var oldValue = this.location;
  19450. this.location = value;
  19451. this._setAndNotify(13, oldValue, value, false, false);
  19452. }
  19453. /**
  19454. * Gets the value of the errorCode property.
  19455. * @return {String} possible object is {@link String}
  19456. */
  19457. }, {
  19458. key: "getErrorCode",
  19459. value: function getErrorCode() {
  19460. return this.errorCode;
  19461. }
  19462. /**
  19463. * Sets the value of the errorCode property.
  19464. * @param {String} value allowed object is {@link String}
  19465. */
  19466. }, {
  19467. key: "setErrorCode",
  19468. value: function setErrorCode(value) {
  19469. var oldValue = this.errorCode;
  19470. this.errorCode = value;
  19471. this._setAndNotify(12, oldValue, value, false, false);
  19472. }
  19473. /**
  19474. * Gets the value of the msg property.
  19475. * @return {String} possible object is {@link String}
  19476. */
  19477. }, {
  19478. key: "getMsg",
  19479. value: function getMsg() {
  19480. return this.msg;
  19481. }
  19482. /**
  19483. * Sets the value of the msg property.
  19484. * @param {String} value allowed object is {@link String}
  19485. */
  19486. }, {
  19487. key: "setMsg",
  19488. value: function setMsg(value) {
  19489. var oldValue = this.msg;
  19490. this.msg = value;
  19491. this._setAndNotify(9, oldValue, value, false, false);
  19492. }
  19493. /**
  19494. * Gets the value of the severity property.
  19495. * @return {String} possible object is {@link String}
  19496. */
  19497. }, {
  19498. key: "getSeverity",
  19499. value: function getSeverity() {
  19500. return this.severity;
  19501. }
  19502. /**
  19503. * Sets the value of the severity property.
  19504. * @param {String} value allowed object is {@link String}
  19505. */
  19506. }, {
  19507. key: "setSeverity",
  19508. value: function setSeverity(value) {
  19509. var oldValue = this.severity;
  19510. this.severity = value;
  19511. this._setAndNotify(10, oldValue, value, false, false);
  19512. }
  19513. /**
  19514. * Gets the value of the ruleId property.
  19515. * @return {String} possible object is {@link String}
  19516. */
  19517. }, {
  19518. key: "getRuleId",
  19519. value: function getRuleId() {
  19520. return this.ruleId;
  19521. }
  19522. /**
  19523. * Sets the value of the ruleId property.
  19524. * @param {String} value allowed object is {@link String}
  19525. */
  19526. }, {
  19527. key: "setRuleId",
  19528. value: function setRuleId(value) {
  19529. var oldValue = this.ruleId;
  19530. this.ruleId = value;
  19531. this._setAndNotify(14, oldValue, value, false, false);
  19532. }
  19533. /**
  19534. * Gets the value of the detailMsg property.
  19535. * @return {String} possible object is {@link String}
  19536. */
  19537. }, {
  19538. key: "getDetailMsg",
  19539. value: function getDetailMsg() {
  19540. return this.detailMsg;
  19541. }
  19542. /**
  19543. * Sets the value of the detailMsg property.
  19544. * @param {String} value allowed object is {@link String}
  19545. */
  19546. }, {
  19547. key: "setDetailMsg",
  19548. value: function setDetailMsg(value) {
  19549. var oldValue = this.detailMsg;
  19550. this.detailMsg = value;
  19551. this._setAndNotify(11, oldValue, value, false, false);
  19552. }
  19553. /**
  19554. * Gets the value of the errorData property.
  19555. * @return {ErrorData} possible object is {@link ValidationMessage.ErrorData}
  19556. */
  19557. }, {
  19558. key: "getErrorData",
  19559. value: function getErrorData() {
  19560. return this.errorData;
  19561. }
  19562. /**
  19563. * Sets the value of the errorData property.
  19564. * @param {ErrorData} value allowed object is {@link ValidationMessage.ErrorData}
  19565. */
  19566. }, {
  19567. key: "setErrorData",
  19568. value: function setErrorData(value) {
  19569. var oldValue = this.errorData;
  19570. this.errorData = value;
  19571. this._setAndNotify(16, oldValue, value, true, false);
  19572. }
  19573. /**
  19574. * Gets the value of the type property.
  19575. * @return {String} possible object is {@link String}
  19576. */
  19577. }, {
  19578. key: "getType",
  19579. value: function getType() {
  19580. return this.type;
  19581. }
  19582. /**
  19583. * Sets the value of the type property.
  19584. * @param {String} value allowed object is {@link String}
  19585. */
  19586. }, {
  19587. key: "setType",
  19588. value: function setType(value) {
  19589. var oldValue = this.type;
  19590. this.type = value;
  19591. this._setAndNotify(15, oldValue, value, false, false);
  19592. }
  19593. /**
  19594. * Creates a new instance of <code>ValidationMessage</code> object from JSON data.
  19595. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  19596. * @param {Object} json JSON data to be used to create the <code> ValidationMessage</code> object from.
  19597. * @return {ValidationMessage} an object of type <code>ValidationMessage</code>
  19598. */
  19599. }, {
  19600. key: "getObjectType",
  19601. /**
  19602. * Retrieves the type of this object
  19603. * @return {String} the object type in a <code>String</code>
  19604. */
  19605. value: function getObjectType() {
  19606. return "ValidationMessage";
  19607. }
  19608. /**
  19609. * Get a list of FeatureObjects
  19610. * @return {Array} A list of FeatureObjects
  19611. */
  19612. }, {
  19613. key: "getFeatureList",
  19614. value: function getFeatureList(factory) {
  19615. var featureList = [];
  19616. featureList.push(this.createFeature(false, false, false, 13, "location", null));
  19617. featureList.push(this.createFeature(false, false, false, 12, "errorCode", null));
  19618. featureList.push(this.createFeature(false, false, false, 9, "msg", null));
  19619. featureList.push(this.createFeature(false, false, false, 10, "severity", null));
  19620. featureList.push(this.createFeature(false, false, false, 14, "ruleId", null));
  19621. featureList.push(this.createFeature(false, false, false, 11, "detailMsg", null));
  19622. var clazz;
  19623. if (factory) {
  19624. clazz = factory.createValidationMessageErrorData().getClass();
  19625. }
  19626. featureList.push(this.createFeature(false, false, true, 16, "errorData", clazz));
  19627. featureList.push(this.createFeature(false, false, false, 15, "type", null));
  19628. Array.prototype.push.apply(featureList, _get(ValidationMessage.prototype.__proto__ || Object.getPrototypeOf(ValidationMessage.prototype), "getFeatureList", this).call(this, factory));
  19629. return featureList;
  19630. }
  19631. /**
  19632. * Set the value of a specific feature.
  19633. * @param {BaseMoserObject} value the value to set
  19634. * @param {int} featureID the feature id of the attribute to be set
  19635. */
  19636. }, {
  19637. key: "set",
  19638. value: function set(featureID, value) {
  19639. switch (featureID) {
  19640. case 9:
  19641. this.setMsg(value);
  19642. break;
  19643. case 10:
  19644. this.setSeverity(value);
  19645. break;
  19646. case 11:
  19647. this.setDetailMsg(value);
  19648. break;
  19649. case 12:
  19650. this.setErrorCode(value);
  19651. break;
  19652. case 13:
  19653. this.setLocation(value);
  19654. break;
  19655. case 14:
  19656. this.setRuleId(value);
  19657. break;
  19658. case 15:
  19659. this.setType(value);
  19660. break;
  19661. case 16:
  19662. this.setErrorData(value);
  19663. break;
  19664. default:
  19665. throw new Error("The feature " + featureID + " is not valid.");
  19666. }
  19667. }
  19668. /**
  19669. * Get the value of a specific feature.
  19670. * @param {int} featureID the feature id of the attribute to get
  19671. */
  19672. }, {
  19673. key: "get",
  19674. value: function get(featureID) {
  19675. switch (featureID) {
  19676. case 9:
  19677. return this.getMsg();
  19678. case 10:
  19679. return this.getSeverity();
  19680. case 11:
  19681. return this.getDetailMsg();
  19682. case 12:
  19683. return this.getErrorCode();
  19684. case 13:
  19685. return this.getLocation();
  19686. case 14:
  19687. return this.getRuleId();
  19688. case 15:
  19689. return this.getType();
  19690. case 16:
  19691. return this.getErrorData();
  19692. default:
  19693. throw new Error("The feature " + featureID + " is not valid.");
  19694. }
  19695. }
  19696. /**
  19697. * Get the value of a specific feature.
  19698. * @param {int} featureID the feature id of the attribute to get
  19699. */
  19700. }, {
  19701. key: "basicGet",
  19702. value: function basicGet(featureID) {
  19703. switch (featureID) {
  19704. case 9:
  19705. return this.getMsg();
  19706. case 10:
  19707. return this.getSeverity();
  19708. case 11:
  19709. return this.getDetailMsg();
  19710. case 12:
  19711. return this.getErrorCode();
  19712. case 13:
  19713. return this.getLocation();
  19714. case 14:
  19715. return this.getRuleId();
  19716. case 15:
  19717. return this.getType();
  19718. case 16:
  19719. return this.getErrorData();
  19720. default:
  19721. throw new Error("The feature " + featureID + " is not valid.");
  19722. }
  19723. }
  19724. }], [{
  19725. key: "fromJSON",
  19726. value: function fromJSON(json, factory) {
  19727. var result = factory.createValidationMessage();
  19728. var featureList = result.getFeatureList(factory);
  19729. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  19730. return result;
  19731. }
  19732. }]);
  19733. return ValidationMessage;
  19734. }(_MoserObject4.default);
  19735. /**
  19736. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="line" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="character" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  19737. */
  19738. exports.default = ValidationMessage;
  19739. ValidationMessage.ErrorData = function (_MoserObject2) {
  19740. _inherits(_class2, _MoserObject2);
  19741. function _class2() {
  19742. var _ref2;
  19743. var _temp2, _this2, _ret2;
  19744. _classCallCheck(this, _class2);
  19745. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  19746. args[_key2] = arguments[_key2];
  19747. }
  19748. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.line = null, _this2.character = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  19749. }
  19750. _createClass(_class2, [{
  19751. key: "getLine",
  19752. /**
  19753. * Gets the value of the line property.
  19754. * @return {String} possible object is {@link String}
  19755. */
  19756. value: function getLine() {
  19757. return this.line;
  19758. }
  19759. /**
  19760. * Sets the value of the line property.
  19761. * @param {String} value allowed object is {@link String}
  19762. */
  19763. }, {
  19764. key: "setLine",
  19765. value: function setLine(value) {
  19766. var oldValue = this.line;
  19767. this.line = value;
  19768. this._setAndNotify(148, oldValue, value, false, false);
  19769. }
  19770. /**
  19771. * Gets the value of the character property.
  19772. * @return {String} possible object is {@link String}
  19773. */
  19774. }, {
  19775. key: "getCharacter",
  19776. value: function getCharacter() {
  19777. return this.character;
  19778. }
  19779. /**
  19780. * Sets the value of the character property.
  19781. * @param {String} value allowed object is {@link String}
  19782. */
  19783. }, {
  19784. key: "setCharacter",
  19785. value: function setCharacter(value) {
  19786. var oldValue = this.character;
  19787. this.character = value;
  19788. this._setAndNotify(149, oldValue, value, false, false);
  19789. }
  19790. /**
  19791. * Creates a new instance of <code>ErrorData</code> object from JSON data.
  19792. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  19793. * @param {Object} json JSON data to be used to create the <code> ErrorData</code> object from.
  19794. * @return {ErrorData} an object of type <code>ErrorData</code>
  19795. */
  19796. }, {
  19797. key: "getObjectType",
  19798. /**
  19799. * Retrieves the type of this object
  19800. * @return {String} the object type in a <code>String</code>
  19801. */
  19802. value: function getObjectType() {
  19803. return "ErrorData";
  19804. }
  19805. /**
  19806. * Get a list of FeatureObjects
  19807. * @return {Array} A list of FeatureObjects
  19808. */
  19809. }, {
  19810. key: "getFeatureList",
  19811. value: function getFeatureList(factory) {
  19812. var featureList = [];
  19813. featureList.push(this.createFeature(false, false, false, 148, "line", null));
  19814. featureList.push(this.createFeature(false, false, false, 149, "character", null));
  19815. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), "getFeatureList", this).call(this, factory));
  19816. return featureList;
  19817. }
  19818. /**
  19819. * Set the value of a specific feature.
  19820. * @param {BaseMoserObject} value the value to set
  19821. * @param {int} featureID the feature id of the attribute to be set
  19822. */
  19823. }, {
  19824. key: "set",
  19825. value: function set(featureID, value) {
  19826. switch (featureID) {
  19827. case 148:
  19828. this.setLine(value);
  19829. break;
  19830. case 149:
  19831. this.setCharacter(value);
  19832. break;
  19833. default:
  19834. throw new Error("The feature " + featureID + " is not valid.");
  19835. }
  19836. }
  19837. /**
  19838. * Get the value of a specific feature.
  19839. * @param {int} featureID the feature id of the attribute to get
  19840. */
  19841. }, {
  19842. key: "get",
  19843. value: function get(featureID) {
  19844. switch (featureID) {
  19845. case 148:
  19846. return this.getLine();
  19847. case 149:
  19848. return this.getCharacter();
  19849. default:
  19850. throw new Error("The feature " + featureID + " is not valid.");
  19851. }
  19852. }
  19853. /**
  19854. * Get the value of a specific feature.
  19855. * @param {int} featureID the feature id of the attribute to get
  19856. */
  19857. }, {
  19858. key: "basicGet",
  19859. value: function basicGet(featureID) {
  19860. switch (featureID) {
  19861. case 148:
  19862. return this.getLine();
  19863. case 149:
  19864. return this.getCharacter();
  19865. default:
  19866. throw new Error("The feature " + featureID + " is not valid.");
  19867. }
  19868. }
  19869. }], [{
  19870. key: "fromJSON",
  19871. value: function fromJSON(json, factory) {
  19872. var result = factory.createValidationMessageErrorData();
  19873. var featureList = result.getFeatureList(factory);
  19874. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  19875. return result;
  19876. }
  19877. }]);
  19878. return _class2;
  19879. }(_MoserObject4.default);
  19880. /***/ },
  19881. /* 57 */
  19882. /***/ function(module, exports, __webpack_require__) {
  19883. "use strict";
  19884. Object.defineProperty(exports, "__esModule", {
  19885. value: true
  19886. });
  19887. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  19888. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  19889. var _MoserObject4 = __webpack_require__(6);
  19890. var _MoserObject5 = _interopRequireDefault(_MoserObject4);
  19891. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  19892. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  19893. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  19894. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  19895. ** IBM Confidential
  19896. **
  19897. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  19898. **
  19899. ** (C) Copyright IBM Corp. 2021
  19900. **
  19901. ** The source code for this program is not published or otherwise divested of its trade secrets,
  19902. ** irrespective of what has been deposited with the U.S. Copyright Office.
  19903. ************************************************************************/
  19904. // GENERATED
  19905. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  19906. /**
  19907. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="data"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element ref="{}validationMessage" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="msg" maxOccurs="unbounded"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  19908. */
  19909. var Feedback = function (_MoserObject) {
  19910. _inherits(Feedback, _MoserObject);
  19911. function Feedback() {
  19912. var _ref;
  19913. var _temp, _this, _ret;
  19914. _classCallCheck(this, Feedback);
  19915. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  19916. args[_key] = arguments[_key];
  19917. }
  19918. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Feedback.__proto__ || Object.getPrototypeOf(Feedback)).call.apply(_ref, [this].concat(args))), _this), _this.data = null, _this.msg = null, _temp), _possibleConstructorReturn(_this, _ret);
  19919. }
  19920. _createClass(Feedback, [{
  19921. key: "getData",
  19922. /**
  19923. * Gets the value of the data property.
  19924. * @return {Data} possible object is {@link Feedback.Data}
  19925. */
  19926. value: function getData() {
  19927. return this.data;
  19928. }
  19929. /**
  19930. * Sets the value of the data property.
  19931. * @param {Data} value allowed object is {@link Feedback.Data}
  19932. */
  19933. }, {
  19934. key: "setData",
  19935. value: function setData(value) {
  19936. var oldValue = this.data;
  19937. this.data = value;
  19938. this._setAndNotify(176, oldValue, value, true, false);
  19939. }
  19940. /**
  19941. * Gets the value of the msg property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the msg property. <p> For example, to add a new item, do as follows: <pre> getMsg().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Feedback.Msg}
  19942. */
  19943. }, {
  19944. key: "getMsg",
  19945. value: function getMsg() {
  19946. if (!this.msg) {
  19947. this.msg = [];
  19948. }
  19949. return this.msg;
  19950. }
  19951. /**
  19952. * Gets the value of the <code>msg</code> property without initializing the property to an empty list if it is unset.
  19953. * @return {Array} the list of <code>Msg</code> elements, or <code>null</code> if not set
  19954. */
  19955. }, {
  19956. key: "basicGetMsg",
  19957. value: function basicGetMsg() {
  19958. return this.msg;
  19959. }
  19960. /**
  19961. * Creates a new instance of <code>Feedback</code> object from JSON data.
  19962. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  19963. * @param {Object} json JSON data to be used to create the <code> Feedback</code> object from.
  19964. * @return {Feedback} an object of type <code>Feedback</code>
  19965. */
  19966. }, {
  19967. key: "addMsgAt",
  19968. /**
  19969. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  19970. */
  19971. value: function addMsgAt(position, item) {
  19972. this._addAtAndNotify(this.getMsg(), position, item, 9, true, false);
  19973. }
  19974. /**
  19975. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  19976. */
  19977. }, {
  19978. key: "addMsg",
  19979. value: function addMsg(item) {
  19980. this.addMsgAt(this.getMsg().length, item);
  19981. }
  19982. /**
  19983. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  19984. */
  19985. }, {
  19986. key: "removeMsgAt",
  19987. value: function removeMsgAt(position) {
  19988. this._removeAtAndNotify(this.getMsg(), position, 9, true);
  19989. }
  19990. /**
  19991. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  19992. */
  19993. }, {
  19994. key: "removeMsg",
  19995. value: function removeMsg(item) {
  19996. var i = this.getMsg().indexOf(item);
  19997. if (i >= 0) {
  19998. this.removeMsgAt(i);
  19999. }
  20000. }
  20001. /**
  20002. * Retrieves the type of this object
  20003. * @return {String} the object type in a <code>String</code>
  20004. */
  20005. }, {
  20006. key: "getObjectType",
  20007. value: function getObjectType() {
  20008. return "Feedback";
  20009. }
  20010. /**
  20011. * Get a list of FeatureObjects
  20012. * @return {Array} A list of FeatureObjects
  20013. */
  20014. }, {
  20015. key: "getFeatureList",
  20016. value: function getFeatureList(factory) {
  20017. var featureList = [];
  20018. var clazz;
  20019. if (factory) {
  20020. clazz = factory.createFeedbackData().getClass();
  20021. }
  20022. featureList.push(this.createFeature(false, false, true, 176, "data", clazz));
  20023. if (factory) {
  20024. clazz = factory.createFeedbackMsg().getClass();
  20025. }
  20026. featureList.push(this.createFeature(true, false, true, 9, "msg", clazz));
  20027. Array.prototype.push.apply(featureList, _get(Feedback.prototype.__proto__ || Object.getPrototypeOf(Feedback.prototype), "getFeatureList", this).call(this, factory));
  20028. return featureList;
  20029. }
  20030. /**
  20031. * Set the value of a specific feature.
  20032. * @param {BaseMoserObject} value the value to set
  20033. * @param {int} featureID the feature id of the attribute to be set
  20034. */
  20035. }, {
  20036. key: "set",
  20037. value: function set(featureID, value) {
  20038. switch (featureID) {
  20039. case 176:
  20040. this.setData(value);
  20041. break;
  20042. default:
  20043. throw new Error("The feature " + featureID + " is not valid.");
  20044. }
  20045. }
  20046. /**
  20047. * Set the value of a specific feature.
  20048. * @param {BaseMoserObject} value the value to set the value to set
  20049. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  20050. */
  20051. }, {
  20052. key: "_setList",
  20053. value: function _setList(featureID, value) {
  20054. switch (featureID) {
  20055. case 9:
  20056. this.msg = value;
  20057. break;
  20058. default:
  20059. throw new Error("The feature " + featureID + " is not valid.");
  20060. }
  20061. }
  20062. /**
  20063. * Get the value of a specific feature.
  20064. * @param {int} featureID the feature id of the attribute to get
  20065. */
  20066. }, {
  20067. key: "get",
  20068. value: function get(featureID) {
  20069. switch (featureID) {
  20070. case 176:
  20071. return this.getData();
  20072. case 9:
  20073. return this.getMsg();
  20074. default:
  20075. throw new Error("The feature " + featureID + " is not valid.");
  20076. }
  20077. }
  20078. /**
  20079. * Get the value of a specific feature.
  20080. * @param {int} featureID the feature id of the attribute to get
  20081. */
  20082. }, {
  20083. key: "basicGet",
  20084. value: function basicGet(featureID) {
  20085. switch (featureID) {
  20086. case 176:
  20087. return this.getData();
  20088. case 9:
  20089. return this.basicGetMsg();
  20090. default:
  20091. throw new Error("The feature " + featureID + " is not valid.");
  20092. }
  20093. }
  20094. /**
  20095. * Add the value of a specific feature at a specific position
  20096. * @param {int} position the array position of the item to be added
  20097. * @param {BaseMoserObject} value the value to add
  20098. * @param {int} featureID the feature id of the attribute to be added
  20099. */
  20100. }, {
  20101. key: "addAt",
  20102. value: function addAt(featureID, position, value) {
  20103. switch (featureID) {
  20104. case 9:
  20105. this.addMsgAt(position, value);
  20106. break;
  20107. default:
  20108. throw new Error("The feature " + featureID + " is not valid.");
  20109. }
  20110. }
  20111. /**
  20112. * Add the value to the end of a specific collection feature
  20113. * @param {BaseMoserObject} value the value to add
  20114. * @param {int} featureID the feature id of the attribute to be added
  20115. */
  20116. }, {
  20117. key: "add",
  20118. value: function add(featureID, value) {
  20119. switch (featureID) {
  20120. case 9:
  20121. this.addMsg(value);
  20122. break;
  20123. default:
  20124. throw new Error("The feature " + featureID + " is not valid.");
  20125. }
  20126. }
  20127. /**
  20128. * Remove the value of a specific feature by index.
  20129. * @param {int} position the array position of the item to be removed
  20130. * @param {int} featureID the feature id of the attribute to be removed
  20131. */
  20132. }, {
  20133. key: "removeAt",
  20134. value: function removeAt(featureID, position) {
  20135. switch (featureID) {
  20136. case 9:
  20137. this.removeMsgAt(position);
  20138. break;
  20139. default:
  20140. throw new Error("The feature " + featureID + " is not valid.");
  20141. }
  20142. }
  20143. /**
  20144. * Remove the value from specific feature.
  20145. * @param {BaseMoserObject} item the item to be removed
  20146. * @param {int} featureID the feature id of the attribute to be removed
  20147. */
  20148. }, {
  20149. key: "remove",
  20150. value: function remove(featureID, item) {
  20151. switch (featureID) {
  20152. case 9:
  20153. this.removeMsg(item);
  20154. break;
  20155. default:
  20156. throw new Error("The feature " + featureID + " is not valid.");
  20157. }
  20158. }
  20159. }], [{
  20160. key: "fromJSON",
  20161. value: function fromJSON(json, factory) {
  20162. var result = factory.createFeedback();
  20163. var featureList = result.getFeatureList(factory);
  20164. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  20165. return result;
  20166. }
  20167. }]);
  20168. return Feedback;
  20169. }(_MoserObject5.default);
  20170. /**
  20171. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element ref="{}validationMessage" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  20172. */
  20173. exports.default = Feedback;
  20174. Feedback.Data = function (_MoserObject2) {
  20175. _inherits(_class2, _MoserObject2);
  20176. function _class2() {
  20177. var _ref2;
  20178. var _temp2, _this2, _ret2;
  20179. _classCallCheck(this, _class2);
  20180. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  20181. args[_key2] = arguments[_key2];
  20182. }
  20183. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.validationMessage = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  20184. }
  20185. _createClass(_class2, [{
  20186. key: "getValidationMessage",
  20187. /**
  20188. * Gets the value of the validationMessage property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the validationMessage property. <p> For example, to add a new item, do as follows: <pre> getValidationMessage().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ValidationMessage}
  20189. */
  20190. value: function getValidationMessage() {
  20191. if (!this.validationMessage) {
  20192. this.validationMessage = [];
  20193. }
  20194. return this.validationMessage;
  20195. }
  20196. /**
  20197. * Gets the value of the <code>validationMessage</code> property without initializing the property to an empty list if it is unset.
  20198. * @return {Array} the list of <code>ValidationMessage</code> elements, or <code>null</code> if not set
  20199. */
  20200. }, {
  20201. key: "basicGetValidationMessage",
  20202. value: function basicGetValidationMessage() {
  20203. return this.validationMessage;
  20204. }
  20205. /**
  20206. * Creates a new instance of <code>Data</code> object from JSON data.
  20207. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  20208. * @param {Object} json JSON data to be used to create the <code> Data</code> object from.
  20209. * @return {Data} an object of type <code>Data</code>
  20210. */
  20211. }, {
  20212. key: "addValidationMessageAt",
  20213. /**
  20214. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  20215. */
  20216. value: function addValidationMessageAt(position, item) {
  20217. this._addAtAndNotify(this.getValidationMessage(), position, item, 214, true, false);
  20218. }
  20219. /**
  20220. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  20221. */
  20222. }, {
  20223. key: "addValidationMessage",
  20224. value: function addValidationMessage(item) {
  20225. this.addValidationMessageAt(this.getValidationMessage().length, item);
  20226. }
  20227. /**
  20228. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  20229. */
  20230. }, {
  20231. key: "removeValidationMessageAt",
  20232. value: function removeValidationMessageAt(position) {
  20233. this._removeAtAndNotify(this.getValidationMessage(), position, 214, true);
  20234. }
  20235. /**
  20236. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  20237. */
  20238. }, {
  20239. key: "removeValidationMessage",
  20240. value: function removeValidationMessage(item) {
  20241. var i = this.getValidationMessage().indexOf(item);
  20242. if (i >= 0) {
  20243. this.removeValidationMessageAt(i);
  20244. }
  20245. }
  20246. /**
  20247. * Retrieves the type of this object
  20248. * @return {String} the object type in a <code>String</code>
  20249. */
  20250. }, {
  20251. key: "getObjectType",
  20252. value: function getObjectType() {
  20253. return "Data";
  20254. }
  20255. /**
  20256. * Get a list of FeatureObjects
  20257. * @return {Array} A list of FeatureObjects
  20258. */
  20259. }, {
  20260. key: "getFeatureList",
  20261. value: function getFeatureList(factory) {
  20262. var featureList = [];
  20263. var clazz;
  20264. if (factory) {
  20265. clazz = factory.createValidationMessage().getClass();
  20266. }
  20267. featureList.push(this.createFeature(true, false, true, 214, "validationMessage", clazz));
  20268. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), "getFeatureList", this).call(this, factory));
  20269. return featureList;
  20270. }
  20271. /**
  20272. * Set the value of a specific feature.
  20273. * @param {BaseMoserObject} value the value to set
  20274. * @param {int} featureID the feature id of the attribute to be set
  20275. */
  20276. }, {
  20277. key: "set",
  20278. value: function set(featureID, value) {
  20279. switch (featureID) {
  20280. default:
  20281. throw new Error("The feature " + featureID + " is not valid.");
  20282. }
  20283. }
  20284. /**
  20285. * Set the value of a specific feature.
  20286. * @param {BaseMoserObject} value the value to set the value to set
  20287. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  20288. */
  20289. }, {
  20290. key: "_setList",
  20291. value: function _setList(featureID, value) {
  20292. switch (featureID) {
  20293. case 214:
  20294. this.validationMessage = value;
  20295. break;
  20296. default:
  20297. throw new Error("The feature " + featureID + " is not valid.");
  20298. }
  20299. }
  20300. /**
  20301. * Get the value of a specific feature.
  20302. * @param {int} featureID the feature id of the attribute to get
  20303. */
  20304. }, {
  20305. key: "get",
  20306. value: function get(featureID) {
  20307. switch (featureID) {
  20308. case 214:
  20309. return this.getValidationMessage();
  20310. default:
  20311. throw new Error("The feature " + featureID + " is not valid.");
  20312. }
  20313. }
  20314. /**
  20315. * Get the value of a specific feature.
  20316. * @param {int} featureID the feature id of the attribute to get
  20317. */
  20318. }, {
  20319. key: "basicGet",
  20320. value: function basicGet(featureID) {
  20321. switch (featureID) {
  20322. case 214:
  20323. return this.basicGetValidationMessage();
  20324. default:
  20325. throw new Error("The feature " + featureID + " is not valid.");
  20326. }
  20327. }
  20328. /**
  20329. * Add the value of a specific feature at a specific position
  20330. * @param {int} position the array position of the item to be added
  20331. * @param {BaseMoserObject} value the value to add
  20332. * @param {int} featureID the feature id of the attribute to be added
  20333. */
  20334. }, {
  20335. key: "addAt",
  20336. value: function addAt(featureID, position, value) {
  20337. switch (featureID) {
  20338. case 214:
  20339. this.addValidationMessageAt(position, value);
  20340. break;
  20341. default:
  20342. throw new Error("The feature " + featureID + " is not valid.");
  20343. }
  20344. }
  20345. /**
  20346. * Add the value to the end of a specific collection feature
  20347. * @param {BaseMoserObject} value the value to add
  20348. * @param {int} featureID the feature id of the attribute to be added
  20349. */
  20350. }, {
  20351. key: "add",
  20352. value: function add(featureID, value) {
  20353. switch (featureID) {
  20354. case 214:
  20355. this.addValidationMessage(value);
  20356. break;
  20357. default:
  20358. throw new Error("The feature " + featureID + " is not valid.");
  20359. }
  20360. }
  20361. /**
  20362. * Remove the value of a specific feature by index.
  20363. * @param {int} position the array position of the item to be removed
  20364. * @param {int} featureID the feature id of the attribute to be removed
  20365. */
  20366. }, {
  20367. key: "removeAt",
  20368. value: function removeAt(featureID, position) {
  20369. switch (featureID) {
  20370. case 214:
  20371. this.removeValidationMessageAt(position);
  20372. break;
  20373. default:
  20374. throw new Error("The feature " + featureID + " is not valid.");
  20375. }
  20376. }
  20377. /**
  20378. * Remove the value from specific feature.
  20379. * @param {BaseMoserObject} item the item to be removed
  20380. * @param {int} featureID the feature id of the attribute to be removed
  20381. */
  20382. }, {
  20383. key: "remove",
  20384. value: function remove(featureID, item) {
  20385. switch (featureID) {
  20386. case 214:
  20387. this.removeValidationMessage(item);
  20388. break;
  20389. default:
  20390. throw new Error("The feature " + featureID + " is not valid.");
  20391. }
  20392. }
  20393. }], [{
  20394. key: "fromJSON",
  20395. value: function fromJSON(json, factory) {
  20396. var result = factory.createFeedbackData();
  20397. var featureList = result.getFeatureList(factory);
  20398. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  20399. return result;
  20400. }
  20401. }]);
  20402. return _class2;
  20403. }(_MoserObject5.default);
  20404. /**
  20405. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="severity" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  20406. */
  20407. Feedback.Msg = function (_MoserObject3) {
  20408. _inherits(_class4, _MoserObject3);
  20409. function _class4() {
  20410. var _ref3;
  20411. var _temp3, _this3, _ret3;
  20412. _classCallCheck(this, _class4);
  20413. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  20414. args[_key3] = arguments[_key3];
  20415. }
  20416. return _ret3 = (_temp3 = (_this3 = _possibleConstructorReturn(this, (_ref3 = _class4.__proto__ || Object.getPrototypeOf(_class4)).call.apply(_ref3, [this].concat(args))), _this3), _this3.severity = null, _this3.text = null, _temp3), _possibleConstructorReturn(_this3, _ret3);
  20417. }
  20418. _createClass(_class4, [{
  20419. key: "getSeverity",
  20420. /**
  20421. * Gets the value of the severity property.
  20422. * @return {String} possible object is {@link String}
  20423. */
  20424. value: function getSeverity() {
  20425. return this.severity;
  20426. }
  20427. /**
  20428. * Sets the value of the severity property.
  20429. * @param {String} value allowed object is {@link String}
  20430. */
  20431. }, {
  20432. key: "setSeverity",
  20433. value: function setSeverity(value) {
  20434. var oldValue = this.severity;
  20435. this.severity = value;
  20436. this._setAndNotify(10, oldValue, value, false, false);
  20437. }
  20438. /**
  20439. * Gets the value of the text property.
  20440. * @return {String} possible object is {@link String}
  20441. */
  20442. }, {
  20443. key: "getText",
  20444. value: function getText() {
  20445. return this.text;
  20446. }
  20447. /**
  20448. * Sets the value of the text property.
  20449. * @param {String} value allowed object is {@link String}
  20450. */
  20451. }, {
  20452. key: "setText",
  20453. value: function setText(value) {
  20454. var oldValue = this.text;
  20455. this.text = value;
  20456. this._setAndNotify(39, oldValue, value, false, false);
  20457. }
  20458. /**
  20459. * Creates a new instance of <code>Msg</code> object from JSON data.
  20460. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  20461. * @param {Object} json JSON data to be used to create the <code> Msg</code> object from.
  20462. * @return {Msg} an object of type <code>Msg</code>
  20463. */
  20464. }, {
  20465. key: "getObjectType",
  20466. /**
  20467. * Retrieves the type of this object
  20468. * @return {String} the object type in a <code>String</code>
  20469. */
  20470. value: function getObjectType() {
  20471. return "Msg";
  20472. }
  20473. /**
  20474. * Get a list of FeatureObjects
  20475. * @return {Array} A list of FeatureObjects
  20476. */
  20477. }, {
  20478. key: "getFeatureList",
  20479. value: function getFeatureList(factory) {
  20480. var featureList = [];
  20481. featureList.push(this.createFeature(false, false, false, 10, "severity", null));
  20482. featureList.push(this.createFeature(false, false, false, 39, "text", null));
  20483. Array.prototype.push.apply(featureList, _get(_class4.prototype.__proto__ || Object.getPrototypeOf(_class4.prototype), "getFeatureList", this).call(this, factory));
  20484. return featureList;
  20485. }
  20486. /**
  20487. * Set the value of a specific feature.
  20488. * @param {BaseMoserObject} value the value to set
  20489. * @param {int} featureID the feature id of the attribute to be set
  20490. */
  20491. }, {
  20492. key: "set",
  20493. value: function set(featureID, value) {
  20494. switch (featureID) {
  20495. case 10:
  20496. this.setSeverity(value);
  20497. break;
  20498. case 39:
  20499. this.setText(value);
  20500. break;
  20501. default:
  20502. throw new Error("The feature " + featureID + " is not valid.");
  20503. }
  20504. }
  20505. /**
  20506. * Get the value of a specific feature.
  20507. * @param {int} featureID the feature id of the attribute to get
  20508. */
  20509. }, {
  20510. key: "get",
  20511. value: function get(featureID) {
  20512. switch (featureID) {
  20513. case 10:
  20514. return this.getSeverity();
  20515. case 39:
  20516. return this.getText();
  20517. default:
  20518. throw new Error("The feature " + featureID + " is not valid.");
  20519. }
  20520. }
  20521. /**
  20522. * Get the value of a specific feature.
  20523. * @param {int} featureID the feature id of the attribute to get
  20524. */
  20525. }, {
  20526. key: "basicGet",
  20527. value: function basicGet(featureID) {
  20528. switch (featureID) {
  20529. case 10:
  20530. return this.getSeverity();
  20531. case 39:
  20532. return this.getText();
  20533. default:
  20534. throw new Error("The feature " + featureID + " is not valid.");
  20535. }
  20536. }
  20537. }], [{
  20538. key: "fromJSON",
  20539. value: function fromJSON(json, factory) {
  20540. var result = factory.createFeedbackMsg();
  20541. var featureList = result.getFeatureList(factory);
  20542. _MoserObject5.default.fromJSONHelper(result, featureList, json, factory);
  20543. return result;
  20544. }
  20545. }]);
  20546. return _class4;
  20547. }(_MoserObject5.default);
  20548. /***/ },
  20549. /* 58 */
  20550. /***/ function(module, exports, __webpack_require__) {
  20551. 'use strict';
  20552. Object.defineProperty(exports, "__esModule", {
  20553. value: true
  20554. });
  20555. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  20556. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  20557. var _ObjectType2 = __webpack_require__(26);
  20558. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  20559. var _MoserObject3 = __webpack_require__(6);
  20560. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  20561. var _CardinalityEnum = __webpack_require__(59);
  20562. var _CardinalityEnum2 = _interopRequireDefault(_CardinalityEnum);
  20563. var _SqlOperatorType = __webpack_require__(23);
  20564. var _SqlOperatorType2 = _interopRequireDefault(_SqlOperatorType);
  20565. var _KeyConstraintType = __webpack_require__(13);
  20566. var _KeyConstraintType2 = _interopRequireDefault(_KeyConstraintType);
  20567. var _KeyCompositionType = __webpack_require__(14);
  20568. var _KeyCompositionType2 = _interopRequireDefault(_KeyCompositionType);
  20569. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  20570. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  20571. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  20572. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  20573. ** IBM Confidential
  20574. **
  20575. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  20576. **
  20577. ** (C) Copyright IBM Corp. 2021
  20578. **
  20579. ** The source code for this program is not published or otherwise divested of its trade secrets,
  20580. ** irrespective of what has been deposited with the U.S. Copyright Office.
  20581. ************************************************************************/
  20582. // GENERATED
  20583. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  20584. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  20585. //@import com/ibm/bi/platform/moser/common/generated/metadata/CardinalityEnum (runtime) // new
  20586. //@import com/ibm/bi/platform/moser/common/generated/metadata/SqlOperatorType (runtime) // new
  20587. //@import com/ibm/bi/platform/moser/common/generated/metadata/KeyConstraintType (runtime) // new
  20588. //@import com/ibm/bi/platform/moser/common/generated/metadata/KeyCompositionType (runtime) // new
  20589. /**
  20590. * <p>Java class for itemNormalizationGroupType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="itemNormalizationGroupType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="parentGroupRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="cardinality" type="{}cardinalityEnum"/&gt; &lt;element name="key" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="itemRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="keyConstraint" type="{}keyConstraintType"/&gt; &lt;element name="keyComposition" type="{}keyCompositionType"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element name="attribute" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="itemRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="sqlOperator" type="{}sqlOperatorType"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  20591. */
  20592. var ItemNormalizationGroupType = function (_ObjectType) {
  20593. _inherits(ItemNormalizationGroupType, _ObjectType);
  20594. function ItemNormalizationGroupType() {
  20595. var _ref;
  20596. var _temp, _this, _ret;
  20597. _classCallCheck(this, ItemNormalizationGroupType);
  20598. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  20599. args[_key] = arguments[_key];
  20600. }
  20601. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ItemNormalizationGroupType.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType)).call.apply(_ref, [this].concat(args))), _this), _this.parentGroupRef = null, _this.cardinality = null, _this.key = null, _this.attribute = null, _temp), _possibleConstructorReturn(_this, _ret);
  20602. }
  20603. _createClass(ItemNormalizationGroupType, [{
  20604. key: 'getParentGroupRef',
  20605. /**
  20606. * Gets the value of the parentGroupRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the parentGroupRef property. <p> For example, to add a new item, do as follows: <pre> getParentGroupRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  20607. */
  20608. value: function getParentGroupRef() {
  20609. if (!this.parentGroupRef) {
  20610. this.parentGroupRef = [];
  20611. }
  20612. return this.parentGroupRef;
  20613. }
  20614. /**
  20615. * Gets the value of the cardinality property.
  20616. * @return {CardinalityEnum} possible object is {@link CardinalityEnum}
  20617. */
  20618. }, {
  20619. key: 'getCardinality',
  20620. value: function getCardinality() {
  20621. return this.cardinality;
  20622. }
  20623. /**
  20624. * Sets the value of the cardinality property.
  20625. * @param {CardinalityEnum} value allowed object is {@link CardinalityEnum}
  20626. */
  20627. }, {
  20628. key: 'setCardinality',
  20629. value: function setCardinality(value) {
  20630. var oldValue = this.cardinality;
  20631. this.cardinality = value;
  20632. this._setAndNotify(213, oldValue, value, false, true);
  20633. }
  20634. /**
  20635. * Gets the value of the key property.
  20636. * @return {Key} possible object is {@link ItemNormalizationGroupType.Key}
  20637. */
  20638. }, {
  20639. key: 'getKey',
  20640. value: function getKey() {
  20641. return this.key;
  20642. }
  20643. /**
  20644. * Sets the value of the key property.
  20645. * @param {Key} value allowed object is {@link ItemNormalizationGroupType.Key}
  20646. */
  20647. }, {
  20648. key: 'setKey',
  20649. value: function setKey(value) {
  20650. var oldValue = this.key;
  20651. this.key = value;
  20652. this._setAndNotify(147, oldValue, value, true, true);
  20653. }
  20654. /**
  20655. * Gets the value of the attribute property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the attribute property. <p> For example, to add a new item, do as follows: <pre> getAttribute().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ItemNormalizationGroupType.Attribute}
  20656. */
  20657. }, {
  20658. key: 'getAttribute',
  20659. value: function getAttribute() {
  20660. if (!this.attribute) {
  20661. this.attribute = [];
  20662. }
  20663. return this.attribute;
  20664. }
  20665. /**
  20666. * Gets the value of the <code>parentGroupRef</code> property without initializing the property to an empty list if it is unset.
  20667. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  20668. */
  20669. }, {
  20670. key: 'basicGetParentGroupRef',
  20671. value: function basicGetParentGroupRef() {
  20672. return this.parentGroupRef;
  20673. }
  20674. /**
  20675. * Gets the value of the <code>attribute</code> property without initializing the property to an empty list if it is unset.
  20676. * @return {Array} the list of <code>Attribute</code> elements, or <code>null</code> if not set
  20677. */
  20678. }, {
  20679. key: 'basicGetAttribute',
  20680. value: function basicGetAttribute() {
  20681. return this.attribute;
  20682. }
  20683. /**
  20684. * Creates a new instance of <code>ItemNormalizationGroupType</code> object from JSON data.
  20685. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  20686. * @param {Object} json JSON data to be used to create the <code> ItemNormalizationGroupType</code> object from.
  20687. * @return {ItemNormalizationGroupType} an object of type <code>ItemNormalizationGroupType</code>
  20688. */
  20689. }, {
  20690. key: 'addParentGroupRefAt',
  20691. /**
  20692. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  20693. */
  20694. value: function addParentGroupRefAt(position, item) {
  20695. this._addAtAndNotify(this.getParentGroupRef(), position, item, 211, false, false);
  20696. }
  20697. /**
  20698. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  20699. */
  20700. }, {
  20701. key: 'addParentGroupRef',
  20702. value: function addParentGroupRef(item) {
  20703. this.addParentGroupRefAt(this.getParentGroupRef().length, item);
  20704. }
  20705. /**
  20706. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  20707. */
  20708. }, {
  20709. key: 'removeParentGroupRefAt',
  20710. value: function removeParentGroupRefAt(position) {
  20711. this._removeAtAndNotify(this.getParentGroupRef(), position, 211, false);
  20712. }
  20713. /**
  20714. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  20715. */
  20716. }, {
  20717. key: 'removeParentGroupRef',
  20718. value: function removeParentGroupRef(item) {
  20719. var i = this.getParentGroupRef().indexOf(item);
  20720. if (i >= 0) {
  20721. this.removeParentGroupRefAt(i);
  20722. }
  20723. }
  20724. /**
  20725. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  20726. */
  20727. }, {
  20728. key: 'addAttributeAt',
  20729. value: function addAttributeAt(position, item) {
  20730. this._addAtAndNotify(this.getAttribute(), position, item, 212, true, false);
  20731. }
  20732. /**
  20733. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  20734. */
  20735. }, {
  20736. key: 'addAttribute',
  20737. value: function addAttribute(item) {
  20738. this.addAttributeAt(this.getAttribute().length, item);
  20739. }
  20740. /**
  20741. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  20742. */
  20743. }, {
  20744. key: 'removeAttributeAt',
  20745. value: function removeAttributeAt(position) {
  20746. this._removeAtAndNotify(this.getAttribute(), position, 212, true);
  20747. }
  20748. /**
  20749. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  20750. */
  20751. }, {
  20752. key: 'removeAttribute',
  20753. value: function removeAttribute(item) {
  20754. var i = this.getAttribute().indexOf(item);
  20755. if (i >= 0) {
  20756. this.removeAttributeAt(i);
  20757. }
  20758. }
  20759. /**
  20760. * Retrieves the type of this object
  20761. * @return {String} the object type in a <code>String</code>
  20762. */
  20763. }, {
  20764. key: 'getObjectType',
  20765. value: function getObjectType() {
  20766. return "ItemNormalizationGroupType";
  20767. }
  20768. /**
  20769. * Get a list of FeatureObjects
  20770. * @return {Array} A list of FeatureObjects
  20771. */
  20772. }, {
  20773. key: 'getFeatureList',
  20774. value: function getFeatureList(factory) {
  20775. var featureList = [];
  20776. featureList.push(this.createFeature(true, false, false, 211, "parentGroupRef", null));
  20777. featureList.push(this.createFeature(false, true, false, 213, "cardinality", _CardinalityEnum2.default));
  20778. var clazz;
  20779. if (factory) {
  20780. clazz = factory.createItemNormalizationGroupTypeKey().getClass();
  20781. }
  20782. featureList.push(this.createFeature(false, false, true, 147, "key", clazz));
  20783. if (factory) {
  20784. clazz = factory.createItemNormalizationGroupTypeAttribute().getClass();
  20785. }
  20786. featureList.push(this.createFeature(true, false, true, 212, "attribute", clazz));
  20787. Array.prototype.push.apply(featureList, _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'getFeatureList', this).call(this, factory));
  20788. return featureList;
  20789. }
  20790. /**
  20791. * Set the value of a specific feature.
  20792. * @param {BaseMoserObject} value the value to set
  20793. * @param {int} featureID the feature id of the attribute to be set
  20794. */
  20795. }, {
  20796. key: 'set',
  20797. value: function set(featureID, value) {
  20798. switch (featureID) {
  20799. case 213:
  20800. this.setCardinality(value);
  20801. break;
  20802. case 147:
  20803. this.setKey(value);
  20804. break;
  20805. default:
  20806. _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'set', this).call(this, featureID, value);
  20807. }
  20808. }
  20809. /**
  20810. * Set the value of a specific feature.
  20811. * @param {BaseMoserObject} value the value to set the value to set
  20812. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  20813. */
  20814. }, {
  20815. key: '_setList',
  20816. value: function _setList(featureID, value) {
  20817. switch (featureID) {
  20818. case 211:
  20819. this.parentGroupRef = value;
  20820. break;
  20821. case 212:
  20822. this.attribute = value;
  20823. break;
  20824. default:
  20825. _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), '_setList', this).call(this, featureID, value);
  20826. }
  20827. }
  20828. /**
  20829. * Get the value of a specific feature.
  20830. * @param {int} featureID the feature id of the attribute to get
  20831. */
  20832. }, {
  20833. key: 'get',
  20834. value: function get(featureID) {
  20835. switch (featureID) {
  20836. case 211:
  20837. return this.getParentGroupRef();
  20838. case 212:
  20839. return this.getAttribute();
  20840. case 213:
  20841. return this.getCardinality();
  20842. case 147:
  20843. return this.getKey();
  20844. default:
  20845. return _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'get', this).call(this, featureID);
  20846. }
  20847. }
  20848. /**
  20849. * Get the value of a specific feature.
  20850. * @param {int} featureID the feature id of the attribute to get
  20851. */
  20852. }, {
  20853. key: 'basicGet',
  20854. value: function basicGet(featureID) {
  20855. switch (featureID) {
  20856. case 211:
  20857. return this.basicGetParentGroupRef();
  20858. case 212:
  20859. return this.basicGetAttribute();
  20860. case 213:
  20861. return this.getCardinality();
  20862. case 147:
  20863. return this.getKey();
  20864. default:
  20865. return _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'basicGet', this).call(this, featureID);
  20866. }
  20867. }
  20868. /**
  20869. * Add the value of a specific feature at a specific position
  20870. * @param {int} position the array position of the item to be added
  20871. * @param {BaseMoserObject} value the value to add
  20872. * @param {int} featureID the feature id of the attribute to be added
  20873. */
  20874. }, {
  20875. key: 'addAt',
  20876. value: function addAt(featureID, position, value) {
  20877. switch (featureID) {
  20878. case 211:
  20879. this.addParentGroupRefAt(position, value);
  20880. break;
  20881. case 212:
  20882. this.addAttributeAt(position, value);
  20883. break;
  20884. default:
  20885. _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'addAt', this).call(this, featureID, position, value);
  20886. }
  20887. }
  20888. /**
  20889. * Add the value to the end of a specific collection feature
  20890. * @param {BaseMoserObject} value the value to add
  20891. * @param {int} featureID the feature id of the attribute to be added
  20892. */
  20893. }, {
  20894. key: 'add',
  20895. value: function add(featureID, value) {
  20896. switch (featureID) {
  20897. case 211:
  20898. this.addParentGroupRef(value);
  20899. break;
  20900. case 212:
  20901. this.addAttribute(value);
  20902. break;
  20903. default:
  20904. _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'add', this).call(this, featureID, value);
  20905. }
  20906. }
  20907. /**
  20908. * Remove the value of a specific feature by index.
  20909. * @param {int} position the array position of the item to be removed
  20910. * @param {int} featureID the feature id of the attribute to be removed
  20911. */
  20912. }, {
  20913. key: 'removeAt',
  20914. value: function removeAt(featureID, position) {
  20915. switch (featureID) {
  20916. case 211:
  20917. this.removeParentGroupRefAt(position);
  20918. break;
  20919. case 212:
  20920. this.removeAttributeAt(position);
  20921. break;
  20922. default:
  20923. _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'removeAt', this).call(this, featureID, position);
  20924. }
  20925. }
  20926. /**
  20927. * Remove the value from specific feature.
  20928. * @param {BaseMoserObject} item the item to be removed
  20929. * @param {int} featureID the feature id of the attribute to be removed
  20930. */
  20931. }, {
  20932. key: 'remove',
  20933. value: function remove(featureID, item) {
  20934. switch (featureID) {
  20935. case 211:
  20936. this.removeParentGroupRef(item);
  20937. break;
  20938. case 212:
  20939. this.removeAttribute(item);
  20940. break;
  20941. default:
  20942. _get(ItemNormalizationGroupType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationGroupType.prototype), 'remove', this).call(this, featureID, item);
  20943. }
  20944. }
  20945. }], [{
  20946. key: 'fromJSON',
  20947. value: function fromJSON(json, factory) {
  20948. var result = factory.createItemNormalizationGroupType();
  20949. var featureList = result.getFeatureList(factory);
  20950. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  20951. return result;
  20952. }
  20953. }]);
  20954. return ItemNormalizationGroupType;
  20955. }(_ObjectType3.default);
  20956. /**
  20957. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="itemRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="sqlOperator" type="{}sqlOperatorType"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  20958. */
  20959. exports.default = ItemNormalizationGroupType;
  20960. ItemNormalizationGroupType.Attribute = function (_MoserObject) {
  20961. _inherits(_class2, _MoserObject);
  20962. function _class2() {
  20963. var _ref2;
  20964. var _temp2, _this2, _ret2;
  20965. _classCallCheck(this, _class2);
  20966. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  20967. args[_key2] = arguments[_key2];
  20968. }
  20969. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.itemRef = null, _this2.sqlOperator = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  20970. }
  20971. _createClass(_class2, [{
  20972. key: 'getItemRef',
  20973. /**
  20974. * Gets the value of the itemRef property.
  20975. * @return {String} possible object is {@link String}
  20976. */
  20977. value: function getItemRef() {
  20978. return this.itemRef;
  20979. }
  20980. /**
  20981. * Sets the value of the itemRef property.
  20982. * @param {String} value allowed object is {@link String}
  20983. */
  20984. }, {
  20985. key: 'setItemRef',
  20986. value: function setItemRef(value) {
  20987. var oldValue = this.itemRef;
  20988. this.itemRef = value;
  20989. this._setAndNotify(153, oldValue, value, false, false);
  20990. }
  20991. /**
  20992. * Gets the value of the sqlOperator property.
  20993. * @return {SqlOperatorType} possible object is {@link SqlOperatorType}
  20994. */
  20995. }, {
  20996. key: 'getSqlOperator',
  20997. value: function getSqlOperator() {
  20998. return this.sqlOperator;
  20999. }
  21000. /**
  21001. * Sets the value of the sqlOperator property.
  21002. * @param {SqlOperatorType} value allowed object is {@link SqlOperatorType}
  21003. */
  21004. }, {
  21005. key: 'setSqlOperator',
  21006. value: function setSqlOperator(value) {
  21007. var oldValue = this.sqlOperator;
  21008. this.sqlOperator = value;
  21009. this._setAndNotify(161, oldValue, value, false, false);
  21010. }
  21011. /**
  21012. * Creates a new instance of <code>Attribute</code> object from JSON data.
  21013. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  21014. * @param {Object} json JSON data to be used to create the <code> Attribute</code> object from.
  21015. * @return {Attribute} an object of type <code>Attribute</code>
  21016. */
  21017. }, {
  21018. key: 'getObjectType',
  21019. /**
  21020. * Retrieves the type of this object
  21021. * @return {String} the object type in a <code>String</code>
  21022. */
  21023. value: function getObjectType() {
  21024. return "Attribute";
  21025. }
  21026. /**
  21027. * Get a list of FeatureObjects
  21028. * @return {Array} A list of FeatureObjects
  21029. */
  21030. }, {
  21031. key: 'getFeatureList',
  21032. value: function getFeatureList(factory) {
  21033. var featureList = [];
  21034. featureList.push(this.createFeature(false, false, false, 153, "itemRef", null));
  21035. featureList.push(this.createFeature(false, true, false, 161, "sqlOperator", _SqlOperatorType2.default));
  21036. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  21037. return featureList;
  21038. }
  21039. /**
  21040. * Set the value of a specific feature.
  21041. * @param {BaseMoserObject} value the value to set
  21042. * @param {int} featureID the feature id of the attribute to be set
  21043. */
  21044. }, {
  21045. key: 'set',
  21046. value: function set(featureID, value) {
  21047. switch (featureID) {
  21048. case 161:
  21049. this.setSqlOperator(value);
  21050. break;
  21051. case 153:
  21052. this.setItemRef(value);
  21053. break;
  21054. default:
  21055. throw new Error("The feature " + featureID + " is not valid.");
  21056. }
  21057. }
  21058. /**
  21059. * Get the value of a specific feature.
  21060. * @param {int} featureID the feature id of the attribute to get
  21061. */
  21062. }, {
  21063. key: 'get',
  21064. value: function get(featureID) {
  21065. switch (featureID) {
  21066. case 161:
  21067. return this.getSqlOperator();
  21068. case 153:
  21069. return this.getItemRef();
  21070. default:
  21071. throw new Error("The feature " + featureID + " is not valid.");
  21072. }
  21073. }
  21074. /**
  21075. * Get the value of a specific feature.
  21076. * @param {int} featureID the feature id of the attribute to get
  21077. */
  21078. }, {
  21079. key: 'basicGet',
  21080. value: function basicGet(featureID) {
  21081. switch (featureID) {
  21082. case 161:
  21083. return this.getSqlOperator();
  21084. case 153:
  21085. return this.getItemRef();
  21086. default:
  21087. throw new Error("The feature " + featureID + " is not valid.");
  21088. }
  21089. }
  21090. }], [{
  21091. key: 'fromJSON',
  21092. value: function fromJSON(json, factory) {
  21093. var result = factory.createItemNormalizationGroupTypeAttribute();
  21094. var featureList = result.getFeatureList(factory);
  21095. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  21096. return result;
  21097. }
  21098. }]);
  21099. return _class2;
  21100. }(_MoserObject4.default);
  21101. /**
  21102. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="itemRef" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="keyConstraint" type="{}keyConstraintType"/&gt; &lt;element name="keyComposition" type="{}keyCompositionType"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  21103. */
  21104. ItemNormalizationGroupType.Key = function (_MoserObject2) {
  21105. _inherits(_class4, _MoserObject2);
  21106. function _class4() {
  21107. var _ref3;
  21108. var _temp3, _this3, _ret3;
  21109. _classCallCheck(this, _class4);
  21110. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  21111. args[_key3] = arguments[_key3];
  21112. }
  21113. return _ret3 = (_temp3 = (_this3 = _possibleConstructorReturn(this, (_ref3 = _class4.__proto__ || Object.getPrototypeOf(_class4)).call.apply(_ref3, [this].concat(args))), _this3), _this3.itemRef = null, _this3.keyConstraint = null, _this3.keyComposition = null, _temp3), _possibleConstructorReturn(_this3, _ret3);
  21114. }
  21115. _createClass(_class4, [{
  21116. key: 'getItemRef',
  21117. /**
  21118. * Gets the value of the itemRef property.
  21119. * @return {String} possible object is {@link String}
  21120. */
  21121. value: function getItemRef() {
  21122. return this.itemRef;
  21123. }
  21124. /**
  21125. * Sets the value of the itemRef property.
  21126. * @param {String} value allowed object is {@link String}
  21127. */
  21128. }, {
  21129. key: 'setItemRef',
  21130. value: function setItemRef(value) {
  21131. var oldValue = this.itemRef;
  21132. this.itemRef = value;
  21133. this._setAndNotify(153, oldValue, value, false, false);
  21134. }
  21135. /**
  21136. * Gets the value of the keyConstraint property.
  21137. * @return {KeyConstraintType} possible object is {@link KeyConstraintType}
  21138. */
  21139. }, {
  21140. key: 'getKeyConstraint',
  21141. value: function getKeyConstraint() {
  21142. return this.keyConstraint;
  21143. }
  21144. /**
  21145. * Sets the value of the keyConstraint property.
  21146. * @param {KeyConstraintType} value allowed object is {@link KeyConstraintType}
  21147. */
  21148. }, {
  21149. key: 'setKeyConstraint',
  21150. value: function setKeyConstraint(value) {
  21151. var oldValue = this.keyConstraint;
  21152. this.keyConstraint = value;
  21153. this._setAndNotify(154, oldValue, value, false, false);
  21154. }
  21155. /**
  21156. * Gets the value of the keyComposition property.
  21157. * @return {KeyCompositionType} possible object is {@link KeyCompositionType}
  21158. */
  21159. }, {
  21160. key: 'getKeyComposition',
  21161. value: function getKeyComposition() {
  21162. return this.keyComposition;
  21163. }
  21164. /**
  21165. * Sets the value of the keyComposition property.
  21166. * @param {KeyCompositionType} value allowed object is {@link KeyCompositionType}
  21167. */
  21168. }, {
  21169. key: 'setKeyComposition',
  21170. value: function setKeyComposition(value) {
  21171. var oldValue = this.keyComposition;
  21172. this.keyComposition = value;
  21173. this._setAndNotify(155, oldValue, value, false, false);
  21174. }
  21175. /**
  21176. * Creates a new instance of <code>Key</code> object from JSON data.
  21177. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  21178. * @param {Object} json JSON data to be used to create the <code> Key</code> object from.
  21179. * @return {Key} an object of type <code>Key</code>
  21180. */
  21181. }, {
  21182. key: 'getObjectType',
  21183. /**
  21184. * Retrieves the type of this object
  21185. * @return {String} the object type in a <code>String</code>
  21186. */
  21187. value: function getObjectType() {
  21188. return "Key";
  21189. }
  21190. /**
  21191. * Get a list of FeatureObjects
  21192. * @return {Array} A list of FeatureObjects
  21193. */
  21194. }, {
  21195. key: 'getFeatureList',
  21196. value: function getFeatureList(factory) {
  21197. var featureList = [];
  21198. featureList.push(this.createFeature(false, false, false, 153, "itemRef", null));
  21199. featureList.push(this.createFeature(false, true, false, 154, "keyConstraint", _KeyConstraintType2.default));
  21200. featureList.push(this.createFeature(false, true, false, 155, "keyComposition", _KeyCompositionType2.default));
  21201. Array.prototype.push.apply(featureList, _get(_class4.prototype.__proto__ || Object.getPrototypeOf(_class4.prototype), 'getFeatureList', this).call(this, factory));
  21202. return featureList;
  21203. }
  21204. /**
  21205. * Set the value of a specific feature.
  21206. * @param {BaseMoserObject} value the value to set
  21207. * @param {int} featureID the feature id of the attribute to be set
  21208. */
  21209. }, {
  21210. key: 'set',
  21211. value: function set(featureID, value) {
  21212. switch (featureID) {
  21213. case 153:
  21214. this.setItemRef(value);
  21215. break;
  21216. case 154:
  21217. this.setKeyConstraint(value);
  21218. break;
  21219. case 155:
  21220. this.setKeyComposition(value);
  21221. break;
  21222. default:
  21223. throw new Error("The feature " + featureID + " is not valid.");
  21224. }
  21225. }
  21226. /**
  21227. * Get the value of a specific feature.
  21228. * @param {int} featureID the feature id of the attribute to get
  21229. */
  21230. }, {
  21231. key: 'get',
  21232. value: function get(featureID) {
  21233. switch (featureID) {
  21234. case 153:
  21235. return this.getItemRef();
  21236. case 154:
  21237. return this.getKeyConstraint();
  21238. case 155:
  21239. return this.getKeyComposition();
  21240. default:
  21241. throw new Error("The feature " + featureID + " is not valid.");
  21242. }
  21243. }
  21244. /**
  21245. * Get the value of a specific feature.
  21246. * @param {int} featureID the feature id of the attribute to get
  21247. */
  21248. }, {
  21249. key: 'basicGet',
  21250. value: function basicGet(featureID) {
  21251. switch (featureID) {
  21252. case 153:
  21253. return this.getItemRef();
  21254. case 154:
  21255. return this.getKeyConstraint();
  21256. case 155:
  21257. return this.getKeyComposition();
  21258. default:
  21259. throw new Error("The feature " + featureID + " is not valid.");
  21260. }
  21261. }
  21262. }], [{
  21263. key: 'fromJSON',
  21264. value: function fromJSON(json, factory) {
  21265. var result = factory.createItemNormalizationGroupTypeKey();
  21266. var featureList = result.getFeatureList(factory);
  21267. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  21268. return result;
  21269. }
  21270. }]);
  21271. return _class4;
  21272. }(_MoserObject4.default);
  21273. /***/ },
  21274. /* 59 */
  21275. /***/ function(module, exports, __webpack_require__) {
  21276. "use strict";
  21277. Object.defineProperty(exports, "__esModule", {
  21278. value: true
  21279. });
  21280. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  21281. var _Enum2 = __webpack_require__(12);
  21282. var _Enum3 = _interopRequireDefault(_Enum2);
  21283. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21284. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  21285. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  21286. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  21287. ** IBM Confidential
  21288. **
  21289. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  21290. **
  21291. ** (C) Copyright IBM Corp. 2020
  21292. **
  21293. ** The source code for this program is not published or otherwise divested of its trade secrets,
  21294. ** irrespective of what has been deposited with the U.S. Copyright Office.
  21295. ************************************************************************/
  21296. // GENERATED
  21297. //@import Enum (loadtime) // superclass
  21298. /**
  21299. * <p>Java class for cardinalityEnum. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="cardinalityEnum"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="zero"/&gt; &lt;enumeration value="one"/&gt; &lt;enumeration value="many"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  21300. */
  21301. var CardinalityEnum = function (_Enum) {
  21302. _inherits(CardinalityEnum, _Enum);
  21303. /**
  21304. * Specifies that this object has one row only.
  21305. */
  21306. function CardinalityEnum(v) {
  21307. _classCallCheck(this, CardinalityEnum);
  21308. var _this = _possibleConstructorReturn(this, (CardinalityEnum.__proto__ || Object.getPrototypeOf(CardinalityEnum)).call(this, v));
  21309. _this.enumValue = null;
  21310. _this.enumValue = v;
  21311. return _this;
  21312. }
  21313. /**
  21314. * Specifies that this object can have many rows.
  21315. */
  21316. /**
  21317. * Specifies that this object has no rows.
  21318. */
  21319. _createClass(CardinalityEnum, [{
  21320. key: "value",
  21321. value: function value() {
  21322. return this.enumValue;
  21323. }
  21324. }, {
  21325. key: "getResourceId",
  21326. value: function getResourceId() {
  21327. return "CardinalityEnum" + "_" + this.value();
  21328. }
  21329. }], [{
  21330. key: "fromValue",
  21331. value: function fromValue(v) {
  21332. for (var i = 0; i < CardinalityEnum.values().length; ++i) {
  21333. if (CardinalityEnum.values()[i].enumValue == v) {
  21334. return CardinalityEnum.values()[i];
  21335. }
  21336. }
  21337. throw new Error(v);
  21338. }
  21339. }]);
  21340. return CardinalityEnum;
  21341. }(_Enum3.default);
  21342. CardinalityEnum.ZERO = CardinalityEnum.newLiteral("zero");
  21343. CardinalityEnum.ONE = CardinalityEnum.newLiteral("one");
  21344. CardinalityEnum.MANY = CardinalityEnum.newLiteral("many");
  21345. exports.default = CardinalityEnum;
  21346. /***/ },
  21347. /* 60 */
  21348. /***/ function(module, exports, __webpack_require__) {
  21349. "use strict";
  21350. Object.defineProperty(exports, "__esModule", {
  21351. value: true
  21352. });
  21353. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  21354. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  21355. var _MoserObject3 = __webpack_require__(6);
  21356. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  21357. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21358. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  21359. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  21360. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  21361. ** IBM Confidential
  21362. **
  21363. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  21364. **
  21365. ** (C) Copyright IBM Corp. 2020
  21366. **
  21367. ** The source code for this program is not published or otherwise divested of its trade secrets,
  21368. ** irrespective of what has been deposited with the U.S. Copyright Office.
  21369. ************************************************************************/
  21370. // GENERATED
  21371. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  21372. /**
  21373. * All locale sensitive properties reference the text in resource modules. There are separate resource modules for different languages. The resource modules are loaded dynamically based on the current run locale. To ensure that, the implementation of 'import' has to be able to resolve macros containing session parameters. There are separate textResource elements for different contexts. <p>Java class for textResource complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="textResource"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="resourceLanguage" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="context" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="item" maxOccurs="unbounded" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="identifier" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  21374. */
  21375. var TextResource = function (_MoserObject) {
  21376. _inherits(TextResource, _MoserObject);
  21377. function TextResource() {
  21378. var _ref;
  21379. var _temp, _this, _ret;
  21380. _classCallCheck(this, TextResource);
  21381. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  21382. args[_key] = arguments[_key];
  21383. }
  21384. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TextResource.__proto__ || Object.getPrototypeOf(TextResource)).call.apply(_ref, [this].concat(args))), _this), _this.resourceLanguage = null, _this.context = null, _this.item = null, _temp), _possibleConstructorReturn(_this, _ret);
  21385. }
  21386. _createClass(TextResource, [{
  21387. key: "getResourceLanguage",
  21388. /**
  21389. * Gets the value of the resourceLanguage property.
  21390. * @return {String} possible object is {@link String}
  21391. */
  21392. value: function getResourceLanguage() {
  21393. return this.resourceLanguage;
  21394. }
  21395. /**
  21396. * Sets the value of the resourceLanguage property.
  21397. * @param {String} value allowed object is {@link String}
  21398. */
  21399. }, {
  21400. key: "setResourceLanguage",
  21401. value: function setResourceLanguage(value) {
  21402. var oldValue = this.resourceLanguage;
  21403. this.resourceLanguage = value;
  21404. this._setAndNotify(4, oldValue, value, false, false);
  21405. }
  21406. /**
  21407. * Gets the value of the context property.
  21408. * @return {String} possible object is {@link String}
  21409. */
  21410. }, {
  21411. key: "getContext",
  21412. value: function getContext() {
  21413. return this.context;
  21414. }
  21415. /**
  21416. * Sets the value of the context property.
  21417. * @param {String} value allowed object is {@link String}
  21418. */
  21419. }, {
  21420. key: "setContext",
  21421. value: function setContext(value) {
  21422. var oldValue = this.context;
  21423. this.context = value;
  21424. this._setAndNotify(2, oldValue, value, false, false);
  21425. }
  21426. /**
  21427. * Gets the value of the item property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the item property. <p> For example, to add a new item, do as follows: <pre> getItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link TextResource.Item}
  21428. */
  21429. }, {
  21430. key: "getItem",
  21431. value: function getItem() {
  21432. if (!this.item) {
  21433. this.item = [];
  21434. }
  21435. return this.item;
  21436. }
  21437. /**
  21438. * Gets the value of the <code>item</code> property without initializing the property to an empty list if it is unset.
  21439. * @return {Array} the list of <code>Item</code> elements, or <code>null</code> if not set
  21440. */
  21441. }, {
  21442. key: "basicGetItem",
  21443. value: function basicGetItem() {
  21444. return this.item;
  21445. }
  21446. /**
  21447. * Creates a new instance of <code>TextResource</code> object from JSON data.
  21448. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  21449. * @param {Object} json JSON data to be used to create the <code> TextResource</code> object from.
  21450. * @return {TextResource} an object of type <code>TextResource</code>
  21451. */
  21452. }, {
  21453. key: "addItemAt",
  21454. /**
  21455. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  21456. */
  21457. value: function addItemAt(position, item) {
  21458. this._addAtAndNotify(this.getItem(), position, item, 3, true, false);
  21459. }
  21460. /**
  21461. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  21462. */
  21463. }, {
  21464. key: "addItem",
  21465. value: function addItem(item) {
  21466. this.addItemAt(this.getItem().length, item);
  21467. }
  21468. /**
  21469. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  21470. */
  21471. }, {
  21472. key: "removeItemAt",
  21473. value: function removeItemAt(position) {
  21474. this._removeAtAndNotify(this.getItem(), position, 3, true);
  21475. }
  21476. /**
  21477. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  21478. */
  21479. }, {
  21480. key: "removeItem",
  21481. value: function removeItem(item) {
  21482. var i = this.getItem().indexOf(item);
  21483. if (i >= 0) {
  21484. this.removeItemAt(i);
  21485. }
  21486. }
  21487. /**
  21488. * Retrieves the type of this object
  21489. * @return {String} the object type in a <code>String</code>
  21490. */
  21491. }, {
  21492. key: "getObjectType",
  21493. value: function getObjectType() {
  21494. return "TextResource";
  21495. }
  21496. /**
  21497. * Get a list of FeatureObjects
  21498. * @return {Array} A list of FeatureObjects
  21499. */
  21500. }, {
  21501. key: "getFeatureList",
  21502. value: function getFeatureList(factory) {
  21503. var featureList = [];
  21504. featureList.push(this.createFeature(false, false, false, 4, "resourceLanguage", null));
  21505. featureList.push(this.createFeature(false, false, false, 2, "context", null));
  21506. var clazz;
  21507. if (factory) {
  21508. clazz = factory.createTextResourceItem().getClass();
  21509. }
  21510. featureList.push(this.createFeature(true, false, true, 3, "item", clazz));
  21511. Array.prototype.push.apply(featureList, _get(TextResource.prototype.__proto__ || Object.getPrototypeOf(TextResource.prototype), "getFeatureList", this).call(this, factory));
  21512. return featureList;
  21513. }
  21514. /**
  21515. * Set the value of a specific feature.
  21516. * @param {BaseMoserObject} value the value to set
  21517. * @param {int} featureID the feature id of the attribute to be set
  21518. */
  21519. }, {
  21520. key: "set",
  21521. value: function set(featureID, value) {
  21522. switch (featureID) {
  21523. case 2:
  21524. this.setContext(value);
  21525. break;
  21526. case 4:
  21527. this.setResourceLanguage(value);
  21528. break;
  21529. default:
  21530. throw new Error("The feature " + featureID + " is not valid.");
  21531. }
  21532. }
  21533. /**
  21534. * Set the value of a specific feature.
  21535. * @param {BaseMoserObject} value the value to set the value to set
  21536. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  21537. */
  21538. }, {
  21539. key: "_setList",
  21540. value: function _setList(featureID, value) {
  21541. switch (featureID) {
  21542. case 3:
  21543. this.item = value;
  21544. break;
  21545. default:
  21546. throw new Error("The feature " + featureID + " is not valid.");
  21547. }
  21548. }
  21549. /**
  21550. * Get the value of a specific feature.
  21551. * @param {int} featureID the feature id of the attribute to get
  21552. */
  21553. }, {
  21554. key: "get",
  21555. value: function get(featureID) {
  21556. switch (featureID) {
  21557. case 2:
  21558. return this.getContext();
  21559. case 3:
  21560. return this.getItem();
  21561. case 4:
  21562. return this.getResourceLanguage();
  21563. default:
  21564. throw new Error("The feature " + featureID + " is not valid.");
  21565. }
  21566. }
  21567. /**
  21568. * Get the value of a specific feature.
  21569. * @param {int} featureID the feature id of the attribute to get
  21570. */
  21571. }, {
  21572. key: "basicGet",
  21573. value: function basicGet(featureID) {
  21574. switch (featureID) {
  21575. case 2:
  21576. return this.getContext();
  21577. case 3:
  21578. return this.basicGetItem();
  21579. case 4:
  21580. return this.getResourceLanguage();
  21581. default:
  21582. throw new Error("The feature " + featureID + " is not valid.");
  21583. }
  21584. }
  21585. /**
  21586. * Add the value of a specific feature at a specific position
  21587. * @param {int} position the array position of the item to be added
  21588. * @param {BaseMoserObject} value the value to add
  21589. * @param {int} featureID the feature id of the attribute to be added
  21590. */
  21591. }, {
  21592. key: "addAt",
  21593. value: function addAt(featureID, position, value) {
  21594. switch (featureID) {
  21595. case 3:
  21596. this.addItemAt(position, value);
  21597. break;
  21598. default:
  21599. throw new Error("The feature " + featureID + " is not valid.");
  21600. }
  21601. }
  21602. /**
  21603. * Add the value to the end of a specific collection feature
  21604. * @param {BaseMoserObject} value the value to add
  21605. * @param {int} featureID the feature id of the attribute to be added
  21606. */
  21607. }, {
  21608. key: "add",
  21609. value: function add(featureID, value) {
  21610. switch (featureID) {
  21611. case 3:
  21612. this.addItem(value);
  21613. break;
  21614. default:
  21615. throw new Error("The feature " + featureID + " is not valid.");
  21616. }
  21617. }
  21618. /**
  21619. * Remove the value of a specific feature by index.
  21620. * @param {int} position the array position of the item to be removed
  21621. * @param {int} featureID the feature id of the attribute to be removed
  21622. */
  21623. }, {
  21624. key: "removeAt",
  21625. value: function removeAt(featureID, position) {
  21626. switch (featureID) {
  21627. case 3:
  21628. this.removeItemAt(position);
  21629. break;
  21630. default:
  21631. throw new Error("The feature " + featureID + " is not valid.");
  21632. }
  21633. }
  21634. /**
  21635. * Remove the value from specific feature.
  21636. * @param {BaseMoserObject} item the item to be removed
  21637. * @param {int} featureID the feature id of the attribute to be removed
  21638. */
  21639. }, {
  21640. key: "remove",
  21641. value: function remove(featureID, item) {
  21642. switch (featureID) {
  21643. case 3:
  21644. this.removeItem(item);
  21645. break;
  21646. default:
  21647. throw new Error("The feature " + featureID + " is not valid.");
  21648. }
  21649. }
  21650. }], [{
  21651. key: "fromJSON",
  21652. value: function fromJSON(json, factory) {
  21653. var result = factory.createTextResource();
  21654. var featureList = result.getFeatureList(factory);
  21655. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  21656. return result;
  21657. }
  21658. }]);
  21659. return TextResource;
  21660. }(_MoserObject4.default);
  21661. /**
  21662. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="identifier" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  21663. */
  21664. exports.default = TextResource;
  21665. TextResource.Item = function (_MoserObject2) {
  21666. _inherits(_class2, _MoserObject2);
  21667. function _class2() {
  21668. var _ref2;
  21669. var _temp2, _this2, _ret2;
  21670. _classCallCheck(this, _class2);
  21671. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  21672. args[_key2] = arguments[_key2];
  21673. }
  21674. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.identifier = null, _this2.text = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  21675. }
  21676. _createClass(_class2, [{
  21677. key: "getIdentifier",
  21678. /**
  21679. * Gets the value of the identifier property.
  21680. * @return {String} possible object is {@link String}
  21681. */
  21682. value: function getIdentifier() {
  21683. return this.identifier;
  21684. }
  21685. /**
  21686. * Sets the value of the identifier property.
  21687. * @param {String} value allowed object is {@link String}
  21688. */
  21689. }, {
  21690. key: "setIdentifier",
  21691. value: function setIdentifier(value) {
  21692. var oldValue = this.identifier;
  21693. this.identifier = value;
  21694. this._setAndNotify(38, oldValue, value, false, false);
  21695. }
  21696. /**
  21697. * Gets the value of the text property.
  21698. * @return {String} possible object is {@link String}
  21699. */
  21700. }, {
  21701. key: "getText",
  21702. value: function getText() {
  21703. return this.text;
  21704. }
  21705. /**
  21706. * Sets the value of the text property.
  21707. * @param {String} value allowed object is {@link String}
  21708. */
  21709. }, {
  21710. key: "setText",
  21711. value: function setText(value) {
  21712. var oldValue = this.text;
  21713. this.text = value;
  21714. this._setAndNotify(39, oldValue, value, false, false);
  21715. }
  21716. /**
  21717. * Creates a new instance of <code>Item</code> object from JSON data.
  21718. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  21719. * @param {Object} json JSON data to be used to create the <code> Item</code> object from.
  21720. * @return {Item} an object of type <code>Item</code>
  21721. */
  21722. }, {
  21723. key: "getObjectType",
  21724. /**
  21725. * Retrieves the type of this object
  21726. * @return {String} the object type in a <code>String</code>
  21727. */
  21728. value: function getObjectType() {
  21729. return "Item";
  21730. }
  21731. /**
  21732. * Get a list of FeatureObjects
  21733. * @return {Array} A list of FeatureObjects
  21734. */
  21735. }, {
  21736. key: "getFeatureList",
  21737. value: function getFeatureList(factory) {
  21738. var featureList = [];
  21739. featureList.push(this.createFeature(false, false, false, 38, "identifier", null));
  21740. featureList.push(this.createFeature(false, false, false, 39, "text", null));
  21741. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), "getFeatureList", this).call(this, factory));
  21742. return featureList;
  21743. }
  21744. /**
  21745. * Set the value of a specific feature.
  21746. * @param {BaseMoserObject} value the value to set
  21747. * @param {int} featureID the feature id of the attribute to be set
  21748. */
  21749. }, {
  21750. key: "set",
  21751. value: function set(featureID, value) {
  21752. switch (featureID) {
  21753. case 38:
  21754. this.setIdentifier(value);
  21755. break;
  21756. case 39:
  21757. this.setText(value);
  21758. break;
  21759. default:
  21760. throw new Error("The feature " + featureID + " is not valid.");
  21761. }
  21762. }
  21763. /**
  21764. * Get the value of a specific feature.
  21765. * @param {int} featureID the feature id of the attribute to get
  21766. */
  21767. }, {
  21768. key: "get",
  21769. value: function get(featureID) {
  21770. switch (featureID) {
  21771. case 38:
  21772. return this.getIdentifier();
  21773. case 39:
  21774. return this.getText();
  21775. default:
  21776. throw new Error("The feature " + featureID + " is not valid.");
  21777. }
  21778. }
  21779. /**
  21780. * Get the value of a specific feature.
  21781. * @param {int} featureID the feature id of the attribute to get
  21782. */
  21783. }, {
  21784. key: "basicGet",
  21785. value: function basicGet(featureID) {
  21786. switch (featureID) {
  21787. case 38:
  21788. return this.getIdentifier();
  21789. case 39:
  21790. return this.getText();
  21791. default:
  21792. throw new Error("The feature " + featureID + " is not valid.");
  21793. }
  21794. }
  21795. }], [{
  21796. key: "fromJSON",
  21797. value: function fromJSON(json, factory) {
  21798. var result = factory.createTextResourceItem();
  21799. var featureList = result.getFeatureList(factory);
  21800. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  21801. return result;
  21802. }
  21803. }]);
  21804. return _class2;
  21805. }(_MoserObject4.default);
  21806. /***/ },
  21807. /* 61 */
  21808. /***/ function(module, exports, __webpack_require__) {
  21809. 'use strict';
  21810. Object.defineProperty(exports, "__esModule", {
  21811. value: true
  21812. });
  21813. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  21814. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  21815. var _MoserObject3 = __webpack_require__(6);
  21816. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  21817. var _MoserObjectUtils = __webpack_require__(27);
  21818. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  21819. var _SortOrder = __webpack_require__(52);
  21820. var _SortOrder2 = _interopRequireDefault(_SortOrder);
  21821. var _SortOrderNullPlacement = __webpack_require__(53);
  21822. var _SortOrderNullPlacement2 = _interopRequireDefault(_SortOrderNullPlacement);
  21823. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  21824. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  21825. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  21826. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  21827. ** IBM Confidential
  21828. **
  21829. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  21830. **
  21831. ** (C) Copyright IBM Corp. 2021
  21832. **
  21833. ** The source code for this program is not published or otherwise divested of its trade secrets,
  21834. ** irrespective of what has been deposited with the U.S. Copyright Office.
  21835. ************************************************************************/
  21836. // GENERATED
  21837. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  21838. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForFacetType
  21839. //@import com/ibm/bi/platform/moser/common/generated/metadata/SortOrder (runtime) // new
  21840. //@import com/ibm/bi/platform/moser/common/generated/metadata/SortOrderNullPlacement (runtime) // new
  21841. /**
  21842. * <p>Java class for sortListType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="sortListType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="sortItem" maxOccurs="unbounded"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="order" type="{}sortOrder"/&gt; &lt;element name="nullPlacement" type="{}sortOrderNullPlacement"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  21843. */
  21844. var SortListType = function (_MoserObject) {
  21845. _inherits(SortListType, _MoserObject);
  21846. function SortListType() {
  21847. var _ref;
  21848. var _temp, _this, _ret;
  21849. _classCallCheck(this, SortListType);
  21850. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  21851. args[_key] = arguments[_key];
  21852. }
  21853. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = SortListType.__proto__ || Object.getPrototypeOf(SortListType)).call.apply(_ref, [this].concat(args))), _this), _this.sortItem = null, _temp), _possibleConstructorReturn(_this, _ret);
  21854. }
  21855. _createClass(SortListType, [{
  21856. key: 'getSortItem',
  21857. /**
  21858. * Gets the value of the sortItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the sortItem property. <p> For example, to add a new item, do as follows: <pre> getSortItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link SortListType.SortItem}
  21859. */
  21860. value: function getSortItem() {
  21861. if (!this.sortItem) {
  21862. this.sortItem = [];
  21863. }
  21864. return this.sortItem;
  21865. }
  21866. /**
  21867. * Gets the value of the <code>sortItem</code> property without initializing the property to an empty list if it is unset.
  21868. * @return {Array} the list of <code>SortItem</code> elements, or <code>null</code> if not set
  21869. */
  21870. }, {
  21871. key: 'basicGetSortItem',
  21872. value: function basicGetSortItem() {
  21873. return this.sortItem;
  21874. }
  21875. /**
  21876. * Creates a new instance of <code>SortListType</code> object from JSON data.
  21877. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  21878. * @param {Object} json JSON data to be used to create the <code> SortListType</code> object from.
  21879. * @return {SortListType} an object of type <code>SortListType</code>
  21880. */
  21881. }, {
  21882. key: 'addSortItemAt',
  21883. /**
  21884. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  21885. */
  21886. value: function addSortItemAt(position, item) {
  21887. this._addAtAndNotify(this.getSortItem(), position, item, 184, true, false);
  21888. _MoserObjectUtils2.default.propertyOverrideForFacetType(this);
  21889. }
  21890. /**
  21891. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  21892. */
  21893. }, {
  21894. key: 'addSortItem',
  21895. value: function addSortItem(item) {
  21896. this.addSortItemAt(this.getSortItem().length, item);
  21897. }
  21898. /**
  21899. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  21900. */
  21901. }, {
  21902. key: 'removeSortItemAt',
  21903. value: function removeSortItemAt(position) {
  21904. this._removeAtAndNotify(this.getSortItem(), position, 184, true);
  21905. }
  21906. /**
  21907. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  21908. */
  21909. }, {
  21910. key: 'removeSortItem',
  21911. value: function removeSortItem(item) {
  21912. var i = this.getSortItem().indexOf(item);
  21913. if (i >= 0) {
  21914. this.removeSortItemAt(i);
  21915. }
  21916. }
  21917. /**
  21918. * Retrieves the type of this object
  21919. * @return {String} the object type in a <code>String</code>
  21920. */
  21921. }, {
  21922. key: 'getObjectType',
  21923. value: function getObjectType() {
  21924. return "SortListType";
  21925. }
  21926. /**
  21927. * Get a list of FeatureObjects
  21928. * @return {Array} A list of FeatureObjects
  21929. */
  21930. }, {
  21931. key: 'getFeatureList',
  21932. value: function getFeatureList(factory) {
  21933. var featureList = [];
  21934. var clazz;
  21935. if (factory) {
  21936. clazz = factory.createSortListTypeSortItem().getClass();
  21937. }
  21938. featureList.push(this.createFeature(true, false, true, 184, "sortItem", clazz));
  21939. Array.prototype.push.apply(featureList, _get(SortListType.prototype.__proto__ || Object.getPrototypeOf(SortListType.prototype), 'getFeatureList', this).call(this, factory));
  21940. return featureList;
  21941. }
  21942. /**
  21943. * Set the value of a specific feature.
  21944. * @param {BaseMoserObject} value the value to set
  21945. * @param {int} featureID the feature id of the attribute to be set
  21946. */
  21947. }, {
  21948. key: 'set',
  21949. value: function set(featureID, value) {
  21950. switch (featureID) {
  21951. default:
  21952. throw new Error("The feature " + featureID + " is not valid.");
  21953. }
  21954. }
  21955. /**
  21956. * Set the value of a specific feature.
  21957. * @param {BaseMoserObject} value the value to set the value to set
  21958. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  21959. */
  21960. }, {
  21961. key: '_setList',
  21962. value: function _setList(featureID, value) {
  21963. switch (featureID) {
  21964. case 184:
  21965. this.sortItem = value;
  21966. break;
  21967. default:
  21968. throw new Error("The feature " + featureID + " is not valid.");
  21969. }
  21970. }
  21971. /**
  21972. * Get the value of a specific feature.
  21973. * @param {int} featureID the feature id of the attribute to get
  21974. */
  21975. }, {
  21976. key: 'get',
  21977. value: function get(featureID) {
  21978. switch (featureID) {
  21979. case 184:
  21980. return this.getSortItem();
  21981. default:
  21982. throw new Error("The feature " + featureID + " is not valid.");
  21983. }
  21984. }
  21985. /**
  21986. * Get the value of a specific feature.
  21987. * @param {int} featureID the feature id of the attribute to get
  21988. */
  21989. }, {
  21990. key: 'basicGet',
  21991. value: function basicGet(featureID) {
  21992. switch (featureID) {
  21993. case 184:
  21994. return this.basicGetSortItem();
  21995. default:
  21996. throw new Error("The feature " + featureID + " is not valid.");
  21997. }
  21998. }
  21999. /**
  22000. * Add the value of a specific feature at a specific position
  22001. * @param {int} position the array position of the item to be added
  22002. * @param {BaseMoserObject} value the value to add
  22003. * @param {int} featureID the feature id of the attribute to be added
  22004. */
  22005. }, {
  22006. key: 'addAt',
  22007. value: function addAt(featureID, position, value) {
  22008. switch (featureID) {
  22009. case 184:
  22010. this.addSortItemAt(position, value);
  22011. break;
  22012. default:
  22013. throw new Error("The feature " + featureID + " is not valid.");
  22014. }
  22015. }
  22016. /**
  22017. * Add the value to the end of a specific collection feature
  22018. * @param {BaseMoserObject} value the value to add
  22019. * @param {int} featureID the feature id of the attribute to be added
  22020. */
  22021. }, {
  22022. key: 'add',
  22023. value: function add(featureID, value) {
  22024. switch (featureID) {
  22025. case 184:
  22026. this.addSortItem(value);
  22027. break;
  22028. default:
  22029. throw new Error("The feature " + featureID + " is not valid.");
  22030. }
  22031. }
  22032. /**
  22033. * Remove the value of a specific feature by index.
  22034. * @param {int} position the array position of the item to be removed
  22035. * @param {int} featureID the feature id of the attribute to be removed
  22036. */
  22037. }, {
  22038. key: 'removeAt',
  22039. value: function removeAt(featureID, position) {
  22040. switch (featureID) {
  22041. case 184:
  22042. this.removeSortItemAt(position);
  22043. break;
  22044. default:
  22045. throw new Error("The feature " + featureID + " is not valid.");
  22046. }
  22047. }
  22048. /**
  22049. * Remove the value from specific feature.
  22050. * @param {BaseMoserObject} item the item to be removed
  22051. * @param {int} featureID the feature id of the attribute to be removed
  22052. */
  22053. }, {
  22054. key: 'remove',
  22055. value: function remove(featureID, item) {
  22056. switch (featureID) {
  22057. case 184:
  22058. this.removeSortItem(item);
  22059. break;
  22060. default:
  22061. throw new Error("The feature " + featureID + " is not valid.");
  22062. }
  22063. }
  22064. }], [{
  22065. key: 'fromJSON',
  22066. value: function fromJSON(json, factory) {
  22067. var result = factory.createSortListType();
  22068. var featureList = result.getFeatureList(factory);
  22069. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  22070. return result;
  22071. }
  22072. }]);
  22073. return SortListType;
  22074. }(_MoserObject4.default);
  22075. /**
  22076. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="order" type="{}sortOrder"/&gt; &lt;element name="nullPlacement" type="{}sortOrderNullPlacement"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  22077. */
  22078. exports.default = SortListType;
  22079. SortListType.SortItem = function (_MoserObject2) {
  22080. _inherits(_class2, _MoserObject2);
  22081. function _class2() {
  22082. var _ref2;
  22083. var _temp2, _this2, _ret2;
  22084. _classCallCheck(this, _class2);
  22085. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  22086. args[_key2] = arguments[_key2];
  22087. }
  22088. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.ref = null, _this2.order = null, _this2.nullPlacement = null, _this2._referencedObject = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  22089. }
  22090. _createClass(_class2, [{
  22091. key: 'getRef',
  22092. /**
  22093. * Gets the value of the ref property.
  22094. * @return {String} possible object is {@link String}
  22095. */
  22096. value: function getRef() {
  22097. return this.ref;
  22098. }
  22099. /**
  22100. * Sets the value of the ref property.
  22101. * @param {String} value allowed object is {@link String}
  22102. */
  22103. }, {
  22104. key: 'setRef',
  22105. value: function setRef(value) {
  22106. var oldValue = this.ref;
  22107. this.ref = value;
  22108. this._setAndNotify(36, oldValue, value, false, false);
  22109. _MoserObjectUtils2.default.propertyOverrideForFacetType(this);
  22110. this._referencedObject = null;
  22111. }
  22112. /**
  22113. * Gets the value of the order property.
  22114. * @return {SortOrder} possible object is {@link SortOrder}
  22115. */
  22116. }, {
  22117. key: 'getOrder',
  22118. value: function getOrder() {
  22119. return this.order;
  22120. }
  22121. /**
  22122. * Sets the value of the order property.
  22123. * @param {SortOrder} value allowed object is {@link SortOrder}
  22124. */
  22125. }, {
  22126. key: 'setOrder',
  22127. value: function setOrder(value) {
  22128. var oldValue = this.order;
  22129. this.order = value;
  22130. this._setAndNotify(41, oldValue, value, false, false);
  22131. _MoserObjectUtils2.default.propertyOverrideForFacetType(this);
  22132. }
  22133. /**
  22134. * Gets the value of the nullPlacement property.
  22135. * @return {SortOrderNullPlacement} possible object is {@link SortOrderNullPlacement}
  22136. */
  22137. }, {
  22138. key: 'getNullPlacement',
  22139. value: function getNullPlacement() {
  22140. return this.nullPlacement;
  22141. }
  22142. /**
  22143. * Sets the value of the nullPlacement property.
  22144. * @param {SortOrderNullPlacement} value allowed object is {@link SortOrderNullPlacement}
  22145. */
  22146. }, {
  22147. key: 'setNullPlacement',
  22148. value: function setNullPlacement(value) {
  22149. var oldValue = this.nullPlacement;
  22150. this.nullPlacement = value;
  22151. this._setAndNotify(40, oldValue, value, false, false);
  22152. _MoserObjectUtils2.default.propertyOverrideForFacetType(this);
  22153. }
  22154. /**
  22155. * Creates a new instance of <code>SortItem</code> object from JSON data.
  22156. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  22157. * @param {Object} json JSON data to be used to create the <code> SortItem</code> object from.
  22158. * @return {SortItem} an object of type <code>SortItem</code>
  22159. */
  22160. }, {
  22161. key: 'getObjectType',
  22162. /**
  22163. * Retrieves the type of this object
  22164. * @return {String} the object type in a <code>String</code>
  22165. */
  22166. value: function getObjectType() {
  22167. return "SortItem";
  22168. }
  22169. /**
  22170. * Get a list of FeatureObjects
  22171. * @return {Array} A list of FeatureObjects
  22172. */
  22173. }, {
  22174. key: 'getFeatureList',
  22175. value: function getFeatureList(factory) {
  22176. var featureList = [];
  22177. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  22178. featureList.push(this.createFeature(false, true, false, 41, "order", _SortOrder2.default));
  22179. featureList.push(this.createFeature(false, true, false, 40, "nullPlacement", _SortOrderNullPlacement2.default));
  22180. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  22181. return featureList;
  22182. }
  22183. /**
  22184. * Set the value of a specific feature.
  22185. * @param {BaseMoserObject} value the value to set
  22186. * @param {int} featureID the feature id of the attribute to be set
  22187. */
  22188. }, {
  22189. key: 'set',
  22190. value: function set(featureID, value) {
  22191. switch (featureID) {
  22192. case 36:
  22193. this.setRef(value);
  22194. break;
  22195. case 40:
  22196. this.setNullPlacement(value);
  22197. break;
  22198. case 41:
  22199. this.setOrder(value);
  22200. break;
  22201. default:
  22202. throw new Error("The feature " + featureID + " is not valid.");
  22203. }
  22204. }
  22205. /**
  22206. * Get the value of a specific feature.
  22207. * @param {int} featureID the feature id of the attribute to get
  22208. */
  22209. }, {
  22210. key: 'get',
  22211. value: function get(featureID) {
  22212. switch (featureID) {
  22213. case 36:
  22214. return this.getRef();
  22215. case 40:
  22216. return this.getNullPlacement();
  22217. case 41:
  22218. return this.getOrder();
  22219. default:
  22220. throw new Error("The feature " + featureID + " is not valid.");
  22221. }
  22222. }
  22223. /**
  22224. * Get the value of a specific feature.
  22225. * @param {int} featureID the feature id of the attribute to get
  22226. */
  22227. }, {
  22228. key: 'basicGet',
  22229. value: function basicGet(featureID) {
  22230. switch (featureID) {
  22231. case 36:
  22232. return this.getRef();
  22233. case 40:
  22234. return this.getNullPlacement();
  22235. case 41:
  22236. return this.getOrder();
  22237. default:
  22238. throw new Error("The feature " + featureID + " is not valid.");
  22239. }
  22240. }
  22241. /**
  22242. * Set the resolved object based on reference.
  22243. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  22244. */
  22245. }, {
  22246. key: 'setReferencedObject',
  22247. value: function setReferencedObject(referencedObject) {
  22248. this._referencedObject = referencedObject;
  22249. }
  22250. /**
  22251. * Get the resolved object based on reference.
  22252. * @return {MoserObject} the referenced <code>MoserObject</code>
  22253. */
  22254. }, {
  22255. key: 'getReferencedObject',
  22256. value: function getReferencedObject() {
  22257. return this._referencedObject;
  22258. }
  22259. }, {
  22260. key: 'clone',
  22261. value: function clone() {
  22262. var cloned = _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'clone', this).call(this);
  22263. cloned.setReferencedObject(this._referencedObject);
  22264. return cloned;
  22265. }
  22266. }], [{
  22267. key: 'fromJSON',
  22268. value: function fromJSON(json, factory) {
  22269. var result = factory.createSortListTypeSortItem();
  22270. var featureList = result.getFeatureList(factory);
  22271. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  22272. return result;
  22273. }
  22274. }]);
  22275. return _class2;
  22276. }(_MoserObject4.default);
  22277. /***/ },
  22278. /* 62 */
  22279. /***/ function(module, exports, __webpack_require__) {
  22280. 'use strict';
  22281. Object.defineProperty(exports, "__esModule", {
  22282. value: true
  22283. });
  22284. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  22285. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  22286. var _MoserObject2 = __webpack_require__(6);
  22287. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  22288. var _ObjectType2 = __webpack_require__(26);
  22289. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  22290. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22291. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  22292. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  22293. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  22294. ** IBM Confidential
  22295. **
  22296. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  22297. **
  22298. ** (C) Copyright IBM Corp. 2020
  22299. **
  22300. ** The source code for this program is not published or otherwise divested of its trade secrets,
  22301. ** irrespective of what has been deposited with the U.S. Copyright Office.
  22302. ************************************************************************/
  22303. // GENERATED
  22304. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper, updatePropertyOverride
  22305. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  22306. /**
  22307. * <p>Java class for itemType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="itemType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;choice&gt; &lt;element ref="{}queryItem"/&gt; &lt;element ref="{}namedSet"/&gt; &lt;element ref="{}filter"/&gt; &lt;element name="folder"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="item" type="{}itemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;element ref="{}itemHierarchy"/&gt; &lt;element ref="{}calculation"/&gt; &lt;/choice&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  22308. */
  22309. var ItemType = function (_MoserObject) {
  22310. _inherits(ItemType, _MoserObject);
  22311. function ItemType() {
  22312. var _ref;
  22313. var _temp, _this, _ret;
  22314. _classCallCheck(this, ItemType);
  22315. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  22316. args[_key] = arguments[_key];
  22317. }
  22318. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ItemType.__proto__ || Object.getPrototypeOf(ItemType)).call.apply(_ref, [this].concat(args))), _this), _this.queryItem = null, _this.namedSet = null, _this.filter = null, _this.folder = null, _this.itemHierarchy = null, _this.calculation = null, _temp), _possibleConstructorReturn(_this, _ret);
  22319. }
  22320. _createClass(ItemType, [{
  22321. key: 'getQueryItem',
  22322. /**
  22323. * A projectable item referring to an underlying source item (column, level, attribute, named set) or a calculation based on such items.
  22324. * @return {QueryItem} possible object is {@link QueryItem}
  22325. */
  22326. value: function getQueryItem() {
  22327. return this.queryItem;
  22328. }
  22329. /**
  22330. * Sets the value of the queryItem property.
  22331. * @param {QueryItem} value allowed object is {@link QueryItem}
  22332. */
  22333. }, {
  22334. key: 'setQueryItem',
  22335. value: function setQueryItem(value) {
  22336. var oldValue = this.queryItem;
  22337. this.queryItem = value;
  22338. this._setAndNotify(28, oldValue, value, true, false);
  22339. if (value) {
  22340. _MoserObject3.default.updatePropertyOverride(value, this, 28, true);
  22341. }
  22342. }
  22343. /**
  22344. * Gets the value of the namedSet property.
  22345. * @return {NamedSet} possible object is {@link NamedSet}
  22346. */
  22347. }, {
  22348. key: 'getNamedSet',
  22349. value: function getNamedSet() {
  22350. return this.namedSet;
  22351. }
  22352. /**
  22353. * Sets the value of the namedSet property.
  22354. * @param {NamedSet} value allowed object is {@link NamedSet}
  22355. */
  22356. }, {
  22357. key: 'setNamedSet',
  22358. value: function setNamedSet(value) {
  22359. var oldValue = this.namedSet;
  22360. this.namedSet = value;
  22361. this._setAndNotify(26, oldValue, value, true, false);
  22362. if (value) {
  22363. _MoserObject3.default.updatePropertyOverride(value, this, 26, true);
  22364. }
  22365. }
  22366. /**
  22367. * Selectable/dragable filters.
  22368. * @return {Filter} possible object is {@link Filter}
  22369. */
  22370. }, {
  22371. key: 'getFilter',
  22372. value: function getFilter() {
  22373. return this.filter;
  22374. }
  22375. /**
  22376. * Sets the value of the filter property.
  22377. * @param {Filter} value allowed object is {@link Filter}
  22378. */
  22379. }, {
  22380. key: 'setFilter',
  22381. value: function setFilter(value) {
  22382. var oldValue = this.filter;
  22383. this.filter = value;
  22384. this._setAndNotify(24, oldValue, value, true, false);
  22385. if (value) {
  22386. _MoserObject3.default.updatePropertyOverride(value, this, 24, true);
  22387. }
  22388. }
  22389. /**
  22390. * Gets the value of the folder property.
  22391. * @return {Folder} possible object is {@link ItemType.Folder}
  22392. */
  22393. }, {
  22394. key: 'getFolder',
  22395. value: function getFolder() {
  22396. return this.folder;
  22397. }
  22398. /**
  22399. * Sets the value of the folder property.
  22400. * @param {Folder} value allowed object is {@link ItemType.Folder}
  22401. */
  22402. }, {
  22403. key: 'setFolder',
  22404. value: function setFolder(value) {
  22405. var oldValue = this.folder;
  22406. this.folder = value;
  22407. this._setAndNotify(29, oldValue, value, true, false);
  22408. if (value) {
  22409. _MoserObject3.default.updatePropertyOverride(value, this, 29, true);
  22410. }
  22411. }
  22412. /**
  22413. * Gets the value of the itemHierarchy property.
  22414. * @return {ItemHierarchy} possible object is {@link ItemHierarchy}
  22415. */
  22416. }, {
  22417. key: 'getItemHierarchy',
  22418. value: function getItemHierarchy() {
  22419. return this.itemHierarchy;
  22420. }
  22421. /**
  22422. * Sets the value of the itemHierarchy property.
  22423. * @param {ItemHierarchy} value allowed object is {@link ItemHierarchy}
  22424. */
  22425. }, {
  22426. key: 'setItemHierarchy',
  22427. value: function setItemHierarchy(value) {
  22428. var oldValue = this.itemHierarchy;
  22429. this.itemHierarchy = value;
  22430. this._setAndNotify(27, oldValue, value, true, false);
  22431. if (value) {
  22432. _MoserObject3.default.updatePropertyOverride(value, this, 27, true);
  22433. }
  22434. }
  22435. /**
  22436. * Gets the value of the calculation property.
  22437. * @return {Calculation} possible object is {@link Calculation}
  22438. */
  22439. }, {
  22440. key: 'getCalculation',
  22441. value: function getCalculation() {
  22442. return this.calculation;
  22443. }
  22444. /**
  22445. * Sets the value of the calculation property.
  22446. * @param {Calculation} value allowed object is {@link Calculation}
  22447. */
  22448. }, {
  22449. key: 'setCalculation',
  22450. value: function setCalculation(value) {
  22451. var oldValue = this.calculation;
  22452. this.calculation = value;
  22453. this._setAndNotify(25, oldValue, value, true, false);
  22454. if (value) {
  22455. _MoserObject3.default.updatePropertyOverride(value, this, 25, true);
  22456. }
  22457. }
  22458. /**
  22459. * Creates a new instance of <code>ItemType</code> object from JSON data.
  22460. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  22461. * @param {Object} json JSON data to be used to create the <code> ItemType</code> object from.
  22462. * @return {ItemType} an object of type <code>ItemType</code>
  22463. */
  22464. }, {
  22465. key: 'getObjectType',
  22466. /**
  22467. * Retrieves the type of this object
  22468. * @return {String} the object type in a <code>String</code>
  22469. */
  22470. value: function getObjectType() {
  22471. return "ItemType";
  22472. }
  22473. /**
  22474. * Get a list of FeatureObjects
  22475. * @return {Array} A list of FeatureObjects
  22476. */
  22477. }, {
  22478. key: 'getFeatureList',
  22479. value: function getFeatureList(factory) {
  22480. var featureList = [];
  22481. var clazz;
  22482. if (factory) {
  22483. clazz = factory.createQueryItem().getClass();
  22484. }
  22485. featureList.push(this.createFeature(false, false, true, 28, "queryItem", clazz));
  22486. if (factory) {
  22487. clazz = factory.createNamedSet().getClass();
  22488. }
  22489. featureList.push(this.createFeature(false, false, true, 26, "namedSet", clazz));
  22490. if (factory) {
  22491. clazz = factory.createFilter().getClass();
  22492. }
  22493. featureList.push(this.createFeature(false, false, true, 24, "filter", clazz));
  22494. if (factory) {
  22495. clazz = factory.createItemTypeFolder().getClass();
  22496. }
  22497. featureList.push(this.createFeature(false, false, true, 29, "folder", clazz));
  22498. if (factory) {
  22499. clazz = factory.createItemHierarchy().getClass();
  22500. }
  22501. featureList.push(this.createFeature(false, false, true, 27, "itemHierarchy", clazz));
  22502. if (factory) {
  22503. clazz = factory.createCalculation().getClass();
  22504. }
  22505. featureList.push(this.createFeature(false, false, true, 25, "calculation", clazz));
  22506. Array.prototype.push.apply(featureList, _get(ItemType.prototype.__proto__ || Object.getPrototypeOf(ItemType.prototype), 'getFeatureList', this).call(this, factory));
  22507. return featureList;
  22508. }
  22509. /**
  22510. * Set the value of a specific feature.
  22511. * @param {BaseMoserObject} value the value to set
  22512. * @param {int} featureID the feature id of the attribute to be set
  22513. */
  22514. }, {
  22515. key: 'set',
  22516. value: function set(featureID, value) {
  22517. switch (featureID) {
  22518. case 24:
  22519. this.setFilter(value);
  22520. break;
  22521. case 25:
  22522. this.setCalculation(value);
  22523. break;
  22524. case 26:
  22525. this.setNamedSet(value);
  22526. break;
  22527. case 27:
  22528. this.setItemHierarchy(value);
  22529. break;
  22530. case 28:
  22531. this.setQueryItem(value);
  22532. break;
  22533. case 29:
  22534. this.setFolder(value);
  22535. break;
  22536. default:
  22537. throw new Error("The feature " + featureID + " is not valid.");
  22538. }
  22539. }
  22540. /**
  22541. * Get the value of a specific feature.
  22542. * @param {int} featureID the feature id of the attribute to get
  22543. */
  22544. }, {
  22545. key: 'get',
  22546. value: function get(featureID) {
  22547. switch (featureID) {
  22548. case 24:
  22549. return this.getFilter();
  22550. case 25:
  22551. return this.getCalculation();
  22552. case 26:
  22553. return this.getNamedSet();
  22554. case 27:
  22555. return this.getItemHierarchy();
  22556. case 28:
  22557. return this.getQueryItem();
  22558. case 29:
  22559. return this.getFolder();
  22560. default:
  22561. throw new Error("The feature " + featureID + " is not valid.");
  22562. }
  22563. }
  22564. /**
  22565. * Get the value of a specific feature.
  22566. * @param {int} featureID the feature id of the attribute to get
  22567. */
  22568. }, {
  22569. key: 'basicGet',
  22570. value: function basicGet(featureID) {
  22571. switch (featureID) {
  22572. case 24:
  22573. return this.getFilter();
  22574. case 25:
  22575. return this.getCalculation();
  22576. case 26:
  22577. return this.getNamedSet();
  22578. case 27:
  22579. return this.getItemHierarchy();
  22580. case 28:
  22581. return this.getQueryItem();
  22582. case 29:
  22583. return this.getFolder();
  22584. default:
  22585. throw new Error("The feature " + featureID + " is not valid.");
  22586. }
  22587. }
  22588. }], [{
  22589. key: 'fromJSON',
  22590. value: function fromJSON(json, factory) {
  22591. var result = factory.createItemType();
  22592. var featureList = result.getFeatureList(factory);
  22593. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  22594. return result;
  22595. }
  22596. }]);
  22597. return ItemType;
  22598. }(_MoserObject3.default);
  22599. /**
  22600. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="item" type="{}itemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  22601. */
  22602. exports.default = ItemType;
  22603. ItemType.Folder = function (_ObjectType) {
  22604. _inherits(_class2, _ObjectType);
  22605. function _class2() {
  22606. var _ref2;
  22607. var _temp2, _this2, _ret2;
  22608. _classCallCheck(this, _class2);
  22609. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  22610. args[_key2] = arguments[_key2];
  22611. }
  22612. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.item = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  22613. }
  22614. _createClass(_class2, [{
  22615. key: 'getItem',
  22616. /**
  22617. * Gets the value of the item property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the item property. <p> For example, to add a new item, do as follows: <pre> getItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ItemType}
  22618. */
  22619. value: function getItem() {
  22620. if (!this.item) {
  22621. this.item = [];
  22622. }
  22623. return this.item;
  22624. }
  22625. /**
  22626. * Gets the value of the <code>item</code> property without initializing the property to an empty list if it is unset.
  22627. * @return {Array} the list of <code>ItemType</code> elements, or <code>null</code> if not set
  22628. */
  22629. }, {
  22630. key: 'basicGetItem',
  22631. value: function basicGetItem() {
  22632. return this.item;
  22633. }
  22634. /**
  22635. * Creates a new instance of <code>Folder</code> object from JSON data.
  22636. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  22637. * @param {Object} json JSON data to be used to create the <code> Folder</code> object from.
  22638. * @return {Folder} an object of type <code>Folder</code>
  22639. */
  22640. }, {
  22641. key: 'addItemAt',
  22642. /**
  22643. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  22644. */
  22645. value: function addItemAt(position, item) {
  22646. this._addAtAndNotify(this.getItem(), position, item, 3, true, false);
  22647. var qi = item.getQueryItem();
  22648. if (qi) {
  22649. _MoserObject3.default.updatePropertyOverride(qi, this, 28, true);
  22650. }
  22651. var hierarchy = item.getItemHierarchy();
  22652. if (hierarchy) {
  22653. _MoserObject3.default.updatePropertyOverride(hierarchy, this, 27, true);
  22654. }
  22655. var namedSet = item.getNamedSet();
  22656. if (namedSet) {
  22657. _MoserObject3.default.updatePropertyOverride(namedSet, this, 26, true);
  22658. }
  22659. var filter = item.getFilter();
  22660. if (filter) {
  22661. _MoserObject3.default.updatePropertyOverride(filter, this, 24, true);
  22662. }
  22663. }
  22664. /**
  22665. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  22666. */
  22667. }, {
  22668. key: 'addItem',
  22669. value: function addItem(item) {
  22670. this.addItemAt(this.getItem().length, item);
  22671. }
  22672. /**
  22673. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  22674. */
  22675. }, {
  22676. key: 'removeItemAt',
  22677. value: function removeItemAt(position) {
  22678. this._removeAtAndNotify(this.getItem(), position, 3, true);
  22679. }
  22680. /**
  22681. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  22682. */
  22683. }, {
  22684. key: 'removeItem',
  22685. value: function removeItem(item) {
  22686. var i = this.getItem().indexOf(item);
  22687. if (i >= 0) {
  22688. this.removeItemAt(i);
  22689. }
  22690. }
  22691. /**
  22692. * Retrieves the type of this object
  22693. * @return {String} the object type in a <code>String</code>
  22694. */
  22695. }, {
  22696. key: 'getObjectType',
  22697. value: function getObjectType() {
  22698. return "Folder";
  22699. }
  22700. /**
  22701. * Get a list of FeatureObjects
  22702. * @return {Array} A list of FeatureObjects
  22703. */
  22704. }, {
  22705. key: 'getFeatureList',
  22706. value: function getFeatureList(factory) {
  22707. var featureList = [];
  22708. var clazz;
  22709. if (factory) {
  22710. clazz = factory.createItemType().getClass();
  22711. }
  22712. featureList.push(this.createFeature(true, false, true, 3, "item", clazz));
  22713. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  22714. return featureList;
  22715. }
  22716. /**
  22717. * Set the value of a specific feature.
  22718. * @param {BaseMoserObject} value the value to set
  22719. * @param {int} featureID the feature id of the attribute to be set
  22720. */
  22721. }, {
  22722. key: 'set',
  22723. value: function set(featureID, value) {
  22724. switch (featureID) {
  22725. default:
  22726. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'set', this).call(this, featureID, value);
  22727. }
  22728. }
  22729. /**
  22730. * Set the value of a specific feature.
  22731. * @param {BaseMoserObject} value the value to set the value to set
  22732. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  22733. */
  22734. }, {
  22735. key: '_setList',
  22736. value: function _setList(featureID, value) {
  22737. switch (featureID) {
  22738. case 3:
  22739. this.item = value;
  22740. break;
  22741. default:
  22742. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), '_setList', this).call(this, featureID, value);
  22743. }
  22744. }
  22745. /**
  22746. * Get the value of a specific feature.
  22747. * @param {int} featureID the feature id of the attribute to get
  22748. */
  22749. }, {
  22750. key: 'get',
  22751. value: function get(featureID) {
  22752. switch (featureID) {
  22753. case 3:
  22754. return this.getItem();
  22755. default:
  22756. return _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'get', this).call(this, featureID);
  22757. }
  22758. }
  22759. /**
  22760. * Get the value of a specific feature.
  22761. * @param {int} featureID the feature id of the attribute to get
  22762. */
  22763. }, {
  22764. key: 'basicGet',
  22765. value: function basicGet(featureID) {
  22766. switch (featureID) {
  22767. case 3:
  22768. return this.basicGetItem();
  22769. default:
  22770. return _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'basicGet', this).call(this, featureID);
  22771. }
  22772. }
  22773. /**
  22774. * Add the value of a specific feature at a specific position
  22775. * @param {int} position the array position of the item to be added
  22776. * @param {BaseMoserObject} value the value to add
  22777. * @param {int} featureID the feature id of the attribute to be added
  22778. */
  22779. }, {
  22780. key: 'addAt',
  22781. value: function addAt(featureID, position, value) {
  22782. switch (featureID) {
  22783. case 3:
  22784. this.addItemAt(position, value);
  22785. break;
  22786. default:
  22787. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'addAt', this).call(this, featureID, position, value);
  22788. }
  22789. }
  22790. /**
  22791. * Add the value to the end of a specific collection feature
  22792. * @param {BaseMoserObject} value the value to add
  22793. * @param {int} featureID the feature id of the attribute to be added
  22794. */
  22795. }, {
  22796. key: 'add',
  22797. value: function add(featureID, value) {
  22798. switch (featureID) {
  22799. case 3:
  22800. this.addItem(value);
  22801. break;
  22802. default:
  22803. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'add', this).call(this, featureID, value);
  22804. }
  22805. }
  22806. /**
  22807. * Remove the value of a specific feature by index.
  22808. * @param {int} position the array position of the item to be removed
  22809. * @param {int} featureID the feature id of the attribute to be removed
  22810. */
  22811. }, {
  22812. key: 'removeAt',
  22813. value: function removeAt(featureID, position) {
  22814. switch (featureID) {
  22815. case 3:
  22816. this.removeItemAt(position);
  22817. break;
  22818. default:
  22819. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'removeAt', this).call(this, featureID, position);
  22820. }
  22821. }
  22822. /**
  22823. * Remove the value from specific feature.
  22824. * @param {BaseMoserObject} item the item to be removed
  22825. * @param {int} featureID the feature id of the attribute to be removed
  22826. */
  22827. }, {
  22828. key: 'remove',
  22829. value: function remove(featureID, item) {
  22830. switch (featureID) {
  22831. case 3:
  22832. this.removeItem(item);
  22833. break;
  22834. default:
  22835. _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'remove', this).call(this, featureID, item);
  22836. }
  22837. }
  22838. }], [{
  22839. key: 'fromJSON',
  22840. value: function fromJSON(json, factory) {
  22841. var result = factory.createItemTypeFolder();
  22842. var featureList = result.getFeatureList(factory);
  22843. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  22844. return result;
  22845. }
  22846. }]);
  22847. return _class2;
  22848. }(_ObjectType3.default);
  22849. /***/ },
  22850. /* 63 */
  22851. /***/ function(module, exports, __webpack_require__) {
  22852. 'use strict';
  22853. Object.defineProperty(exports, "__esModule", {
  22854. value: true
  22855. });
  22856. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  22857. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  22858. var _MoserObject3 = __webpack_require__(6);
  22859. var _MoserObject4 = _interopRequireDefault(_MoserObject3);
  22860. var _MoserObjectUtils = __webpack_require__(27);
  22861. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  22862. var _FacetTypeEnabled = __webpack_require__(64);
  22863. var _FacetTypeEnabled2 = _interopRequireDefault(_FacetTypeEnabled);
  22864. var _ContextMode = __webpack_require__(65);
  22865. var _ContextMode2 = _interopRequireDefault(_ContextMode);
  22866. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  22867. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  22868. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  22869. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  22870. ** IBM Confidential
  22871. **
  22872. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  22873. **
  22874. ** (C) Copyright IBM Corp. 2021
  22875. **
  22876. ** The source code for this program is not published or otherwise divested of its trade secrets,
  22877. ** irrespective of what has been deposited with the U.S. Copyright Office.
  22878. ************************************************************************/
  22879. // GENERATED
  22880. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  22881. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForFacetType
  22882. //@import com/ibm/bi/platform/moser/common/generated/metadata/FacetTypeEnabled (runtime) // new
  22883. //@import com/ibm/bi/platform/moser/common/generated/metadata/ContextMode (runtime) // new
  22884. /**
  22885. * <p>Java class for facetType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="facetType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="enabled" type="{}facetTypeEnabled"/&gt; &lt;element name="sortList" type="{}sortListType" minOccurs="0"/&gt; &lt;element name="context" minOccurs="0"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="mode" type="{}contextMode" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  22886. */
  22887. var FacetType = function (_MoserObject) {
  22888. _inherits(FacetType, _MoserObject);
  22889. function FacetType() {
  22890. var _ref;
  22891. var _temp, _this, _ret;
  22892. _classCallCheck(this, FacetType);
  22893. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  22894. args[_key] = arguments[_key];
  22895. }
  22896. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = FacetType.__proto__ || Object.getPrototypeOf(FacetType)).call.apply(_ref, [this].concat(args))), _this), _this.enabled = null, _this.sortList = null, _this.context = null, _temp), _possibleConstructorReturn(_this, _ret);
  22897. }
  22898. _createClass(FacetType, [{
  22899. key: 'getEnabled',
  22900. /**
  22901. * Gets the value of the enabled property.
  22902. * @return {FacetTypeEnabled} possible object is {@link FacetTypeEnabled}
  22903. */
  22904. value: function getEnabled() {
  22905. return this.enabled;
  22906. }
  22907. /**
  22908. * Sets the value of the enabled property.
  22909. * @param {FacetTypeEnabled} value allowed object is {@link FacetTypeEnabled}
  22910. */
  22911. }, {
  22912. key: 'setEnabled',
  22913. value: function setEnabled(value) {
  22914. var oldValue = this.enabled;
  22915. this.enabled = value;
  22916. this._setAndNotify(17, oldValue, value, false, false);
  22917. _MoserObjectUtils2.default.propertyOverrideForFacetType(this);
  22918. }
  22919. /**
  22920. * Gets the value of the sortList property.
  22921. * @return {SortListType} possible object is {@link SortListType}
  22922. */
  22923. }, {
  22924. key: 'getSortList',
  22925. value: function getSortList() {
  22926. return this.sortList;
  22927. }
  22928. /**
  22929. * Sets the value of the sortList property.
  22930. * @param {SortListType} value allowed object is {@link SortListType}
  22931. */
  22932. }, {
  22933. key: 'setSortList',
  22934. value: function setSortList(value) {
  22935. var oldValue = this.sortList;
  22936. this.sortList = value;
  22937. this._setAndNotify(18, oldValue, value, true, false);
  22938. _MoserObjectUtils2.default.propertyOverrideForFacetType(this);
  22939. }
  22940. /**
  22941. * Gets the value of the context property.
  22942. * @return {Context} possible object is {@link FacetType.Context}
  22943. */
  22944. }, {
  22945. key: 'getContext',
  22946. value: function getContext() {
  22947. return this.context;
  22948. }
  22949. /**
  22950. * Sets the value of the context property.
  22951. * @param {Context} value allowed object is {@link FacetType.Context}
  22952. */
  22953. }, {
  22954. key: 'setContext',
  22955. value: function setContext(value) {
  22956. var oldValue = this.context;
  22957. this.context = value;
  22958. this._setAndNotify(2, oldValue, value, true, false);
  22959. }
  22960. /**
  22961. * Creates a new instance of <code>FacetType</code> object from JSON data.
  22962. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  22963. * @param {Object} json JSON data to be used to create the <code> FacetType</code> object from.
  22964. * @return {FacetType} an object of type <code>FacetType</code>
  22965. */
  22966. }, {
  22967. key: 'getObjectType',
  22968. /**
  22969. * Retrieves the type of this object
  22970. * @return {String} the object type in a <code>String</code>
  22971. */
  22972. value: function getObjectType() {
  22973. return "FacetType";
  22974. }
  22975. /**
  22976. * Get a list of FeatureObjects
  22977. * @return {Array} A list of FeatureObjects
  22978. */
  22979. }, {
  22980. key: 'getFeatureList',
  22981. value: function getFeatureList(factory) {
  22982. var featureList = [];
  22983. featureList.push(this.createFeature(false, true, false, 17, "enabled", _FacetTypeEnabled2.default));
  22984. var clazz;
  22985. if (factory) {
  22986. clazz = factory.createSortListType().getClass();
  22987. }
  22988. featureList.push(this.createFeature(false, false, true, 18, "sortList", clazz));
  22989. if (factory) {
  22990. clazz = factory.createFacetTypeContext().getClass();
  22991. }
  22992. featureList.push(this.createFeature(false, false, true, 2, "context", clazz));
  22993. Array.prototype.push.apply(featureList, _get(FacetType.prototype.__proto__ || Object.getPrototypeOf(FacetType.prototype), 'getFeatureList', this).call(this, factory));
  22994. return featureList;
  22995. }
  22996. /**
  22997. * Set the value of a specific feature.
  22998. * @param {BaseMoserObject} value the value to set
  22999. * @param {int} featureID the feature id of the attribute to be set
  23000. */
  23001. }, {
  23002. key: 'set',
  23003. value: function set(featureID, value) {
  23004. switch (featureID) {
  23005. case 2:
  23006. this.setContext(value);
  23007. break;
  23008. case 17:
  23009. this.setEnabled(value);
  23010. break;
  23011. case 18:
  23012. this.setSortList(value);
  23013. break;
  23014. default:
  23015. throw new Error("The feature " + featureID + " is not valid.");
  23016. }
  23017. }
  23018. /**
  23019. * Get the value of a specific feature.
  23020. * @param {int} featureID the feature id of the attribute to get
  23021. */
  23022. }, {
  23023. key: 'get',
  23024. value: function get(featureID) {
  23025. switch (featureID) {
  23026. case 2:
  23027. return this.getContext();
  23028. case 17:
  23029. return this.getEnabled();
  23030. case 18:
  23031. return this.getSortList();
  23032. default:
  23033. throw new Error("The feature " + featureID + " is not valid.");
  23034. }
  23035. }
  23036. /**
  23037. * Get the value of a specific feature.
  23038. * @param {int} featureID the feature id of the attribute to get
  23039. */
  23040. }, {
  23041. key: 'basicGet',
  23042. value: function basicGet(featureID) {
  23043. switch (featureID) {
  23044. case 2:
  23045. return this.getContext();
  23046. case 17:
  23047. return this.getEnabled();
  23048. case 18:
  23049. return this.getSortList();
  23050. default:
  23051. throw new Error("The feature " + featureID + " is not valid.");
  23052. }
  23053. }
  23054. }], [{
  23055. key: 'fromJSON',
  23056. value: function fromJSON(json, factory) {
  23057. var result = factory.createFacetType();
  23058. var featureList = result.getFeatureList(factory);
  23059. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  23060. return result;
  23061. }
  23062. }]);
  23063. return FacetType;
  23064. }(_MoserObject4.default);
  23065. /**
  23066. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="mode" type="{}contextMode" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  23067. */
  23068. exports.default = FacetType;
  23069. FacetType.Context = function (_MoserObject2) {
  23070. _inherits(_class2, _MoserObject2);
  23071. function _class2() {
  23072. var _ref2;
  23073. var _temp2, _this2, _ret2;
  23074. _classCallCheck(this, _class2);
  23075. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  23076. args[_key2] = arguments[_key2];
  23077. }
  23078. return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, (_ref2 = _class2.__proto__ || Object.getPrototypeOf(_class2)).call.apply(_ref2, [this].concat(args))), _this2), _this2.ref = null, _this2.mode = null, _this2._referencedObject = null, _temp2), _possibleConstructorReturn(_this2, _ret2);
  23079. }
  23080. _createClass(_class2, [{
  23081. key: 'getRef',
  23082. /**
  23083. * Gets the value of the ref property.
  23084. * @return {String} possible object is {@link String}
  23085. */
  23086. value: function getRef() {
  23087. return this.ref;
  23088. }
  23089. /**
  23090. * Sets the value of the ref property.
  23091. * @param {String} value allowed object is {@link String}
  23092. */
  23093. }, {
  23094. key: 'setRef',
  23095. value: function setRef(value) {
  23096. var oldValue = this.ref;
  23097. this.ref = value;
  23098. this._setAndNotify(36, oldValue, value, false, false);
  23099. this._referencedObject = null;
  23100. }
  23101. /**
  23102. * Gets the value of the mode property.
  23103. * @return {ContextMode} possible object is {@link ContextMode}
  23104. */
  23105. }, {
  23106. key: 'getMode',
  23107. value: function getMode() {
  23108. return this.mode;
  23109. }
  23110. /**
  23111. * Sets the value of the mode property.
  23112. * @param {ContextMode} value allowed object is {@link ContextMode}
  23113. */
  23114. }, {
  23115. key: 'setMode',
  23116. value: function setMode(value) {
  23117. var oldValue = this.mode;
  23118. this.mode = value;
  23119. this._setAndNotify(183, oldValue, value, false, false);
  23120. }
  23121. /**
  23122. * Creates a new instance of <code>Context</code> object from JSON data.
  23123. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  23124. * @param {Object} json JSON data to be used to create the <code> Context</code> object from.
  23125. * @return {Context} an object of type <code>Context</code>
  23126. */
  23127. }, {
  23128. key: 'getObjectType',
  23129. /**
  23130. * Retrieves the type of this object
  23131. * @return {String} the object type in a <code>String</code>
  23132. */
  23133. value: function getObjectType() {
  23134. return "Context";
  23135. }
  23136. /**
  23137. * Get a list of FeatureObjects
  23138. * @return {Array} A list of FeatureObjects
  23139. */
  23140. }, {
  23141. key: 'getFeatureList',
  23142. value: function getFeatureList(factory) {
  23143. var featureList = [];
  23144. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  23145. featureList.push(this.createFeature(false, true, false, 183, "mode", _ContextMode2.default));
  23146. Array.prototype.push.apply(featureList, _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'getFeatureList', this).call(this, factory));
  23147. return featureList;
  23148. }
  23149. /**
  23150. * Set the value of a specific feature.
  23151. * @param {BaseMoserObject} value the value to set
  23152. * @param {int} featureID the feature id of the attribute to be set
  23153. */
  23154. }, {
  23155. key: 'set',
  23156. value: function set(featureID, value) {
  23157. switch (featureID) {
  23158. case 183:
  23159. this.setMode(value);
  23160. break;
  23161. case 36:
  23162. this.setRef(value);
  23163. break;
  23164. default:
  23165. throw new Error("The feature " + featureID + " is not valid.");
  23166. }
  23167. }
  23168. /**
  23169. * Get the value of a specific feature.
  23170. * @param {int} featureID the feature id of the attribute to get
  23171. */
  23172. }, {
  23173. key: 'get',
  23174. value: function get(featureID) {
  23175. switch (featureID) {
  23176. case 183:
  23177. return this.getMode();
  23178. case 36:
  23179. return this.getRef();
  23180. default:
  23181. throw new Error("The feature " + featureID + " is not valid.");
  23182. }
  23183. }
  23184. /**
  23185. * Get the value of a specific feature.
  23186. * @param {int} featureID the feature id of the attribute to get
  23187. */
  23188. }, {
  23189. key: 'basicGet',
  23190. value: function basicGet(featureID) {
  23191. switch (featureID) {
  23192. case 183:
  23193. return this.getMode();
  23194. case 36:
  23195. return this.getRef();
  23196. default:
  23197. throw new Error("The feature " + featureID + " is not valid.");
  23198. }
  23199. }
  23200. /**
  23201. * Set the resolved object based on reference.
  23202. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  23203. */
  23204. }, {
  23205. key: 'setReferencedObject',
  23206. value: function setReferencedObject(referencedObject) {
  23207. this._referencedObject = referencedObject;
  23208. }
  23209. /**
  23210. * Get the resolved object based on reference.
  23211. * @return {MoserObject} the referenced <code>MoserObject</code>
  23212. */
  23213. }, {
  23214. key: 'getReferencedObject',
  23215. value: function getReferencedObject() {
  23216. return this._referencedObject;
  23217. }
  23218. }, {
  23219. key: 'clone',
  23220. value: function clone() {
  23221. var cloned = _get(_class2.prototype.__proto__ || Object.getPrototypeOf(_class2.prototype), 'clone', this).call(this);
  23222. cloned.setReferencedObject(this._referencedObject);
  23223. return cloned;
  23224. }
  23225. }], [{
  23226. key: 'fromJSON',
  23227. value: function fromJSON(json, factory) {
  23228. var result = factory.createFacetTypeContext();
  23229. var featureList = result.getFeatureList(factory);
  23230. _MoserObject4.default.fromJSONHelper(result, featureList, json, factory);
  23231. return result;
  23232. }
  23233. }]);
  23234. return _class2;
  23235. }(_MoserObject4.default);
  23236. /***/ },
  23237. /* 64 */
  23238. /***/ function(module, exports, __webpack_require__) {
  23239. "use strict";
  23240. Object.defineProperty(exports, "__esModule", {
  23241. value: true
  23242. });
  23243. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  23244. var _Enum2 = __webpack_require__(12);
  23245. var _Enum3 = _interopRequireDefault(_Enum2);
  23246. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23247. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23248. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  23249. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  23250. ** IBM Confidential
  23251. **
  23252. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  23253. **
  23254. ** (C) Copyright IBM Corp. 2020
  23255. **
  23256. ** The source code for this program is not published or otherwise divested of its trade secrets,
  23257. ** irrespective of what has been deposited with the U.S. Copyright Office.
  23258. ************************************************************************/
  23259. // GENERATED
  23260. //@import Enum (loadtime) // superclass
  23261. /**
  23262. * <p>Java class for facetTypeEnabled. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="facetTypeEnabled"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="automatic"/&gt; &lt;enumeration value="true"/&gt; &lt;enumeration value="false"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  23263. */
  23264. var FacetTypeEnabled = function (_Enum) {
  23265. _inherits(FacetTypeEnabled, _Enum);
  23266. function FacetTypeEnabled(v) {
  23267. _classCallCheck(this, FacetTypeEnabled);
  23268. var _this = _possibleConstructorReturn(this, (FacetTypeEnabled.__proto__ || Object.getPrototypeOf(FacetTypeEnabled)).call(this, v));
  23269. _this.enumValue = null;
  23270. _this.enumValue = v;
  23271. return _this;
  23272. }
  23273. /**
  23274. * automatic is resolved to true or false. Rule: true if the usage of the query item/calculation is attribute, and the data type supports precise value comparison (e.g. false for float/double because they are approximate number)
  23275. */
  23276. _createClass(FacetTypeEnabled, [{
  23277. key: "value",
  23278. value: function value() {
  23279. return this.enumValue;
  23280. }
  23281. }, {
  23282. key: "getResourceId",
  23283. value: function getResourceId() {
  23284. return "FacetTypeEnabled" + "_" + this.value();
  23285. }
  23286. }], [{
  23287. key: "fromValue",
  23288. value: function fromValue(v) {
  23289. for (var i = 0; i < FacetTypeEnabled.values().length; ++i) {
  23290. if (FacetTypeEnabled.values()[i].enumValue == v) {
  23291. return FacetTypeEnabled.values()[i];
  23292. }
  23293. }
  23294. throw new Error(v);
  23295. }
  23296. }]);
  23297. return FacetTypeEnabled;
  23298. }(_Enum3.default);
  23299. FacetTypeEnabled.AUTOMATIC = FacetTypeEnabled.newLiteral("automatic");
  23300. FacetTypeEnabled.TRUE = FacetTypeEnabled.newLiteral("true");
  23301. FacetTypeEnabled.FALSE = FacetTypeEnabled.newLiteral("false");
  23302. exports.default = FacetTypeEnabled;
  23303. /***/ },
  23304. /* 65 */
  23305. /***/ function(module, exports, __webpack_require__) {
  23306. "use strict";
  23307. Object.defineProperty(exports, "__esModule", {
  23308. value: true
  23309. });
  23310. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  23311. var _Enum2 = __webpack_require__(12);
  23312. var _Enum3 = _interopRequireDefault(_Enum2);
  23313. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23314. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23315. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  23316. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  23317. ** IBM Confidential
  23318. **
  23319. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  23320. **
  23321. ** (C) Copyright IBM Corp. 2020
  23322. **
  23323. ** The source code for this program is not published or otherwise divested of its trade secrets,
  23324. ** irrespective of what has been deposited with the U.S. Copyright Office.
  23325. ************************************************************************/
  23326. // GENERATED
  23327. //@import Enum (loadtime) // superclass
  23328. /**
  23329. * <p>Java class for contextMode. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="contextMode"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="warnWhenMissing"/&gt; &lt;enumeration value="includeInQuery"/&gt; &lt;enumeration value="infoWhenMissing"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  23330. */
  23331. var ContextMode = function (_Enum) {
  23332. _inherits(ContextMode, _Enum);
  23333. /**
  23334. * context is required in query (project or in filter).
  23335. */
  23336. function ContextMode(v) {
  23337. _classCallCheck(this, ContextMode);
  23338. var _this = _possibleConstructorReturn(this, (ContextMode.__proto__ || Object.getPrototypeOf(ContextMode)).call(this, v));
  23339. _this.enumValue = null;
  23340. _this.enumValue = v;
  23341. return _this;
  23342. }
  23343. /**
  23344. * provide detail information if context is missing in the query.
  23345. */
  23346. /**
  23347. * issue a warning.
  23348. */
  23349. _createClass(ContextMode, [{
  23350. key: "value",
  23351. value: function value() {
  23352. return this.enumValue;
  23353. }
  23354. }, {
  23355. key: "getResourceId",
  23356. value: function getResourceId() {
  23357. return "ContextMode" + "_" + this.value();
  23358. }
  23359. }], [{
  23360. key: "fromValue",
  23361. value: function fromValue(v) {
  23362. for (var i = 0; i < ContextMode.values().length; ++i) {
  23363. if (ContextMode.values()[i].enumValue == v) {
  23364. return ContextMode.values()[i];
  23365. }
  23366. }
  23367. throw new Error(v);
  23368. }
  23369. }]);
  23370. return ContextMode;
  23371. }(_Enum3.default);
  23372. ContextMode.WARN_WHEN_MISSING = ContextMode.newLiteral("warnWhenMissing");
  23373. ContextMode.INCLUDE_IN_QUERY = ContextMode.newLiteral("includeInQuery");
  23374. ContextMode.INFO_WHEN_MISSING = ContextMode.newLiteral("infoWhenMissing");
  23375. exports.default = ContextMode;
  23376. /***/ },
  23377. /* 66 */
  23378. /***/ function(module, exports, __webpack_require__) {
  23379. 'use strict';
  23380. Object.defineProperty(exports, "__esModule", {
  23381. value: true
  23382. });
  23383. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  23384. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  23385. var _PhysicalObjectType2 = __webpack_require__(4);
  23386. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  23387. var _MoserObject = __webpack_require__(6);
  23388. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  23389. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  23390. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  23391. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  23392. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  23393. ** IBM Confidential
  23394. **
  23395. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  23396. **
  23397. ** (C) Copyright IBM Corp. 2020
  23398. **
  23399. ** The source code for this program is not published or otherwise divested of its trade secrets,
  23400. ** irrespective of what has been deposited with the U.S. Copyright Office.
  23401. ************************************************************************/
  23402. // GENERATED
  23403. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  23404. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  23405. /**
  23406. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="cmDataSource" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;choice minOccurs="0"&gt; &lt;element name="connectionString" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element ref="{}jdbc" minOccurs="0"/&gt; &lt;element name="csvUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/choice&gt; &lt;element name="user" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="databaseType" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element ref="{}table" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}storedProcedure" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}function" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="cube" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubePath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeCreatedOn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeDataUpdatedOn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeSchemaUpdatedOn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeIsOptimized" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeDefaultMeasure" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="cubeCurrentPeriod" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  23407. */
  23408. var DataSource = function (_PhysicalObjectType) {
  23409. _inherits(DataSource, _PhysicalObjectType);
  23410. function DataSource() {
  23411. var _ref;
  23412. var _temp, _this, _ret;
  23413. _classCallCheck(this, DataSource);
  23414. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  23415. args[_key] = arguments[_key];
  23416. }
  23417. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DataSource.__proto__ || Object.getPrototypeOf(DataSource)).call.apply(_ref, [this].concat(args))), _this), _this.cmDataSource = null, _this.connectionString = null, _this.jdbc = null, _this.csvUrl = null, _this.user = null, _this.password = null, _this.databaseType = null, _this.catalog = null, _this.schema = null, _this.table = null, _this.storedProcedure = null, _this.dbFunction = null, _this.cube = null, _this.cubeDescription = null, _this.cubePath = null, _this.cubeCreatedOn = null, _this.cubeDataUpdatedOn = null, _this.cubeSchemaUpdatedOn = null, _this.cubeIsOptimized = null, _this.cubeDefaultMeasure = null, _this.cubeCurrentPeriod = null, _temp), _possibleConstructorReturn(_this, _ret);
  23418. }
  23419. _createClass(DataSource, [{
  23420. key: 'getCmDataSource',
  23421. /**
  23422. * Gets the value of the cmDataSource property.
  23423. * @return {String} possible object is {@link String}
  23424. */
  23425. value: function getCmDataSource() {
  23426. return this.cmDataSource;
  23427. }
  23428. /**
  23429. * Sets the value of the cmDataSource property.
  23430. * @param {String} value allowed object is {@link String}
  23431. */
  23432. }, {
  23433. key: 'setCmDataSource',
  23434. value: function setCmDataSource(value) {
  23435. var oldValue = this.cmDataSource;
  23436. this.cmDataSource = value;
  23437. this._setAndNotify(107, oldValue, value, false, false);
  23438. }
  23439. /**
  23440. * Gets the value of the connectionString property.
  23441. * @return {String} possible object is {@link String}
  23442. */
  23443. }, {
  23444. key: 'getConnectionString',
  23445. value: function getConnectionString() {
  23446. return this.connectionString;
  23447. }
  23448. /**
  23449. * Sets the value of the connectionString property.
  23450. * @param {String} value allowed object is {@link String}
  23451. */
  23452. }, {
  23453. key: 'setConnectionString',
  23454. value: function setConnectionString(value) {
  23455. var oldValue = this.connectionString;
  23456. this.connectionString = value;
  23457. this._setAndNotify(96, oldValue, value, false, false);
  23458. }
  23459. /**
  23460. * Gets the value of the jdbc property.
  23461. * @return {Jdbc} possible object is {@link Jdbc}
  23462. */
  23463. }, {
  23464. key: 'getJdbc',
  23465. value: function getJdbc() {
  23466. return this.jdbc;
  23467. }
  23468. /**
  23469. * Sets the value of the jdbc property.
  23470. * @param {Jdbc} value allowed object is {@link Jdbc}
  23471. */
  23472. }, {
  23473. key: 'setJdbc',
  23474. value: function setJdbc(value) {
  23475. var oldValue = this.jdbc;
  23476. this.jdbc = value;
  23477. this._setAndNotify(101, oldValue, value, true, false);
  23478. }
  23479. /**
  23480. * Gets the value of the csvUrl property.
  23481. * @return {String} possible object is {@link String}
  23482. */
  23483. }, {
  23484. key: 'getCsvUrl',
  23485. value: function getCsvUrl() {
  23486. return this.csvUrl;
  23487. }
  23488. /**
  23489. * Sets the value of the csvUrl property.
  23490. * @param {String} value allowed object is {@link String}
  23491. */
  23492. }, {
  23493. key: 'setCsvUrl',
  23494. value: function setCsvUrl(value) {
  23495. var oldValue = this.csvUrl;
  23496. this.csvUrl = value;
  23497. this._setAndNotify(108, oldValue, value, false, false);
  23498. }
  23499. /**
  23500. * Gets the value of the user property.
  23501. * @return {String} possible object is {@link String}
  23502. */
  23503. }, {
  23504. key: 'getUser',
  23505. value: function getUser() {
  23506. return this.user;
  23507. }
  23508. /**
  23509. * Sets the value of the user property.
  23510. * @param {String} value allowed object is {@link String}
  23511. */
  23512. }, {
  23513. key: 'setUser',
  23514. value: function setUser(value) {
  23515. var oldValue = this.user;
  23516. this.user = value;
  23517. this._setAndNotify(115, oldValue, value, false, false);
  23518. }
  23519. /**
  23520. * Gets the value of the password property.
  23521. * @return {String} possible object is {@link String}
  23522. */
  23523. }, {
  23524. key: 'getPassword',
  23525. value: function getPassword() {
  23526. return this.password;
  23527. }
  23528. /**
  23529. * Sets the value of the password property.
  23530. * @param {String} value allowed object is {@link String}
  23531. */
  23532. }, {
  23533. key: 'setPassword',
  23534. value: function setPassword(value) {
  23535. var oldValue = this.password;
  23536. this.password = value;
  23537. this._setAndNotify(109, oldValue, value, false, false);
  23538. }
  23539. /**
  23540. * Gets the value of the databaseType property.
  23541. * @return {String} possible object is {@link String}
  23542. */
  23543. }, {
  23544. key: 'getDatabaseType',
  23545. value: function getDatabaseType() {
  23546. return this.databaseType;
  23547. }
  23548. /**
  23549. * Sets the value of the databaseType property.
  23550. * @param {String} value allowed object is {@link String}
  23551. */
  23552. }, {
  23553. key: 'setDatabaseType',
  23554. value: function setDatabaseType(value) {
  23555. var oldValue = this.databaseType;
  23556. this.databaseType = value;
  23557. this._setAndNotify(105, oldValue, value, false, false);
  23558. }
  23559. /**
  23560. * Gets the value of the catalog property.
  23561. * @return {String} possible object is {@link String}
  23562. */
  23563. }, {
  23564. key: 'getCatalog',
  23565. value: function getCatalog() {
  23566. return this.catalog;
  23567. }
  23568. /**
  23569. * Sets the value of the catalog property.
  23570. * @param {String} value allowed object is {@link String}
  23571. */
  23572. }, {
  23573. key: 'setCatalog',
  23574. value: function setCatalog(value) {
  23575. var oldValue = this.catalog;
  23576. this.catalog = value;
  23577. this._setAndNotify(99, oldValue, value, false, false);
  23578. }
  23579. /**
  23580. * Gets the value of the schema property.
  23581. * @return {String} possible object is {@link String}
  23582. */
  23583. }, {
  23584. key: 'getSchema',
  23585. value: function getSchema() {
  23586. return this.schema;
  23587. }
  23588. /**
  23589. * Sets the value of the schema property.
  23590. * @param {String} value allowed object is {@link String}
  23591. */
  23592. }, {
  23593. key: 'setSchema',
  23594. value: function setSchema(value) {
  23595. var oldValue = this.schema;
  23596. this.schema = value;
  23597. this._setAndNotify(97, oldValue, value, false, false);
  23598. }
  23599. /**
  23600. * Gets the value of the table property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the table property. <p> For example, to add a new item, do as follows: <pre> getTable().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Table}
  23601. */
  23602. }, {
  23603. key: 'getTable',
  23604. value: function getTable() {
  23605. if (!this.table) {
  23606. this.table = [];
  23607. }
  23608. return this.table;
  23609. }
  23610. /**
  23611. * Gets the value of the storedProcedure property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the storedProcedure property. <p> For example, to add a new item, do as follows: <pre> getStoredProcedure().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link StoredProcedure}
  23612. */
  23613. }, {
  23614. key: 'getStoredProcedure',
  23615. value: function getStoredProcedure() {
  23616. if (!this.storedProcedure) {
  23617. this.storedProcedure = [];
  23618. }
  23619. return this.storedProcedure;
  23620. }
  23621. /**
  23622. * Gets the value of the dbFunction property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the dbFunction property. <p> For example, to add a new item, do as follows: <pre> getDbFunction().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link DbFunction}
  23623. */
  23624. }, {
  23625. key: 'getDbFunction',
  23626. value: function getDbFunction() {
  23627. if (!this.dbFunction) {
  23628. this.dbFunction = [];
  23629. }
  23630. return this.dbFunction;
  23631. }
  23632. /**
  23633. * Gets the value of the cube property.
  23634. * @return {String} possible object is {@link String}
  23635. */
  23636. }, {
  23637. key: 'getCube',
  23638. value: function getCube() {
  23639. return this.cube;
  23640. }
  23641. /**
  23642. * Sets the value of the cube property.
  23643. * @param {String} value allowed object is {@link String}
  23644. */
  23645. }, {
  23646. key: 'setCube',
  23647. value: function setCube(value) {
  23648. var oldValue = this.cube;
  23649. this.cube = value;
  23650. this._setAndNotify(113, oldValue, value, false, false);
  23651. }
  23652. /**
  23653. * Gets the value of the cubeDescription property.
  23654. * @return {String} possible object is {@link String}
  23655. */
  23656. }, {
  23657. key: 'getCubeDescription',
  23658. value: function getCubeDescription() {
  23659. return this.cubeDescription;
  23660. }
  23661. /**
  23662. * Sets the value of the cubeDescription property.
  23663. * @param {String} value allowed object is {@link String}
  23664. */
  23665. }, {
  23666. key: 'setCubeDescription',
  23667. value: function setCubeDescription(value) {
  23668. var oldValue = this.cubeDescription;
  23669. this.cubeDescription = value;
  23670. this._setAndNotify(110, oldValue, value, false, false);
  23671. }
  23672. /**
  23673. * Gets the value of the cubePath property.
  23674. * @return {String} possible object is {@link String}
  23675. */
  23676. }, {
  23677. key: 'getCubePath',
  23678. value: function getCubePath() {
  23679. return this.cubePath;
  23680. }
  23681. /**
  23682. * Sets the value of the cubePath property.
  23683. * @param {String} value allowed object is {@link String}
  23684. */
  23685. }, {
  23686. key: 'setCubePath',
  23687. value: function setCubePath(value) {
  23688. var oldValue = this.cubePath;
  23689. this.cubePath = value;
  23690. this._setAndNotify(100, oldValue, value, false, false);
  23691. }
  23692. /**
  23693. * Gets the value of the cubeCreatedOn property.
  23694. * @return {String} possible object is {@link String}
  23695. */
  23696. }, {
  23697. key: 'getCubeCreatedOn',
  23698. value: function getCubeCreatedOn() {
  23699. return this.cubeCreatedOn;
  23700. }
  23701. /**
  23702. * Sets the value of the cubeCreatedOn property.
  23703. * @param {String} value allowed object is {@link String}
  23704. */
  23705. }, {
  23706. key: 'setCubeCreatedOn',
  23707. value: function setCubeCreatedOn(value) {
  23708. var oldValue = this.cubeCreatedOn;
  23709. this.cubeCreatedOn = value;
  23710. this._setAndNotify(103, oldValue, value, false, false);
  23711. }
  23712. /**
  23713. * Gets the value of the cubeDataUpdatedOn property.
  23714. * @return {String} possible object is {@link String}
  23715. */
  23716. }, {
  23717. key: 'getCubeDataUpdatedOn',
  23718. value: function getCubeDataUpdatedOn() {
  23719. return this.cubeDataUpdatedOn;
  23720. }
  23721. /**
  23722. * Sets the value of the cubeDataUpdatedOn property.
  23723. * @param {String} value allowed object is {@link String}
  23724. */
  23725. }, {
  23726. key: 'setCubeDataUpdatedOn',
  23727. value: function setCubeDataUpdatedOn(value) {
  23728. var oldValue = this.cubeDataUpdatedOn;
  23729. this.cubeDataUpdatedOn = value;
  23730. this._setAndNotify(102, oldValue, value, false, false);
  23731. }
  23732. /**
  23733. * Gets the value of the cubeSchemaUpdatedOn property.
  23734. * @return {String} possible object is {@link String}
  23735. */
  23736. }, {
  23737. key: 'getCubeSchemaUpdatedOn',
  23738. value: function getCubeSchemaUpdatedOn() {
  23739. return this.cubeSchemaUpdatedOn;
  23740. }
  23741. /**
  23742. * Sets the value of the cubeSchemaUpdatedOn property.
  23743. * @param {String} value allowed object is {@link String}
  23744. */
  23745. }, {
  23746. key: 'setCubeSchemaUpdatedOn',
  23747. value: function setCubeSchemaUpdatedOn(value) {
  23748. var oldValue = this.cubeSchemaUpdatedOn;
  23749. this.cubeSchemaUpdatedOn = value;
  23750. this._setAndNotify(106, oldValue, value, false, false);
  23751. }
  23752. /**
  23753. * Gets the value of the cubeIsOptimized property.
  23754. * @return {String} possible object is {@link String}
  23755. */
  23756. }, {
  23757. key: 'getCubeIsOptimized',
  23758. value: function getCubeIsOptimized() {
  23759. return this.cubeIsOptimized;
  23760. }
  23761. /**
  23762. * Sets the value of the cubeIsOptimized property.
  23763. * @param {String} value allowed object is {@link String}
  23764. */
  23765. }, {
  23766. key: 'setCubeIsOptimized',
  23767. value: function setCubeIsOptimized(value) {
  23768. var oldValue = this.cubeIsOptimized;
  23769. this.cubeIsOptimized = value;
  23770. this._setAndNotify(111, oldValue, value, false, false);
  23771. }
  23772. /**
  23773. * Gets the value of the cubeDefaultMeasure property.
  23774. * @return {String} possible object is {@link String}
  23775. */
  23776. }, {
  23777. key: 'getCubeDefaultMeasure',
  23778. value: function getCubeDefaultMeasure() {
  23779. return this.cubeDefaultMeasure;
  23780. }
  23781. /**
  23782. * Sets the value of the cubeDefaultMeasure property.
  23783. * @param {String} value allowed object is {@link String}
  23784. */
  23785. }, {
  23786. key: 'setCubeDefaultMeasure',
  23787. value: function setCubeDefaultMeasure(value) {
  23788. var oldValue = this.cubeDefaultMeasure;
  23789. this.cubeDefaultMeasure = value;
  23790. this._setAndNotify(104, oldValue, value, false, false);
  23791. }
  23792. /**
  23793. * Gets the value of the cubeCurrentPeriod property.
  23794. * @return {String} possible object is {@link String}
  23795. */
  23796. }, {
  23797. key: 'getCubeCurrentPeriod',
  23798. value: function getCubeCurrentPeriod() {
  23799. return this.cubeCurrentPeriod;
  23800. }
  23801. /**
  23802. * Sets the value of the cubeCurrentPeriod property.
  23803. * @param {String} value allowed object is {@link String}
  23804. */
  23805. }, {
  23806. key: 'setCubeCurrentPeriod',
  23807. value: function setCubeCurrentPeriod(value) {
  23808. var oldValue = this.cubeCurrentPeriod;
  23809. this.cubeCurrentPeriod = value;
  23810. this._setAndNotify(114, oldValue, value, false, false);
  23811. }
  23812. /**
  23813. * Gets the value of the <code>table</code> property without initializing the property to an empty list if it is unset.
  23814. * @return {Array} the list of <code>Table</code> elements, or <code>null</code> if not set
  23815. */
  23816. }, {
  23817. key: 'basicGetTable',
  23818. value: function basicGetTable() {
  23819. return this.table;
  23820. }
  23821. /**
  23822. * Gets the value of the <code>storedProcedure</code> property without initializing the property to an empty list if it is unset.
  23823. * @return {Array} the list of <code>StoredProcedure</code> elements, or <code>null</code> if not set
  23824. */
  23825. }, {
  23826. key: 'basicGetStoredProcedure',
  23827. value: function basicGetStoredProcedure() {
  23828. return this.storedProcedure;
  23829. }
  23830. /**
  23831. * Gets the value of the <code>dbFunction</code> property without initializing the property to an empty list if it is unset.
  23832. * @return {Array} the list of <code>DbFunction</code> elements, or <code>null</code> if not set
  23833. */
  23834. }, {
  23835. key: 'basicGetDbFunction',
  23836. value: function basicGetDbFunction() {
  23837. return this.dbFunction;
  23838. }
  23839. /**
  23840. * Creates a new instance of <code>DataSource</code> object from JSON data.
  23841. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  23842. * @param {Object} json JSON data to be used to create the <code> DataSource</code> object from.
  23843. * @return {DataSource} an object of type <code>DataSource</code>
  23844. */
  23845. }, {
  23846. key: 'addTableAt',
  23847. /**
  23848. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  23849. */
  23850. value: function addTableAt(position, item) {
  23851. this._addAtAndNotify(this.getTable(), position, item, 116, true, false);
  23852. }
  23853. /**
  23854. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  23855. */
  23856. }, {
  23857. key: 'addTable',
  23858. value: function addTable(item) {
  23859. this.addTableAt(this.getTable().length, item);
  23860. }
  23861. /**
  23862. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  23863. */
  23864. }, {
  23865. key: 'removeTableAt',
  23866. value: function removeTableAt(position) {
  23867. this._removeAtAndNotify(this.getTable(), position, 116, true);
  23868. }
  23869. /**
  23870. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  23871. */
  23872. }, {
  23873. key: 'removeTable',
  23874. value: function removeTable(item) {
  23875. var i = this.getTable().indexOf(item);
  23876. if (i >= 0) {
  23877. this.removeTableAt(i);
  23878. }
  23879. }
  23880. /**
  23881. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  23882. */
  23883. }, {
  23884. key: 'addStoredProcedureAt',
  23885. value: function addStoredProcedureAt(position, item) {
  23886. this._addAtAndNotify(this.getStoredProcedure(), position, item, 98, true, false);
  23887. }
  23888. /**
  23889. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  23890. */
  23891. }, {
  23892. key: 'addStoredProcedure',
  23893. value: function addStoredProcedure(item) {
  23894. this.addStoredProcedureAt(this.getStoredProcedure().length, item);
  23895. }
  23896. /**
  23897. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  23898. */
  23899. }, {
  23900. key: 'removeStoredProcedureAt',
  23901. value: function removeStoredProcedureAt(position) {
  23902. this._removeAtAndNotify(this.getStoredProcedure(), position, 98, true);
  23903. }
  23904. /**
  23905. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  23906. */
  23907. }, {
  23908. key: 'removeStoredProcedure',
  23909. value: function removeStoredProcedure(item) {
  23910. var i = this.getStoredProcedure().indexOf(item);
  23911. if (i >= 0) {
  23912. this.removeStoredProcedureAt(i);
  23913. }
  23914. }
  23915. /**
  23916. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  23917. */
  23918. }, {
  23919. key: 'addDbFunctionAt',
  23920. value: function addDbFunctionAt(position, item) {
  23921. this._addAtAndNotify(this.getDbFunction(), position, item, 112, true, false);
  23922. }
  23923. /**
  23924. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  23925. */
  23926. }, {
  23927. key: 'addDbFunction',
  23928. value: function addDbFunction(item) {
  23929. this.addDbFunctionAt(this.getDbFunction().length, item);
  23930. }
  23931. /**
  23932. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  23933. */
  23934. }, {
  23935. key: 'removeDbFunctionAt',
  23936. value: function removeDbFunctionAt(position) {
  23937. this._removeAtAndNotify(this.getDbFunction(), position, 112, true);
  23938. }
  23939. /**
  23940. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  23941. */
  23942. }, {
  23943. key: 'removeDbFunction',
  23944. value: function removeDbFunction(item) {
  23945. var i = this.getDbFunction().indexOf(item);
  23946. if (i >= 0) {
  23947. this.removeDbFunctionAt(i);
  23948. }
  23949. }
  23950. /**
  23951. * Retrieves the type of this object
  23952. * @return {String} the object type in a <code>String</code>
  23953. */
  23954. }, {
  23955. key: 'getObjectType',
  23956. value: function getObjectType() {
  23957. return "DataSource";
  23958. }
  23959. /**
  23960. * Get a list of FeatureObjects
  23961. * @return {Array} A list of FeatureObjects
  23962. */
  23963. }, {
  23964. key: 'getFeatureList',
  23965. value: function getFeatureList(factory) {
  23966. var featureList = [];
  23967. featureList.push(this.createFeature(false, false, false, 107, "cmDataSource", null));
  23968. featureList.push(this.createFeature(false, false, false, 96, "connectionString", null));
  23969. var clazz;
  23970. if (factory) {
  23971. clazz = factory.createJdbc().getClass();
  23972. }
  23973. featureList.push(this.createFeature(false, false, true, 101, "jdbc", clazz));
  23974. featureList.push(this.createFeature(false, false, false, 108, "csvUrl", null));
  23975. featureList.push(this.createFeature(false, false, false, 115, "user", null));
  23976. featureList.push(this.createFeature(false, false, false, 109, "password", null));
  23977. featureList.push(this.createFeature(false, false, false, 105, "databaseType", null));
  23978. featureList.push(this.createFeature(false, false, false, 99, "catalog", null));
  23979. featureList.push(this.createFeature(false, false, false, 97, "schema", null));
  23980. if (factory) {
  23981. clazz = factory.createTable().getClass();
  23982. }
  23983. featureList.push(this.createFeature(true, false, true, 116, "table", clazz));
  23984. if (factory) {
  23985. clazz = factory.createStoredProcedure().getClass();
  23986. }
  23987. featureList.push(this.createFeature(true, false, true, 98, "storedProcedure", clazz));
  23988. if (factory) {
  23989. clazz = factory.createDbFunction().getClass();
  23990. }
  23991. featureList.push(this.createFeature(true, false, true, 112, "dbFunction", clazz));
  23992. featureList.push(this.createFeature(false, false, false, 113, "cube", null));
  23993. featureList.push(this.createFeature(false, false, false, 110, "cubeDescription", null));
  23994. featureList.push(this.createFeature(false, false, false, 100, "cubePath", null));
  23995. featureList.push(this.createFeature(false, false, false, 103, "cubeCreatedOn", null));
  23996. featureList.push(this.createFeature(false, false, false, 102, "cubeDataUpdatedOn", null));
  23997. featureList.push(this.createFeature(false, false, false, 106, "cubeSchemaUpdatedOn", null));
  23998. featureList.push(this.createFeature(false, false, false, 111, "cubeIsOptimized", null));
  23999. featureList.push(this.createFeature(false, false, false, 104, "cubeDefaultMeasure", null));
  24000. featureList.push(this.createFeature(false, false, false, 114, "cubeCurrentPeriod", null));
  24001. Array.prototype.push.apply(featureList, _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'getFeatureList', this).call(this, factory));
  24002. return featureList;
  24003. }
  24004. /**
  24005. * Set the value of a specific feature.
  24006. * @param {BaseMoserObject} value the value to set
  24007. * @param {int} featureID the feature id of the attribute to be set
  24008. */
  24009. }, {
  24010. key: 'set',
  24011. value: function set(featureID, value) {
  24012. switch (featureID) {
  24013. case 96:
  24014. this.setConnectionString(value);
  24015. break;
  24016. case 97:
  24017. this.setSchema(value);
  24018. break;
  24019. case 99:
  24020. this.setCatalog(value);
  24021. break;
  24022. case 100:
  24023. this.setCubePath(value);
  24024. break;
  24025. case 101:
  24026. this.setJdbc(value);
  24027. break;
  24028. case 102:
  24029. this.setCubeDataUpdatedOn(value);
  24030. break;
  24031. case 103:
  24032. this.setCubeCreatedOn(value);
  24033. break;
  24034. case 104:
  24035. this.setCubeDefaultMeasure(value);
  24036. break;
  24037. case 105:
  24038. this.setDatabaseType(value);
  24039. break;
  24040. case 106:
  24041. this.setCubeSchemaUpdatedOn(value);
  24042. break;
  24043. case 107:
  24044. this.setCmDataSource(value);
  24045. break;
  24046. case 108:
  24047. this.setCsvUrl(value);
  24048. break;
  24049. case 109:
  24050. this.setPassword(value);
  24051. break;
  24052. case 110:
  24053. this.setCubeDescription(value);
  24054. break;
  24055. case 111:
  24056. this.setCubeIsOptimized(value);
  24057. break;
  24058. case 113:
  24059. this.setCube(value);
  24060. break;
  24061. case 114:
  24062. this.setCubeCurrentPeriod(value);
  24063. break;
  24064. case 115:
  24065. this.setUser(value);
  24066. break;
  24067. default:
  24068. _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'set', this).call(this, featureID, value);
  24069. }
  24070. }
  24071. /**
  24072. * Set the value of a specific feature.
  24073. * @param {BaseMoserObject} value the value to set the value to set
  24074. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  24075. */
  24076. }, {
  24077. key: '_setList',
  24078. value: function _setList(featureID, value) {
  24079. switch (featureID) {
  24080. case 98:
  24081. this.storedProcedure = value;
  24082. break;
  24083. case 112:
  24084. this.dbFunction = value;
  24085. break;
  24086. case 116:
  24087. this.table = value;
  24088. break;
  24089. default:
  24090. _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), '_setList', this).call(this, featureID, value);
  24091. }
  24092. }
  24093. /**
  24094. * Get the value of a specific feature.
  24095. * @param {int} featureID the feature id of the attribute to get
  24096. */
  24097. }, {
  24098. key: 'get',
  24099. value: function get(featureID) {
  24100. switch (featureID) {
  24101. case 96:
  24102. return this.getConnectionString();
  24103. case 97:
  24104. return this.getSchema();
  24105. case 98:
  24106. return this.getStoredProcedure();
  24107. case 99:
  24108. return this.getCatalog();
  24109. case 100:
  24110. return this.getCubePath();
  24111. case 101:
  24112. return this.getJdbc();
  24113. case 102:
  24114. return this.getCubeDataUpdatedOn();
  24115. case 103:
  24116. return this.getCubeCreatedOn();
  24117. case 104:
  24118. return this.getCubeDefaultMeasure();
  24119. case 105:
  24120. return this.getDatabaseType();
  24121. case 106:
  24122. return this.getCubeSchemaUpdatedOn();
  24123. case 107:
  24124. return this.getCmDataSource();
  24125. case 108:
  24126. return this.getCsvUrl();
  24127. case 109:
  24128. return this.getPassword();
  24129. case 110:
  24130. return this.getCubeDescription();
  24131. case 111:
  24132. return this.getCubeIsOptimized();
  24133. case 112:
  24134. return this.getDbFunction();
  24135. case 113:
  24136. return this.getCube();
  24137. case 114:
  24138. return this.getCubeCurrentPeriod();
  24139. case 115:
  24140. return this.getUser();
  24141. case 116:
  24142. return this.getTable();
  24143. default:
  24144. return _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'get', this).call(this, featureID);
  24145. }
  24146. }
  24147. /**
  24148. * Get the value of a specific feature.
  24149. * @param {int} featureID the feature id of the attribute to get
  24150. */
  24151. }, {
  24152. key: 'basicGet',
  24153. value: function basicGet(featureID) {
  24154. switch (featureID) {
  24155. case 96:
  24156. return this.getConnectionString();
  24157. case 97:
  24158. return this.getSchema();
  24159. case 98:
  24160. return this.basicGetStoredProcedure();
  24161. case 99:
  24162. return this.getCatalog();
  24163. case 100:
  24164. return this.getCubePath();
  24165. case 101:
  24166. return this.getJdbc();
  24167. case 102:
  24168. return this.getCubeDataUpdatedOn();
  24169. case 103:
  24170. return this.getCubeCreatedOn();
  24171. case 104:
  24172. return this.getCubeDefaultMeasure();
  24173. case 105:
  24174. return this.getDatabaseType();
  24175. case 106:
  24176. return this.getCubeSchemaUpdatedOn();
  24177. case 107:
  24178. return this.getCmDataSource();
  24179. case 108:
  24180. return this.getCsvUrl();
  24181. case 109:
  24182. return this.getPassword();
  24183. case 110:
  24184. return this.getCubeDescription();
  24185. case 111:
  24186. return this.getCubeIsOptimized();
  24187. case 112:
  24188. return this.basicGetDbFunction();
  24189. case 113:
  24190. return this.getCube();
  24191. case 114:
  24192. return this.getCubeCurrentPeriod();
  24193. case 115:
  24194. return this.getUser();
  24195. case 116:
  24196. return this.basicGetTable();
  24197. default:
  24198. return _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'basicGet', this).call(this, featureID);
  24199. }
  24200. }
  24201. /**
  24202. * Add the value of a specific feature at a specific position
  24203. * @param {int} position the array position of the item to be added
  24204. * @param {BaseMoserObject} value the value to add
  24205. * @param {int} featureID the feature id of the attribute to be added
  24206. */
  24207. }, {
  24208. key: 'addAt',
  24209. value: function addAt(featureID, position, value) {
  24210. switch (featureID) {
  24211. case 98:
  24212. this.addStoredProcedureAt(position, value);
  24213. break;
  24214. case 112:
  24215. this.addDbFunctionAt(position, value);
  24216. break;
  24217. case 116:
  24218. this.addTableAt(position, value);
  24219. break;
  24220. default:
  24221. _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'addAt', this).call(this, featureID, position, value);
  24222. }
  24223. }
  24224. /**
  24225. * Add the value to the end of a specific collection feature
  24226. * @param {BaseMoserObject} value the value to add
  24227. * @param {int} featureID the feature id of the attribute to be added
  24228. */
  24229. }, {
  24230. key: 'add',
  24231. value: function add(featureID, value) {
  24232. switch (featureID) {
  24233. case 98:
  24234. this.addStoredProcedure(value);
  24235. break;
  24236. case 112:
  24237. this.addDbFunction(value);
  24238. break;
  24239. case 116:
  24240. this.addTable(value);
  24241. break;
  24242. default:
  24243. _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'add', this).call(this, featureID, value);
  24244. }
  24245. }
  24246. /**
  24247. * Remove the value of a specific feature by index.
  24248. * @param {int} position the array position of the item to be removed
  24249. * @param {int} featureID the feature id of the attribute to be removed
  24250. */
  24251. }, {
  24252. key: 'removeAt',
  24253. value: function removeAt(featureID, position) {
  24254. switch (featureID) {
  24255. case 98:
  24256. this.removeStoredProcedureAt(position);
  24257. break;
  24258. case 112:
  24259. this.removeDbFunctionAt(position);
  24260. break;
  24261. case 116:
  24262. this.removeTableAt(position);
  24263. break;
  24264. default:
  24265. _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'removeAt', this).call(this, featureID, position);
  24266. }
  24267. }
  24268. /**
  24269. * Remove the value from specific feature.
  24270. * @param {BaseMoserObject} item the item to be removed
  24271. * @param {int} featureID the feature id of the attribute to be removed
  24272. */
  24273. }, {
  24274. key: 'remove',
  24275. value: function remove(featureID, item) {
  24276. switch (featureID) {
  24277. case 98:
  24278. this.removeStoredProcedure(item);
  24279. break;
  24280. case 112:
  24281. this.removeDbFunction(item);
  24282. break;
  24283. case 116:
  24284. this.removeTable(item);
  24285. break;
  24286. default:
  24287. _get(DataSource.prototype.__proto__ || Object.getPrototypeOf(DataSource.prototype), 'remove', this).call(this, featureID, item);
  24288. }
  24289. }
  24290. }], [{
  24291. key: 'fromJSON',
  24292. value: function fromJSON(json, factory) {
  24293. var result = factory.createDataSource();
  24294. var featureList = result.getFeatureList(factory);
  24295. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  24296. return result;
  24297. }
  24298. }]);
  24299. return DataSource;
  24300. }(_PhysicalObjectType3.default);
  24301. exports.default = DataSource;
  24302. /***/ },
  24303. /* 67 */
  24304. /***/ function(module, exports, __webpack_require__) {
  24305. "use strict";
  24306. Object.defineProperty(exports, "__esModule", {
  24307. value: true
  24308. });
  24309. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  24310. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  24311. var _MoserObject2 = __webpack_require__(6);
  24312. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  24313. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24314. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24315. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  24316. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  24317. ** IBM Confidential
  24318. **
  24319. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  24320. **
  24321. ** (C) Copyright IBM Corp. 2020
  24322. **
  24323. ** The source code for this program is not published or otherwise divested of its trade secrets,
  24324. ** irrespective of what has been deposited with the U.S. Copyright Office.
  24325. ************************************************************************/
  24326. // GENERATED
  24327. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  24328. /**
  24329. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="jdbcUrl" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="driverClassName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="connectionProperties" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  24330. */
  24331. var Jdbc = function (_MoserObject) {
  24332. _inherits(Jdbc, _MoserObject);
  24333. function Jdbc() {
  24334. var _ref;
  24335. var _temp, _this, _ret;
  24336. _classCallCheck(this, Jdbc);
  24337. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  24338. args[_key] = arguments[_key];
  24339. }
  24340. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Jdbc.__proto__ || Object.getPrototypeOf(Jdbc)).call.apply(_ref, [this].concat(args))), _this), _this.jdbcUrl = null, _this.driverClassName = null, _this.connectionProperties = null, _temp), _possibleConstructorReturn(_this, _ret);
  24341. }
  24342. _createClass(Jdbc, [{
  24343. key: "getJdbcUrl",
  24344. /**
  24345. * Gets the value of the jdbcUrl property.
  24346. * @return {String} possible object is {@link String}
  24347. */
  24348. value: function getJdbcUrl() {
  24349. return this.jdbcUrl;
  24350. }
  24351. /**
  24352. * Sets the value of the jdbcUrl property.
  24353. * @param {String} value allowed object is {@link String}
  24354. */
  24355. }, {
  24356. key: "setJdbcUrl",
  24357. value: function setJdbcUrl(value) {
  24358. var oldValue = this.jdbcUrl;
  24359. this.jdbcUrl = value;
  24360. this._setAndNotify(123, oldValue, value, false, false);
  24361. }
  24362. /**
  24363. * Gets the value of the driverClassName property.
  24364. * @return {String} possible object is {@link String}
  24365. */
  24366. }, {
  24367. key: "getDriverClassName",
  24368. value: function getDriverClassName() {
  24369. return this.driverClassName;
  24370. }
  24371. /**
  24372. * Sets the value of the driverClassName property.
  24373. * @param {String} value allowed object is {@link String}
  24374. */
  24375. }, {
  24376. key: "setDriverClassName",
  24377. value: function setDriverClassName(value) {
  24378. var oldValue = this.driverClassName;
  24379. this.driverClassName = value;
  24380. this._setAndNotify(124, oldValue, value, false, false);
  24381. }
  24382. /**
  24383. * Gets the value of the connectionProperties property.
  24384. * @return {String} possible object is {@link String}
  24385. */
  24386. }, {
  24387. key: "getConnectionProperties",
  24388. value: function getConnectionProperties() {
  24389. return this.connectionProperties;
  24390. }
  24391. /**
  24392. * Sets the value of the connectionProperties property.
  24393. * @param {String} value allowed object is {@link String}
  24394. */
  24395. }, {
  24396. key: "setConnectionProperties",
  24397. value: function setConnectionProperties(value) {
  24398. var oldValue = this.connectionProperties;
  24399. this.connectionProperties = value;
  24400. this._setAndNotify(125, oldValue, value, false, false);
  24401. }
  24402. /**
  24403. * Creates a new instance of <code>Jdbc</code> object from JSON data.
  24404. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  24405. * @param {Object} json JSON data to be used to create the <code> Jdbc</code> object from.
  24406. * @return {Jdbc} an object of type <code>Jdbc</code>
  24407. */
  24408. }, {
  24409. key: "getObjectType",
  24410. /**
  24411. * Retrieves the type of this object
  24412. * @return {String} the object type in a <code>String</code>
  24413. */
  24414. value: function getObjectType() {
  24415. return "Jdbc";
  24416. }
  24417. /**
  24418. * Get a list of FeatureObjects
  24419. * @return {Array} A list of FeatureObjects
  24420. */
  24421. }, {
  24422. key: "getFeatureList",
  24423. value: function getFeatureList(factory) {
  24424. var featureList = [];
  24425. featureList.push(this.createFeature(false, false, false, 123, "jdbcUrl", null));
  24426. featureList.push(this.createFeature(false, false, false, 124, "driverClassName", null));
  24427. featureList.push(this.createFeature(false, false, false, 125, "connectionProperties", null));
  24428. Array.prototype.push.apply(featureList, _get(Jdbc.prototype.__proto__ || Object.getPrototypeOf(Jdbc.prototype), "getFeatureList", this).call(this, factory));
  24429. return featureList;
  24430. }
  24431. /**
  24432. * Set the value of a specific feature.
  24433. * @param {BaseMoserObject} value the value to set
  24434. * @param {int} featureID the feature id of the attribute to be set
  24435. */
  24436. }, {
  24437. key: "set",
  24438. value: function set(featureID, value) {
  24439. switch (featureID) {
  24440. case 123:
  24441. this.setJdbcUrl(value);
  24442. break;
  24443. case 124:
  24444. this.setDriverClassName(value);
  24445. break;
  24446. case 125:
  24447. this.setConnectionProperties(value);
  24448. break;
  24449. default:
  24450. throw new Error("The feature " + featureID + " is not valid.");
  24451. }
  24452. }
  24453. /**
  24454. * Get the value of a specific feature.
  24455. * @param {int} featureID the feature id of the attribute to get
  24456. */
  24457. }, {
  24458. key: "get",
  24459. value: function get(featureID) {
  24460. switch (featureID) {
  24461. case 123:
  24462. return this.getJdbcUrl();
  24463. case 124:
  24464. return this.getDriverClassName();
  24465. case 125:
  24466. return this.getConnectionProperties();
  24467. default:
  24468. throw new Error("The feature " + featureID + " is not valid.");
  24469. }
  24470. }
  24471. /**
  24472. * Get the value of a specific feature.
  24473. * @param {int} featureID the feature id of the attribute to get
  24474. */
  24475. }, {
  24476. key: "basicGet",
  24477. value: function basicGet(featureID) {
  24478. switch (featureID) {
  24479. case 123:
  24480. return this.getJdbcUrl();
  24481. case 124:
  24482. return this.getDriverClassName();
  24483. case 125:
  24484. return this.getConnectionProperties();
  24485. default:
  24486. throw new Error("The feature " + featureID + " is not valid.");
  24487. }
  24488. }
  24489. }], [{
  24490. key: "fromJSON",
  24491. value: function fromJSON(json, factory) {
  24492. var result = factory.createJdbc();
  24493. var featureList = result.getFeatureList(factory);
  24494. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  24495. return result;
  24496. }
  24497. }]);
  24498. return Jdbc;
  24499. }(_MoserObject3.default);
  24500. exports.default = Jdbc;
  24501. /***/ },
  24502. /* 68 */
  24503. /***/ function(module, exports, __webpack_require__) {
  24504. 'use strict';
  24505. Object.defineProperty(exports, "__esModule", {
  24506. value: true
  24507. });
  24508. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  24509. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  24510. var _PhysicalObjectType2 = __webpack_require__(4);
  24511. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  24512. var _MoserObject = __webpack_require__(6);
  24513. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  24514. var _TableType = __webpack_require__(69);
  24515. var _TableType2 = _interopRequireDefault(_TableType);
  24516. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  24517. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  24518. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  24519. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  24520. ** IBM Confidential
  24521. **
  24522. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  24523. **
  24524. ** (C) Copyright IBM Corp. 2021
  24525. **
  24526. ** The source code for this program is not published or otherwise divested of its trade secrets,
  24527. ** irrespective of what has been deposited with the U.S. Copyright Office.
  24528. ************************************************************************/
  24529. // GENERATED
  24530. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  24531. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  24532. //@import com/ibm/bi/platform/moser/common/generated/metadata/TableType (runtime) // new
  24533. /**
  24534. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="tableType" type="{}tableType" minOccurs="0"/&gt; &lt;element name="numberOfRows" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; &lt;element ref="{}column" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}index" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}primaryKey" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}foreignKey" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="tableItem" type="{}tableItemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  24535. */
  24536. var Table = function (_PhysicalObjectType) {
  24537. _inherits(Table, _PhysicalObjectType);
  24538. function Table() {
  24539. var _ref;
  24540. var _temp, _this, _ret;
  24541. _classCallCheck(this, Table);
  24542. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  24543. args[_key] = arguments[_key];
  24544. }
  24545. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Table.__proto__ || Object.getPrototypeOf(Table)).call.apply(_ref, [this].concat(args))), _this), _this.tableType = null, _this.numberOfRows = null, _this.column = null, _this.index = null, _this.primaryKey = null, _this.foreignKey = null, _this.tableItem = null, _temp), _possibleConstructorReturn(_this, _ret);
  24546. }
  24547. _createClass(Table, [{
  24548. key: 'getTableType',
  24549. /**
  24550. * Gets the value of the tableType property.
  24551. * @return {TableType} possible object is {@link TableType}
  24552. */
  24553. value: function getTableType() {
  24554. return this.tableType;
  24555. }
  24556. /**
  24557. * Sets the value of the tableType property.
  24558. * @param {TableType} value allowed object is {@link TableType}
  24559. */
  24560. }, {
  24561. key: 'setTableType',
  24562. value: function setTableType(value) {
  24563. var oldValue = this.tableType;
  24564. this.tableType = value;
  24565. this._setAndNotify(196, oldValue, value, false, false);
  24566. }
  24567. /**
  24568. * Gets the value of the numberOfRows property.
  24569. * @return {Number} possible object is {@link Long}
  24570. */
  24571. }, {
  24572. key: 'getNumberOfRows',
  24573. value: function getNumberOfRows() {
  24574. return this.numberOfRows;
  24575. }
  24576. /**
  24577. * Sets the value of the numberOfRows property.
  24578. * @param {Number} value allowed object is {@link Long}
  24579. */
  24580. }, {
  24581. key: 'setNumberOfRows',
  24582. value: function setNumberOfRows(value) {
  24583. var oldValue = this.numberOfRows;
  24584. this.numberOfRows = value;
  24585. this._setAndNotify(61, oldValue, value, false, false);
  24586. }
  24587. /**
  24588. * Deprecated as of version 3.1, all columns should be under tableItems.Gets the value of the column property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the column property. <p> For example, to add a new item, do as follows: <pre> getColumn().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Column}
  24589. */
  24590. }, {
  24591. key: 'getColumn',
  24592. value: function getColumn() {
  24593. if (!this.column) {
  24594. this.column = [];
  24595. }
  24596. return this.column;
  24597. }
  24598. /**
  24599. * Gets the value of the index property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the index property. <p> For example, to add a new item, do as follows: <pre> getIndex().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Index}
  24600. */
  24601. }, {
  24602. key: 'getIndex',
  24603. value: function getIndex() {
  24604. if (!this.index) {
  24605. this.index = [];
  24606. }
  24607. return this.index;
  24608. }
  24609. /**
  24610. * Gets the value of the primaryKey property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the primaryKey property. <p> For example, to add a new item, do as follows: <pre> getPrimaryKey().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link PrimaryKey}
  24611. */
  24612. }, {
  24613. key: 'getPrimaryKey',
  24614. value: function getPrimaryKey() {
  24615. if (!this.primaryKey) {
  24616. this.primaryKey = [];
  24617. }
  24618. return this.primaryKey;
  24619. }
  24620. /**
  24621. * Gets the value of the foreignKey property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the foreignKey property. <p> For example, to add a new item, do as follows: <pre> getForeignKey().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ForeignKey}
  24622. */
  24623. }, {
  24624. key: 'getForeignKey',
  24625. value: function getForeignKey() {
  24626. if (!this.foreignKey) {
  24627. this.foreignKey = [];
  24628. }
  24629. return this.foreignKey;
  24630. }
  24631. /**
  24632. * Gets the value of the tableItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the tableItem property. <p> For example, to add a new item, do as follows: <pre> getTableItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link TableItemType}
  24633. */
  24634. }, {
  24635. key: 'getTableItem',
  24636. value: function getTableItem() {
  24637. if (!this.tableItem) {
  24638. this.tableItem = [];
  24639. }
  24640. return this.tableItem;
  24641. }
  24642. /**
  24643. * Gets the value of the <code>column</code> property without initializing the property to an empty list if it is unset.
  24644. * @return {Array} the list of <code>Column</code> elements, or <code>null</code> if not set
  24645. */
  24646. }, {
  24647. key: 'basicGetColumn',
  24648. value: function basicGetColumn() {
  24649. return this.column;
  24650. }
  24651. /**
  24652. * Gets the value of the <code>index</code> property without initializing the property to an empty list if it is unset.
  24653. * @return {Array} the list of <code>Index</code> elements, or <code>null</code> if not set
  24654. */
  24655. }, {
  24656. key: 'basicGetIndex',
  24657. value: function basicGetIndex() {
  24658. return this.index;
  24659. }
  24660. /**
  24661. * Gets the value of the <code>primaryKey</code> property without initializing the property to an empty list if it is unset.
  24662. * @return {Array} the list of <code>PrimaryKey</code> elements, or <code>null</code> if not set
  24663. */
  24664. }, {
  24665. key: 'basicGetPrimaryKey',
  24666. value: function basicGetPrimaryKey() {
  24667. return this.primaryKey;
  24668. }
  24669. /**
  24670. * Gets the value of the <code>foreignKey</code> property without initializing the property to an empty list if it is unset.
  24671. * @return {Array} the list of <code>ForeignKey</code> elements, or <code>null</code> if not set
  24672. */
  24673. }, {
  24674. key: 'basicGetForeignKey',
  24675. value: function basicGetForeignKey() {
  24676. return this.foreignKey;
  24677. }
  24678. /**
  24679. * Gets the value of the <code>tableItem</code> property without initializing the property to an empty list if it is unset.
  24680. * @return {Array} the list of <code>TableItemType</code> elements, or <code>null</code> if not set
  24681. */
  24682. }, {
  24683. key: 'basicGetTableItem',
  24684. value: function basicGetTableItem() {
  24685. return this.tableItem;
  24686. }
  24687. /**
  24688. * Creates a new instance of <code>Table</code> object from JSON data.
  24689. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  24690. * @param {Object} json JSON data to be used to create the <code> Table</code> object from.
  24691. * @return {Table} an object of type <code>Table</code>
  24692. */
  24693. }, {
  24694. key: 'addColumnAt',
  24695. /**
  24696. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  24697. */
  24698. value: function addColumnAt(position, item) {
  24699. this._addAtAndNotify(this.getColumn(), position, item, 197, true, false);
  24700. }
  24701. /**
  24702. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  24703. */
  24704. }, {
  24705. key: 'addColumn',
  24706. value: function addColumn(item) {
  24707. this.addColumnAt(this.getColumn().length, item);
  24708. }
  24709. /**
  24710. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  24711. */
  24712. }, {
  24713. key: 'removeColumnAt',
  24714. value: function removeColumnAt(position) {
  24715. this._removeAtAndNotify(this.getColumn(), position, 197, true);
  24716. }
  24717. /**
  24718. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  24719. */
  24720. }, {
  24721. key: 'removeColumn',
  24722. value: function removeColumn(item) {
  24723. var i = this.getColumn().indexOf(item);
  24724. if (i >= 0) {
  24725. this.removeColumnAt(i);
  24726. }
  24727. }
  24728. /**
  24729. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  24730. */
  24731. }, {
  24732. key: 'addIndexAt',
  24733. value: function addIndexAt(position, item) {
  24734. this._addAtAndNotify(this.getIndex(), position, item, 198, true, false);
  24735. }
  24736. /**
  24737. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  24738. */
  24739. }, {
  24740. key: 'addIndex',
  24741. value: function addIndex(item) {
  24742. this.addIndexAt(this.getIndex().length, item);
  24743. }
  24744. /**
  24745. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  24746. */
  24747. }, {
  24748. key: 'removeIndexAt',
  24749. value: function removeIndexAt(position) {
  24750. this._removeAtAndNotify(this.getIndex(), position, 198, true);
  24751. }
  24752. /**
  24753. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  24754. */
  24755. }, {
  24756. key: 'removeIndex',
  24757. value: function removeIndex(item) {
  24758. var i = this.getIndex().indexOf(item);
  24759. if (i >= 0) {
  24760. this.removeIndexAt(i);
  24761. }
  24762. }
  24763. /**
  24764. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  24765. */
  24766. }, {
  24767. key: 'addPrimaryKeyAt',
  24768. value: function addPrimaryKeyAt(position, item) {
  24769. this._addAtAndNotify(this.getPrimaryKey(), position, item, 200, true, false);
  24770. }
  24771. /**
  24772. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  24773. */
  24774. }, {
  24775. key: 'addPrimaryKey',
  24776. value: function addPrimaryKey(item) {
  24777. this.addPrimaryKeyAt(this.getPrimaryKey().length, item);
  24778. }
  24779. /**
  24780. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  24781. */
  24782. }, {
  24783. key: 'removePrimaryKeyAt',
  24784. value: function removePrimaryKeyAt(position) {
  24785. this._removeAtAndNotify(this.getPrimaryKey(), position, 200, true);
  24786. }
  24787. /**
  24788. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  24789. */
  24790. }, {
  24791. key: 'removePrimaryKey',
  24792. value: function removePrimaryKey(item) {
  24793. var i = this.getPrimaryKey().indexOf(item);
  24794. if (i >= 0) {
  24795. this.removePrimaryKeyAt(i);
  24796. }
  24797. }
  24798. /**
  24799. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  24800. */
  24801. }, {
  24802. key: 'addForeignKeyAt',
  24803. value: function addForeignKeyAt(position, item) {
  24804. this._addAtAndNotify(this.getForeignKey(), position, item, 199, true, false);
  24805. }
  24806. /**
  24807. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  24808. */
  24809. }, {
  24810. key: 'addForeignKey',
  24811. value: function addForeignKey(item) {
  24812. this.addForeignKeyAt(this.getForeignKey().length, item);
  24813. }
  24814. /**
  24815. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  24816. */
  24817. }, {
  24818. key: 'removeForeignKeyAt',
  24819. value: function removeForeignKeyAt(position) {
  24820. this._removeAtAndNotify(this.getForeignKey(), position, 199, true);
  24821. }
  24822. /**
  24823. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  24824. */
  24825. }, {
  24826. key: 'removeForeignKey',
  24827. value: function removeForeignKey(item) {
  24828. var i = this.getForeignKey().indexOf(item);
  24829. if (i >= 0) {
  24830. this.removeForeignKeyAt(i);
  24831. }
  24832. }
  24833. /**
  24834. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  24835. */
  24836. }, {
  24837. key: 'addTableItemAt',
  24838. value: function addTableItemAt(position, item) {
  24839. this._addAtAndNotify(this.getTableItem(), position, item, 165, true, false);
  24840. }
  24841. /**
  24842. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  24843. */
  24844. }, {
  24845. key: 'addTableItem',
  24846. value: function addTableItem(item) {
  24847. this.addTableItemAt(this.getTableItem().length, item);
  24848. }
  24849. /**
  24850. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  24851. */
  24852. }, {
  24853. key: 'removeTableItemAt',
  24854. value: function removeTableItemAt(position) {
  24855. this._removeAtAndNotify(this.getTableItem(), position, 165, true);
  24856. }
  24857. /**
  24858. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  24859. */
  24860. }, {
  24861. key: 'removeTableItem',
  24862. value: function removeTableItem(item) {
  24863. var i = this.getTableItem().indexOf(item);
  24864. if (i >= 0) {
  24865. this.removeTableItemAt(i);
  24866. }
  24867. }
  24868. /**
  24869. * Retrieves the type of this object
  24870. * @return {String} the object type in a <code>String</code>
  24871. */
  24872. }, {
  24873. key: 'getObjectType',
  24874. value: function getObjectType() {
  24875. return "Table";
  24876. }
  24877. /**
  24878. * Get a list of FeatureObjects
  24879. * @return {Array} A list of FeatureObjects
  24880. */
  24881. }, {
  24882. key: 'getFeatureList',
  24883. value: function getFeatureList(factory) {
  24884. var featureList = [];
  24885. featureList.push(this.createFeature(false, true, false, 196, "tableType", _TableType2.default));
  24886. featureList.push(this.createFeature(false, false, false, 61, "numberOfRows", null));
  24887. var clazz;
  24888. if (factory) {
  24889. clazz = factory.createColumn().getClass();
  24890. }
  24891. featureList.push(this.createFeature(true, false, true, 197, "column", clazz));
  24892. if (factory) {
  24893. clazz = factory.createIndex().getClass();
  24894. }
  24895. featureList.push(this.createFeature(true, false, true, 198, "index", clazz));
  24896. if (factory) {
  24897. clazz = factory.createPrimaryKey().getClass();
  24898. }
  24899. featureList.push(this.createFeature(true, false, true, 200, "primaryKey", clazz));
  24900. if (factory) {
  24901. clazz = factory.createForeignKey().getClass();
  24902. }
  24903. featureList.push(this.createFeature(true, false, true, 199, "foreignKey", clazz));
  24904. if (factory) {
  24905. clazz = factory.createTableItemType().getClass();
  24906. }
  24907. featureList.push(this.createFeature(true, false, true, 165, "tableItem", clazz));
  24908. Array.prototype.push.apply(featureList, _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'getFeatureList', this).call(this, factory));
  24909. return featureList;
  24910. }
  24911. /**
  24912. * Set the value of a specific feature.
  24913. * @param {BaseMoserObject} value the value to set
  24914. * @param {int} featureID the feature id of the attribute to be set
  24915. */
  24916. }, {
  24917. key: 'set',
  24918. value: function set(featureID, value) {
  24919. switch (featureID) {
  24920. case 196:
  24921. this.setTableType(value);
  24922. break;
  24923. case 61:
  24924. this.setNumberOfRows(value);
  24925. break;
  24926. default:
  24927. _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'set', this).call(this, featureID, value);
  24928. }
  24929. }
  24930. /**
  24931. * Set the value of a specific feature.
  24932. * @param {BaseMoserObject} value the value to set the value to set
  24933. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  24934. */
  24935. }, {
  24936. key: '_setList',
  24937. value: function _setList(featureID, value) {
  24938. switch (featureID) {
  24939. case 165:
  24940. this.tableItem = value;
  24941. break;
  24942. case 197:
  24943. this.column = value;
  24944. break;
  24945. case 198:
  24946. this.index = value;
  24947. break;
  24948. case 199:
  24949. this.foreignKey = value;
  24950. break;
  24951. case 200:
  24952. this.primaryKey = value;
  24953. break;
  24954. default:
  24955. _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), '_setList', this).call(this, featureID, value);
  24956. }
  24957. }
  24958. /**
  24959. * Get the value of a specific feature.
  24960. * @param {int} featureID the feature id of the attribute to get
  24961. */
  24962. }, {
  24963. key: 'get',
  24964. value: function get(featureID) {
  24965. switch (featureID) {
  24966. case 196:
  24967. return this.getTableType();
  24968. case 165:
  24969. return this.getTableItem();
  24970. case 197:
  24971. return this.getColumn();
  24972. case 198:
  24973. return this.getIndex();
  24974. case 61:
  24975. return this.getNumberOfRows();
  24976. case 199:
  24977. return this.getForeignKey();
  24978. case 200:
  24979. return this.getPrimaryKey();
  24980. default:
  24981. return _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'get', this).call(this, featureID);
  24982. }
  24983. }
  24984. /**
  24985. * Get the value of a specific feature.
  24986. * @param {int} featureID the feature id of the attribute to get
  24987. */
  24988. }, {
  24989. key: 'basicGet',
  24990. value: function basicGet(featureID) {
  24991. switch (featureID) {
  24992. case 196:
  24993. return this.getTableType();
  24994. case 165:
  24995. return this.basicGetTableItem();
  24996. case 197:
  24997. return this.basicGetColumn();
  24998. case 198:
  24999. return this.basicGetIndex();
  25000. case 61:
  25001. return this.getNumberOfRows();
  25002. case 199:
  25003. return this.basicGetForeignKey();
  25004. case 200:
  25005. return this.basicGetPrimaryKey();
  25006. default:
  25007. return _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'basicGet', this).call(this, featureID);
  25008. }
  25009. }
  25010. /**
  25011. * Add the value of a specific feature at a specific position
  25012. * @param {int} position the array position of the item to be added
  25013. * @param {BaseMoserObject} value the value to add
  25014. * @param {int} featureID the feature id of the attribute to be added
  25015. */
  25016. }, {
  25017. key: 'addAt',
  25018. value: function addAt(featureID, position, value) {
  25019. switch (featureID) {
  25020. case 165:
  25021. this.addTableItemAt(position, value);
  25022. break;
  25023. case 197:
  25024. this.addColumnAt(position, value);
  25025. break;
  25026. case 198:
  25027. this.addIndexAt(position, value);
  25028. break;
  25029. case 199:
  25030. this.addForeignKeyAt(position, value);
  25031. break;
  25032. case 200:
  25033. this.addPrimaryKeyAt(position, value);
  25034. break;
  25035. default:
  25036. _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'addAt', this).call(this, featureID, position, value);
  25037. }
  25038. }
  25039. /**
  25040. * Add the value to the end of a specific collection feature
  25041. * @param {BaseMoserObject} value the value to add
  25042. * @param {int} featureID the feature id of the attribute to be added
  25043. */
  25044. }, {
  25045. key: 'add',
  25046. value: function add(featureID, value) {
  25047. switch (featureID) {
  25048. case 165:
  25049. this.addTableItem(value);
  25050. break;
  25051. case 197:
  25052. this.addColumn(value);
  25053. break;
  25054. case 198:
  25055. this.addIndex(value);
  25056. break;
  25057. case 199:
  25058. this.addForeignKey(value);
  25059. break;
  25060. case 200:
  25061. this.addPrimaryKey(value);
  25062. break;
  25063. default:
  25064. _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'add', this).call(this, featureID, value);
  25065. }
  25066. }
  25067. /**
  25068. * Remove the value of a specific feature by index.
  25069. * @param {int} position the array position of the item to be removed
  25070. * @param {int} featureID the feature id of the attribute to be removed
  25071. */
  25072. }, {
  25073. key: 'removeAt',
  25074. value: function removeAt(featureID, position) {
  25075. switch (featureID) {
  25076. case 165:
  25077. this.removeTableItemAt(position);
  25078. break;
  25079. case 197:
  25080. this.removeColumnAt(position);
  25081. break;
  25082. case 198:
  25083. this.removeIndexAt(position);
  25084. break;
  25085. case 199:
  25086. this.removeForeignKeyAt(position);
  25087. break;
  25088. case 200:
  25089. this.removePrimaryKeyAt(position);
  25090. break;
  25091. default:
  25092. _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'removeAt', this).call(this, featureID, position);
  25093. }
  25094. }
  25095. /**
  25096. * Remove the value from specific feature.
  25097. * @param {BaseMoserObject} item the item to be removed
  25098. * @param {int} featureID the feature id of the attribute to be removed
  25099. */
  25100. }, {
  25101. key: 'remove',
  25102. value: function remove(featureID, item) {
  25103. switch (featureID) {
  25104. case 165:
  25105. this.removeTableItem(item);
  25106. break;
  25107. case 197:
  25108. this.removeColumn(item);
  25109. break;
  25110. case 198:
  25111. this.removeIndex(item);
  25112. break;
  25113. case 199:
  25114. this.removeForeignKey(item);
  25115. break;
  25116. case 200:
  25117. this.removePrimaryKey(item);
  25118. break;
  25119. default:
  25120. _get(Table.prototype.__proto__ || Object.getPrototypeOf(Table.prototype), 'remove', this).call(this, featureID, item);
  25121. }
  25122. }
  25123. }], [{
  25124. key: 'fromJSON',
  25125. value: function fromJSON(json, factory) {
  25126. var result = factory.createTable();
  25127. var featureList = result.getFeatureList(factory);
  25128. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  25129. return result;
  25130. }
  25131. }]);
  25132. return Table;
  25133. }(_PhysicalObjectType3.default);
  25134. exports.default = Table;
  25135. /***/ },
  25136. /* 69 */
  25137. /***/ function(module, exports, __webpack_require__) {
  25138. "use strict";
  25139. Object.defineProperty(exports, "__esModule", {
  25140. value: true
  25141. });
  25142. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  25143. var _Enum2 = __webpack_require__(12);
  25144. var _Enum3 = _interopRequireDefault(_Enum2);
  25145. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25146. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  25147. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  25148. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  25149. ** IBM Confidential
  25150. **
  25151. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  25152. **
  25153. ** (C) Copyright IBM Corp. 2020
  25154. **
  25155. ** The source code for this program is not published or otherwise divested of its trade secrets,
  25156. ** irrespective of what has been deposited with the U.S. Copyright Office.
  25157. ************************************************************************/
  25158. // GENERATED
  25159. //@import Enum (loadtime) // superclass
  25160. /**
  25161. * <p>Java class for tableType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="tableType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="TABLE"/&gt; &lt;enumeration value="VIEW"/&gt; &lt;enumeration value="SYSTEM_TABLE"/&gt; &lt;enumeration value="GLOBAL_TEMPORARY"/&gt; &lt;enumeration value="LOCAL_TEMPORARY"/&gt; &lt;enumeration value="ALIAS"/&gt; &lt;enumeration value="SYNONYM"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  25162. */
  25163. var TableType = function (_Enum) {
  25164. _inherits(TableType, _Enum);
  25165. function TableType() {
  25166. _classCallCheck(this, TableType);
  25167. return _possibleConstructorReturn(this, (TableType.__proto__ || Object.getPrototypeOf(TableType)).apply(this, arguments));
  25168. }
  25169. _createClass(TableType, [{
  25170. key: "value",
  25171. /**
  25172. * Specifies the table as a view.
  25173. */
  25174. value: function value() {
  25175. return this.name();
  25176. }
  25177. /**
  25178. * Specifies the table as a table.
  25179. */
  25180. }, {
  25181. key: "getResourceId",
  25182. value: function getResourceId() {
  25183. return "TableType" + "_" + this.value();
  25184. }
  25185. }], [{
  25186. key: "fromValue",
  25187. value: function fromValue(v) {
  25188. return TableType.valueOf(v);
  25189. }
  25190. }]);
  25191. return TableType;
  25192. }(_Enum3.default);
  25193. TableType.TABLE = TableType.newLiteral("TABLE");
  25194. TableType.VIEW = TableType.newLiteral("VIEW");
  25195. TableType.SYSTEM_TABLE = TableType.newLiteral("SYSTEM_TABLE");
  25196. TableType.GLOBAL_TEMPORARY = TableType.newLiteral("GLOBAL_TEMPORARY");
  25197. TableType.LOCAL_TEMPORARY = TableType.newLiteral("LOCAL_TEMPORARY");
  25198. TableType.ALIAS = TableType.newLiteral("ALIAS");
  25199. TableType.SYNONYM = TableType.newLiteral("SYNONYM");
  25200. exports.default = TableType;
  25201. /***/ },
  25202. /* 70 */
  25203. /***/ function(module, exports, __webpack_require__) {
  25204. 'use strict';
  25205. Object.defineProperty(exports, "__esModule", {
  25206. value: true
  25207. });
  25208. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  25209. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  25210. var _PhysicalObjectType2 = __webpack_require__(4);
  25211. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  25212. var _MoserObject = __webpack_require__(6);
  25213. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  25214. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25215. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  25216. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  25217. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  25218. ** IBM Confidential
  25219. **
  25220. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  25221. **
  25222. ** (C) Copyright IBM Corp. 2021
  25223. **
  25224. ** The source code for this program is not published or otherwise divested of its trade secrets,
  25225. ** irrespective of what has been deposited with the U.S. Copyright Office.
  25226. ************************************************************************/
  25227. // GENERATED
  25228. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  25229. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  25230. /**
  25231. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="datatype" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="vendorType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="vendorFormat" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  25232. */
  25233. var Column = function (_PhysicalObjectType) {
  25234. _inherits(Column, _PhysicalObjectType);
  25235. function Column() {
  25236. var _ref;
  25237. var _temp, _this, _ret;
  25238. _classCallCheck(this, Column);
  25239. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  25240. args[_key] = arguments[_key];
  25241. }
  25242. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Column.__proto__ || Object.getPrototypeOf(Column)).call.apply(_ref, [this].concat(args))), _this), _this.datatype = null, _this.nullable = null, _this.vendorType = null, _this.vendorFormat = null, _temp), _possibleConstructorReturn(_this, _ret);
  25243. }
  25244. _createClass(Column, [{
  25245. key: 'getDatatype',
  25246. /**
  25247. * Gets the value of the datatype property.
  25248. * @return {String} possible object is {@link String}
  25249. */
  25250. value: function getDatatype() {
  25251. return this.datatype;
  25252. }
  25253. /**
  25254. * Sets the value of the datatype property.
  25255. * @param {String} value allowed object is {@link String}
  25256. */
  25257. }, {
  25258. key: 'setDatatype',
  25259. value: function setDatatype(value) {
  25260. var oldValue = this.datatype;
  25261. this.datatype = value;
  25262. this._setAndNotify(64, oldValue, value, false, false);
  25263. }
  25264. /**
  25265. * Gets the value of the nullable property.
  25266. * @return {Boolean} possible object is {@link Boolean}
  25267. */
  25268. }, {
  25269. key: 'isNullable',
  25270. value: function isNullable() {
  25271. return this.nullable;
  25272. }
  25273. /**
  25274. * Sets the value of the nullable property.
  25275. * @param {Boolean} value allowed object is {@link Boolean}
  25276. */
  25277. }, {
  25278. key: 'setNullable',
  25279. value: function setNullable(value) {
  25280. var oldValue = this.nullable;
  25281. this.nullable = value;
  25282. this._setAndNotify(74, oldValue, value, false, false);
  25283. }
  25284. /**
  25285. * Gets the value of the vendorType property.
  25286. * @return {String} possible object is {@link String}
  25287. */
  25288. }, {
  25289. key: 'getVendorType',
  25290. value: function getVendorType() {
  25291. return this.vendorType;
  25292. }
  25293. /**
  25294. * Sets the value of the vendorType property.
  25295. * @param {String} value allowed object is {@link String}
  25296. */
  25297. }, {
  25298. key: 'setVendorType',
  25299. value: function setVendorType(value) {
  25300. var oldValue = this.vendorType;
  25301. this.vendorType = value;
  25302. this._setAndNotify(177, oldValue, value, false, false);
  25303. }
  25304. /**
  25305. * Gets the value of the vendorFormat property.
  25306. * @return {String} possible object is {@link String}
  25307. */
  25308. }, {
  25309. key: 'getVendorFormat',
  25310. value: function getVendorFormat() {
  25311. return this.vendorFormat;
  25312. }
  25313. /**
  25314. * Sets the value of the vendorFormat property.
  25315. * @param {String} value allowed object is {@link String}
  25316. */
  25317. }, {
  25318. key: 'setVendorFormat',
  25319. value: function setVendorFormat(value) {
  25320. var oldValue = this.vendorFormat;
  25321. this.vendorFormat = value;
  25322. this._setAndNotify(178, oldValue, value, false, false);
  25323. }
  25324. /**
  25325. * Creates a new instance of <code>Column</code> object from JSON data.
  25326. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  25327. * @param {Object} json JSON data to be used to create the <code> Column</code> object from.
  25328. * @return {Column} an object of type <code>Column</code>
  25329. */
  25330. }, {
  25331. key: 'getObjectType',
  25332. /**
  25333. * Retrieves the type of this object
  25334. * @return {String} the object type in a <code>String</code>
  25335. */
  25336. value: function getObjectType() {
  25337. return "Column";
  25338. }
  25339. /**
  25340. * Get a list of FeatureObjects
  25341. * @return {Array} A list of FeatureObjects
  25342. */
  25343. }, {
  25344. key: 'getFeatureList',
  25345. value: function getFeatureList(factory) {
  25346. var featureList = [];
  25347. featureList.push(this.createFeature(false, false, false, 64, "datatype", null));
  25348. featureList.push(this.createFeature(false, false, false, 74, "nullable", null));
  25349. featureList.push(this.createFeature(false, false, false, 177, "vendorType", null));
  25350. featureList.push(this.createFeature(false, false, false, 178, "vendorFormat", null));
  25351. Array.prototype.push.apply(featureList, _get(Column.prototype.__proto__ || Object.getPrototypeOf(Column.prototype), 'getFeatureList', this).call(this, factory));
  25352. return featureList;
  25353. }
  25354. /**
  25355. * Set the value of a specific feature.
  25356. * @param {BaseMoserObject} value the value to set
  25357. * @param {int} featureID the feature id of the attribute to be set
  25358. */
  25359. }, {
  25360. key: 'set',
  25361. value: function set(featureID, value) {
  25362. switch (featureID) {
  25363. case 177:
  25364. this.setVendorType(value);
  25365. break;
  25366. case 178:
  25367. this.setVendorFormat(value);
  25368. break;
  25369. case 74:
  25370. this.setNullable(value);
  25371. break;
  25372. case 64:
  25373. this.setDatatype(value);
  25374. break;
  25375. default:
  25376. _get(Column.prototype.__proto__ || Object.getPrototypeOf(Column.prototype), 'set', this).call(this, featureID, value);
  25377. }
  25378. }
  25379. /**
  25380. * Get the value of a specific feature.
  25381. * @param {int} featureID the feature id of the attribute to get
  25382. */
  25383. }, {
  25384. key: 'get',
  25385. value: function get(featureID) {
  25386. switch (featureID) {
  25387. case 177:
  25388. return this.getVendorType();
  25389. case 178:
  25390. return this.getVendorFormat();
  25391. case 74:
  25392. return this.isNullable();
  25393. case 64:
  25394. return this.getDatatype();
  25395. default:
  25396. return _get(Column.prototype.__proto__ || Object.getPrototypeOf(Column.prototype), 'get', this).call(this, featureID);
  25397. }
  25398. }
  25399. /**
  25400. * Get the value of a specific feature.
  25401. * @param {int} featureID the feature id of the attribute to get
  25402. */
  25403. }, {
  25404. key: 'basicGet',
  25405. value: function basicGet(featureID) {
  25406. switch (featureID) {
  25407. case 177:
  25408. return this.getVendorType();
  25409. case 178:
  25410. return this.getVendorFormat();
  25411. case 74:
  25412. return this.isNullable();
  25413. case 64:
  25414. return this.getDatatype();
  25415. default:
  25416. return _get(Column.prototype.__proto__ || Object.getPrototypeOf(Column.prototype), 'basicGet', this).call(this, featureID);
  25417. }
  25418. }
  25419. }], [{
  25420. key: 'fromJSON',
  25421. value: function fromJSON(json, factory) {
  25422. var result = factory.createColumn();
  25423. var featureList = result.getFeatureList(factory);
  25424. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  25425. return result;
  25426. }
  25427. }]);
  25428. return Column;
  25429. }(_PhysicalObjectType3.default);
  25430. exports.default = Column;
  25431. /***/ },
  25432. /* 71 */
  25433. /***/ function(module, exports, __webpack_require__) {
  25434. 'use strict';
  25435. Object.defineProperty(exports, "__esModule", {
  25436. value: true
  25437. });
  25438. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  25439. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  25440. var _PhysicalObjectType2 = __webpack_require__(4);
  25441. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  25442. var _MoserObject = __webpack_require__(6);
  25443. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  25444. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25445. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  25446. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  25447. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  25448. ** IBM Confidential
  25449. **
  25450. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  25451. **
  25452. ** (C) Copyright IBM Corp. 2020
  25453. **
  25454. ** The source code for this program is not published or otherwise divested of its trade secrets,
  25455. ** irrespective of what has been deposited with the U.S. Copyright Office.
  25456. ************************************************************************/
  25457. // GENERATED
  25458. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  25459. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  25460. /**
  25461. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="keyedColumn" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  25462. */
  25463. var PrimaryKey = function (_PhysicalObjectType) {
  25464. _inherits(PrimaryKey, _PhysicalObjectType);
  25465. function PrimaryKey() {
  25466. var _ref;
  25467. var _temp, _this, _ret;
  25468. _classCallCheck(this, PrimaryKey);
  25469. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  25470. args[_key] = arguments[_key];
  25471. }
  25472. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = PrimaryKey.__proto__ || Object.getPrototypeOf(PrimaryKey)).call.apply(_ref, [this].concat(args))), _this), _this.keyedColumn = null, _temp), _possibleConstructorReturn(_this, _ret);
  25473. }
  25474. _createClass(PrimaryKey, [{
  25475. key: 'getKeyedColumn',
  25476. /**
  25477. * Gets the value of the keyedColumn property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the keyedColumn property. <p> For example, to add a new item, do as follows: <pre> getKeyedColumn().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  25478. */
  25479. value: function getKeyedColumn() {
  25480. if (!this.keyedColumn) {
  25481. this.keyedColumn = [];
  25482. }
  25483. return this.keyedColumn;
  25484. }
  25485. /**
  25486. * Gets the value of the <code>keyedColumn</code> property without initializing the property to an empty list if it is unset.
  25487. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  25488. */
  25489. }, {
  25490. key: 'basicGetKeyedColumn',
  25491. value: function basicGetKeyedColumn() {
  25492. return this.keyedColumn;
  25493. }
  25494. /**
  25495. * Creates a new instance of <code>PrimaryKey</code> object from JSON data.
  25496. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  25497. * @param {Object} json JSON data to be used to create the <code> PrimaryKey</code> object from.
  25498. * @return {PrimaryKey} an object of type <code>PrimaryKey</code>
  25499. */
  25500. }, {
  25501. key: 'addKeyedColumnAt',
  25502. /**
  25503. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  25504. */
  25505. value: function addKeyedColumnAt(position, item) {
  25506. this._addAtAndNotify(this.getKeyedColumn(), position, item, 164, false, false);
  25507. }
  25508. /**
  25509. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  25510. */
  25511. }, {
  25512. key: 'addKeyedColumn',
  25513. value: function addKeyedColumn(item) {
  25514. this.addKeyedColumnAt(this.getKeyedColumn().length, item);
  25515. }
  25516. /**
  25517. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  25518. */
  25519. }, {
  25520. key: 'removeKeyedColumnAt',
  25521. value: function removeKeyedColumnAt(position) {
  25522. this._removeAtAndNotify(this.getKeyedColumn(), position, 164, false);
  25523. }
  25524. /**
  25525. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  25526. */
  25527. }, {
  25528. key: 'removeKeyedColumn',
  25529. value: function removeKeyedColumn(item) {
  25530. var i = this.getKeyedColumn().indexOf(item);
  25531. if (i >= 0) {
  25532. this.removeKeyedColumnAt(i);
  25533. }
  25534. }
  25535. /**
  25536. * Retrieves the type of this object
  25537. * @return {String} the object type in a <code>String</code>
  25538. */
  25539. }, {
  25540. key: 'getObjectType',
  25541. value: function getObjectType() {
  25542. return "PrimaryKey";
  25543. }
  25544. /**
  25545. * Get a list of FeatureObjects
  25546. * @return {Array} A list of FeatureObjects
  25547. */
  25548. }, {
  25549. key: 'getFeatureList',
  25550. value: function getFeatureList(factory) {
  25551. var featureList = [];
  25552. featureList.push(this.createFeature(true, false, false, 164, "keyedColumn", null));
  25553. Array.prototype.push.apply(featureList, _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'getFeatureList', this).call(this, factory));
  25554. return featureList;
  25555. }
  25556. /**
  25557. * Set the value of a specific feature.
  25558. * @param {BaseMoserObject} value the value to set
  25559. * @param {int} featureID the feature id of the attribute to be set
  25560. */
  25561. }, {
  25562. key: 'set',
  25563. value: function set(featureID, value) {
  25564. switch (featureID) {
  25565. default:
  25566. _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'set', this).call(this, featureID, value);
  25567. }
  25568. }
  25569. /**
  25570. * Set the value of a specific feature.
  25571. * @param {BaseMoserObject} value the value to set the value to set
  25572. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  25573. */
  25574. }, {
  25575. key: '_setList',
  25576. value: function _setList(featureID, value) {
  25577. switch (featureID) {
  25578. case 164:
  25579. this.keyedColumn = value;
  25580. break;
  25581. default:
  25582. _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), '_setList', this).call(this, featureID, value);
  25583. }
  25584. }
  25585. /**
  25586. * Get the value of a specific feature.
  25587. * @param {int} featureID the feature id of the attribute to get
  25588. */
  25589. }, {
  25590. key: 'get',
  25591. value: function get(featureID) {
  25592. switch (featureID) {
  25593. case 164:
  25594. return this.getKeyedColumn();
  25595. default:
  25596. return _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'get', this).call(this, featureID);
  25597. }
  25598. }
  25599. /**
  25600. * Get the value of a specific feature.
  25601. * @param {int} featureID the feature id of the attribute to get
  25602. */
  25603. }, {
  25604. key: 'basicGet',
  25605. value: function basicGet(featureID) {
  25606. switch (featureID) {
  25607. case 164:
  25608. return this.basicGetKeyedColumn();
  25609. default:
  25610. return _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'basicGet', this).call(this, featureID);
  25611. }
  25612. }
  25613. /**
  25614. * Add the value of a specific feature at a specific position
  25615. * @param {int} position the array position of the item to be added
  25616. * @param {BaseMoserObject} value the value to add
  25617. * @param {int} featureID the feature id of the attribute to be added
  25618. */
  25619. }, {
  25620. key: 'addAt',
  25621. value: function addAt(featureID, position, value) {
  25622. switch (featureID) {
  25623. case 164:
  25624. this.addKeyedColumnAt(position, value);
  25625. break;
  25626. default:
  25627. _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'addAt', this).call(this, featureID, position, value);
  25628. }
  25629. }
  25630. /**
  25631. * Add the value to the end of a specific collection feature
  25632. * @param {BaseMoserObject} value the value to add
  25633. * @param {int} featureID the feature id of the attribute to be added
  25634. */
  25635. }, {
  25636. key: 'add',
  25637. value: function add(featureID, value) {
  25638. switch (featureID) {
  25639. case 164:
  25640. this.addKeyedColumn(value);
  25641. break;
  25642. default:
  25643. _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'add', this).call(this, featureID, value);
  25644. }
  25645. }
  25646. /**
  25647. * Remove the value of a specific feature by index.
  25648. * @param {int} position the array position of the item to be removed
  25649. * @param {int} featureID the feature id of the attribute to be removed
  25650. */
  25651. }, {
  25652. key: 'removeAt',
  25653. value: function removeAt(featureID, position) {
  25654. switch (featureID) {
  25655. case 164:
  25656. this.removeKeyedColumnAt(position);
  25657. break;
  25658. default:
  25659. _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'removeAt', this).call(this, featureID, position);
  25660. }
  25661. }
  25662. /**
  25663. * Remove the value from specific feature.
  25664. * @param {BaseMoserObject} item the item to be removed
  25665. * @param {int} featureID the feature id of the attribute to be removed
  25666. */
  25667. }, {
  25668. key: 'remove',
  25669. value: function remove(featureID, item) {
  25670. switch (featureID) {
  25671. case 164:
  25672. this.removeKeyedColumn(item);
  25673. break;
  25674. default:
  25675. _get(PrimaryKey.prototype.__proto__ || Object.getPrototypeOf(PrimaryKey.prototype), 'remove', this).call(this, featureID, item);
  25676. }
  25677. }
  25678. }], [{
  25679. key: 'fromJSON',
  25680. value: function fromJSON(json, factory) {
  25681. var result = factory.createPrimaryKey();
  25682. var featureList = result.getFeatureList(factory);
  25683. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  25684. return result;
  25685. }
  25686. }]);
  25687. return PrimaryKey;
  25688. }(_PhysicalObjectType3.default);
  25689. exports.default = PrimaryKey;
  25690. /***/ },
  25691. /* 72 */
  25692. /***/ function(module, exports, __webpack_require__) {
  25693. "use strict";
  25694. Object.defineProperty(exports, "__esModule", {
  25695. value: true
  25696. });
  25697. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  25698. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  25699. var _MoserObject2 = __webpack_require__(6);
  25700. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  25701. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25702. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  25703. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  25704. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  25705. ** IBM Confidential
  25706. **
  25707. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  25708. **
  25709. ** (C) Copyright IBM Corp. 2021
  25710. **
  25711. ** The source code for this program is not published or otherwise divested of its trade secrets,
  25712. ** irrespective of what has been deposited with the U.S. Copyright Office.
  25713. ************************************************************************/
  25714. // GENERATED
  25715. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  25716. /**
  25717. * <p>Java class for tableItemType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="tableItemType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;choice&gt; &lt;element ref="{}column"/&gt; &lt;element ref="{}struct"/&gt; &lt;element ref="{}multiset"/&gt; &lt;/choice&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  25718. */
  25719. var TableItemType = function (_MoserObject) {
  25720. _inherits(TableItemType, _MoserObject);
  25721. function TableItemType() {
  25722. var _ref;
  25723. var _temp, _this, _ret;
  25724. _classCallCheck(this, TableItemType);
  25725. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  25726. args[_key] = arguments[_key];
  25727. }
  25728. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TableItemType.__proto__ || Object.getPrototypeOf(TableItemType)).call.apply(_ref, [this].concat(args))), _this), _this.column = null, _this.struct = null, _this.multiset = null, _temp), _possibleConstructorReturn(_this, _ret);
  25729. }
  25730. _createClass(TableItemType, [{
  25731. key: "getColumn",
  25732. /**
  25733. * Gets the value of the column property.
  25734. * @return {Column} possible object is {@link Column}
  25735. */
  25736. value: function getColumn() {
  25737. return this.column;
  25738. }
  25739. /**
  25740. * Sets the value of the column property.
  25741. * @param {Column} value allowed object is {@link Column}
  25742. */
  25743. }, {
  25744. key: "setColumn",
  25745. value: function setColumn(value) {
  25746. var oldValue = this.column;
  25747. this.column = value;
  25748. this._setAndNotify(197, oldValue, value, true, false);
  25749. }
  25750. /**
  25751. * Gets the value of the struct property.
  25752. * @return {Struct} possible object is {@link Struct}
  25753. */
  25754. }, {
  25755. key: "getStruct",
  25756. value: function getStruct() {
  25757. return this.struct;
  25758. }
  25759. /**
  25760. * Sets the value of the struct property.
  25761. * @param {Struct} value allowed object is {@link Struct}
  25762. */
  25763. }, {
  25764. key: "setStruct",
  25765. value: function setStruct(value) {
  25766. var oldValue = this.struct;
  25767. this.struct = value;
  25768. this._setAndNotify(201, oldValue, value, true, false);
  25769. }
  25770. /**
  25771. * Gets the value of the multiset property.
  25772. * @return {Multiset} possible object is {@link Multiset}
  25773. */
  25774. }, {
  25775. key: "getMultiset",
  25776. value: function getMultiset() {
  25777. return this.multiset;
  25778. }
  25779. /**
  25780. * Sets the value of the multiset property.
  25781. * @param {Multiset} value allowed object is {@link Multiset}
  25782. */
  25783. }, {
  25784. key: "setMultiset",
  25785. value: function setMultiset(value) {
  25786. var oldValue = this.multiset;
  25787. this.multiset = value;
  25788. this._setAndNotify(202, oldValue, value, true, false);
  25789. }
  25790. /**
  25791. * Creates a new instance of <code>TableItemType</code> object from JSON data.
  25792. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  25793. * @param {Object} json JSON data to be used to create the <code> TableItemType</code> object from.
  25794. * @return {TableItemType} an object of type <code>TableItemType</code>
  25795. */
  25796. }, {
  25797. key: "getObjectType",
  25798. /**
  25799. * Retrieves the type of this object
  25800. * @return {String} the object type in a <code>String</code>
  25801. */
  25802. value: function getObjectType() {
  25803. return "TableItemType";
  25804. }
  25805. /**
  25806. * Get a list of FeatureObjects
  25807. * @return {Array} A list of FeatureObjects
  25808. */
  25809. }, {
  25810. key: "getFeatureList",
  25811. value: function getFeatureList(factory) {
  25812. var featureList = [];
  25813. var clazz;
  25814. if (factory) {
  25815. clazz = factory.createColumn().getClass();
  25816. }
  25817. featureList.push(this.createFeature(false, false, true, 197, "column", clazz));
  25818. if (factory) {
  25819. clazz = factory.createStruct().getClass();
  25820. }
  25821. featureList.push(this.createFeature(false, false, true, 201, "struct", clazz));
  25822. if (factory) {
  25823. clazz = factory.createMultiset().getClass();
  25824. }
  25825. featureList.push(this.createFeature(false, false, true, 202, "multiset", clazz));
  25826. Array.prototype.push.apply(featureList, _get(TableItemType.prototype.__proto__ || Object.getPrototypeOf(TableItemType.prototype), "getFeatureList", this).call(this, factory));
  25827. return featureList;
  25828. }
  25829. /**
  25830. * Set the value of a specific feature.
  25831. * @param {BaseMoserObject} value the value to set
  25832. * @param {int} featureID the feature id of the attribute to be set
  25833. */
  25834. }, {
  25835. key: "set",
  25836. value: function set(featureID, value) {
  25837. switch (featureID) {
  25838. case 197:
  25839. this.setColumn(value);
  25840. break;
  25841. case 201:
  25842. this.setStruct(value);
  25843. break;
  25844. case 202:
  25845. this.setMultiset(value);
  25846. break;
  25847. default:
  25848. throw new Error("The feature " + featureID + " is not valid.");
  25849. }
  25850. }
  25851. /**
  25852. * Get the value of a specific feature.
  25853. * @param {int} featureID the feature id of the attribute to get
  25854. */
  25855. }, {
  25856. key: "get",
  25857. value: function get(featureID) {
  25858. switch (featureID) {
  25859. case 197:
  25860. return this.getColumn();
  25861. case 201:
  25862. return this.getStruct();
  25863. case 202:
  25864. return this.getMultiset();
  25865. default:
  25866. throw new Error("The feature " + featureID + " is not valid.");
  25867. }
  25868. }
  25869. /**
  25870. * Get the value of a specific feature.
  25871. * @param {int} featureID the feature id of the attribute to get
  25872. */
  25873. }, {
  25874. key: "basicGet",
  25875. value: function basicGet(featureID) {
  25876. switch (featureID) {
  25877. case 197:
  25878. return this.getColumn();
  25879. case 201:
  25880. return this.getStruct();
  25881. case 202:
  25882. return this.getMultiset();
  25883. default:
  25884. throw new Error("The feature " + featureID + " is not valid.");
  25885. }
  25886. }
  25887. }], [{
  25888. key: "fromJSON",
  25889. value: function fromJSON(json, factory) {
  25890. var result = factory.createTableItemType();
  25891. var featureList = result.getFeatureList(factory);
  25892. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  25893. return result;
  25894. }
  25895. }]);
  25896. return TableItemType;
  25897. }(_MoserObject3.default);
  25898. exports.default = TableItemType;
  25899. /***/ },
  25900. /* 73 */
  25901. /***/ function(module, exports, __webpack_require__) {
  25902. 'use strict';
  25903. Object.defineProperty(exports, "__esModule", {
  25904. value: true
  25905. });
  25906. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  25907. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  25908. var _PhysicalObjectType2 = __webpack_require__(4);
  25909. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  25910. var _MoserObject = __webpack_require__(6);
  25911. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  25912. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  25913. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  25914. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  25915. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  25916. ** IBM Confidential
  25917. **
  25918. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  25919. **
  25920. ** (C) Copyright IBM Corp. 2021
  25921. **
  25922. ** The source code for this program is not published or otherwise divested of its trade secrets,
  25923. ** irrespective of what has been deposited with the U.S. Copyright Office.
  25924. ************************************************************************/
  25925. // GENERATED
  25926. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  25927. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  25928. /**
  25929. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="numberOfRows" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; &lt;element name="procParameter" type="{}procParameterType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}column" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  25930. */
  25931. var StoredProcedure = function (_PhysicalObjectType) {
  25932. _inherits(StoredProcedure, _PhysicalObjectType);
  25933. function StoredProcedure() {
  25934. var _ref;
  25935. var _temp, _this, _ret;
  25936. _classCallCheck(this, StoredProcedure);
  25937. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  25938. args[_key] = arguments[_key];
  25939. }
  25940. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = StoredProcedure.__proto__ || Object.getPrototypeOf(StoredProcedure)).call.apply(_ref, [this].concat(args))), _this), _this.numberOfRows = null, _this.procParameter = null, _this.column = null, _temp), _possibleConstructorReturn(_this, _ret);
  25941. }
  25942. _createClass(StoredProcedure, [{
  25943. key: 'getNumberOfRows',
  25944. /**
  25945. * Gets the value of the numberOfRows property.
  25946. * @return {Number} possible object is {@link Long}
  25947. */
  25948. value: function getNumberOfRows() {
  25949. return this.numberOfRows;
  25950. }
  25951. /**
  25952. * Sets the value of the numberOfRows property.
  25953. * @param {Number} value allowed object is {@link Long}
  25954. */
  25955. }, {
  25956. key: 'setNumberOfRows',
  25957. value: function setNumberOfRows(value) {
  25958. var oldValue = this.numberOfRows;
  25959. this.numberOfRows = value;
  25960. this._setAndNotify(61, oldValue, value, false, false);
  25961. }
  25962. /**
  25963. * Gets the value of the procParameter property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the procParameter property. <p> For example, to add a new item, do as follows: <pre> getProcParameter().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ProcParameterType}
  25964. */
  25965. }, {
  25966. key: 'getProcParameter',
  25967. value: function getProcParameter() {
  25968. if (!this.procParameter) {
  25969. this.procParameter = [];
  25970. }
  25971. return this.procParameter;
  25972. }
  25973. /**
  25974. * Gets the value of the column property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the column property. <p> For example, to add a new item, do as follows: <pre> getColumn().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link Column}
  25975. */
  25976. }, {
  25977. key: 'getColumn',
  25978. value: function getColumn() {
  25979. if (!this.column) {
  25980. this.column = [];
  25981. }
  25982. return this.column;
  25983. }
  25984. /**
  25985. * Gets the value of the <code>procParameter</code> property without initializing the property to an empty list if it is unset.
  25986. * @return {Array} the list of <code>ProcParameterType</code> elements, or <code>null</code> if not set
  25987. */
  25988. }, {
  25989. key: 'basicGetProcParameter',
  25990. value: function basicGetProcParameter() {
  25991. return this.procParameter;
  25992. }
  25993. /**
  25994. * Gets the value of the <code>column</code> property without initializing the property to an empty list if it is unset.
  25995. * @return {Array} the list of <code>Column</code> elements, or <code>null</code> if not set
  25996. */
  25997. }, {
  25998. key: 'basicGetColumn',
  25999. value: function basicGetColumn() {
  26000. return this.column;
  26001. }
  26002. /**
  26003. * Creates a new instance of <code>StoredProcedure</code> object from JSON data.
  26004. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  26005. * @param {Object} json JSON data to be used to create the <code> StoredProcedure</code> object from.
  26006. * @return {StoredProcedure} an object of type <code>StoredProcedure</code>
  26007. */
  26008. }, {
  26009. key: 'addProcParameterAt',
  26010. /**
  26011. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  26012. */
  26013. value: function addProcParameterAt(position, item) {
  26014. this._addAtAndNotify(this.getProcParameter(), position, item, 162, true, false);
  26015. }
  26016. /**
  26017. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  26018. */
  26019. }, {
  26020. key: 'addProcParameter',
  26021. value: function addProcParameter(item) {
  26022. this.addProcParameterAt(this.getProcParameter().length, item);
  26023. }
  26024. /**
  26025. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  26026. */
  26027. }, {
  26028. key: 'removeProcParameterAt',
  26029. value: function removeProcParameterAt(position) {
  26030. this._removeAtAndNotify(this.getProcParameter(), position, 162, true);
  26031. }
  26032. /**
  26033. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  26034. */
  26035. }, {
  26036. key: 'removeProcParameter',
  26037. value: function removeProcParameter(item) {
  26038. var i = this.getProcParameter().indexOf(item);
  26039. if (i >= 0) {
  26040. this.removeProcParameterAt(i);
  26041. }
  26042. }
  26043. /**
  26044. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  26045. */
  26046. }, {
  26047. key: 'addColumnAt',
  26048. value: function addColumnAt(position, item) {
  26049. this._addAtAndNotify(this.getColumn(), position, item, 197, true, false);
  26050. }
  26051. /**
  26052. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  26053. */
  26054. }, {
  26055. key: 'addColumn',
  26056. value: function addColumn(item) {
  26057. this.addColumnAt(this.getColumn().length, item);
  26058. }
  26059. /**
  26060. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  26061. */
  26062. }, {
  26063. key: 'removeColumnAt',
  26064. value: function removeColumnAt(position) {
  26065. this._removeAtAndNotify(this.getColumn(), position, 197, true);
  26066. }
  26067. /**
  26068. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  26069. */
  26070. }, {
  26071. key: 'removeColumn',
  26072. value: function removeColumn(item) {
  26073. var i = this.getColumn().indexOf(item);
  26074. if (i >= 0) {
  26075. this.removeColumnAt(i);
  26076. }
  26077. }
  26078. /**
  26079. * Retrieves the type of this object
  26080. * @return {String} the object type in a <code>String</code>
  26081. */
  26082. }, {
  26083. key: 'getObjectType',
  26084. value: function getObjectType() {
  26085. return "StoredProcedure";
  26086. }
  26087. /**
  26088. * Get a list of FeatureObjects
  26089. * @return {Array} A list of FeatureObjects
  26090. */
  26091. }, {
  26092. key: 'getFeatureList',
  26093. value: function getFeatureList(factory) {
  26094. var featureList = [];
  26095. featureList.push(this.createFeature(false, false, false, 61, "numberOfRows", null));
  26096. var clazz;
  26097. if (factory) {
  26098. clazz = factory.createProcParameterType().getClass();
  26099. }
  26100. featureList.push(this.createFeature(true, false, true, 162, "procParameter", clazz));
  26101. if (factory) {
  26102. clazz = factory.createColumn().getClass();
  26103. }
  26104. featureList.push(this.createFeature(true, false, true, 197, "column", clazz));
  26105. Array.prototype.push.apply(featureList, _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'getFeatureList', this).call(this, factory));
  26106. return featureList;
  26107. }
  26108. /**
  26109. * Set the value of a specific feature.
  26110. * @param {BaseMoserObject} value the value to set
  26111. * @param {int} featureID the feature id of the attribute to be set
  26112. */
  26113. }, {
  26114. key: 'set',
  26115. value: function set(featureID, value) {
  26116. switch (featureID) {
  26117. case 61:
  26118. this.setNumberOfRows(value);
  26119. break;
  26120. default:
  26121. _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'set', this).call(this, featureID, value);
  26122. }
  26123. }
  26124. /**
  26125. * Set the value of a specific feature.
  26126. * @param {BaseMoserObject} value the value to set the value to set
  26127. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  26128. */
  26129. }, {
  26130. key: '_setList',
  26131. value: function _setList(featureID, value) {
  26132. switch (featureID) {
  26133. case 197:
  26134. this.column = value;
  26135. break;
  26136. case 162:
  26137. this.procParameter = value;
  26138. break;
  26139. default:
  26140. _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), '_setList', this).call(this, featureID, value);
  26141. }
  26142. }
  26143. /**
  26144. * Get the value of a specific feature.
  26145. * @param {int} featureID the feature id of the attribute to get
  26146. */
  26147. }, {
  26148. key: 'get',
  26149. value: function get(featureID) {
  26150. switch (featureID) {
  26151. case 197:
  26152. return this.getColumn();
  26153. case 61:
  26154. return this.getNumberOfRows();
  26155. case 162:
  26156. return this.getProcParameter();
  26157. default:
  26158. return _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'get', this).call(this, featureID);
  26159. }
  26160. }
  26161. /**
  26162. * Get the value of a specific feature.
  26163. * @param {int} featureID the feature id of the attribute to get
  26164. */
  26165. }, {
  26166. key: 'basicGet',
  26167. value: function basicGet(featureID) {
  26168. switch (featureID) {
  26169. case 197:
  26170. return this.basicGetColumn();
  26171. case 61:
  26172. return this.getNumberOfRows();
  26173. case 162:
  26174. return this.basicGetProcParameter();
  26175. default:
  26176. return _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'basicGet', this).call(this, featureID);
  26177. }
  26178. }
  26179. /**
  26180. * Add the value of a specific feature at a specific position
  26181. * @param {int} position the array position of the item to be added
  26182. * @param {BaseMoserObject} value the value to add
  26183. * @param {int} featureID the feature id of the attribute to be added
  26184. */
  26185. }, {
  26186. key: 'addAt',
  26187. value: function addAt(featureID, position, value) {
  26188. switch (featureID) {
  26189. case 197:
  26190. this.addColumnAt(position, value);
  26191. break;
  26192. case 162:
  26193. this.addProcParameterAt(position, value);
  26194. break;
  26195. default:
  26196. _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'addAt', this).call(this, featureID, position, value);
  26197. }
  26198. }
  26199. /**
  26200. * Add the value to the end of a specific collection feature
  26201. * @param {BaseMoserObject} value the value to add
  26202. * @param {int} featureID the feature id of the attribute to be added
  26203. */
  26204. }, {
  26205. key: 'add',
  26206. value: function add(featureID, value) {
  26207. switch (featureID) {
  26208. case 197:
  26209. this.addColumn(value);
  26210. break;
  26211. case 162:
  26212. this.addProcParameter(value);
  26213. break;
  26214. default:
  26215. _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'add', this).call(this, featureID, value);
  26216. }
  26217. }
  26218. /**
  26219. * Remove the value of a specific feature by index.
  26220. * @param {int} position the array position of the item to be removed
  26221. * @param {int} featureID the feature id of the attribute to be removed
  26222. */
  26223. }, {
  26224. key: 'removeAt',
  26225. value: function removeAt(featureID, position) {
  26226. switch (featureID) {
  26227. case 197:
  26228. this.removeColumnAt(position);
  26229. break;
  26230. case 162:
  26231. this.removeProcParameterAt(position);
  26232. break;
  26233. default:
  26234. _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'removeAt', this).call(this, featureID, position);
  26235. }
  26236. }
  26237. /**
  26238. * Remove the value from specific feature.
  26239. * @param {BaseMoserObject} item the item to be removed
  26240. * @param {int} featureID the feature id of the attribute to be removed
  26241. */
  26242. }, {
  26243. key: 'remove',
  26244. value: function remove(featureID, item) {
  26245. switch (featureID) {
  26246. case 197:
  26247. this.removeColumn(item);
  26248. break;
  26249. case 162:
  26250. this.removeProcParameter(item);
  26251. break;
  26252. default:
  26253. _get(StoredProcedure.prototype.__proto__ || Object.getPrototypeOf(StoredProcedure.prototype), 'remove', this).call(this, featureID, item);
  26254. }
  26255. }
  26256. }], [{
  26257. key: 'fromJSON',
  26258. value: function fromJSON(json, factory) {
  26259. var result = factory.createStoredProcedure();
  26260. var featureList = result.getFeatureList(factory);
  26261. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  26262. return result;
  26263. }
  26264. }]);
  26265. return StoredProcedure;
  26266. }(_PhysicalObjectType3.default);
  26267. exports.default = StoredProcedure;
  26268. /***/ },
  26269. /* 74 */
  26270. /***/ function(module, exports, __webpack_require__) {
  26271. 'use strict';
  26272. Object.defineProperty(exports, "__esModule", {
  26273. value: true
  26274. });
  26275. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  26276. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  26277. var _MoserObject2 = __webpack_require__(6);
  26278. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  26279. var _ProParameterMode = __webpack_require__(75);
  26280. var _ProParameterMode2 = _interopRequireDefault(_ProParameterMode);
  26281. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26282. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  26283. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  26284. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  26285. ** IBM Confidential
  26286. **
  26287. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  26288. **
  26289. ** (C) Copyright IBM Corp. 2021
  26290. **
  26291. ** The source code for this program is not published or otherwise divested of its trade secrets,
  26292. ** irrespective of what has been deposited with the U.S. Copyright Office.
  26293. ************************************************************************/
  26294. // GENERATED
  26295. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  26296. //@import com/ibm/bi/platform/moser/common/generated/metadata/ProParameterMode (runtime) // new
  26297. /**
  26298. * The properties of a function or procedure call parameter. <p>Java class for procParameterType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="procParameterType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="parameterName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="mode" type="{}proParameterMode"/&gt; &lt;element name="datatype" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  26299. */
  26300. var ProcParameterType = function (_MoserObject) {
  26301. _inherits(ProcParameterType, _MoserObject);
  26302. function ProcParameterType() {
  26303. var _ref;
  26304. var _temp, _this, _ret;
  26305. _classCallCheck(this, ProcParameterType);
  26306. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  26307. args[_key] = arguments[_key];
  26308. }
  26309. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ProcParameterType.__proto__ || Object.getPrototypeOf(ProcParameterType)).call.apply(_ref, [this].concat(args))), _this), _this.parameterName = null, _this.mode = null, _this.datatype = null, _temp), _possibleConstructorReturn(_this, _ret);
  26310. }
  26311. _createClass(ProcParameterType, [{
  26312. key: 'getParameterName',
  26313. /**
  26314. * Gets the value of the parameterName property.
  26315. * @return {String} possible object is {@link String}
  26316. */
  26317. value: function getParameterName() {
  26318. return this.parameterName;
  26319. }
  26320. /**
  26321. * Sets the value of the parameterName property.
  26322. * @param {String} value allowed object is {@link String}
  26323. */
  26324. }, {
  26325. key: 'setParameterName',
  26326. value: function setParameterName(value) {
  26327. var oldValue = this.parameterName;
  26328. this.parameterName = value;
  26329. this._setAndNotify(80, oldValue, value, false, false);
  26330. }
  26331. /**
  26332. * Gets the value of the mode property.
  26333. * @return {ProParameterMode} possible object is {@link ProParameterMode}
  26334. */
  26335. }, {
  26336. key: 'getMode',
  26337. value: function getMode() {
  26338. return this.mode;
  26339. }
  26340. /**
  26341. * Sets the value of the mode property.
  26342. * @param {ProParameterMode} value allowed object is {@link ProParameterMode}
  26343. */
  26344. }, {
  26345. key: 'setMode',
  26346. value: function setMode(value) {
  26347. var oldValue = this.mode;
  26348. this.mode = value;
  26349. this._setAndNotify(183, oldValue, value, false, false);
  26350. }
  26351. /**
  26352. * Gets the value of the datatype property.
  26353. * @return {String} possible object is {@link String}
  26354. */
  26355. }, {
  26356. key: 'getDatatype',
  26357. value: function getDatatype() {
  26358. return this.datatype;
  26359. }
  26360. /**
  26361. * Sets the value of the datatype property.
  26362. * @param {String} value allowed object is {@link String}
  26363. */
  26364. }, {
  26365. key: 'setDatatype',
  26366. value: function setDatatype(value) {
  26367. var oldValue = this.datatype;
  26368. this.datatype = value;
  26369. this._setAndNotify(64, oldValue, value, false, false);
  26370. }
  26371. /**
  26372. * Creates a new instance of <code>ProcParameterType</code> object from JSON data.
  26373. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  26374. * @param {Object} json JSON data to be used to create the <code> ProcParameterType</code> object from.
  26375. * @return {ProcParameterType} an object of type <code>ProcParameterType</code>
  26376. */
  26377. }, {
  26378. key: 'getObjectType',
  26379. /**
  26380. * Retrieves the type of this object
  26381. * @return {String} the object type in a <code>String</code>
  26382. */
  26383. value: function getObjectType() {
  26384. return "ProcParameterType";
  26385. }
  26386. /**
  26387. * Get a list of FeatureObjects
  26388. * @return {Array} A list of FeatureObjects
  26389. */
  26390. }, {
  26391. key: 'getFeatureList',
  26392. value: function getFeatureList(factory) {
  26393. var featureList = [];
  26394. featureList.push(this.createFeature(false, false, false, 80, "parameterName", null));
  26395. featureList.push(this.createFeature(false, true, false, 183, "mode", _ProParameterMode2.default));
  26396. featureList.push(this.createFeature(false, false, false, 64, "datatype", null));
  26397. Array.prototype.push.apply(featureList, _get(ProcParameterType.prototype.__proto__ || Object.getPrototypeOf(ProcParameterType.prototype), 'getFeatureList', this).call(this, factory));
  26398. return featureList;
  26399. }
  26400. /**
  26401. * Set the value of a specific feature.
  26402. * @param {BaseMoserObject} value the value to set
  26403. * @param {int} featureID the feature id of the attribute to be set
  26404. */
  26405. }, {
  26406. key: 'set',
  26407. value: function set(featureID, value) {
  26408. switch (featureID) {
  26409. case 183:
  26410. this.setMode(value);
  26411. break;
  26412. case 80:
  26413. this.setParameterName(value);
  26414. break;
  26415. case 64:
  26416. this.setDatatype(value);
  26417. break;
  26418. default:
  26419. throw new Error("The feature " + featureID + " is not valid.");
  26420. }
  26421. }
  26422. /**
  26423. * Get the value of a specific feature.
  26424. * @param {int} featureID the feature id of the attribute to get
  26425. */
  26426. }, {
  26427. key: 'get',
  26428. value: function get(featureID) {
  26429. switch (featureID) {
  26430. case 183:
  26431. return this.getMode();
  26432. case 80:
  26433. return this.getParameterName();
  26434. case 64:
  26435. return this.getDatatype();
  26436. default:
  26437. throw new Error("The feature " + featureID + " is not valid.");
  26438. }
  26439. }
  26440. /**
  26441. * Get the value of a specific feature.
  26442. * @param {int} featureID the feature id of the attribute to get
  26443. */
  26444. }, {
  26445. key: 'basicGet',
  26446. value: function basicGet(featureID) {
  26447. switch (featureID) {
  26448. case 183:
  26449. return this.getMode();
  26450. case 80:
  26451. return this.getParameterName();
  26452. case 64:
  26453. return this.getDatatype();
  26454. default:
  26455. throw new Error("The feature " + featureID + " is not valid.");
  26456. }
  26457. }
  26458. }], [{
  26459. key: 'fromJSON',
  26460. value: function fromJSON(json, factory) {
  26461. var result = factory.createProcParameterType();
  26462. var featureList = result.getFeatureList(factory);
  26463. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  26464. return result;
  26465. }
  26466. }]);
  26467. return ProcParameterType;
  26468. }(_MoserObject3.default);
  26469. exports.default = ProcParameterType;
  26470. /***/ },
  26471. /* 75 */
  26472. /***/ function(module, exports, __webpack_require__) {
  26473. "use strict";
  26474. Object.defineProperty(exports, "__esModule", {
  26475. value: true
  26476. });
  26477. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  26478. var _Enum2 = __webpack_require__(12);
  26479. var _Enum3 = _interopRequireDefault(_Enum2);
  26480. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26481. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  26482. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  26483. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  26484. ** IBM Confidential
  26485. **
  26486. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  26487. **
  26488. ** (C) Copyright IBM Corp. 2020
  26489. **
  26490. ** The source code for this program is not published or otherwise divested of its trade secrets,
  26491. ** irrespective of what has been deposited with the U.S. Copyright Office.
  26492. ************************************************************************/
  26493. // GENERATED
  26494. //@import Enum (loadtime) // superclass
  26495. /**
  26496. * <p>Java class for proParameterMode. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="proParameterMode"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="in"/&gt; &lt;enumeration value="out"/&gt; &lt;enumeration value="inout"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  26497. */
  26498. var ProParameterMode = function (_Enum) {
  26499. _inherits(ProParameterMode, _Enum);
  26500. /**
  26501. * Specifies an output parameter.
  26502. */
  26503. function ProParameterMode(v) {
  26504. _classCallCheck(this, ProParameterMode);
  26505. var _this = _possibleConstructorReturn(this, (ProParameterMode.__proto__ || Object.getPrototypeOf(ProParameterMode)).call(this, v));
  26506. _this.enumValue = null;
  26507. _this.enumValue = v;
  26508. return _this;
  26509. }
  26510. /**
  26511. * Specifies a parameter that is overwritten during execution.
  26512. */
  26513. /**
  26514. * Specifies an input parameter.
  26515. */
  26516. _createClass(ProParameterMode, [{
  26517. key: "value",
  26518. value: function value() {
  26519. return this.enumValue;
  26520. }
  26521. }, {
  26522. key: "getResourceId",
  26523. value: function getResourceId() {
  26524. return "ProParameterMode" + "_" + this.value();
  26525. }
  26526. }], [{
  26527. key: "fromValue",
  26528. value: function fromValue(v) {
  26529. for (var i = 0; i < ProParameterMode.values().length; ++i) {
  26530. if (ProParameterMode.values()[i].enumValue == v) {
  26531. return ProParameterMode.values()[i];
  26532. }
  26533. }
  26534. throw new Error(v);
  26535. }
  26536. }]);
  26537. return ProParameterMode;
  26538. }(_Enum3.default);
  26539. ProParameterMode.IN = ProParameterMode.newLiteral("in");
  26540. ProParameterMode.OUT = ProParameterMode.newLiteral("out");
  26541. ProParameterMode.INOUT = ProParameterMode.newLiteral("inout");
  26542. exports.default = ProParameterMode;
  26543. /***/ },
  26544. /* 76 */
  26545. /***/ function(module, exports, __webpack_require__) {
  26546. 'use strict';
  26547. Object.defineProperty(exports, "__esModule", {
  26548. value: true
  26549. });
  26550. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  26551. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  26552. var _PhysicalObjectType2 = __webpack_require__(4);
  26553. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  26554. var _MoserObject = __webpack_require__(6);
  26555. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  26556. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26557. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  26558. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  26559. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  26560. ** IBM Confidential
  26561. **
  26562. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  26563. **
  26564. ** (C) Copyright IBM Corp. 2020
  26565. **
  26566. ** The source code for this program is not published or otherwise divested of its trade secrets,
  26567. ** irrespective of what has been deposited with the U.S. Copyright Office.
  26568. ************************************************************************/
  26569. // GENERATED
  26570. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  26571. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  26572. /**
  26573. * A function that is stored in a database instance. For MoserJS it is renamed to the javascript class DbFunction, because function is a reserved javascript keyword. <p>Java class for function element declaration. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;element name="function"&gt; &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="resultDatatype" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="procParameter" type="{}procParameterType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; &lt;/element&gt; </pre>
  26574. */
  26575. var DbFunction = function (_PhysicalObjectType) {
  26576. _inherits(DbFunction, _PhysicalObjectType);
  26577. function DbFunction() {
  26578. var _ref;
  26579. var _temp, _this, _ret;
  26580. _classCallCheck(this, DbFunction);
  26581. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  26582. args[_key] = arguments[_key];
  26583. }
  26584. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DbFunction.__proto__ || Object.getPrototypeOf(DbFunction)).call.apply(_ref, [this].concat(args))), _this), _this.resultDatatype = null, _this.procParameter = null, _temp), _possibleConstructorReturn(_this, _ret);
  26585. }
  26586. _createClass(DbFunction, [{
  26587. key: 'getResultDatatype',
  26588. /**
  26589. * Gets the value of the resultDatatype property.
  26590. * @return {String} possible object is {@link String}
  26591. */
  26592. value: function getResultDatatype() {
  26593. return this.resultDatatype;
  26594. }
  26595. /**
  26596. * Sets the value of the resultDatatype property.
  26597. * @param {String} value allowed object is {@link String}
  26598. */
  26599. }, {
  26600. key: 'setResultDatatype',
  26601. value: function setResultDatatype(value) {
  26602. var oldValue = this.resultDatatype;
  26603. this.resultDatatype = value;
  26604. this._setAndNotify(163, oldValue, value, false, false);
  26605. }
  26606. /**
  26607. * Gets the value of the procParameter property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the procParameter property. <p> For example, to add a new item, do as follows: <pre> getProcParameter().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ProcParameterType}
  26608. */
  26609. }, {
  26610. key: 'getProcParameter',
  26611. value: function getProcParameter() {
  26612. if (!this.procParameter) {
  26613. this.procParameter = [];
  26614. }
  26615. return this.procParameter;
  26616. }
  26617. /**
  26618. * Gets the value of the <code>procParameter</code> property without initializing the property to an empty list if it is unset.
  26619. * @return {Array} the list of <code>ProcParameterType</code> elements, or <code>null</code> if not set
  26620. */
  26621. }, {
  26622. key: 'basicGetProcParameter',
  26623. value: function basicGetProcParameter() {
  26624. return this.procParameter;
  26625. }
  26626. /**
  26627. * Creates a new instance of <code>DbFunction</code> object from JSON data.
  26628. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  26629. * @param {Object} json JSON data to be used to create the <code> DbFunction</code> object from.
  26630. * @return {DbFunction} an object of type <code>DbFunction</code>
  26631. */
  26632. }, {
  26633. key: 'addProcParameterAt',
  26634. /**
  26635. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  26636. */
  26637. value: function addProcParameterAt(position, item) {
  26638. this._addAtAndNotify(this.getProcParameter(), position, item, 162, true, false);
  26639. }
  26640. /**
  26641. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  26642. */
  26643. }, {
  26644. key: 'addProcParameter',
  26645. value: function addProcParameter(item) {
  26646. this.addProcParameterAt(this.getProcParameter().length, item);
  26647. }
  26648. /**
  26649. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  26650. */
  26651. }, {
  26652. key: 'removeProcParameterAt',
  26653. value: function removeProcParameterAt(position) {
  26654. this._removeAtAndNotify(this.getProcParameter(), position, 162, true);
  26655. }
  26656. /**
  26657. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  26658. */
  26659. }, {
  26660. key: 'removeProcParameter',
  26661. value: function removeProcParameter(item) {
  26662. var i = this.getProcParameter().indexOf(item);
  26663. if (i >= 0) {
  26664. this.removeProcParameterAt(i);
  26665. }
  26666. }
  26667. /**
  26668. * Retrieves the type of this object
  26669. * @return {String} the object type in a <code>String</code>
  26670. */
  26671. }, {
  26672. key: 'getObjectType',
  26673. value: function getObjectType() {
  26674. return "DbFunction";
  26675. }
  26676. /**
  26677. * Get a list of FeatureObjects
  26678. * @return {Array} A list of FeatureObjects
  26679. */
  26680. }, {
  26681. key: 'getFeatureList',
  26682. value: function getFeatureList(factory) {
  26683. var featureList = [];
  26684. featureList.push(this.createFeature(false, false, false, 163, "resultDatatype", null));
  26685. var clazz;
  26686. if (factory) {
  26687. clazz = factory.createProcParameterType().getClass();
  26688. }
  26689. featureList.push(this.createFeature(true, false, true, 162, "procParameter", clazz));
  26690. Array.prototype.push.apply(featureList, _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'getFeatureList', this).call(this, factory));
  26691. return featureList;
  26692. }
  26693. /**
  26694. * Set the value of a specific feature.
  26695. * @param {BaseMoserObject} value the value to set
  26696. * @param {int} featureID the feature id of the attribute to be set
  26697. */
  26698. }, {
  26699. key: 'set',
  26700. value: function set(featureID, value) {
  26701. switch (featureID) {
  26702. case 163:
  26703. this.setResultDatatype(value);
  26704. break;
  26705. default:
  26706. _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'set', this).call(this, featureID, value);
  26707. }
  26708. }
  26709. /**
  26710. * Set the value of a specific feature.
  26711. * @param {BaseMoserObject} value the value to set the value to set
  26712. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  26713. */
  26714. }, {
  26715. key: '_setList',
  26716. value: function _setList(featureID, value) {
  26717. switch (featureID) {
  26718. case 162:
  26719. this.procParameter = value;
  26720. break;
  26721. default:
  26722. _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), '_setList', this).call(this, featureID, value);
  26723. }
  26724. }
  26725. /**
  26726. * Get the value of a specific feature.
  26727. * @param {int} featureID the feature id of the attribute to get
  26728. */
  26729. }, {
  26730. key: 'get',
  26731. value: function get(featureID) {
  26732. switch (featureID) {
  26733. case 162:
  26734. return this.getProcParameter();
  26735. case 163:
  26736. return this.getResultDatatype();
  26737. default:
  26738. return _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'get', this).call(this, featureID);
  26739. }
  26740. }
  26741. /**
  26742. * Get the value of a specific feature.
  26743. * @param {int} featureID the feature id of the attribute to get
  26744. */
  26745. }, {
  26746. key: 'basicGet',
  26747. value: function basicGet(featureID) {
  26748. switch (featureID) {
  26749. case 162:
  26750. return this.basicGetProcParameter();
  26751. case 163:
  26752. return this.getResultDatatype();
  26753. default:
  26754. return _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'basicGet', this).call(this, featureID);
  26755. }
  26756. }
  26757. /**
  26758. * Add the value of a specific feature at a specific position
  26759. * @param {int} position the array position of the item to be added
  26760. * @param {BaseMoserObject} value the value to add
  26761. * @param {int} featureID the feature id of the attribute to be added
  26762. */
  26763. }, {
  26764. key: 'addAt',
  26765. value: function addAt(featureID, position, value) {
  26766. switch (featureID) {
  26767. case 162:
  26768. this.addProcParameterAt(position, value);
  26769. break;
  26770. default:
  26771. _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'addAt', this).call(this, featureID, position, value);
  26772. }
  26773. }
  26774. /**
  26775. * Add the value to the end of a specific collection feature
  26776. * @param {BaseMoserObject} value the value to add
  26777. * @param {int} featureID the feature id of the attribute to be added
  26778. */
  26779. }, {
  26780. key: 'add',
  26781. value: function add(featureID, value) {
  26782. switch (featureID) {
  26783. case 162:
  26784. this.addProcParameter(value);
  26785. break;
  26786. default:
  26787. _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'add', this).call(this, featureID, value);
  26788. }
  26789. }
  26790. /**
  26791. * Remove the value of a specific feature by index.
  26792. * @param {int} position the array position of the item to be removed
  26793. * @param {int} featureID the feature id of the attribute to be removed
  26794. */
  26795. }, {
  26796. key: 'removeAt',
  26797. value: function removeAt(featureID, position) {
  26798. switch (featureID) {
  26799. case 162:
  26800. this.removeProcParameterAt(position);
  26801. break;
  26802. default:
  26803. _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'removeAt', this).call(this, featureID, position);
  26804. }
  26805. }
  26806. /**
  26807. * Remove the value from specific feature.
  26808. * @param {BaseMoserObject} item the item to be removed
  26809. * @param {int} featureID the feature id of the attribute to be removed
  26810. */
  26811. }, {
  26812. key: 'remove',
  26813. value: function remove(featureID, item) {
  26814. switch (featureID) {
  26815. case 162:
  26816. this.removeProcParameter(item);
  26817. break;
  26818. default:
  26819. _get(DbFunction.prototype.__proto__ || Object.getPrototypeOf(DbFunction.prototype), 'remove', this).call(this, featureID, item);
  26820. }
  26821. }
  26822. }], [{
  26823. key: 'fromJSON',
  26824. value: function fromJSON(json, factory) {
  26825. var result = factory.createDbFunction();
  26826. var featureList = result.getFeatureList(factory);
  26827. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  26828. return result;
  26829. }
  26830. }]);
  26831. return DbFunction;
  26832. }(_PhysicalObjectType3.default);
  26833. exports.default = DbFunction;
  26834. /***/ },
  26835. /* 77 */
  26836. /***/ function(module, exports, __webpack_require__) {
  26837. 'use strict';
  26838. Object.defineProperty(exports, "__esModule", {
  26839. value: true
  26840. });
  26841. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  26842. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  26843. var _PhysicalObjectType2 = __webpack_require__(4);
  26844. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  26845. var _MoserObject = __webpack_require__(6);
  26846. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  26847. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  26848. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  26849. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  26850. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  26851. ** IBM Confidential
  26852. **
  26853. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  26854. **
  26855. ** (C) Copyright IBM Corp. 2020
  26856. **
  26857. ** The source code for this program is not published or otherwise divested of its trade secrets,
  26858. ** irrespective of what has been deposited with the U.S. Copyright Office.
  26859. ************************************************************************/
  26860. // GENERATED
  26861. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  26862. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  26863. /**
  26864. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="tableItem" type="{}tableItemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  26865. */
  26866. var Struct = function (_PhysicalObjectType) {
  26867. _inherits(Struct, _PhysicalObjectType);
  26868. function Struct() {
  26869. var _ref;
  26870. var _temp, _this, _ret;
  26871. _classCallCheck(this, Struct);
  26872. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  26873. args[_key] = arguments[_key];
  26874. }
  26875. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Struct.__proto__ || Object.getPrototypeOf(Struct)).call.apply(_ref, [this].concat(args))), _this), _this.tableItem = null, _temp), _possibleConstructorReturn(_this, _ret);
  26876. }
  26877. _createClass(Struct, [{
  26878. key: 'getTableItem',
  26879. /**
  26880. * Gets the value of the tableItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the tableItem property. <p> For example, to add a new item, do as follows: <pre> getTableItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link TableItemType}
  26881. */
  26882. value: function getTableItem() {
  26883. if (!this.tableItem) {
  26884. this.tableItem = [];
  26885. }
  26886. return this.tableItem;
  26887. }
  26888. /**
  26889. * Gets the value of the <code>tableItem</code> property without initializing the property to an empty list if it is unset.
  26890. * @return {Array} the list of <code>TableItemType</code> elements, or <code>null</code> if not set
  26891. */
  26892. }, {
  26893. key: 'basicGetTableItem',
  26894. value: function basicGetTableItem() {
  26895. return this.tableItem;
  26896. }
  26897. /**
  26898. * Creates a new instance of <code>Struct</code> object from JSON data.
  26899. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  26900. * @param {Object} json JSON data to be used to create the <code> Struct</code> object from.
  26901. * @return {Struct} an object of type <code>Struct</code>
  26902. */
  26903. }, {
  26904. key: 'addTableItemAt',
  26905. /**
  26906. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  26907. */
  26908. value: function addTableItemAt(position, item) {
  26909. this._addAtAndNotify(this.getTableItem(), position, item, 165, true, false);
  26910. }
  26911. /**
  26912. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  26913. */
  26914. }, {
  26915. key: 'addTableItem',
  26916. value: function addTableItem(item) {
  26917. this.addTableItemAt(this.getTableItem().length, item);
  26918. }
  26919. /**
  26920. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  26921. */
  26922. }, {
  26923. key: 'removeTableItemAt',
  26924. value: function removeTableItemAt(position) {
  26925. this._removeAtAndNotify(this.getTableItem(), position, 165, true);
  26926. }
  26927. /**
  26928. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  26929. */
  26930. }, {
  26931. key: 'removeTableItem',
  26932. value: function removeTableItem(item) {
  26933. var i = this.getTableItem().indexOf(item);
  26934. if (i >= 0) {
  26935. this.removeTableItemAt(i);
  26936. }
  26937. }
  26938. /**
  26939. * Retrieves the type of this object
  26940. * @return {String} the object type in a <code>String</code>
  26941. */
  26942. }, {
  26943. key: 'getObjectType',
  26944. value: function getObjectType() {
  26945. return "Struct";
  26946. }
  26947. /**
  26948. * Get a list of FeatureObjects
  26949. * @return {Array} A list of FeatureObjects
  26950. */
  26951. }, {
  26952. key: 'getFeatureList',
  26953. value: function getFeatureList(factory) {
  26954. var featureList = [];
  26955. var clazz;
  26956. if (factory) {
  26957. clazz = factory.createTableItemType().getClass();
  26958. }
  26959. featureList.push(this.createFeature(true, false, true, 165, "tableItem", clazz));
  26960. Array.prototype.push.apply(featureList, _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'getFeatureList', this).call(this, factory));
  26961. return featureList;
  26962. }
  26963. /**
  26964. * Set the value of a specific feature.
  26965. * @param {BaseMoserObject} value the value to set
  26966. * @param {int} featureID the feature id of the attribute to be set
  26967. */
  26968. }, {
  26969. key: 'set',
  26970. value: function set(featureID, value) {
  26971. switch (featureID) {
  26972. default:
  26973. _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'set', this).call(this, featureID, value);
  26974. }
  26975. }
  26976. /**
  26977. * Set the value of a specific feature.
  26978. * @param {BaseMoserObject} value the value to set the value to set
  26979. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  26980. */
  26981. }, {
  26982. key: '_setList',
  26983. value: function _setList(featureID, value) {
  26984. switch (featureID) {
  26985. case 165:
  26986. this.tableItem = value;
  26987. break;
  26988. default:
  26989. _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), '_setList', this).call(this, featureID, value);
  26990. }
  26991. }
  26992. /**
  26993. * Get the value of a specific feature.
  26994. * @param {int} featureID the feature id of the attribute to get
  26995. */
  26996. }, {
  26997. key: 'get',
  26998. value: function get(featureID) {
  26999. switch (featureID) {
  27000. case 165:
  27001. return this.getTableItem();
  27002. default:
  27003. return _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'get', this).call(this, featureID);
  27004. }
  27005. }
  27006. /**
  27007. * Get the value of a specific feature.
  27008. * @param {int} featureID the feature id of the attribute to get
  27009. */
  27010. }, {
  27011. key: 'basicGet',
  27012. value: function basicGet(featureID) {
  27013. switch (featureID) {
  27014. case 165:
  27015. return this.basicGetTableItem();
  27016. default:
  27017. return _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'basicGet', this).call(this, featureID);
  27018. }
  27019. }
  27020. /**
  27021. * Add the value of a specific feature at a specific position
  27022. * @param {int} position the array position of the item to be added
  27023. * @param {BaseMoserObject} value the value to add
  27024. * @param {int} featureID the feature id of the attribute to be added
  27025. */
  27026. }, {
  27027. key: 'addAt',
  27028. value: function addAt(featureID, position, value) {
  27029. switch (featureID) {
  27030. case 165:
  27031. this.addTableItemAt(position, value);
  27032. break;
  27033. default:
  27034. _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'addAt', this).call(this, featureID, position, value);
  27035. }
  27036. }
  27037. /**
  27038. * Add the value to the end of a specific collection feature
  27039. * @param {BaseMoserObject} value the value to add
  27040. * @param {int} featureID the feature id of the attribute to be added
  27041. */
  27042. }, {
  27043. key: 'add',
  27044. value: function add(featureID, value) {
  27045. switch (featureID) {
  27046. case 165:
  27047. this.addTableItem(value);
  27048. break;
  27049. default:
  27050. _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'add', this).call(this, featureID, value);
  27051. }
  27052. }
  27053. /**
  27054. * Remove the value of a specific feature by index.
  27055. * @param {int} position the array position of the item to be removed
  27056. * @param {int} featureID the feature id of the attribute to be removed
  27057. */
  27058. }, {
  27059. key: 'removeAt',
  27060. value: function removeAt(featureID, position) {
  27061. switch (featureID) {
  27062. case 165:
  27063. this.removeTableItemAt(position);
  27064. break;
  27065. default:
  27066. _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'removeAt', this).call(this, featureID, position);
  27067. }
  27068. }
  27069. /**
  27070. * Remove the value from specific feature.
  27071. * @param {BaseMoserObject} item the item to be removed
  27072. * @param {int} featureID the feature id of the attribute to be removed
  27073. */
  27074. }, {
  27075. key: 'remove',
  27076. value: function remove(featureID, item) {
  27077. switch (featureID) {
  27078. case 165:
  27079. this.removeTableItem(item);
  27080. break;
  27081. default:
  27082. _get(Struct.prototype.__proto__ || Object.getPrototypeOf(Struct.prototype), 'remove', this).call(this, featureID, item);
  27083. }
  27084. }
  27085. }], [{
  27086. key: 'fromJSON',
  27087. value: function fromJSON(json, factory) {
  27088. var result = factory.createStruct();
  27089. var featureList = result.getFeatureList(factory);
  27090. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  27091. return result;
  27092. }
  27093. }]);
  27094. return Struct;
  27095. }(_PhysicalObjectType3.default);
  27096. exports.default = Struct;
  27097. /***/ },
  27098. /* 78 */
  27099. /***/ function(module, exports, __webpack_require__) {
  27100. 'use strict';
  27101. Object.defineProperty(exports, "__esModule", {
  27102. value: true
  27103. });
  27104. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  27105. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  27106. var _PhysicalObjectType2 = __webpack_require__(4);
  27107. var _PhysicalObjectType3 = _interopRequireDefault(_PhysicalObjectType2);
  27108. var _MoserObject = __webpack_require__(6);
  27109. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  27110. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27111. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  27112. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  27113. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  27114. ** IBM Confidential
  27115. **
  27116. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  27117. **
  27118. ** (C) Copyright IBM Corp. 2020
  27119. **
  27120. ** The source code for this program is not published or otherwise divested of its trade secrets,
  27121. ** irrespective of what has been deposited with the U.S. Copyright Office.
  27122. ************************************************************************/
  27123. // GENERATED
  27124. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (loadtime) // superclass
  27125. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  27126. /**
  27127. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}physicalObjectType"&gt; &lt;sequence&gt; &lt;element name="tableItem" type="{}tableItemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  27128. */
  27129. var Multiset = function (_PhysicalObjectType) {
  27130. _inherits(Multiset, _PhysicalObjectType);
  27131. function Multiset() {
  27132. var _ref;
  27133. var _temp, _this, _ret;
  27134. _classCallCheck(this, Multiset);
  27135. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  27136. args[_key] = arguments[_key];
  27137. }
  27138. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Multiset.__proto__ || Object.getPrototypeOf(Multiset)).call.apply(_ref, [this].concat(args))), _this), _this.tableItem = null, _temp), _possibleConstructorReturn(_this, _ret);
  27139. }
  27140. _createClass(Multiset, [{
  27141. key: 'getTableItem',
  27142. /**
  27143. * Gets the value of the tableItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the tableItem property. <p> For example, to add a new item, do as follows: <pre> getTableItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link TableItemType}
  27144. */
  27145. value: function getTableItem() {
  27146. if (!this.tableItem) {
  27147. this.tableItem = [];
  27148. }
  27149. return this.tableItem;
  27150. }
  27151. /**
  27152. * Gets the value of the <code>tableItem</code> property without initializing the property to an empty list if it is unset.
  27153. * @return {Array} the list of <code>TableItemType</code> elements, or <code>null</code> if not set
  27154. */
  27155. }, {
  27156. key: 'basicGetTableItem',
  27157. value: function basicGetTableItem() {
  27158. return this.tableItem;
  27159. }
  27160. /**
  27161. * Creates a new instance of <code>Multiset</code> object from JSON data.
  27162. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  27163. * @param {Object} json JSON data to be used to create the <code> Multiset</code> object from.
  27164. * @return {Multiset} an object of type <code>Multiset</code>
  27165. */
  27166. }, {
  27167. key: 'addTableItemAt',
  27168. /**
  27169. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  27170. */
  27171. value: function addTableItemAt(position, item) {
  27172. this._addAtAndNotify(this.getTableItem(), position, item, 165, true, false);
  27173. }
  27174. /**
  27175. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  27176. */
  27177. }, {
  27178. key: 'addTableItem',
  27179. value: function addTableItem(item) {
  27180. this.addTableItemAt(this.getTableItem().length, item);
  27181. }
  27182. /**
  27183. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  27184. */
  27185. }, {
  27186. key: 'removeTableItemAt',
  27187. value: function removeTableItemAt(position) {
  27188. this._removeAtAndNotify(this.getTableItem(), position, 165, true);
  27189. }
  27190. /**
  27191. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  27192. */
  27193. }, {
  27194. key: 'removeTableItem',
  27195. value: function removeTableItem(item) {
  27196. var i = this.getTableItem().indexOf(item);
  27197. if (i >= 0) {
  27198. this.removeTableItemAt(i);
  27199. }
  27200. }
  27201. /**
  27202. * Retrieves the type of this object
  27203. * @return {String} the object type in a <code>String</code>
  27204. */
  27205. }, {
  27206. key: 'getObjectType',
  27207. value: function getObjectType() {
  27208. return "Multiset";
  27209. }
  27210. /**
  27211. * Get a list of FeatureObjects
  27212. * @return {Array} A list of FeatureObjects
  27213. */
  27214. }, {
  27215. key: 'getFeatureList',
  27216. value: function getFeatureList(factory) {
  27217. var featureList = [];
  27218. var clazz;
  27219. if (factory) {
  27220. clazz = factory.createTableItemType().getClass();
  27221. }
  27222. featureList.push(this.createFeature(true, false, true, 165, "tableItem", clazz));
  27223. Array.prototype.push.apply(featureList, _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'getFeatureList', this).call(this, factory));
  27224. return featureList;
  27225. }
  27226. /**
  27227. * Set the value of a specific feature.
  27228. * @param {BaseMoserObject} value the value to set
  27229. * @param {int} featureID the feature id of the attribute to be set
  27230. */
  27231. }, {
  27232. key: 'set',
  27233. value: function set(featureID, value) {
  27234. switch (featureID) {
  27235. default:
  27236. _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'set', this).call(this, featureID, value);
  27237. }
  27238. }
  27239. /**
  27240. * Set the value of a specific feature.
  27241. * @param {BaseMoserObject} value the value to set the value to set
  27242. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  27243. */
  27244. }, {
  27245. key: '_setList',
  27246. value: function _setList(featureID, value) {
  27247. switch (featureID) {
  27248. case 165:
  27249. this.tableItem = value;
  27250. break;
  27251. default:
  27252. _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), '_setList', this).call(this, featureID, value);
  27253. }
  27254. }
  27255. /**
  27256. * Get the value of a specific feature.
  27257. * @param {int} featureID the feature id of the attribute to get
  27258. */
  27259. }, {
  27260. key: 'get',
  27261. value: function get(featureID) {
  27262. switch (featureID) {
  27263. case 165:
  27264. return this.getTableItem();
  27265. default:
  27266. return _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'get', this).call(this, featureID);
  27267. }
  27268. }
  27269. /**
  27270. * Get the value of a specific feature.
  27271. * @param {int} featureID the feature id of the attribute to get
  27272. */
  27273. }, {
  27274. key: 'basicGet',
  27275. value: function basicGet(featureID) {
  27276. switch (featureID) {
  27277. case 165:
  27278. return this.basicGetTableItem();
  27279. default:
  27280. return _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'basicGet', this).call(this, featureID);
  27281. }
  27282. }
  27283. /**
  27284. * Add the value of a specific feature at a specific position
  27285. * @param {int} position the array position of the item to be added
  27286. * @param {BaseMoserObject} value the value to add
  27287. * @param {int} featureID the feature id of the attribute to be added
  27288. */
  27289. }, {
  27290. key: 'addAt',
  27291. value: function addAt(featureID, position, value) {
  27292. switch (featureID) {
  27293. case 165:
  27294. this.addTableItemAt(position, value);
  27295. break;
  27296. default:
  27297. _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'addAt', this).call(this, featureID, position, value);
  27298. }
  27299. }
  27300. /**
  27301. * Add the value to the end of a specific collection feature
  27302. * @param {BaseMoserObject} value the value to add
  27303. * @param {int} featureID the feature id of the attribute to be added
  27304. */
  27305. }, {
  27306. key: 'add',
  27307. value: function add(featureID, value) {
  27308. switch (featureID) {
  27309. case 165:
  27310. this.addTableItem(value);
  27311. break;
  27312. default:
  27313. _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'add', this).call(this, featureID, value);
  27314. }
  27315. }
  27316. /**
  27317. * Remove the value of a specific feature by index.
  27318. * @param {int} position the array position of the item to be removed
  27319. * @param {int} featureID the feature id of the attribute to be removed
  27320. */
  27321. }, {
  27322. key: 'removeAt',
  27323. value: function removeAt(featureID, position) {
  27324. switch (featureID) {
  27325. case 165:
  27326. this.removeTableItemAt(position);
  27327. break;
  27328. default:
  27329. _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'removeAt', this).call(this, featureID, position);
  27330. }
  27331. }
  27332. /**
  27333. * Remove the value from specific feature.
  27334. * @param {BaseMoserObject} item the item to be removed
  27335. * @param {int} featureID the feature id of the attribute to be removed
  27336. */
  27337. }, {
  27338. key: 'remove',
  27339. value: function remove(featureID, item) {
  27340. switch (featureID) {
  27341. case 165:
  27342. this.removeTableItem(item);
  27343. break;
  27344. default:
  27345. _get(Multiset.prototype.__proto__ || Object.getPrototypeOf(Multiset.prototype), 'remove', this).call(this, featureID, item);
  27346. }
  27347. }
  27348. }], [{
  27349. key: 'fromJSON',
  27350. value: function fromJSON(json, factory) {
  27351. var result = factory.createMultiset();
  27352. var featureList = result.getFeatureList(factory);
  27353. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  27354. return result;
  27355. }
  27356. }]);
  27357. return Multiset;
  27358. }(_PhysicalObjectType3.default);
  27359. exports.default = Multiset;
  27360. /***/ },
  27361. /* 79 */
  27362. /***/ function(module, exports, __webpack_require__) {
  27363. 'use strict';
  27364. Object.defineProperty(exports, "__esModule", {
  27365. value: true
  27366. });
  27367. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  27368. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  27369. var _MoserObject2 = __webpack_require__(6);
  27370. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  27371. var _MoserObjectUtils = __webpack_require__(27);
  27372. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  27373. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27374. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  27375. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  27376. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  27377. ** IBM Confidential
  27378. **
  27379. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  27380. **
  27381. ** (C) Copyright IBM Corp. 2020
  27382. **
  27383. ** The source code for this program is not published or otherwise divested of its trade secrets,
  27384. ** irrespective of what has been deposited with the U.S. Copyright Office.
  27385. ************************************************************************/
  27386. // GENERATED
  27387. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  27388. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForPropertyType
  27389. /**
  27390. * generic properties. <p>Java class for propertyType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="propertyType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  27391. */
  27392. var PropertyType = function (_MoserObject) {
  27393. _inherits(PropertyType, _MoserObject);
  27394. function PropertyType() {
  27395. var _ref;
  27396. var _temp, _this, _ret;
  27397. _classCallCheck(this, PropertyType);
  27398. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  27399. args[_key] = arguments[_key];
  27400. }
  27401. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = PropertyType.__proto__ || Object.getPrototypeOf(PropertyType)).call.apply(_ref, [this].concat(args))), _this), _this.name = null, _this.value = null, _temp), _possibleConstructorReturn(_this, _ret);
  27402. }
  27403. _createClass(PropertyType, [{
  27404. key: 'getName',
  27405. /**
  27406. * Gets the value of the name property.
  27407. * @return {String} possible object is {@link String}
  27408. */
  27409. value: function getName() {
  27410. return this.name;
  27411. }
  27412. /**
  27413. * Sets the value of the name property.
  27414. * @param {String} value allowed object is {@link String}
  27415. */
  27416. }, {
  27417. key: 'setName',
  27418. value: function setName(value) {
  27419. var oldValue = this.name;
  27420. this.name = value;
  27421. this._setAndNotify(5, oldValue, value, false, false);
  27422. }
  27423. /**
  27424. * Gets the value of the value property.
  27425. * @return {String} possible object is {@link String}
  27426. */
  27427. }, {
  27428. key: 'getValue',
  27429. value: function getValue() {
  27430. return this.value;
  27431. }
  27432. /**
  27433. * Sets the value of the value property.
  27434. * @param {String} value allowed object is {@link String}
  27435. */
  27436. }, {
  27437. key: 'setValue',
  27438. value: function setValue(value) {
  27439. var oldValue = this.value;
  27440. this.value = value;
  27441. this._setAndNotify(35, oldValue, value, false, false);
  27442. _MoserObjectUtils2.default.propertyOverrideForPropertyType(this.getParent(), this);
  27443. }
  27444. /**
  27445. * Creates a new instance of <code>PropertyType</code> object from JSON data.
  27446. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  27447. * @param {Object} json JSON data to be used to create the <code> PropertyType</code> object from.
  27448. * @return {PropertyType} an object of type <code>PropertyType</code>
  27449. */
  27450. }, {
  27451. key: 'getObjectType',
  27452. /**
  27453. * Retrieves the type of this object
  27454. * @return {String} the object type in a <code>String</code>
  27455. */
  27456. value: function getObjectType() {
  27457. return "PropertyType";
  27458. }
  27459. /**
  27460. * Get a list of FeatureObjects
  27461. * @return {Array} A list of FeatureObjects
  27462. */
  27463. }, {
  27464. key: 'getFeatureList',
  27465. value: function getFeatureList(factory) {
  27466. var featureList = [];
  27467. featureList.push(this.createFeature(false, false, false, 5, "name", null));
  27468. featureList.push(this.createFeature(false, false, false, 35, "value", null));
  27469. Array.prototype.push.apply(featureList, _get(PropertyType.prototype.__proto__ || Object.getPrototypeOf(PropertyType.prototype), 'getFeatureList', this).call(this, factory));
  27470. return featureList;
  27471. }
  27472. /**
  27473. * Set the value of a specific feature.
  27474. * @param {BaseMoserObject} value the value to set
  27475. * @param {int} featureID the feature id of the attribute to be set
  27476. */
  27477. }, {
  27478. key: 'set',
  27479. value: function set(featureID, value) {
  27480. switch (featureID) {
  27481. case 5:
  27482. this.setName(value);
  27483. break;
  27484. case 35:
  27485. this.setValue(value);
  27486. break;
  27487. default:
  27488. throw new Error("The feature " + featureID + " is not valid.");
  27489. }
  27490. }
  27491. /**
  27492. * Get the value of a specific feature.
  27493. * @param {int} featureID the feature id of the attribute to get
  27494. */
  27495. }, {
  27496. key: 'get',
  27497. value: function get(featureID) {
  27498. switch (featureID) {
  27499. case 5:
  27500. return this.getName();
  27501. case 35:
  27502. return this.getValue();
  27503. default:
  27504. throw new Error("The feature " + featureID + " is not valid.");
  27505. }
  27506. }
  27507. /**
  27508. * Get the value of a specific feature.
  27509. * @param {int} featureID the feature id of the attribute to get
  27510. */
  27511. }, {
  27512. key: 'basicGet',
  27513. value: function basicGet(featureID) {
  27514. switch (featureID) {
  27515. case 5:
  27516. return this.getName();
  27517. case 35:
  27518. return this.getValue();
  27519. default:
  27520. throw new Error("The feature " + featureID + " is not valid.");
  27521. }
  27522. }
  27523. }], [{
  27524. key: 'fromJSON',
  27525. value: function fromJSON(json, factory) {
  27526. var result = factory.createPropertyType();
  27527. var featureList = result.getFeatureList(factory);
  27528. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  27529. return result;
  27530. }
  27531. }]);
  27532. return PropertyType;
  27533. }(_MoserObject3.default);
  27534. exports.default = PropertyType;
  27535. /***/ },
  27536. /* 80 */
  27537. /***/ function(module, exports, __webpack_require__) {
  27538. 'use strict';
  27539. Object.defineProperty(exports, "__esModule", {
  27540. value: true
  27541. });
  27542. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  27543. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  27544. var _BaseQueryItemType2 = __webpack_require__(43);
  27545. var _BaseQueryItemType3 = _interopRequireDefault(_BaseQueryItemType2);
  27546. var _MoserObject = __webpack_require__(6);
  27547. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  27548. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  27549. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  27550. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  27551. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  27552. ** IBM Confidential
  27553. **
  27554. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  27555. **
  27556. ** (C) Copyright IBM Corp. 2021
  27557. **
  27558. ** The source code for this program is not published or otherwise divested of its trade secrets,
  27559. ** irrespective of what has been deposited with the U.S. Copyright Office.
  27560. ************************************************************************/
  27561. // GENERATED
  27562. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseQueryItemType (loadtime) // superclass
  27563. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  27564. /**
  27565. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}baseQueryItemType"&gt; &lt;sequence&gt; &lt;element name="concepts" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="minimumValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="maximumValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="numberOfDistinctValues" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="numberOfNullValues" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="orderedValues" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="hierarchyHasMultipleRoots" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="calculatedMember" type="{}calculatedMemberType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="rootMember" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="members" type="{}memberType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  27566. */
  27567. var QueryItem = function (_BaseQueryItemType) {
  27568. _inherits(QueryItem, _BaseQueryItemType);
  27569. function QueryItem() {
  27570. var _ref;
  27571. var _temp, _this, _ret;
  27572. _classCallCheck(this, QueryItem);
  27573. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  27574. args[_key] = arguments[_key];
  27575. }
  27576. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = QueryItem.__proto__ || Object.getPrototypeOf(QueryItem)).call.apply(_ref, [this].concat(args))), _this), _this.concepts = null, _this.minimumValue = null, _this.maximumValue = null, _this.numberOfDistinctValues = null, _this.numberOfNullValues = null, _this.orderedValues = null, _this.hierarchyHasMultipleRoots = null, _this.calculatedMember = null, _this.rootMember = null, _this.members = null, _temp), _possibleConstructorReturn(_this, _ret);
  27577. }
  27578. _createClass(QueryItem, [{
  27579. key: 'getConcepts',
  27580. /**
  27581. * Gets the value of the concepts property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the concepts property. <p> For example, to add a new item, do as follows: <pre> getConcepts().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  27582. */
  27583. value: function getConcepts() {
  27584. if (!this.concepts) {
  27585. this.concepts = [];
  27586. }
  27587. return this.concepts;
  27588. }
  27589. /**
  27590. * Gets the value of the minimumValue property.
  27591. * @return {String} possible object is {@link String}
  27592. */
  27593. }, {
  27594. key: 'getMinimumValue',
  27595. value: function getMinimumValue() {
  27596. return this.minimumValue;
  27597. }
  27598. /**
  27599. * Sets the value of the minimumValue property.
  27600. * @param {String} value allowed object is {@link String}
  27601. */
  27602. }, {
  27603. key: 'setMinimumValue',
  27604. value: function setMinimumValue(value) {
  27605. var oldValue = this.minimumValue;
  27606. this.minimumValue = value;
  27607. this._setAndNotify(188, oldValue, value, false, true);
  27608. }
  27609. /**
  27610. * Gets the value of the maximumValue property.
  27611. * @return {String} possible object is {@link String}
  27612. */
  27613. }, {
  27614. key: 'getMaximumValue',
  27615. value: function getMaximumValue() {
  27616. return this.maximumValue;
  27617. }
  27618. /**
  27619. * Sets the value of the maximumValue property.
  27620. * @param {String} value allowed object is {@link String}
  27621. */
  27622. }, {
  27623. key: 'setMaximumValue',
  27624. value: function setMaximumValue(value) {
  27625. var oldValue = this.maximumValue;
  27626. this.maximumValue = value;
  27627. this._setAndNotify(195, oldValue, value, false, true);
  27628. }
  27629. /**
  27630. * Gets the value of the numberOfDistinctValues property.
  27631. * @return {String} possible object is {@link String}
  27632. */
  27633. }, {
  27634. key: 'getNumberOfDistinctValues',
  27635. value: function getNumberOfDistinctValues() {
  27636. return this.numberOfDistinctValues;
  27637. }
  27638. /**
  27639. * Sets the value of the numberOfDistinctValues property.
  27640. * @param {String} value allowed object is {@link String}
  27641. */
  27642. }, {
  27643. key: 'setNumberOfDistinctValues',
  27644. value: function setNumberOfDistinctValues(value) {
  27645. var oldValue = this.numberOfDistinctValues;
  27646. this.numberOfDistinctValues = value;
  27647. this._setAndNotify(69, oldValue, value, false, true);
  27648. }
  27649. /**
  27650. * Gets the value of the numberOfNullValues property.
  27651. * @return {String} possible object is {@link String}
  27652. */
  27653. }, {
  27654. key: 'getNumberOfNullValues',
  27655. value: function getNumberOfNullValues() {
  27656. return this.numberOfNullValues;
  27657. }
  27658. /**
  27659. * Sets the value of the numberOfNullValues property.
  27660. * @param {String} value allowed object is {@link String}
  27661. */
  27662. }, {
  27663. key: 'setNumberOfNullValues',
  27664. value: function setNumberOfNullValues(value) {
  27665. var oldValue = this.numberOfNullValues;
  27666. this.numberOfNullValues = value;
  27667. this._setAndNotify(189, oldValue, value, false, true);
  27668. }
  27669. /**
  27670. * Gets the value of the orderedValues property.
  27671. * @return {Boolean} possible object is {@link Boolean}
  27672. */
  27673. }, {
  27674. key: 'isOrderedValues',
  27675. value: function isOrderedValues() {
  27676. return this.orderedValues;
  27677. }
  27678. /**
  27679. * Sets the value of the orderedValues property.
  27680. * @param {Boolean} value allowed object is {@link Boolean}
  27681. */
  27682. }, {
  27683. key: 'setOrderedValues',
  27684. value: function setOrderedValues(value) {
  27685. var oldValue = this.orderedValues;
  27686. this.orderedValues = value;
  27687. this._setAndNotify(194, oldValue, value, false, true);
  27688. }
  27689. /**
  27690. * Gets the value of the hierarchyHasMultipleRoots property.
  27691. * @return {Boolean} possible object is {@link Boolean}
  27692. */
  27693. }, {
  27694. key: 'isHierarchyHasMultipleRoots',
  27695. value: function isHierarchyHasMultipleRoots() {
  27696. return this.hierarchyHasMultipleRoots;
  27697. }
  27698. /**
  27699. * Sets the value of the hierarchyHasMultipleRoots property.
  27700. * @param {Boolean} value allowed object is {@link Boolean}
  27701. */
  27702. }, {
  27703. key: 'setHierarchyHasMultipleRoots',
  27704. value: function setHierarchyHasMultipleRoots(value) {
  27705. var oldValue = this.hierarchyHasMultipleRoots;
  27706. this.hierarchyHasMultipleRoots = value;
  27707. this._setAndNotify(192, oldValue, value, false, true);
  27708. }
  27709. /**
  27710. * Gets the value of the calculatedMember property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the calculatedMember property. <p> For example, to add a new item, do as follows: <pre> getCalculatedMember().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link CalculatedMemberType}
  27711. */
  27712. }, {
  27713. key: 'getCalculatedMember',
  27714. value: function getCalculatedMember() {
  27715. if (!this.calculatedMember) {
  27716. this.calculatedMember = [];
  27717. }
  27718. return this.calculatedMember;
  27719. }
  27720. /**
  27721. * Gets the value of the rootMember property.
  27722. * @return {String} possible object is {@link String}
  27723. */
  27724. }, {
  27725. key: 'getRootMember',
  27726. value: function getRootMember() {
  27727. return this.rootMember;
  27728. }
  27729. /**
  27730. * Sets the value of the rootMember property.
  27731. * @param {String} value allowed object is {@link String}
  27732. */
  27733. }, {
  27734. key: 'setRootMember',
  27735. value: function setRootMember(value) {
  27736. var oldValue = this.rootMember;
  27737. this.rootMember = value;
  27738. this._setAndNotify(190, oldValue, value, false, true);
  27739. }
  27740. /**
  27741. * Gets the value of the members property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the members property. <p> For example, to add a new item, do as follows: <pre> getMembers().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link MemberType}
  27742. */
  27743. }, {
  27744. key: 'getMembers',
  27745. value: function getMembers() {
  27746. if (!this.members) {
  27747. this.members = [];
  27748. }
  27749. return this.members;
  27750. }
  27751. /**
  27752. * Gets the value of the <code>concepts</code> property without initializing the property to an empty list if it is unset.
  27753. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  27754. */
  27755. }, {
  27756. key: 'basicGetConcepts',
  27757. value: function basicGetConcepts() {
  27758. return this.concepts;
  27759. }
  27760. /**
  27761. * Gets the value of the <code>calculatedMember</code> property without initializing the property to an empty list if it is unset.
  27762. * @return {Array} the list of <code>CalculatedMemberType</code> elements, or <code>null</code> if not set
  27763. */
  27764. }, {
  27765. key: 'basicGetCalculatedMember',
  27766. value: function basicGetCalculatedMember() {
  27767. return this.calculatedMember;
  27768. }
  27769. /**
  27770. * Gets the value of the <code>members</code> property without initializing the property to an empty list if it is unset.
  27771. * @return {Array} the list of <code>MemberType</code> elements, or <code>null</code> if not set
  27772. */
  27773. }, {
  27774. key: 'basicGetMembers',
  27775. value: function basicGetMembers() {
  27776. return this.members;
  27777. }
  27778. /**
  27779. * Creates a new instance of <code>QueryItem</code> object from JSON data.
  27780. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  27781. * @param {Object} json JSON data to be used to create the <code> QueryItem</code> object from.
  27782. * @return {QueryItem} an object of type <code>QueryItem</code>
  27783. */
  27784. }, {
  27785. key: 'addConceptsAt',
  27786. /**
  27787. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  27788. */
  27789. value: function addConceptsAt(position, item) {
  27790. this._addAtAndNotify(this.getConcepts(), position, item, 191, false, false);
  27791. }
  27792. /**
  27793. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  27794. */
  27795. }, {
  27796. key: 'addConcepts',
  27797. value: function addConcepts(item) {
  27798. this.addConceptsAt(this.getConcepts().length, item);
  27799. }
  27800. /**
  27801. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  27802. */
  27803. }, {
  27804. key: 'removeConceptsAt',
  27805. value: function removeConceptsAt(position) {
  27806. this._removeAtAndNotify(this.getConcepts(), position, 191, false);
  27807. }
  27808. /**
  27809. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  27810. */
  27811. }, {
  27812. key: 'removeConcepts',
  27813. value: function removeConcepts(item) {
  27814. var i = this.getConcepts().indexOf(item);
  27815. if (i >= 0) {
  27816. this.removeConceptsAt(i);
  27817. }
  27818. }
  27819. /**
  27820. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  27821. */
  27822. }, {
  27823. key: 'addCalculatedMemberAt',
  27824. value: function addCalculatedMemberAt(position, item) {
  27825. this._addAtAndNotify(this.getCalculatedMember(), position, item, 72, true, true);
  27826. }
  27827. /**
  27828. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  27829. */
  27830. }, {
  27831. key: 'addCalculatedMember',
  27832. value: function addCalculatedMember(item) {
  27833. this.addCalculatedMemberAt(this.getCalculatedMember().length, item);
  27834. }
  27835. /**
  27836. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  27837. */
  27838. }, {
  27839. key: 'removeCalculatedMemberAt',
  27840. value: function removeCalculatedMemberAt(position) {
  27841. this._removeAtAndNotify(this.getCalculatedMember(), position, 72, true);
  27842. }
  27843. /**
  27844. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  27845. */
  27846. }, {
  27847. key: 'removeCalculatedMember',
  27848. value: function removeCalculatedMember(item) {
  27849. var i = this.getCalculatedMember().indexOf(item);
  27850. if (i >= 0) {
  27851. this.removeCalculatedMemberAt(i);
  27852. }
  27853. }
  27854. /**
  27855. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  27856. */
  27857. }, {
  27858. key: 'addMembersAt',
  27859. value: function addMembersAt(position, item) {
  27860. this._addAtAndNotify(this.getMembers(), position, item, 193, true, true);
  27861. }
  27862. /**
  27863. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  27864. */
  27865. }, {
  27866. key: 'addMembers',
  27867. value: function addMembers(item) {
  27868. this.addMembersAt(this.getMembers().length, item);
  27869. }
  27870. /**
  27871. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  27872. */
  27873. }, {
  27874. key: 'removeMembersAt',
  27875. value: function removeMembersAt(position) {
  27876. this._removeAtAndNotify(this.getMembers(), position, 193, true);
  27877. }
  27878. /**
  27879. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  27880. */
  27881. }, {
  27882. key: 'removeMembers',
  27883. value: function removeMembers(item) {
  27884. var i = this.getMembers().indexOf(item);
  27885. if (i >= 0) {
  27886. this.removeMembersAt(i);
  27887. }
  27888. }
  27889. /**
  27890. * Retrieves the type of this object
  27891. * @return {String} the object type in a <code>String</code>
  27892. */
  27893. }, {
  27894. key: 'getObjectType',
  27895. value: function getObjectType() {
  27896. return "QueryItem";
  27897. }
  27898. /**
  27899. * Get a list of FeatureObjects
  27900. * @return {Array} A list of FeatureObjects
  27901. */
  27902. }, {
  27903. key: 'getFeatureList',
  27904. value: function getFeatureList(factory) {
  27905. var featureList = [];
  27906. featureList.push(this.createFeature(true, false, false, 191, "concepts", null));
  27907. featureList.push(this.createFeature(false, false, false, 188, "minimumValue", null));
  27908. featureList.push(this.createFeature(false, false, false, 195, "maximumValue", null));
  27909. featureList.push(this.createFeature(false, false, false, 69, "numberOfDistinctValues", null));
  27910. featureList.push(this.createFeature(false, false, false, 189, "numberOfNullValues", null));
  27911. featureList.push(this.createFeature(false, false, false, 194, "orderedValues", null));
  27912. featureList.push(this.createFeature(false, false, false, 192, "hierarchyHasMultipleRoots", null));
  27913. var clazz;
  27914. if (factory) {
  27915. clazz = factory.createCalculatedMemberType().getClass();
  27916. }
  27917. featureList.push(this.createFeature(true, false, true, 72, "calculatedMember", clazz));
  27918. featureList.push(this.createFeature(false, false, false, 190, "rootMember", null));
  27919. if (factory) {
  27920. clazz = factory.createMemberType().getClass();
  27921. }
  27922. featureList.push(this.createFeature(true, false, true, 193, "members", clazz));
  27923. Array.prototype.push.apply(featureList, _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'getFeatureList', this).call(this, factory));
  27924. return featureList;
  27925. }
  27926. /**
  27927. * Set the value of a specific feature.
  27928. * @param {BaseMoserObject} value the value to set
  27929. * @param {int} featureID the feature id of the attribute to be set
  27930. */
  27931. }, {
  27932. key: 'set',
  27933. value: function set(featureID, value) {
  27934. switch (featureID) {
  27935. case 188:
  27936. this.setMinimumValue(value);
  27937. break;
  27938. case 189:
  27939. this.setNumberOfNullValues(value);
  27940. break;
  27941. case 190:
  27942. this.setRootMember(value);
  27943. break;
  27944. case 192:
  27945. this.setHierarchyHasMultipleRoots(value);
  27946. break;
  27947. case 194:
  27948. this.setOrderedValues(value);
  27949. break;
  27950. case 195:
  27951. this.setMaximumValue(value);
  27952. break;
  27953. case 69:
  27954. this.setNumberOfDistinctValues(value);
  27955. break;
  27956. default:
  27957. _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'set', this).call(this, featureID, value);
  27958. }
  27959. }
  27960. /**
  27961. * Set the value of a specific feature.
  27962. * @param {BaseMoserObject} value the value to set the value to set
  27963. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  27964. */
  27965. }, {
  27966. key: '_setList',
  27967. value: function _setList(featureID, value) {
  27968. switch (featureID) {
  27969. case 72:
  27970. this.calculatedMember = value;
  27971. break;
  27972. case 191:
  27973. this.concepts = value;
  27974. break;
  27975. case 193:
  27976. this.members = value;
  27977. break;
  27978. default:
  27979. _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), '_setList', this).call(this, featureID, value);
  27980. }
  27981. }
  27982. /**
  27983. * Get the value of a specific feature.
  27984. * @param {int} featureID the feature id of the attribute to get
  27985. */
  27986. }, {
  27987. key: 'get',
  27988. value: function get(featureID) {
  27989. switch (featureID) {
  27990. case 188:
  27991. return this.getMinimumValue();
  27992. case 72:
  27993. return this.getCalculatedMember();
  27994. case 189:
  27995. return this.getNumberOfNullValues();
  27996. case 190:
  27997. return this.getRootMember();
  27998. case 191:
  27999. return this.getConcepts();
  28000. case 192:
  28001. return this.isHierarchyHasMultipleRoots();
  28002. case 193:
  28003. return this.getMembers();
  28004. case 194:
  28005. return this.isOrderedValues();
  28006. case 195:
  28007. return this.getMaximumValue();
  28008. case 69:
  28009. return this.getNumberOfDistinctValues();
  28010. default:
  28011. return _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'get', this).call(this, featureID);
  28012. }
  28013. }
  28014. /**
  28015. * Get the value of a specific feature.
  28016. * @param {int} featureID the feature id of the attribute to get
  28017. */
  28018. }, {
  28019. key: 'basicGet',
  28020. value: function basicGet(featureID) {
  28021. switch (featureID) {
  28022. case 188:
  28023. return this.getMinimumValue();
  28024. case 72:
  28025. return this.basicGetCalculatedMember();
  28026. case 189:
  28027. return this.getNumberOfNullValues();
  28028. case 190:
  28029. return this.getRootMember();
  28030. case 191:
  28031. return this.basicGetConcepts();
  28032. case 192:
  28033. return this.isHierarchyHasMultipleRoots();
  28034. case 193:
  28035. return this.basicGetMembers();
  28036. case 194:
  28037. return this.isOrderedValues();
  28038. case 195:
  28039. return this.getMaximumValue();
  28040. case 69:
  28041. return this.getNumberOfDistinctValues();
  28042. default:
  28043. return _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'basicGet', this).call(this, featureID);
  28044. }
  28045. }
  28046. /**
  28047. * Add the value of a specific feature at a specific position
  28048. * @param {int} position the array position of the item to be added
  28049. * @param {BaseMoserObject} value the value to add
  28050. * @param {int} featureID the feature id of the attribute to be added
  28051. */
  28052. }, {
  28053. key: 'addAt',
  28054. value: function addAt(featureID, position, value) {
  28055. switch (featureID) {
  28056. case 72:
  28057. this.addCalculatedMemberAt(position, value);
  28058. break;
  28059. case 191:
  28060. this.addConceptsAt(position, value);
  28061. break;
  28062. case 193:
  28063. this.addMembersAt(position, value);
  28064. break;
  28065. default:
  28066. _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'addAt', this).call(this, featureID, position, value);
  28067. }
  28068. }
  28069. /**
  28070. * Add the value to the end of a specific collection feature
  28071. * @param {BaseMoserObject} value the value to add
  28072. * @param {int} featureID the feature id of the attribute to be added
  28073. */
  28074. }, {
  28075. key: 'add',
  28076. value: function add(featureID, value) {
  28077. switch (featureID) {
  28078. case 72:
  28079. this.addCalculatedMember(value);
  28080. break;
  28081. case 191:
  28082. this.addConcepts(value);
  28083. break;
  28084. case 193:
  28085. this.addMembers(value);
  28086. break;
  28087. default:
  28088. _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'add', this).call(this, featureID, value);
  28089. }
  28090. }
  28091. /**
  28092. * Remove the value of a specific feature by index.
  28093. * @param {int} position the array position of the item to be removed
  28094. * @param {int} featureID the feature id of the attribute to be removed
  28095. */
  28096. }, {
  28097. key: 'removeAt',
  28098. value: function removeAt(featureID, position) {
  28099. switch (featureID) {
  28100. case 72:
  28101. this.removeCalculatedMemberAt(position);
  28102. break;
  28103. case 191:
  28104. this.removeConceptsAt(position);
  28105. break;
  28106. case 193:
  28107. this.removeMembersAt(position);
  28108. break;
  28109. default:
  28110. _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'removeAt', this).call(this, featureID, position);
  28111. }
  28112. }
  28113. /**
  28114. * Remove the value from specific feature.
  28115. * @param {BaseMoserObject} item the item to be removed
  28116. * @param {int} featureID the feature id of the attribute to be removed
  28117. */
  28118. }, {
  28119. key: 'remove',
  28120. value: function remove(featureID, item) {
  28121. switch (featureID) {
  28122. case 72:
  28123. this.removeCalculatedMember(item);
  28124. break;
  28125. case 191:
  28126. this.removeConcepts(item);
  28127. break;
  28128. case 193:
  28129. this.removeMembers(item);
  28130. break;
  28131. default:
  28132. _get(QueryItem.prototype.__proto__ || Object.getPrototypeOf(QueryItem.prototype), 'remove', this).call(this, featureID, item);
  28133. }
  28134. }
  28135. }], [{
  28136. key: 'fromJSON',
  28137. value: function fromJSON(json, factory) {
  28138. var result = factory.createQueryItem();
  28139. var featureList = result.getFeatureList(factory);
  28140. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  28141. return result;
  28142. }
  28143. }]);
  28144. return QueryItem;
  28145. }(_BaseQueryItemType3.default);
  28146. exports.default = QueryItem;
  28147. /***/ },
  28148. /* 81 */
  28149. /***/ function(module, exports, __webpack_require__) {
  28150. 'use strict';
  28151. Object.defineProperty(exports, "__esModule", {
  28152. value: true
  28153. });
  28154. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  28155. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  28156. var _MoserObject2 = __webpack_require__(6);
  28157. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  28158. var _MoserObjectUtils = __webpack_require__(27);
  28159. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  28160. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  28161. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  28162. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  28163. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  28164. ** IBM Confidential
  28165. **
  28166. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  28167. **
  28168. ** (C) Copyright IBM Corp. 2020
  28169. **
  28170. ** The source code for this program is not published or otherwise divested of its trade secrets,
  28171. ** irrespective of what has been deposited with the U.S. Copyright Office.
  28172. ************************************************************************/
  28173. // GENERATED
  28174. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  28175. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForTaxonomyType
  28176. /**
  28177. * Specifies the item data classification and whether it represents a geographic or time related concept. <p>Java class for taxonomyType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="taxonomyType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="domain"&gt; &lt;simpleType&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="cognos"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; &lt;/element&gt; &lt;element name="class"&gt; &lt;simpleType&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="cNone"/&gt; &lt;enumeration value="cTime"/&gt; &lt;enumeration value="cGeoLocation"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; &lt;/element&gt; &lt;element name="family"&gt; &lt;simpleType&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="cNone"/&gt; &lt;enumeration value="cDate"/&gt; &lt;enumeration value="cYear"/&gt; &lt;enumeration value="cQuarter"/&gt; &lt;enumeration value="cSeason"/&gt; &lt;enumeration value="cMonth"/&gt; &lt;enumeration value="cWeek"/&gt; &lt;enumeration value="cDay"/&gt; &lt;enumeration value="cHour"/&gt; &lt;enumeration value="cMinute"/&gt; &lt;enumeration value="cSecond"/&gt; &lt;enumeration value="cContinent"/&gt; &lt;enumeration value="cSubContinent"/&gt; &lt;enumeration value="cCountry"/&gt; &lt;enumeration value="cRegion"/&gt; &lt;enumeration value="cStateProvince"/&gt; &lt;enumeration value="cCounty"/&gt; &lt;enumeration value="cCity"/&gt; &lt;enumeration value="cPostalCode"/&gt; &lt;enumeration value="cStreetAddress"/&gt; &lt;enumeration value="cPosition"/&gt; &lt;enumeration value="cLatitude"/&gt; &lt;enumeration value="cLongitude"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; &lt;/element&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  28178. */
  28179. var TaxonomyType = function (_MoserObject) {
  28180. _inherits(TaxonomyType, _MoserObject);
  28181. function TaxonomyType() {
  28182. var _ref;
  28183. var _temp, _this, _ret;
  28184. _classCallCheck(this, TaxonomyType);
  28185. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  28186. args[_key] = arguments[_key];
  28187. }
  28188. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TaxonomyType.__proto__ || Object.getPrototypeOf(TaxonomyType)).call.apply(_ref, [this].concat(args))), _this), _this.domain = null, _this.clazz = null, _this.family = null, _temp), _possibleConstructorReturn(_this, _ret);
  28189. }
  28190. _createClass(TaxonomyType, [{
  28191. key: 'getDomain',
  28192. /**
  28193. * Gets the value of the domain property.
  28194. * @return {String} possible object is {@link String}
  28195. */
  28196. value: function getDomain() {
  28197. return this.domain;
  28198. }
  28199. /**
  28200. * Sets the value of the domain property.
  28201. * @param {String} value allowed object is {@link String}
  28202. */
  28203. }, {
  28204. key: 'setDomain',
  28205. value: function setDomain(value) {
  28206. var oldValue = this.domain;
  28207. this.domain = value;
  28208. this._setAndNotify(128, oldValue, value, false, false);
  28209. _MoserObjectUtils2.default.propertyOverrideForTaxonomyType(this);
  28210. }
  28211. /**
  28212. * Gets the value of the clazz property.
  28213. * @return {String} possible object is {@link String}
  28214. */
  28215. }, {
  28216. key: 'getClazz',
  28217. value: function getClazz() {
  28218. return this.clazz;
  28219. }
  28220. /**
  28221. * Sets the value of the clazz property.
  28222. * @param {String} value allowed object is {@link String}
  28223. */
  28224. }, {
  28225. key: 'setClazz',
  28226. value: function setClazz(value) {
  28227. var oldValue = this.clazz;
  28228. this.clazz = value;
  28229. this._setAndNotify(127, oldValue, value, false, false);
  28230. _MoserObjectUtils2.default.propertyOverrideForTaxonomyType(this);
  28231. }
  28232. /**
  28233. * Gets the value of the family property.
  28234. * @return {String} possible object is {@link String}
  28235. */
  28236. }, {
  28237. key: 'getFamily',
  28238. value: function getFamily() {
  28239. return this.family;
  28240. }
  28241. /**
  28242. * Sets the value of the family property.
  28243. * @param {String} value allowed object is {@link String}
  28244. */
  28245. }, {
  28246. key: 'setFamily',
  28247. value: function setFamily(value) {
  28248. var oldValue = this.family;
  28249. this.family = value;
  28250. this._setAndNotify(126, oldValue, value, false, false);
  28251. _MoserObjectUtils2.default.propertyOverrideForTaxonomyType(this);
  28252. }
  28253. /**
  28254. * Creates a new instance of <code>TaxonomyType</code> object from JSON data.
  28255. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  28256. * @param {Object} json JSON data to be used to create the <code> TaxonomyType</code> object from.
  28257. * @return {TaxonomyType} an object of type <code>TaxonomyType</code>
  28258. */
  28259. }, {
  28260. key: 'getObjectType',
  28261. /**
  28262. * Retrieves the type of this object
  28263. * @return {String} the object type in a <code>String</code>
  28264. */
  28265. value: function getObjectType() {
  28266. return "TaxonomyType";
  28267. }
  28268. /**
  28269. * Get a list of FeatureObjects
  28270. * @return {Array} A list of FeatureObjects
  28271. */
  28272. }, {
  28273. key: 'getFeatureList',
  28274. value: function getFeatureList(factory) {
  28275. var featureList = [];
  28276. featureList.push(this.createFeature(false, false, false, 128, "domain", null));
  28277. featureList.push(this.createFeature(false, false, false, 127, "clazz", null));
  28278. featureList.push(this.createFeature(false, false, false, 126, "family", null));
  28279. Array.prototype.push.apply(featureList, _get(TaxonomyType.prototype.__proto__ || Object.getPrototypeOf(TaxonomyType.prototype), 'getFeatureList', this).call(this, factory));
  28280. return featureList;
  28281. }
  28282. /**
  28283. * Set the value of a specific feature.
  28284. * @param {BaseMoserObject} value the value to set
  28285. * @param {int} featureID the feature id of the attribute to be set
  28286. */
  28287. }, {
  28288. key: 'set',
  28289. value: function set(featureID, value) {
  28290. switch (featureID) {
  28291. case 126:
  28292. this.setFamily(value);
  28293. break;
  28294. case 127:
  28295. this.setClazz(value);
  28296. break;
  28297. case 128:
  28298. this.setDomain(value);
  28299. break;
  28300. default:
  28301. throw new Error("The feature " + featureID + " is not valid.");
  28302. }
  28303. }
  28304. /**
  28305. * Get the value of a specific feature.
  28306. * @param {int} featureID the feature id of the attribute to get
  28307. */
  28308. }, {
  28309. key: 'get',
  28310. value: function get(featureID) {
  28311. switch (featureID) {
  28312. case 126:
  28313. return this.getFamily();
  28314. case 127:
  28315. return this.getClazz();
  28316. case 128:
  28317. return this.getDomain();
  28318. default:
  28319. throw new Error("The feature " + featureID + " is not valid.");
  28320. }
  28321. }
  28322. /**
  28323. * Get the value of a specific feature.
  28324. * @param {int} featureID the feature id of the attribute to get
  28325. */
  28326. }, {
  28327. key: 'basicGet',
  28328. value: function basicGet(featureID) {
  28329. switch (featureID) {
  28330. case 126:
  28331. return this.getFamily();
  28332. case 127:
  28333. return this.getClazz();
  28334. case 128:
  28335. return this.getDomain();
  28336. default:
  28337. throw new Error("The feature " + featureID + " is not valid.");
  28338. }
  28339. }
  28340. }], [{
  28341. key: 'fromJSON',
  28342. value: function fromJSON(json, factory) {
  28343. var result = factory.createTaxonomyType();
  28344. var featureList = result.getFeatureList(factory);
  28345. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  28346. return result;
  28347. }
  28348. }]);
  28349. return TaxonomyType;
  28350. }(_MoserObject3.default);
  28351. exports.default = TaxonomyType;
  28352. /***/ },
  28353. /* 82 */
  28354. /***/ function(module, exports, __webpack_require__) {
  28355. 'use strict';
  28356. Object.defineProperty(exports, "__esModule", {
  28357. value: true
  28358. });
  28359. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  28360. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  28361. var _MoserObject2 = __webpack_require__(6);
  28362. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  28363. var _PropertySetter = __webpack_require__(10);
  28364. var _PropertySetter2 = _interopRequireDefault(_PropertySetter);
  28365. var _SplitColumnTreatment = __webpack_require__(83);
  28366. var _SplitColumnTreatment2 = _interopRequireDefault(_SplitColumnTreatment);
  28367. var _SplitDisplay = __webpack_require__(84);
  28368. var _SplitDisplay2 = _interopRequireDefault(_SplitDisplay);
  28369. var _InstanceType = __webpack_require__(11);
  28370. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  28371. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  28372. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  28373. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  28374. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  28375. ** IBM Confidential
  28376. **
  28377. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  28378. **
  28379. ** (C) Copyright IBM Corp. 2021
  28380. **
  28381. ** The source code for this program is not published or otherwise divested of its trade secrets,
  28382. ** irrespective of what has been deposited with the U.S. Copyright Office.
  28383. ************************************************************************/
  28384. // GENERATED
  28385. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  28386. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertySetter (runtime) // updateSplitRef
  28387. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitColumnTreatment (runtime) // new
  28388. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitDisplay (runtime) // new
  28389. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (runtime) // new
  28390. /**
  28391. * <p>Java class for splitType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="splitType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="columnTreatment" type="{}splitColumnTreatment"/&gt; &lt;element name="display" type="{}splitDisplay"/&gt; &lt;element name="folderLabel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="instanceType" type="{}instanceType" minOccurs="0"/&gt; &lt;element name="relationshipRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="item" type="{}itemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  28392. */
  28393. var SplitType = function (_MoserObject) {
  28394. _inherits(SplitType, _MoserObject);
  28395. function SplitType() {
  28396. var _ref;
  28397. var _temp, _this, _ret;
  28398. _classCallCheck(this, SplitType);
  28399. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  28400. args[_key] = arguments[_key];
  28401. }
  28402. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = SplitType.__proto__ || Object.getPrototypeOf(SplitType)).call.apply(_ref, [this].concat(args))), _this), _this.columnTreatment = null, _this.display = null, _this.folderLabel = null, _this.ref = null, _this.instanceType = null, _this.relationshipRef = null, _this.item = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  28403. }
  28404. _createClass(SplitType, [{
  28405. key: 'getColumnTreatment',
  28406. /**
  28407. * Gets the value of the columnTreatment property.
  28408. * @return {SplitColumnTreatment} possible object is {@link SplitColumnTreatment}
  28409. */
  28410. value: function getColumnTreatment() {
  28411. return this.columnTreatment;
  28412. }
  28413. /**
  28414. * Sets the value of the columnTreatment property.
  28415. * @param {SplitColumnTreatment} value allowed object is {@link SplitColumnTreatment}
  28416. */
  28417. }, {
  28418. key: 'setColumnTreatment',
  28419. value: function setColumnTreatment(value) {
  28420. var oldValue = this.columnTreatment;
  28421. this.columnTreatment = value;
  28422. this._setAndNotify(181, oldValue, value, false, false);
  28423. }
  28424. /**
  28425. * Gets the value of the display property.
  28426. * @return {SplitDisplay} possible object is {@link SplitDisplay}
  28427. */
  28428. }, {
  28429. key: 'getDisplay',
  28430. value: function getDisplay() {
  28431. return this.display;
  28432. }
  28433. /**
  28434. * Sets the value of the display property.
  28435. * @param {SplitDisplay} value allowed object is {@link SplitDisplay}
  28436. */
  28437. }, {
  28438. key: 'setDisplay',
  28439. value: function setDisplay(value) {
  28440. var oldValue = this.display;
  28441. this.display = value;
  28442. this._setAndNotify(182, oldValue, value, false, false);
  28443. }
  28444. /**
  28445. * Gets the value of the folderLabel property.
  28446. * @return {String} possible object is {@link String}
  28447. */
  28448. }, {
  28449. key: 'getFolderLabel',
  28450. value: function getFolderLabel() {
  28451. return this.folderLabel;
  28452. }
  28453. /**
  28454. * Sets the value of the folderLabel property.
  28455. * @param {String} value allowed object is {@link String}
  28456. */
  28457. }, {
  28458. key: 'setFolderLabel',
  28459. value: function setFolderLabel(value) {
  28460. var oldValue = this.folderLabel;
  28461. this.folderLabel = value;
  28462. this._setAndNotify(179, oldValue, value, false, false);
  28463. }
  28464. /**
  28465. * Gets the value of the ref property.
  28466. * @return {String} possible object is {@link String}
  28467. */
  28468. }, {
  28469. key: 'getRef',
  28470. value: function getRef() {
  28471. return this.ref;
  28472. }
  28473. /**
  28474. * Sets the value of the ref property.
  28475. * @param {String} value allowed object is {@link String}
  28476. */
  28477. }, {
  28478. key: 'setRef',
  28479. value: function setRef(value) {
  28480. var oldValue = this.ref;
  28481. this.ref = value;
  28482. this._setAndNotify(36, oldValue, value, false, false);
  28483. this._referencedObject = null;
  28484. _PropertySetter2.default._updateSplitRef(this, oldValue, value);
  28485. }
  28486. /**
  28487. * Gets the value of the instanceType property.
  28488. * @return {InstanceType} possible object is {@link InstanceType}
  28489. */
  28490. }, {
  28491. key: 'getInstanceType',
  28492. value: function getInstanceType() {
  28493. return this.instanceType;
  28494. }
  28495. /**
  28496. * Sets the value of the instanceType property.
  28497. * @param {InstanceType} value allowed object is {@link InstanceType}
  28498. */
  28499. }, {
  28500. key: 'setInstanceType',
  28501. value: function setInstanceType(value) {
  28502. var oldValue = this.instanceType;
  28503. this.instanceType = value;
  28504. this._setAndNotify(58, oldValue, value, false, false);
  28505. }
  28506. /**
  28507. * Gets the value of the relationshipRef property.
  28508. * @return {String} possible object is {@link String}
  28509. */
  28510. }, {
  28511. key: 'getRelationshipRef',
  28512. value: function getRelationshipRef() {
  28513. return this.relationshipRef;
  28514. }
  28515. /**
  28516. * Sets the value of the relationshipRef property.
  28517. * @param {String} value allowed object is {@link String}
  28518. */
  28519. }, {
  28520. key: 'setRelationshipRef',
  28521. value: function setRelationshipRef(value) {
  28522. var oldValue = this.relationshipRef;
  28523. this.relationshipRef = value;
  28524. this._setAndNotify(180, oldValue, value, false, false);
  28525. }
  28526. /**
  28527. * Gets the value of the item property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the item property. <p> For example, to add a new item, do as follows: <pre> getItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ItemType}
  28528. */
  28529. }, {
  28530. key: 'getItem',
  28531. value: function getItem() {
  28532. if (!this.item) {
  28533. this.item = [];
  28534. }
  28535. return this.item;
  28536. }
  28537. /**
  28538. * Gets the value of the <code>item</code> property without initializing the property to an empty list if it is unset.
  28539. * @return {Array} the list of <code>ItemType</code> elements, or <code>null</code> if not set
  28540. */
  28541. }, {
  28542. key: 'basicGetItem',
  28543. value: function basicGetItem() {
  28544. return this.item;
  28545. }
  28546. /**
  28547. * Creates a new instance of <code>SplitType</code> object from JSON data.
  28548. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  28549. * @param {Object} json JSON data to be used to create the <code> SplitType</code> object from.
  28550. * @return {SplitType} an object of type <code>SplitType</code>
  28551. */
  28552. }, {
  28553. key: 'addItemAt',
  28554. /**
  28555. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  28556. */
  28557. value: function addItemAt(position, item) {
  28558. this._addAtAndNotify(this.getItem(), position, item, 3, true, false);
  28559. }
  28560. /**
  28561. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  28562. */
  28563. }, {
  28564. key: 'addItem',
  28565. value: function addItem(item) {
  28566. this.addItemAt(this.getItem().length, item);
  28567. }
  28568. /**
  28569. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  28570. */
  28571. }, {
  28572. key: 'removeItemAt',
  28573. value: function removeItemAt(position) {
  28574. this._removeAtAndNotify(this.getItem(), position, 3, true);
  28575. }
  28576. /**
  28577. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  28578. */
  28579. }, {
  28580. key: 'removeItem',
  28581. value: function removeItem(item) {
  28582. var i = this.getItem().indexOf(item);
  28583. if (i >= 0) {
  28584. this.removeItemAt(i);
  28585. }
  28586. }
  28587. /**
  28588. * Retrieves the type of this object
  28589. * @return {String} the object type in a <code>String</code>
  28590. */
  28591. }, {
  28592. key: 'getObjectType',
  28593. value: function getObjectType() {
  28594. return "SplitType";
  28595. }
  28596. /**
  28597. * Get a list of FeatureObjects
  28598. * @return {Array} A list of FeatureObjects
  28599. */
  28600. }, {
  28601. key: 'getFeatureList',
  28602. value: function getFeatureList(factory) {
  28603. var featureList = [];
  28604. featureList.push(this.createFeature(false, true, false, 181, "columnTreatment", _SplitColumnTreatment2.default));
  28605. featureList.push(this.createFeature(false, true, false, 182, "display", _SplitDisplay2.default));
  28606. featureList.push(this.createFeature(false, false, false, 179, "folderLabel", null));
  28607. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  28608. featureList.push(this.createFeature(false, true, false, 58, "instanceType", _InstanceType2.default));
  28609. featureList.push(this.createFeature(false, false, false, 180, "relationshipRef", null));
  28610. var clazz;
  28611. if (factory) {
  28612. clazz = factory.createItemType().getClass();
  28613. }
  28614. featureList.push(this.createFeature(true, false, true, 3, "item", clazz));
  28615. Array.prototype.push.apply(featureList, _get(SplitType.prototype.__proto__ || Object.getPrototypeOf(SplitType.prototype), 'getFeatureList', this).call(this, factory));
  28616. return featureList;
  28617. }
  28618. /**
  28619. * Set the value of a specific feature.
  28620. * @param {BaseMoserObject} value the value to set
  28621. * @param {int} featureID the feature id of the attribute to be set
  28622. */
  28623. }, {
  28624. key: 'set',
  28625. value: function set(featureID, value) {
  28626. switch (featureID) {
  28627. case 179:
  28628. this.setFolderLabel(value);
  28629. break;
  28630. case 180:
  28631. this.setRelationshipRef(value);
  28632. break;
  28633. case 36:
  28634. this.setRef(value);
  28635. break;
  28636. case 181:
  28637. this.setColumnTreatment(value);
  28638. break;
  28639. case 182:
  28640. this.setDisplay(value);
  28641. break;
  28642. case 58:
  28643. this.setInstanceType(value);
  28644. break;
  28645. default:
  28646. throw new Error("The feature " + featureID + " is not valid.");
  28647. }
  28648. }
  28649. /**
  28650. * Set the value of a specific feature.
  28651. * @param {BaseMoserObject} value the value to set the value to set
  28652. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  28653. */
  28654. }, {
  28655. key: '_setList',
  28656. value: function _setList(featureID, value) {
  28657. switch (featureID) {
  28658. case 3:
  28659. this.item = value;
  28660. break;
  28661. default:
  28662. throw new Error("The feature " + featureID + " is not valid.");
  28663. }
  28664. }
  28665. /**
  28666. * Get the value of a specific feature.
  28667. * @param {int} featureID the feature id of the attribute to get
  28668. */
  28669. }, {
  28670. key: 'get',
  28671. value: function get(featureID) {
  28672. switch (featureID) {
  28673. case 179:
  28674. return this.getFolderLabel();
  28675. case 180:
  28676. return this.getRelationshipRef();
  28677. case 36:
  28678. return this.getRef();
  28679. case 3:
  28680. return this.getItem();
  28681. case 181:
  28682. return this.getColumnTreatment();
  28683. case 182:
  28684. return this.getDisplay();
  28685. case 58:
  28686. return this.getInstanceType();
  28687. default:
  28688. throw new Error("The feature " + featureID + " is not valid.");
  28689. }
  28690. }
  28691. /**
  28692. * Get the value of a specific feature.
  28693. * @param {int} featureID the feature id of the attribute to get
  28694. */
  28695. }, {
  28696. key: 'basicGet',
  28697. value: function basicGet(featureID) {
  28698. switch (featureID) {
  28699. case 179:
  28700. return this.getFolderLabel();
  28701. case 180:
  28702. return this.getRelationshipRef();
  28703. case 36:
  28704. return this.getRef();
  28705. case 3:
  28706. return this.basicGetItem();
  28707. case 181:
  28708. return this.getColumnTreatment();
  28709. case 182:
  28710. return this.getDisplay();
  28711. case 58:
  28712. return this.getInstanceType();
  28713. default:
  28714. throw new Error("The feature " + featureID + " is not valid.");
  28715. }
  28716. }
  28717. /**
  28718. * Add the value of a specific feature at a specific position
  28719. * @param {int} position the array position of the item to be added
  28720. * @param {BaseMoserObject} value the value to add
  28721. * @param {int} featureID the feature id of the attribute to be added
  28722. */
  28723. }, {
  28724. key: 'addAt',
  28725. value: function addAt(featureID, position, value) {
  28726. switch (featureID) {
  28727. case 3:
  28728. this.addItemAt(position, value);
  28729. break;
  28730. default:
  28731. throw new Error("The feature " + featureID + " is not valid.");
  28732. }
  28733. }
  28734. /**
  28735. * Add the value to the end of a specific collection feature
  28736. * @param {BaseMoserObject} value the value to add
  28737. * @param {int} featureID the feature id of the attribute to be added
  28738. */
  28739. }, {
  28740. key: 'add',
  28741. value: function add(featureID, value) {
  28742. switch (featureID) {
  28743. case 3:
  28744. this.addItem(value);
  28745. break;
  28746. default:
  28747. throw new Error("The feature " + featureID + " is not valid.");
  28748. }
  28749. }
  28750. /**
  28751. * Remove the value of a specific feature by index.
  28752. * @param {int} position the array position of the item to be removed
  28753. * @param {int} featureID the feature id of the attribute to be removed
  28754. */
  28755. }, {
  28756. key: 'removeAt',
  28757. value: function removeAt(featureID, position) {
  28758. switch (featureID) {
  28759. case 3:
  28760. this.removeItemAt(position);
  28761. break;
  28762. default:
  28763. throw new Error("The feature " + featureID + " is not valid.");
  28764. }
  28765. }
  28766. /**
  28767. * Remove the value from specific feature.
  28768. * @param {BaseMoserObject} item the item to be removed
  28769. * @param {int} featureID the feature id of the attribute to be removed
  28770. */
  28771. }, {
  28772. key: 'remove',
  28773. value: function remove(featureID, item) {
  28774. switch (featureID) {
  28775. case 3:
  28776. this.removeItem(item);
  28777. break;
  28778. default:
  28779. throw new Error("The feature " + featureID + " is not valid.");
  28780. }
  28781. }
  28782. /**
  28783. * Set the resolved object based on reference.
  28784. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  28785. */
  28786. }, {
  28787. key: 'setReferencedObject',
  28788. value: function setReferencedObject(referencedObject) {
  28789. this._referencedObject = referencedObject;
  28790. }
  28791. /**
  28792. * Get the resolved object based on reference.
  28793. * @return {MoserObject} the referenced <code>MoserObject</code>
  28794. */
  28795. }, {
  28796. key: 'getReferencedObject',
  28797. value: function getReferencedObject() {
  28798. return this._referencedObject;
  28799. }
  28800. }, {
  28801. key: 'clone',
  28802. value: function clone() {
  28803. var cloned = _get(SplitType.prototype.__proto__ || Object.getPrototypeOf(SplitType.prototype), 'clone', this).call(this);
  28804. cloned.setReferencedObject(this._referencedObject);
  28805. return cloned;
  28806. }
  28807. }], [{
  28808. key: 'fromJSON',
  28809. value: function fromJSON(json, factory) {
  28810. var result = factory.createSplitType();
  28811. var featureList = result.getFeatureList(factory);
  28812. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  28813. return result;
  28814. }
  28815. }]);
  28816. return SplitType;
  28817. }(_MoserObject3.default);
  28818. exports.default = SplitType;
  28819. /***/ },
  28820. /* 83 */
  28821. /***/ function(module, exports, __webpack_require__) {
  28822. "use strict";
  28823. Object.defineProperty(exports, "__esModule", {
  28824. value: true
  28825. });
  28826. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  28827. var _Enum2 = __webpack_require__(12);
  28828. var _Enum3 = _interopRequireDefault(_Enum2);
  28829. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  28830. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  28831. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  28832. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  28833. ** IBM Confidential
  28834. **
  28835. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  28836. **
  28837. ** (C) Copyright IBM Corp. 2020
  28838. **
  28839. ** The source code for this program is not published or otherwise divested of its trade secrets,
  28840. ** irrespective of what has been deposited with the U.S. Copyright Office.
  28841. ************************************************************************/
  28842. // GENERATED
  28843. //@import Enum (loadtime) // superclass
  28844. /**
  28845. * <p>Java class for splitColumnTreatment. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="splitColumnTreatment"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="show"/&gt; &lt;enumeration value="hide"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  28846. */
  28847. var SplitColumnTreatment = function (_Enum) {
  28848. _inherits(SplitColumnTreatment, _Enum);
  28849. function SplitColumnTreatment(v) {
  28850. _classCallCheck(this, SplitColumnTreatment);
  28851. var _this = _possibleConstructorReturn(this, (SplitColumnTreatment.__proto__ || Object.getPrototypeOf(SplitColumnTreatment)).call(this, v));
  28852. _this.enumValue = null;
  28853. _this.enumValue = v;
  28854. return _this;
  28855. }
  28856. _createClass(SplitColumnTreatment, [{
  28857. key: "value",
  28858. value: function value() {
  28859. return this.enumValue;
  28860. }
  28861. }, {
  28862. key: "getResourceId",
  28863. value: function getResourceId() {
  28864. return "SplitColumnTreatment" + "_" + this.value();
  28865. }
  28866. }], [{
  28867. key: "fromValue",
  28868. value: function fromValue(v) {
  28869. for (var i = 0; i < SplitColumnTreatment.values().length; ++i) {
  28870. if (SplitColumnTreatment.values()[i].enumValue == v) {
  28871. return SplitColumnTreatment.values()[i];
  28872. }
  28873. }
  28874. throw new Error(v);
  28875. }
  28876. }]);
  28877. return SplitColumnTreatment;
  28878. }(_Enum3.default);
  28879. SplitColumnTreatment.SHOW = SplitColumnTreatment.newLiteral("show");
  28880. SplitColumnTreatment.HIDE = SplitColumnTreatment.newLiteral("hide");
  28881. exports.default = SplitColumnTreatment;
  28882. /***/ },
  28883. /* 84 */
  28884. /***/ function(module, exports, __webpack_require__) {
  28885. "use strict";
  28886. Object.defineProperty(exports, "__esModule", {
  28887. value: true
  28888. });
  28889. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  28890. var _Enum2 = __webpack_require__(12);
  28891. var _Enum3 = _interopRequireDefault(_Enum2);
  28892. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  28893. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  28894. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  28895. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  28896. ** IBM Confidential
  28897. **
  28898. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  28899. **
  28900. ** (C) Copyright IBM Corp. 2020
  28901. **
  28902. ** The source code for this program is not published or otherwise divested of its trade secrets,
  28903. ** irrespective of what has been deposited with the U.S. Copyright Office.
  28904. ************************************************************************/
  28905. // GENERATED
  28906. //@import Enum (loadtime) // superclass
  28907. /**
  28908. * <p>Java class for splitDisplay. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="splitDisplay"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="inline"/&gt; &lt;enumeration value="folder"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  28909. */
  28910. var SplitDisplay = function (_Enum) {
  28911. _inherits(SplitDisplay, _Enum);
  28912. function SplitDisplay(v) {
  28913. _classCallCheck(this, SplitDisplay);
  28914. var _this = _possibleConstructorReturn(this, (SplitDisplay.__proto__ || Object.getPrototypeOf(SplitDisplay)).call(this, v));
  28915. _this.enumValue = null;
  28916. _this.enumValue = v;
  28917. return _this;
  28918. }
  28919. _createClass(SplitDisplay, [{
  28920. key: "value",
  28921. value: function value() {
  28922. return this.enumValue;
  28923. }
  28924. }, {
  28925. key: "getResourceId",
  28926. value: function getResourceId() {
  28927. return "SplitDisplay" + "_" + this.value();
  28928. }
  28929. }], [{
  28930. key: "fromValue",
  28931. value: function fromValue(v) {
  28932. for (var i = 0; i < SplitDisplay.values().length; ++i) {
  28933. if (SplitDisplay.values()[i].enumValue == v) {
  28934. return SplitDisplay.values()[i];
  28935. }
  28936. }
  28937. throw new Error(v);
  28938. }
  28939. }]);
  28940. return SplitDisplay;
  28941. }(_Enum3.default);
  28942. SplitDisplay.INLINE = SplitDisplay.newLiteral("inline");
  28943. SplitDisplay.FOLDER = SplitDisplay.newLiteral("folder");
  28944. exports.default = SplitDisplay;
  28945. /***/ },
  28946. /* 85 */
  28947. /***/ function(module, exports, __webpack_require__) {
  28948. 'use strict';
  28949. Object.defineProperty(exports, "__esModule", {
  28950. value: true
  28951. });
  28952. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  28953. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  28954. var _MoserObject2 = __webpack_require__(6);
  28955. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  28956. var _PromptTypeValues = __webpack_require__(86);
  28957. var _PromptTypeValues2 = _interopRequireDefault(_PromptTypeValues);
  28958. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  28959. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  28960. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  28961. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  28962. ** IBM Confidential
  28963. **
  28964. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  28965. **
  28966. ** (C) Copyright IBM Corp. 2020
  28967. **
  28968. ** The source code for this program is not published or otherwise divested of its trade secrets,
  28969. ** irrespective of what has been deposited with the U.S. Copyright Office.
  28970. ************************************************************************/
  28971. // GENERATED
  28972. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  28973. //@import com/ibm/bi/platform/moser/common/generated/metadata/PromptTypeValues (runtime) // new
  28974. /**
  28975. * <p>Java class for promptInfoType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="promptInfoType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="promptType" type="{}promptTypeValues"/&gt; &lt;element name="promptCascadeOnRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="promptDisplayItemRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="promptFilterItemRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="promptUseItemRef" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  28976. */
  28977. var PromptInfoType = function (_MoserObject) {
  28978. _inherits(PromptInfoType, _MoserObject);
  28979. function PromptInfoType() {
  28980. var _ref;
  28981. var _temp, _this, _ret;
  28982. _classCallCheck(this, PromptInfoType);
  28983. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  28984. args[_key] = arguments[_key];
  28985. }
  28986. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = PromptInfoType.__proto__ || Object.getPrototypeOf(PromptInfoType)).call.apply(_ref, [this].concat(args))), _this), _this.promptType = null, _this.promptCascadeOnRef = null, _this.promptDisplayItemRef = null, _this.promptFilterItemRef = null, _this.promptUseItemRef = null, _temp), _possibleConstructorReturn(_this, _ret);
  28987. }
  28988. _createClass(PromptInfoType, [{
  28989. key: 'getPromptType',
  28990. /**
  28991. * Gets the value of the promptType property.
  28992. * @return {PromptTypeValues} possible object is {@link PromptTypeValues}
  28993. */
  28994. value: function getPromptType() {
  28995. return this.promptType;
  28996. }
  28997. /**
  28998. * Sets the value of the promptType property.
  28999. * @param {PromptTypeValues} value allowed object is {@link PromptTypeValues}
  29000. */
  29001. }, {
  29002. key: 'setPromptType',
  29003. value: function setPromptType(value) {
  29004. var oldValue = this.promptType;
  29005. this.promptType = value;
  29006. this._setAndNotify(19, oldValue, value, false, false);
  29007. }
  29008. /**
  29009. * Gets the value of the promptCascadeOnRef property.
  29010. * @return {String} possible object is {@link String}
  29011. */
  29012. }, {
  29013. key: 'getPromptCascadeOnRef',
  29014. value: function getPromptCascadeOnRef() {
  29015. return this.promptCascadeOnRef;
  29016. }
  29017. /**
  29018. * Sets the value of the promptCascadeOnRef property.
  29019. * @param {String} value allowed object is {@link String}
  29020. */
  29021. }, {
  29022. key: 'setPromptCascadeOnRef',
  29023. value: function setPromptCascadeOnRef(value) {
  29024. var oldValue = this.promptCascadeOnRef;
  29025. this.promptCascadeOnRef = value;
  29026. this._setAndNotify(20, oldValue, value, false, false);
  29027. }
  29028. /**
  29029. * Gets the value of the promptDisplayItemRef property.
  29030. * @return {String} possible object is {@link String}
  29031. */
  29032. }, {
  29033. key: 'getPromptDisplayItemRef',
  29034. value: function getPromptDisplayItemRef() {
  29035. return this.promptDisplayItemRef;
  29036. }
  29037. /**
  29038. * Sets the value of the promptDisplayItemRef property.
  29039. * @param {String} value allowed object is {@link String}
  29040. */
  29041. }, {
  29042. key: 'setPromptDisplayItemRef',
  29043. value: function setPromptDisplayItemRef(value) {
  29044. var oldValue = this.promptDisplayItemRef;
  29045. this.promptDisplayItemRef = value;
  29046. this._setAndNotify(23, oldValue, value, false, false);
  29047. }
  29048. /**
  29049. * Gets the value of the promptFilterItemRef property.
  29050. * @return {String} possible object is {@link String}
  29051. */
  29052. }, {
  29053. key: 'getPromptFilterItemRef',
  29054. value: function getPromptFilterItemRef() {
  29055. return this.promptFilterItemRef;
  29056. }
  29057. /**
  29058. * Sets the value of the promptFilterItemRef property.
  29059. * @param {String} value allowed object is {@link String}
  29060. */
  29061. }, {
  29062. key: 'setPromptFilterItemRef',
  29063. value: function setPromptFilterItemRef(value) {
  29064. var oldValue = this.promptFilterItemRef;
  29065. this.promptFilterItemRef = value;
  29066. this._setAndNotify(21, oldValue, value, false, false);
  29067. }
  29068. /**
  29069. * Gets the value of the promptUseItemRef property.
  29070. * @return {String} possible object is {@link String}
  29071. */
  29072. }, {
  29073. key: 'getPromptUseItemRef',
  29074. value: function getPromptUseItemRef() {
  29075. return this.promptUseItemRef;
  29076. }
  29077. /**
  29078. * Sets the value of the promptUseItemRef property.
  29079. * @param {String} value allowed object is {@link String}
  29080. */
  29081. }, {
  29082. key: 'setPromptUseItemRef',
  29083. value: function setPromptUseItemRef(value) {
  29084. var oldValue = this.promptUseItemRef;
  29085. this.promptUseItemRef = value;
  29086. this._setAndNotify(22, oldValue, value, false, false);
  29087. }
  29088. /**
  29089. * Creates a new instance of <code>PromptInfoType</code> object from JSON data.
  29090. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  29091. * @param {Object} json JSON data to be used to create the <code> PromptInfoType</code> object from.
  29092. * @return {PromptInfoType} an object of type <code>PromptInfoType</code>
  29093. */
  29094. }, {
  29095. key: 'getObjectType',
  29096. /**
  29097. * Retrieves the type of this object
  29098. * @return {String} the object type in a <code>String</code>
  29099. */
  29100. value: function getObjectType() {
  29101. return "PromptInfoType";
  29102. }
  29103. /**
  29104. * Get a list of FeatureObjects
  29105. * @return {Array} A list of FeatureObjects
  29106. */
  29107. }, {
  29108. key: 'getFeatureList',
  29109. value: function getFeatureList(factory) {
  29110. var featureList = [];
  29111. featureList.push(this.createFeature(false, true, false, 19, "promptType", _PromptTypeValues2.default));
  29112. featureList.push(this.createFeature(false, false, false, 20, "promptCascadeOnRef", null));
  29113. featureList.push(this.createFeature(false, false, false, 23, "promptDisplayItemRef", null));
  29114. featureList.push(this.createFeature(false, false, false, 21, "promptFilterItemRef", null));
  29115. featureList.push(this.createFeature(false, false, false, 22, "promptUseItemRef", null));
  29116. Array.prototype.push.apply(featureList, _get(PromptInfoType.prototype.__proto__ || Object.getPrototypeOf(PromptInfoType.prototype), 'getFeatureList', this).call(this, factory));
  29117. return featureList;
  29118. }
  29119. /**
  29120. * Set the value of a specific feature.
  29121. * @param {BaseMoserObject} value the value to set
  29122. * @param {int} featureID the feature id of the attribute to be set
  29123. */
  29124. }, {
  29125. key: 'set',
  29126. value: function set(featureID, value) {
  29127. switch (featureID) {
  29128. case 19:
  29129. this.setPromptType(value);
  29130. break;
  29131. case 20:
  29132. this.setPromptCascadeOnRef(value);
  29133. break;
  29134. case 21:
  29135. this.setPromptFilterItemRef(value);
  29136. break;
  29137. case 22:
  29138. this.setPromptUseItemRef(value);
  29139. break;
  29140. case 23:
  29141. this.setPromptDisplayItemRef(value);
  29142. break;
  29143. default:
  29144. throw new Error("The feature " + featureID + " is not valid.");
  29145. }
  29146. }
  29147. /**
  29148. * Get the value of a specific feature.
  29149. * @param {int} featureID the feature id of the attribute to get
  29150. */
  29151. }, {
  29152. key: 'get',
  29153. value: function get(featureID) {
  29154. switch (featureID) {
  29155. case 19:
  29156. return this.getPromptType();
  29157. case 20:
  29158. return this.getPromptCascadeOnRef();
  29159. case 21:
  29160. return this.getPromptFilterItemRef();
  29161. case 22:
  29162. return this.getPromptUseItemRef();
  29163. case 23:
  29164. return this.getPromptDisplayItemRef();
  29165. default:
  29166. throw new Error("The feature " + featureID + " is not valid.");
  29167. }
  29168. }
  29169. /**
  29170. * Get the value of a specific feature.
  29171. * @param {int} featureID the feature id of the attribute to get
  29172. */
  29173. }, {
  29174. key: 'basicGet',
  29175. value: function basicGet(featureID) {
  29176. switch (featureID) {
  29177. case 19:
  29178. return this.getPromptType();
  29179. case 20:
  29180. return this.getPromptCascadeOnRef();
  29181. case 21:
  29182. return this.getPromptFilterItemRef();
  29183. case 22:
  29184. return this.getPromptUseItemRef();
  29185. case 23:
  29186. return this.getPromptDisplayItemRef();
  29187. default:
  29188. throw new Error("The feature " + featureID + " is not valid.");
  29189. }
  29190. }
  29191. }], [{
  29192. key: 'fromJSON',
  29193. value: function fromJSON(json, factory) {
  29194. var result = factory.createPromptInfoType();
  29195. var featureList = result.getFeatureList(factory);
  29196. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  29197. return result;
  29198. }
  29199. }]);
  29200. return PromptInfoType;
  29201. }(_MoserObject3.default);
  29202. exports.default = PromptInfoType;
  29203. /***/ },
  29204. /* 86 */
  29205. /***/ function(module, exports, __webpack_require__) {
  29206. "use strict";
  29207. Object.defineProperty(exports, "__esModule", {
  29208. value: true
  29209. });
  29210. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  29211. var _Enum2 = __webpack_require__(12);
  29212. var _Enum3 = _interopRequireDefault(_Enum2);
  29213. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  29214. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  29215. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  29216. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  29217. ** IBM Confidential
  29218. **
  29219. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  29220. **
  29221. ** (C) Copyright IBM Corp. 2020
  29222. **
  29223. ** The source code for this program is not published or otherwise divested of its trade secrets,
  29224. ** irrespective of what has been deposited with the U.S. Copyright Office.
  29225. ************************************************************************/
  29226. // GENERATED
  29227. //@import Enum (loadtime) // superclass
  29228. /**
  29229. * <p>Java class for promptTypeValues. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="promptTypeValues"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="serverDetermined"/&gt; &lt;enumeration value="editBox"/&gt; &lt;enumeration value="selectDate"/&gt; &lt;enumeration value="selectDateTime"/&gt; &lt;enumeration value="selectInterval"/&gt; &lt;enumeration value="selectTime"/&gt; &lt;enumeration value="selectValue"/&gt; &lt;enumeration value="selectWithSearch"/&gt; &lt;enumeration value="selectWithTree"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  29230. */
  29231. var PromptTypeValues = function (_Enum) {
  29232. _inherits(PromptTypeValues, _Enum);
  29233. /**
  29234. * Specifies that the prompt will be displayed as a user-defined search. Note: Not applicable to a queryItem where usage is set to fact.
  29235. */
  29236. /**
  29237. * Specifies that the prompt will display a selectable time.
  29238. */
  29239. /**
  29240. * Specifies that the prompt will display a selectable date and time.
  29241. */
  29242. /**
  29243. * Specifies that the prompt will be displayed as an edit box.
  29244. */
  29245. function PromptTypeValues(v) {
  29246. _classCallCheck(this, PromptTypeValues);
  29247. var _this = _possibleConstructorReturn(this, (PromptTypeValues.__proto__ || Object.getPrototypeOf(PromptTypeValues)).call(this, v));
  29248. _this.enumValue = null;
  29249. _this.enumValue = v;
  29250. return _this;
  29251. }
  29252. /**
  29253. * Specifies that the prompt will display a list of values from which the user can select.
  29254. */
  29255. /**
  29256. * Specifies that the prompt will display a selectable interval.
  29257. */
  29258. /**
  29259. * Specifies that the prompt will display a selectable date.
  29260. */
  29261. /**
  29262. * Specifies that the prompt will be determined by the server during execution.
  29263. */
  29264. _createClass(PromptTypeValues, [{
  29265. key: "value",
  29266. value: function value() {
  29267. return this.enumValue;
  29268. }
  29269. }, {
  29270. key: "getResourceId",
  29271. value: function getResourceId() {
  29272. return "PromptTypeValues" + "_" + this.value();
  29273. }
  29274. }], [{
  29275. key: "fromValue",
  29276. value: function fromValue(v) {
  29277. for (var i = 0; i < PromptTypeValues.values().length; ++i) {
  29278. if (PromptTypeValues.values()[i].enumValue == v) {
  29279. return PromptTypeValues.values()[i];
  29280. }
  29281. }
  29282. throw new Error(v);
  29283. }
  29284. }]);
  29285. return PromptTypeValues;
  29286. }(_Enum3.default);
  29287. PromptTypeValues.SERVER_DETERMINED = PromptTypeValues.newLiteral("serverDetermined");
  29288. PromptTypeValues.EDIT_BOX = PromptTypeValues.newLiteral("editBox");
  29289. PromptTypeValues.SELECT_DATE = PromptTypeValues.newLiteral("selectDate");
  29290. PromptTypeValues.SELECT_DATE_TIME = PromptTypeValues.newLiteral("selectDateTime");
  29291. PromptTypeValues.SELECT_INTERVAL = PromptTypeValues.newLiteral("selectInterval");
  29292. PromptTypeValues.SELECT_TIME = PromptTypeValues.newLiteral("selectTime");
  29293. PromptTypeValues.SELECT_VALUE = PromptTypeValues.newLiteral("selectValue");
  29294. PromptTypeValues.SELECT_WITH_SEARCH = PromptTypeValues.newLiteral("selectWithSearch");
  29295. PromptTypeValues.SELECT_WITH_TREE = PromptTypeValues.newLiteral("selectWithTree");
  29296. exports.default = PromptTypeValues;
  29297. /***/ },
  29298. /* 87 */
  29299. /***/ function(module, exports, __webpack_require__) {
  29300. 'use strict';
  29301. Object.defineProperty(exports, "__esModule", {
  29302. value: true
  29303. });
  29304. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  29305. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  29306. var _ObjectType2 = __webpack_require__(26);
  29307. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  29308. var _MoserObject = __webpack_require__(6);
  29309. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  29310. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  29311. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  29312. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  29313. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  29314. ** IBM Confidential
  29315. **
  29316. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  29317. **
  29318. ** (C) Copyright IBM Corp. 2020
  29319. **
  29320. ** The source code for this program is not published or otherwise divested of its trade secrets,
  29321. ** irrespective of what has been deposited with the U.S. Copyright Office.
  29322. ************************************************************************/
  29323. // GENERATED
  29324. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  29325. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  29326. /**
  29327. * The label is used as the caption. In relational terms it defines a new row, based on other rows. In Olap terms it defines a new member, based on other members. E.g. kitchen_furniture = [table] + [chair], YOY_difference = [2016] - [2015]. <p>Java class for calculatedMemberType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="calculatedMemberType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="expression" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  29328. */
  29329. var CalculatedMemberType = function (_ObjectType) {
  29330. _inherits(CalculatedMemberType, _ObjectType);
  29331. function CalculatedMemberType() {
  29332. var _ref;
  29333. var _temp, _this, _ret;
  29334. _classCallCheck(this, CalculatedMemberType);
  29335. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  29336. args[_key] = arguments[_key];
  29337. }
  29338. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CalculatedMemberType.__proto__ || Object.getPrototypeOf(CalculatedMemberType)).call.apply(_ref, [this].concat(args))), _this), _this.expression = null, _temp), _possibleConstructorReturn(_this, _ret);
  29339. }
  29340. _createClass(CalculatedMemberType, [{
  29341. key: 'getExpression',
  29342. /**
  29343. * Gets the value of the expression property.
  29344. * @return {String} possible object is {@link String}
  29345. */
  29346. value: function getExpression() {
  29347. return this.expression;
  29348. }
  29349. /**
  29350. * Sets the value of the expression property.
  29351. * @param {String} value allowed object is {@link String}
  29352. */
  29353. }, {
  29354. key: 'setExpression',
  29355. value: function setExpression(value) {
  29356. var oldValue = this.expression;
  29357. this.expression = value;
  29358. this._setAndNotify(43, oldValue, value, false, true);
  29359. }
  29360. /**
  29361. * Creates a new instance of <code>CalculatedMemberType</code> object from JSON data.
  29362. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  29363. * @param {Object} json JSON data to be used to create the <code> CalculatedMemberType</code> object from.
  29364. * @return {CalculatedMemberType} an object of type <code>CalculatedMemberType</code>
  29365. */
  29366. }, {
  29367. key: 'getObjectType',
  29368. /**
  29369. * Retrieves the type of this object
  29370. * @return {String} the object type in a <code>String</code>
  29371. */
  29372. value: function getObjectType() {
  29373. return "CalculatedMemberType";
  29374. }
  29375. /**
  29376. * Get a list of FeatureObjects
  29377. * @return {Array} A list of FeatureObjects
  29378. */
  29379. }, {
  29380. key: 'getFeatureList',
  29381. value: function getFeatureList(factory) {
  29382. var featureList = [];
  29383. featureList.push(this.createFeature(false, false, false, 43, "expression", null));
  29384. Array.prototype.push.apply(featureList, _get(CalculatedMemberType.prototype.__proto__ || Object.getPrototypeOf(CalculatedMemberType.prototype), 'getFeatureList', this).call(this, factory));
  29385. return featureList;
  29386. }
  29387. /**
  29388. * Set the value of a specific feature.
  29389. * @param {BaseMoserObject} value the value to set
  29390. * @param {int} featureID the feature id of the attribute to be set
  29391. */
  29392. }, {
  29393. key: 'set',
  29394. value: function set(featureID, value) {
  29395. switch (featureID) {
  29396. case 43:
  29397. this.setExpression(value);
  29398. break;
  29399. default:
  29400. _get(CalculatedMemberType.prototype.__proto__ || Object.getPrototypeOf(CalculatedMemberType.prototype), 'set', this).call(this, featureID, value);
  29401. }
  29402. }
  29403. /**
  29404. * Get the value of a specific feature.
  29405. * @param {int} featureID the feature id of the attribute to get
  29406. */
  29407. }, {
  29408. key: 'get',
  29409. value: function get(featureID) {
  29410. switch (featureID) {
  29411. case 43:
  29412. return this.getExpression();
  29413. default:
  29414. return _get(CalculatedMemberType.prototype.__proto__ || Object.getPrototypeOf(CalculatedMemberType.prototype), 'get', this).call(this, featureID);
  29415. }
  29416. }
  29417. /**
  29418. * Get the value of a specific feature.
  29419. * @param {int} featureID the feature id of the attribute to get
  29420. */
  29421. }, {
  29422. key: 'basicGet',
  29423. value: function basicGet(featureID) {
  29424. switch (featureID) {
  29425. case 43:
  29426. return this.getExpression();
  29427. default:
  29428. return _get(CalculatedMemberType.prototype.__proto__ || Object.getPrototypeOf(CalculatedMemberType.prototype), 'basicGet', this).call(this, featureID);
  29429. }
  29430. }
  29431. }], [{
  29432. key: 'fromJSON',
  29433. value: function fromJSON(json, factory) {
  29434. var result = factory.createCalculatedMemberType();
  29435. var featureList = result.getFeatureList(factory);
  29436. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  29437. return result;
  29438. }
  29439. }]);
  29440. return CalculatedMemberType;
  29441. }(_ObjectType3.default);
  29442. exports.default = CalculatedMemberType;
  29443. /***/ },
  29444. /* 88 */
  29445. /***/ function(module, exports, __webpack_require__) {
  29446. 'use strict';
  29447. Object.defineProperty(exports, "__esModule", {
  29448. value: true
  29449. });
  29450. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  29451. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  29452. var _ObjectType2 = __webpack_require__(26);
  29453. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  29454. var _MoserObject = __webpack_require__(6);
  29455. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  29456. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  29457. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  29458. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  29459. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  29460. ** IBM Confidential
  29461. **
  29462. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  29463. **
  29464. ** (C) Copyright IBM Corp. 2021
  29465. **
  29466. ** The source code for this program is not published or otherwise divested of its trade secrets,
  29467. ** irrespective of what has been deposited with the U.S. Copyright Office.
  29468. ************************************************************************/
  29469. // GENERATED
  29470. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  29471. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  29472. /**
  29473. * Represents a member of a hierarchy, level, or another member. The identifier represents the member unique name and the label represents the caption. A member can contain 0 or more members. A member is not saved in a module, it is only a place holder to facilitate displaying members for the UI. <p>Java class for memberType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="memberType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="members" type="{}memberType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="dimensionUniqueName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="parentUniqueName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="levelNumber" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; &lt;element name="levelLabel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="levelUniqueName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="memberCaption" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="hierarchyUniqueName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="parentLevel" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  29474. */
  29475. var MemberType = function (_ObjectType) {
  29476. _inherits(MemberType, _ObjectType);
  29477. function MemberType() {
  29478. var _ref;
  29479. var _temp, _this, _ret;
  29480. _classCallCheck(this, MemberType);
  29481. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  29482. args[_key] = arguments[_key];
  29483. }
  29484. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = MemberType.__proto__ || Object.getPrototypeOf(MemberType)).call.apply(_ref, [this].concat(args))), _this), _this.members = null, _this.dimensionUniqueName = null, _this.parentUniqueName = null, _this.levelNumber = null, _this.levelLabel = null, _this.levelUniqueName = null, _this.memberCaption = null, _this.hierarchyUniqueName = null, _this.parentLevel = null, _temp), _possibleConstructorReturn(_this, _ret);
  29485. }
  29486. _createClass(MemberType, [{
  29487. key: 'getMembers',
  29488. /**
  29489. * Gets the value of the members property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the members property. <p> For example, to add a new item, do as follows: <pre> getMembers().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link MemberType}
  29490. */
  29491. value: function getMembers() {
  29492. if (!this.members) {
  29493. this.members = [];
  29494. }
  29495. return this.members;
  29496. }
  29497. /**
  29498. * Gets the value of the dimensionUniqueName property.
  29499. * @return {String} possible object is {@link String}
  29500. */
  29501. }, {
  29502. key: 'getDimensionUniqueName',
  29503. value: function getDimensionUniqueName() {
  29504. return this.dimensionUniqueName;
  29505. }
  29506. /**
  29507. * Sets the value of the dimensionUniqueName property.
  29508. * @param {String} value allowed object is {@link String}
  29509. */
  29510. }, {
  29511. key: 'setDimensionUniqueName',
  29512. value: function setDimensionUniqueName(value) {
  29513. var oldValue = this.dimensionUniqueName;
  29514. this.dimensionUniqueName = value;
  29515. this._setAndNotify(223, oldValue, value, false, true);
  29516. }
  29517. /**
  29518. * Gets the value of the parentUniqueName property.
  29519. * @return {String} possible object is {@link String}
  29520. */
  29521. }, {
  29522. key: 'getParentUniqueName',
  29523. value: function getParentUniqueName() {
  29524. return this.parentUniqueName;
  29525. }
  29526. /**
  29527. * Sets the value of the parentUniqueName property.
  29528. * @param {String} value allowed object is {@link String}
  29529. */
  29530. }, {
  29531. key: 'setParentUniqueName',
  29532. value: function setParentUniqueName(value) {
  29533. var oldValue = this.parentUniqueName;
  29534. this.parentUniqueName = value;
  29535. this._setAndNotify(224, oldValue, value, false, true);
  29536. }
  29537. /**
  29538. * Gets the value of the levelNumber property.
  29539. * @return {Number} possible object is {@link Long}
  29540. */
  29541. }, {
  29542. key: 'getLevelNumber',
  29543. value: function getLevelNumber() {
  29544. return this.levelNumber;
  29545. }
  29546. /**
  29547. * Sets the value of the levelNumber property.
  29548. * @param {Number} value allowed object is {@link Long}
  29549. */
  29550. }, {
  29551. key: 'setLevelNumber',
  29552. value: function setLevelNumber(value) {
  29553. var oldValue = this.levelNumber;
  29554. this.levelNumber = value;
  29555. this._setAndNotify(226, oldValue, value, false, true);
  29556. }
  29557. /**
  29558. * Gets the value of the levelLabel property.
  29559. * @return {String} possible object is {@link String}
  29560. */
  29561. }, {
  29562. key: 'getLevelLabel',
  29563. value: function getLevelLabel() {
  29564. return this.levelLabel;
  29565. }
  29566. /**
  29567. * Sets the value of the levelLabel property.
  29568. * @param {String} value allowed object is {@link String}
  29569. */
  29570. }, {
  29571. key: 'setLevelLabel',
  29572. value: function setLevelLabel(value) {
  29573. var oldValue = this.levelLabel;
  29574. this.levelLabel = value;
  29575. this._setAndNotify(222, oldValue, value, false, true);
  29576. }
  29577. /**
  29578. * Gets the value of the levelUniqueName property.
  29579. * @return {String} possible object is {@link String}
  29580. */
  29581. }, {
  29582. key: 'getLevelUniqueName',
  29583. value: function getLevelUniqueName() {
  29584. return this.levelUniqueName;
  29585. }
  29586. /**
  29587. * Sets the value of the levelUniqueName property.
  29588. * @param {String} value allowed object is {@link String}
  29589. */
  29590. }, {
  29591. key: 'setLevelUniqueName',
  29592. value: function setLevelUniqueName(value) {
  29593. var oldValue = this.levelUniqueName;
  29594. this.levelUniqueName = value;
  29595. this._setAndNotify(227, oldValue, value, false, true);
  29596. }
  29597. /**
  29598. * Gets the value of the memberCaption property.
  29599. * @return {String} possible object is {@link String}
  29600. */
  29601. }, {
  29602. key: 'getMemberCaption',
  29603. value: function getMemberCaption() {
  29604. return this.memberCaption;
  29605. }
  29606. /**
  29607. * Sets the value of the memberCaption property.
  29608. * @param {String} value allowed object is {@link String}
  29609. */
  29610. }, {
  29611. key: 'setMemberCaption',
  29612. value: function setMemberCaption(value) {
  29613. var oldValue = this.memberCaption;
  29614. this.memberCaption = value;
  29615. this._setAndNotify(225, oldValue, value, false, true);
  29616. }
  29617. /**
  29618. * Gets the value of the hierarchyUniqueName property.
  29619. * @return {String} possible object is {@link String}
  29620. */
  29621. }, {
  29622. key: 'getHierarchyUniqueName',
  29623. value: function getHierarchyUniqueName() {
  29624. return this.hierarchyUniqueName;
  29625. }
  29626. /**
  29627. * Sets the value of the hierarchyUniqueName property.
  29628. * @param {String} value allowed object is {@link String}
  29629. */
  29630. }, {
  29631. key: 'setHierarchyUniqueName',
  29632. value: function setHierarchyUniqueName(value) {
  29633. var oldValue = this.hierarchyUniqueName;
  29634. this.hierarchyUniqueName = value;
  29635. this._setAndNotify(229, oldValue, value, false, true);
  29636. }
  29637. /**
  29638. * Gets the value of the parentLevel property.
  29639. * @return {Number} possible object is {@link Long}
  29640. */
  29641. }, {
  29642. key: 'getParentLevel',
  29643. value: function getParentLevel() {
  29644. return this.parentLevel;
  29645. }
  29646. /**
  29647. * Sets the value of the parentLevel property.
  29648. * @param {Number} value allowed object is {@link Long}
  29649. */
  29650. }, {
  29651. key: 'setParentLevel',
  29652. value: function setParentLevel(value) {
  29653. var oldValue = this.parentLevel;
  29654. this.parentLevel = value;
  29655. this._setAndNotify(228, oldValue, value, false, true);
  29656. }
  29657. /**
  29658. * Gets the value of the <code>members</code> property without initializing the property to an empty list if it is unset.
  29659. * @return {Array} the list of <code>MemberType</code> elements, or <code>null</code> if not set
  29660. */
  29661. }, {
  29662. key: 'basicGetMembers',
  29663. value: function basicGetMembers() {
  29664. return this.members;
  29665. }
  29666. /**
  29667. * Creates a new instance of <code>MemberType</code> object from JSON data.
  29668. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  29669. * @param {Object} json JSON data to be used to create the <code> MemberType</code> object from.
  29670. * @return {MemberType} an object of type <code>MemberType</code>
  29671. */
  29672. }, {
  29673. key: 'addMembersAt',
  29674. /**
  29675. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  29676. */
  29677. value: function addMembersAt(position, item) {
  29678. this._addAtAndNotify(this.getMembers(), position, item, 193, true, true);
  29679. }
  29680. /**
  29681. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  29682. */
  29683. }, {
  29684. key: 'addMembers',
  29685. value: function addMembers(item) {
  29686. this.addMembersAt(this.getMembers().length, item);
  29687. }
  29688. /**
  29689. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  29690. */
  29691. }, {
  29692. key: 'removeMembersAt',
  29693. value: function removeMembersAt(position) {
  29694. this._removeAtAndNotify(this.getMembers(), position, 193, true);
  29695. }
  29696. /**
  29697. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  29698. */
  29699. }, {
  29700. key: 'removeMembers',
  29701. value: function removeMembers(item) {
  29702. var i = this.getMembers().indexOf(item);
  29703. if (i >= 0) {
  29704. this.removeMembersAt(i);
  29705. }
  29706. }
  29707. /**
  29708. * Retrieves the type of this object
  29709. * @return {String} the object type in a <code>String</code>
  29710. */
  29711. }, {
  29712. key: 'getObjectType',
  29713. value: function getObjectType() {
  29714. return "MemberType";
  29715. }
  29716. /**
  29717. * Get a list of FeatureObjects
  29718. * @return {Array} A list of FeatureObjects
  29719. */
  29720. }, {
  29721. key: 'getFeatureList',
  29722. value: function getFeatureList(factory) {
  29723. var featureList = [];
  29724. var clazz;
  29725. if (factory) {
  29726. clazz = factory.createMemberType().getClass();
  29727. }
  29728. featureList.push(this.createFeature(true, false, true, 193, "members", clazz));
  29729. featureList.push(this.createFeature(false, false, false, 223, "dimensionUniqueName", null));
  29730. featureList.push(this.createFeature(false, false, false, 224, "parentUniqueName", null));
  29731. featureList.push(this.createFeature(false, false, false, 226, "levelNumber", null));
  29732. featureList.push(this.createFeature(false, false, false, 222, "levelLabel", null));
  29733. featureList.push(this.createFeature(false, false, false, 227, "levelUniqueName", null));
  29734. featureList.push(this.createFeature(false, false, false, 225, "memberCaption", null));
  29735. featureList.push(this.createFeature(false, false, false, 229, "hierarchyUniqueName", null));
  29736. featureList.push(this.createFeature(false, false, false, 228, "parentLevel", null));
  29737. Array.prototype.push.apply(featureList, _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'getFeatureList', this).call(this, factory));
  29738. return featureList;
  29739. }
  29740. /**
  29741. * Set the value of a specific feature.
  29742. * @param {BaseMoserObject} value the value to set
  29743. * @param {int} featureID the feature id of the attribute to be set
  29744. */
  29745. }, {
  29746. key: 'set',
  29747. value: function set(featureID, value) {
  29748. switch (featureID) {
  29749. case 222:
  29750. this.setLevelLabel(value);
  29751. break;
  29752. case 223:
  29753. this.setDimensionUniqueName(value);
  29754. break;
  29755. case 224:
  29756. this.setParentUniqueName(value);
  29757. break;
  29758. case 225:
  29759. this.setMemberCaption(value);
  29760. break;
  29761. case 226:
  29762. this.setLevelNumber(value);
  29763. break;
  29764. case 227:
  29765. this.setLevelUniqueName(value);
  29766. break;
  29767. case 228:
  29768. this.setParentLevel(value);
  29769. break;
  29770. case 229:
  29771. this.setHierarchyUniqueName(value);
  29772. break;
  29773. default:
  29774. _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'set', this).call(this, featureID, value);
  29775. }
  29776. }
  29777. /**
  29778. * Set the value of a specific feature.
  29779. * @param {BaseMoserObject} value the value to set the value to set
  29780. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  29781. */
  29782. }, {
  29783. key: '_setList',
  29784. value: function _setList(featureID, value) {
  29785. switch (featureID) {
  29786. case 193:
  29787. this.members = value;
  29788. break;
  29789. default:
  29790. _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), '_setList', this).call(this, featureID, value);
  29791. }
  29792. }
  29793. /**
  29794. * Get the value of a specific feature.
  29795. * @param {int} featureID the feature id of the attribute to get
  29796. */
  29797. }, {
  29798. key: 'get',
  29799. value: function get(featureID) {
  29800. switch (featureID) {
  29801. case 222:
  29802. return this.getLevelLabel();
  29803. case 223:
  29804. return this.getDimensionUniqueName();
  29805. case 224:
  29806. return this.getParentUniqueName();
  29807. case 193:
  29808. return this.getMembers();
  29809. case 225:
  29810. return this.getMemberCaption();
  29811. case 226:
  29812. return this.getLevelNumber();
  29813. case 227:
  29814. return this.getLevelUniqueName();
  29815. case 228:
  29816. return this.getParentLevel();
  29817. case 229:
  29818. return this.getHierarchyUniqueName();
  29819. default:
  29820. return _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'get', this).call(this, featureID);
  29821. }
  29822. }
  29823. /**
  29824. * Get the value of a specific feature.
  29825. * @param {int} featureID the feature id of the attribute to get
  29826. */
  29827. }, {
  29828. key: 'basicGet',
  29829. value: function basicGet(featureID) {
  29830. switch (featureID) {
  29831. case 222:
  29832. return this.getLevelLabel();
  29833. case 223:
  29834. return this.getDimensionUniqueName();
  29835. case 224:
  29836. return this.getParentUniqueName();
  29837. case 193:
  29838. return this.basicGetMembers();
  29839. case 225:
  29840. return this.getMemberCaption();
  29841. case 226:
  29842. return this.getLevelNumber();
  29843. case 227:
  29844. return this.getLevelUniqueName();
  29845. case 228:
  29846. return this.getParentLevel();
  29847. case 229:
  29848. return this.getHierarchyUniqueName();
  29849. default:
  29850. return _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'basicGet', this).call(this, featureID);
  29851. }
  29852. }
  29853. /**
  29854. * Add the value of a specific feature at a specific position
  29855. * @param {int} position the array position of the item to be added
  29856. * @param {BaseMoserObject} value the value to add
  29857. * @param {int} featureID the feature id of the attribute to be added
  29858. */
  29859. }, {
  29860. key: 'addAt',
  29861. value: function addAt(featureID, position, value) {
  29862. switch (featureID) {
  29863. case 193:
  29864. this.addMembersAt(position, value);
  29865. break;
  29866. default:
  29867. _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'addAt', this).call(this, featureID, position, value);
  29868. }
  29869. }
  29870. /**
  29871. * Add the value to the end of a specific collection feature
  29872. * @param {BaseMoserObject} value the value to add
  29873. * @param {int} featureID the feature id of the attribute to be added
  29874. */
  29875. }, {
  29876. key: 'add',
  29877. value: function add(featureID, value) {
  29878. switch (featureID) {
  29879. case 193:
  29880. this.addMembers(value);
  29881. break;
  29882. default:
  29883. _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'add', this).call(this, featureID, value);
  29884. }
  29885. }
  29886. /**
  29887. * Remove the value of a specific feature by index.
  29888. * @param {int} position the array position of the item to be removed
  29889. * @param {int} featureID the feature id of the attribute to be removed
  29890. */
  29891. }, {
  29892. key: 'removeAt',
  29893. value: function removeAt(featureID, position) {
  29894. switch (featureID) {
  29895. case 193:
  29896. this.removeMembersAt(position);
  29897. break;
  29898. default:
  29899. _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'removeAt', this).call(this, featureID, position);
  29900. }
  29901. }
  29902. /**
  29903. * Remove the value from specific feature.
  29904. * @param {BaseMoserObject} item the item to be removed
  29905. * @param {int} featureID the feature id of the attribute to be removed
  29906. */
  29907. }, {
  29908. key: 'remove',
  29909. value: function remove(featureID, item) {
  29910. switch (featureID) {
  29911. case 193:
  29912. this.removeMembers(item);
  29913. break;
  29914. default:
  29915. _get(MemberType.prototype.__proto__ || Object.getPrototypeOf(MemberType.prototype), 'remove', this).call(this, featureID, item);
  29916. }
  29917. }
  29918. }], [{
  29919. key: 'fromJSON',
  29920. value: function fromJSON(json, factory) {
  29921. var result = factory.createMemberType();
  29922. var featureList = result.getFeatureList(factory);
  29923. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  29924. return result;
  29925. }
  29926. }]);
  29927. return MemberType;
  29928. }(_ObjectType3.default);
  29929. exports.default = MemberType;
  29930. /***/ },
  29931. /* 89 */
  29932. /***/ function(module, exports, __webpack_require__) {
  29933. 'use strict';
  29934. Object.defineProperty(exports, "__esModule", {
  29935. value: true
  29936. });
  29937. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  29938. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  29939. var _ObjectType2 = __webpack_require__(26);
  29940. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  29941. var _MoserObject = __webpack_require__(6);
  29942. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  29943. var _SqlLanguageType = __webpack_require__(90);
  29944. var _SqlLanguageType2 = _interopRequireDefault(_SqlLanguageType);
  29945. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  29946. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  29947. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  29948. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  29949. ** IBM Confidential
  29950. **
  29951. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  29952. **
  29953. ** (C) Copyright IBM Corp. 2021
  29954. **
  29955. ** The source code for this program is not published or otherwise divested of its trade secrets,
  29956. ** irrespective of what has been deposited with the U.S. Copyright Office.
  29957. ************************************************************************/
  29958. // GENERATED
  29959. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  29960. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  29961. //@import com/ibm/bi/platform/moser/common/generated/metadata/SqlLanguageType (runtime) // new
  29962. /**
  29963. * Defines a query against the specified database. <p>Java class for sqlQueryType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="sqlQueryType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="datasourceRef" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;element name="sqlText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="sqlType" type="{}sqlLanguageType" minOccurs="0"/&gt; &lt;element name="projectedItem" type="{}projectedItemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  29964. */
  29965. var SqlQueryType = function (_ObjectType) {
  29966. _inherits(SqlQueryType, _ObjectType);
  29967. function SqlQueryType() {
  29968. var _ref;
  29969. var _temp, _this, _ret;
  29970. _classCallCheck(this, SqlQueryType);
  29971. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  29972. args[_key] = arguments[_key];
  29973. }
  29974. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = SqlQueryType.__proto__ || Object.getPrototypeOf(SqlQueryType)).call.apply(_ref, [this].concat(args))), _this), _this.datasourceRef = null, _this.sqlText = null, _this.sqlType = null, _this.projectedItem = null, _temp), _possibleConstructorReturn(_this, _ret);
  29975. }
  29976. _createClass(SqlQueryType, [{
  29977. key: 'getDatasourceRef',
  29978. /**
  29979. * Gets the value of the datasourceRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the datasourceRef property. <p> For example, to add a new item, do as follows: <pre> getDatasourceRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  29980. */
  29981. value: function getDatasourceRef() {
  29982. if (!this.datasourceRef) {
  29983. this.datasourceRef = [];
  29984. }
  29985. return this.datasourceRef;
  29986. }
  29987. /**
  29988. * Gets the value of the sqlText property.
  29989. * @return {String} possible object is {@link String}
  29990. */
  29991. }, {
  29992. key: 'getSqlText',
  29993. value: function getSqlText() {
  29994. return this.sqlText;
  29995. }
  29996. /**
  29997. * Sets the value of the sqlText property.
  29998. * @param {String} value allowed object is {@link String}
  29999. */
  30000. }, {
  30001. key: 'setSqlText',
  30002. value: function setSqlText(value) {
  30003. var oldValue = this.sqlText;
  30004. this.sqlText = value;
  30005. this._setAndNotify(172, oldValue, value, false, true);
  30006. }
  30007. /**
  30008. * Gets the value of the sqlType property.
  30009. * @return {SqlLanguageType} possible object is {@link SqlLanguageType}
  30010. */
  30011. }, {
  30012. key: 'getSqlType',
  30013. value: function getSqlType() {
  30014. return this.sqlType;
  30015. }
  30016. /**
  30017. * Sets the value of the sqlType property.
  30018. * @param {SqlLanguageType} value allowed object is {@link SqlLanguageType}
  30019. */
  30020. }, {
  30021. key: 'setSqlType',
  30022. value: function setSqlType(value) {
  30023. var oldValue = this.sqlType;
  30024. this.sqlType = value;
  30025. this._setAndNotify(173, oldValue, value, false, true);
  30026. }
  30027. /**
  30028. * Gets the value of the projectedItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the projectedItem property. <p> For example, to add a new item, do as follows: <pre> getProjectedItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ProjectedItemType}
  30029. */
  30030. }, {
  30031. key: 'getProjectedItem',
  30032. value: function getProjectedItem() {
  30033. if (!this.projectedItem) {
  30034. this.projectedItem = [];
  30035. }
  30036. return this.projectedItem;
  30037. }
  30038. /**
  30039. * Gets the value of the <code>datasourceRef</code> property without initializing the property to an empty list if it is unset.
  30040. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  30041. */
  30042. }, {
  30043. key: 'basicGetDatasourceRef',
  30044. value: function basicGetDatasourceRef() {
  30045. return this.datasourceRef;
  30046. }
  30047. /**
  30048. * Gets the value of the <code>projectedItem</code> property without initializing the property to an empty list if it is unset.
  30049. * @return {Array} the list of <code>ProjectedItemType</code> elements, or <code>null</code> if not set
  30050. */
  30051. }, {
  30052. key: 'basicGetProjectedItem',
  30053. value: function basicGetProjectedItem() {
  30054. return this.projectedItem;
  30055. }
  30056. /**
  30057. * Creates a new instance of <code>SqlQueryType</code> object from JSON data.
  30058. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  30059. * @param {Object} json JSON data to be used to create the <code> SqlQueryType</code> object from.
  30060. * @return {SqlQueryType} an object of type <code>SqlQueryType</code>
  30061. */
  30062. }, {
  30063. key: 'addDatasourceRefAt',
  30064. /**
  30065. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  30066. */
  30067. value: function addDatasourceRefAt(position, item) {
  30068. this._addAtAndNotify(this.getDatasourceRef(), position, item, 171, false, false);
  30069. }
  30070. /**
  30071. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  30072. */
  30073. }, {
  30074. key: 'addDatasourceRef',
  30075. value: function addDatasourceRef(item) {
  30076. this.addDatasourceRefAt(this.getDatasourceRef().length, item);
  30077. }
  30078. /**
  30079. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  30080. */
  30081. }, {
  30082. key: 'removeDatasourceRefAt',
  30083. value: function removeDatasourceRefAt(position) {
  30084. this._removeAtAndNotify(this.getDatasourceRef(), position, 171, false);
  30085. }
  30086. /**
  30087. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  30088. */
  30089. }, {
  30090. key: 'removeDatasourceRef',
  30091. value: function removeDatasourceRef(item) {
  30092. var i = this.getDatasourceRef().indexOf(item);
  30093. if (i >= 0) {
  30094. this.removeDatasourceRefAt(i);
  30095. }
  30096. }
  30097. /**
  30098. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  30099. */
  30100. }, {
  30101. key: 'addProjectedItemAt',
  30102. value: function addProjectedItemAt(position, item) {
  30103. this._addAtAndNotify(this.getProjectedItem(), position, item, 174, true, true);
  30104. }
  30105. /**
  30106. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  30107. */
  30108. }, {
  30109. key: 'addProjectedItem',
  30110. value: function addProjectedItem(item) {
  30111. this.addProjectedItemAt(this.getProjectedItem().length, item);
  30112. }
  30113. /**
  30114. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  30115. */
  30116. }, {
  30117. key: 'removeProjectedItemAt',
  30118. value: function removeProjectedItemAt(position) {
  30119. this._removeAtAndNotify(this.getProjectedItem(), position, 174, true);
  30120. }
  30121. /**
  30122. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  30123. */
  30124. }, {
  30125. key: 'removeProjectedItem',
  30126. value: function removeProjectedItem(item) {
  30127. var i = this.getProjectedItem().indexOf(item);
  30128. if (i >= 0) {
  30129. this.removeProjectedItemAt(i);
  30130. }
  30131. }
  30132. /**
  30133. * Retrieves the type of this object
  30134. * @return {String} the object type in a <code>String</code>
  30135. */
  30136. }, {
  30137. key: 'getObjectType',
  30138. value: function getObjectType() {
  30139. return "SqlQueryType";
  30140. }
  30141. /**
  30142. * Get a list of FeatureObjects
  30143. * @return {Array} A list of FeatureObjects
  30144. */
  30145. }, {
  30146. key: 'getFeatureList',
  30147. value: function getFeatureList(factory) {
  30148. var featureList = [];
  30149. featureList.push(this.createFeature(true, false, false, 171, "datasourceRef", null));
  30150. featureList.push(this.createFeature(false, false, false, 172, "sqlText", null));
  30151. featureList.push(this.createFeature(false, true, false, 173, "sqlType", _SqlLanguageType2.default));
  30152. var clazz;
  30153. if (factory) {
  30154. clazz = factory.createProjectedItemType().getClass();
  30155. }
  30156. featureList.push(this.createFeature(true, false, true, 174, "projectedItem", clazz));
  30157. Array.prototype.push.apply(featureList, _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'getFeatureList', this).call(this, factory));
  30158. return featureList;
  30159. }
  30160. /**
  30161. * Set the value of a specific feature.
  30162. * @param {BaseMoserObject} value the value to set
  30163. * @param {int} featureID the feature id of the attribute to be set
  30164. */
  30165. }, {
  30166. key: 'set',
  30167. value: function set(featureID, value) {
  30168. switch (featureID) {
  30169. case 172:
  30170. this.setSqlText(value);
  30171. break;
  30172. case 173:
  30173. this.setSqlType(value);
  30174. break;
  30175. default:
  30176. _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'set', this).call(this, featureID, value);
  30177. }
  30178. }
  30179. /**
  30180. * Set the value of a specific feature.
  30181. * @param {BaseMoserObject} value the value to set the value to set
  30182. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  30183. */
  30184. }, {
  30185. key: '_setList',
  30186. value: function _setList(featureID, value) {
  30187. switch (featureID) {
  30188. case 171:
  30189. this.datasourceRef = value;
  30190. break;
  30191. case 174:
  30192. this.projectedItem = value;
  30193. break;
  30194. default:
  30195. _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), '_setList', this).call(this, featureID, value);
  30196. }
  30197. }
  30198. /**
  30199. * Get the value of a specific feature.
  30200. * @param {int} featureID the feature id of the attribute to get
  30201. */
  30202. }, {
  30203. key: 'get',
  30204. value: function get(featureID) {
  30205. switch (featureID) {
  30206. case 171:
  30207. return this.getDatasourceRef();
  30208. case 172:
  30209. return this.getSqlText();
  30210. case 173:
  30211. return this.getSqlType();
  30212. case 174:
  30213. return this.getProjectedItem();
  30214. default:
  30215. return _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'get', this).call(this, featureID);
  30216. }
  30217. }
  30218. /**
  30219. * Get the value of a specific feature.
  30220. * @param {int} featureID the feature id of the attribute to get
  30221. */
  30222. }, {
  30223. key: 'basicGet',
  30224. value: function basicGet(featureID) {
  30225. switch (featureID) {
  30226. case 171:
  30227. return this.basicGetDatasourceRef();
  30228. case 172:
  30229. return this.getSqlText();
  30230. case 173:
  30231. return this.getSqlType();
  30232. case 174:
  30233. return this.basicGetProjectedItem();
  30234. default:
  30235. return _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'basicGet', this).call(this, featureID);
  30236. }
  30237. }
  30238. /**
  30239. * Add the value of a specific feature at a specific position
  30240. * @param {int} position the array position of the item to be added
  30241. * @param {BaseMoserObject} value the value to add
  30242. * @param {int} featureID the feature id of the attribute to be added
  30243. */
  30244. }, {
  30245. key: 'addAt',
  30246. value: function addAt(featureID, position, value) {
  30247. switch (featureID) {
  30248. case 171:
  30249. this.addDatasourceRefAt(position, value);
  30250. break;
  30251. case 174:
  30252. this.addProjectedItemAt(position, value);
  30253. break;
  30254. default:
  30255. _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'addAt', this).call(this, featureID, position, value);
  30256. }
  30257. }
  30258. /**
  30259. * Add the value to the end of a specific collection feature
  30260. * @param {BaseMoserObject} value the value to add
  30261. * @param {int} featureID the feature id of the attribute to be added
  30262. */
  30263. }, {
  30264. key: 'add',
  30265. value: function add(featureID, value) {
  30266. switch (featureID) {
  30267. case 171:
  30268. this.addDatasourceRef(value);
  30269. break;
  30270. case 174:
  30271. this.addProjectedItem(value);
  30272. break;
  30273. default:
  30274. _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'add', this).call(this, featureID, value);
  30275. }
  30276. }
  30277. /**
  30278. * Remove the value of a specific feature by index.
  30279. * @param {int} position the array position of the item to be removed
  30280. * @param {int} featureID the feature id of the attribute to be removed
  30281. */
  30282. }, {
  30283. key: 'removeAt',
  30284. value: function removeAt(featureID, position) {
  30285. switch (featureID) {
  30286. case 171:
  30287. this.removeDatasourceRefAt(position);
  30288. break;
  30289. case 174:
  30290. this.removeProjectedItemAt(position);
  30291. break;
  30292. default:
  30293. _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'removeAt', this).call(this, featureID, position);
  30294. }
  30295. }
  30296. /**
  30297. * Remove the value from specific feature.
  30298. * @param {BaseMoserObject} item the item to be removed
  30299. * @param {int} featureID the feature id of the attribute to be removed
  30300. */
  30301. }, {
  30302. key: 'remove',
  30303. value: function remove(featureID, item) {
  30304. switch (featureID) {
  30305. case 171:
  30306. this.removeDatasourceRef(item);
  30307. break;
  30308. case 174:
  30309. this.removeProjectedItem(item);
  30310. break;
  30311. default:
  30312. _get(SqlQueryType.prototype.__proto__ || Object.getPrototypeOf(SqlQueryType.prototype), 'remove', this).call(this, featureID, item);
  30313. }
  30314. }
  30315. }], [{
  30316. key: 'fromJSON',
  30317. value: function fromJSON(json, factory) {
  30318. var result = factory.createSqlQueryType();
  30319. var featureList = result.getFeatureList(factory);
  30320. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  30321. return result;
  30322. }
  30323. }]);
  30324. return SqlQueryType;
  30325. }(_ObjectType3.default);
  30326. exports.default = SqlQueryType;
  30327. /***/ },
  30328. /* 90 */
  30329. /***/ function(module, exports, __webpack_require__) {
  30330. "use strict";
  30331. Object.defineProperty(exports, "__esModule", {
  30332. value: true
  30333. });
  30334. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  30335. var _Enum2 = __webpack_require__(12);
  30336. var _Enum3 = _interopRequireDefault(_Enum2);
  30337. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  30338. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  30339. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  30340. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  30341. ** IBM Confidential
  30342. **
  30343. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  30344. **
  30345. ** (C) Copyright IBM Corp. 2020
  30346. **
  30347. ** The source code for this program is not published or otherwise divested of its trade secrets,
  30348. ** irrespective of what has been deposited with the U.S. Copyright Office.
  30349. ************************************************************************/
  30350. // GENERATED
  30351. //@import Enum (loadtime) // superclass
  30352. /**
  30353. * <p>Java class for sqlLanguageType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="sqlLanguageType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"&gt; &lt;enumeration value="cognos"/&gt; &lt;enumeration value="native"/&gt; &lt;enumeration value="passThrough"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  30354. */
  30355. var SqlLanguageType = function (_Enum) {
  30356. _inherits(SqlLanguageType, _Enum);
  30357. /**
  30358. * Native SQL cannot be modified except by macro substitution, but can be combined with other SQL into a single SQL query to send to the data source.
  30359. */
  30360. function SqlLanguageType(v) {
  30361. _classCallCheck(this, SqlLanguageType);
  30362. var _this = _possibleConstructorReturn(this, (SqlLanguageType.__proto__ || Object.getPrototypeOf(SqlLanguageType)).call(this, v));
  30363. _this.enumValue = null;
  30364. _this.enumValue = v;
  30365. return _this;
  30366. }
  30367. /**
  30368. * Pass-through SQL cannot be modified except by macro substitution, and cannot be combined with other SQL. It must be sent to the data source as a stand-alone query. However, results can be combined with results of other queries.
  30369. */
  30370. /**
  30371. * Cognos SQL can be optimized by the system and combined with other SQL before being sent to the data source.
  30372. */
  30373. _createClass(SqlLanguageType, [{
  30374. key: "value",
  30375. value: function value() {
  30376. return this.enumValue;
  30377. }
  30378. }, {
  30379. key: "getResourceId",
  30380. value: function getResourceId() {
  30381. return "SqlLanguageType" + "_" + this.value();
  30382. }
  30383. }], [{
  30384. key: "fromValue",
  30385. value: function fromValue(v) {
  30386. for (var i = 0; i < SqlLanguageType.values().length; ++i) {
  30387. if (SqlLanguageType.values()[i].enumValue == v) {
  30388. return SqlLanguageType.values()[i];
  30389. }
  30390. }
  30391. throw new Error(v);
  30392. }
  30393. }]);
  30394. return SqlLanguageType;
  30395. }(_Enum3.default);
  30396. SqlLanguageType.COGNOS = SqlLanguageType.newLiteral("cognos");
  30397. SqlLanguageType.NATIVE = SqlLanguageType.newLiteral("native");
  30398. SqlLanguageType.PASS_THROUGH = SqlLanguageType.newLiteral("passThrough");
  30399. exports.default = SqlLanguageType;
  30400. /***/ },
  30401. /* 91 */
  30402. /***/ function(module, exports, __webpack_require__) {
  30403. "use strict";
  30404. Object.defineProperty(exports, "__esModule", {
  30405. value: true
  30406. });
  30407. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  30408. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  30409. var _MoserObject2 = __webpack_require__(6);
  30410. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  30411. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  30412. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  30413. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  30414. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  30415. ** IBM Confidential
  30416. **
  30417. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  30418. **
  30419. ** (C) Copyright IBM Corp. 2021
  30420. **
  30421. ** The source code for this program is not published or otherwise divested of its trade secrets,
  30422. ** irrespective of what has been deposited with the U.S. Copyright Office.
  30423. ************************************************************************/
  30424. // GENERATED
  30425. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  30426. /**
  30427. * <p>Java class for itemNormalizationType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="itemNormalizationType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="itemNormalizationGroup" type="{}itemNormalizationGroupType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  30428. */
  30429. var ItemNormalizationType = function (_MoserObject) {
  30430. _inherits(ItemNormalizationType, _MoserObject);
  30431. function ItemNormalizationType() {
  30432. var _ref;
  30433. var _temp, _this, _ret;
  30434. _classCallCheck(this, ItemNormalizationType);
  30435. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  30436. args[_key] = arguments[_key];
  30437. }
  30438. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ItemNormalizationType.__proto__ || Object.getPrototypeOf(ItemNormalizationType)).call.apply(_ref, [this].concat(args))), _this), _this.itemNormalizationGroup = null, _temp), _possibleConstructorReturn(_this, _ret);
  30439. }
  30440. _createClass(ItemNormalizationType, [{
  30441. key: "getItemNormalizationGroup",
  30442. /**
  30443. * Gets the value of the itemNormalizationGroup property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the itemNormalizationGroup property. <p> For example, to add a new item, do as follows: <pre> getItemNormalizationGroup().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ItemNormalizationGroupType}
  30444. */
  30445. value: function getItemNormalizationGroup() {
  30446. if (!this.itemNormalizationGroup) {
  30447. this.itemNormalizationGroup = [];
  30448. }
  30449. return this.itemNormalizationGroup;
  30450. }
  30451. /**
  30452. * Gets the value of the <code>itemNormalizationGroup</code> property without initializing the property to an empty list if it is unset.
  30453. * @return {Array} the list of <code>ItemNormalizationGroupType</code> elements, or <code>null</code> if not set
  30454. */
  30455. }, {
  30456. key: "basicGetItemNormalizationGroup",
  30457. value: function basicGetItemNormalizationGroup() {
  30458. return this.itemNormalizationGroup;
  30459. }
  30460. /**
  30461. * Creates a new instance of <code>ItemNormalizationType</code> object from JSON data.
  30462. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  30463. * @param {Object} json JSON data to be used to create the <code> ItemNormalizationType</code> object from.
  30464. * @return {ItemNormalizationType} an object of type <code>ItemNormalizationType</code>
  30465. */
  30466. }, {
  30467. key: "addItemNormalizationGroupAt",
  30468. /**
  30469. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  30470. */
  30471. value: function addItemNormalizationGroupAt(position, item) {
  30472. this._addAtAndNotify(this.getItemNormalizationGroup(), position, item, 175, true, true);
  30473. }
  30474. /**
  30475. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  30476. */
  30477. }, {
  30478. key: "addItemNormalizationGroup",
  30479. value: function addItemNormalizationGroup(item) {
  30480. this.addItemNormalizationGroupAt(this.getItemNormalizationGroup().length, item);
  30481. }
  30482. /**
  30483. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  30484. */
  30485. }, {
  30486. key: "removeItemNormalizationGroupAt",
  30487. value: function removeItemNormalizationGroupAt(position) {
  30488. this._removeAtAndNotify(this.getItemNormalizationGroup(), position, 175, true);
  30489. }
  30490. /**
  30491. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  30492. */
  30493. }, {
  30494. key: "removeItemNormalizationGroup",
  30495. value: function removeItemNormalizationGroup(item) {
  30496. var i = this.getItemNormalizationGroup().indexOf(item);
  30497. if (i >= 0) {
  30498. this.removeItemNormalizationGroupAt(i);
  30499. }
  30500. }
  30501. /**
  30502. * Retrieves the type of this object
  30503. * @return {String} the object type in a <code>String</code>
  30504. */
  30505. }, {
  30506. key: "getObjectType",
  30507. value: function getObjectType() {
  30508. return "ItemNormalizationType";
  30509. }
  30510. /**
  30511. * Get a list of FeatureObjects
  30512. * @return {Array} A list of FeatureObjects
  30513. */
  30514. }, {
  30515. key: "getFeatureList",
  30516. value: function getFeatureList(factory) {
  30517. var featureList = [];
  30518. var clazz;
  30519. if (factory) {
  30520. clazz = factory.createItemNormalizationGroupType().getClass();
  30521. }
  30522. featureList.push(this.createFeature(true, false, true, 175, "itemNormalizationGroup", clazz));
  30523. Array.prototype.push.apply(featureList, _get(ItemNormalizationType.prototype.__proto__ || Object.getPrototypeOf(ItemNormalizationType.prototype), "getFeatureList", this).call(this, factory));
  30524. return featureList;
  30525. }
  30526. /**
  30527. * Set the value of a specific feature.
  30528. * @param {BaseMoserObject} value the value to set
  30529. * @param {int} featureID the feature id of the attribute to be set
  30530. */
  30531. }, {
  30532. key: "set",
  30533. value: function set(featureID, value) {
  30534. switch (featureID) {
  30535. default:
  30536. throw new Error("The feature " + featureID + " is not valid.");
  30537. }
  30538. }
  30539. /**
  30540. * Set the value of a specific feature.
  30541. * @param {BaseMoserObject} value the value to set the value to set
  30542. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  30543. */
  30544. }, {
  30545. key: "_setList",
  30546. value: function _setList(featureID, value) {
  30547. switch (featureID) {
  30548. case 175:
  30549. this.itemNormalizationGroup = value;
  30550. break;
  30551. default:
  30552. throw new Error("The feature " + featureID + " is not valid.");
  30553. }
  30554. }
  30555. /**
  30556. * Get the value of a specific feature.
  30557. * @param {int} featureID the feature id of the attribute to get
  30558. */
  30559. }, {
  30560. key: "get",
  30561. value: function get(featureID) {
  30562. switch (featureID) {
  30563. case 175:
  30564. return this.getItemNormalizationGroup();
  30565. default:
  30566. throw new Error("The feature " + featureID + " is not valid.");
  30567. }
  30568. }
  30569. /**
  30570. * Get the value of a specific feature.
  30571. * @param {int} featureID the feature id of the attribute to get
  30572. */
  30573. }, {
  30574. key: "basicGet",
  30575. value: function basicGet(featureID) {
  30576. switch (featureID) {
  30577. case 175:
  30578. return this.basicGetItemNormalizationGroup();
  30579. default:
  30580. throw new Error("The feature " + featureID + " is not valid.");
  30581. }
  30582. }
  30583. /**
  30584. * Add the value of a specific feature at a specific position
  30585. * @param {int} position the array position of the item to be added
  30586. * @param {BaseMoserObject} value the value to add
  30587. * @param {int} featureID the feature id of the attribute to be added
  30588. */
  30589. }, {
  30590. key: "addAt",
  30591. value: function addAt(featureID, position, value) {
  30592. switch (featureID) {
  30593. case 175:
  30594. this.addItemNormalizationGroupAt(position, value);
  30595. break;
  30596. default:
  30597. throw new Error("The feature " + featureID + " is not valid.");
  30598. }
  30599. }
  30600. /**
  30601. * Add the value to the end of a specific collection feature
  30602. * @param {BaseMoserObject} value the value to add
  30603. * @param {int} featureID the feature id of the attribute to be added
  30604. */
  30605. }, {
  30606. key: "add",
  30607. value: function add(featureID, value) {
  30608. switch (featureID) {
  30609. case 175:
  30610. this.addItemNormalizationGroup(value);
  30611. break;
  30612. default:
  30613. throw new Error("The feature " + featureID + " is not valid.");
  30614. }
  30615. }
  30616. /**
  30617. * Remove the value of a specific feature by index.
  30618. * @param {int} position the array position of the item to be removed
  30619. * @param {int} featureID the feature id of the attribute to be removed
  30620. */
  30621. }, {
  30622. key: "removeAt",
  30623. value: function removeAt(featureID, position) {
  30624. switch (featureID) {
  30625. case 175:
  30626. this.removeItemNormalizationGroupAt(position);
  30627. break;
  30628. default:
  30629. throw new Error("The feature " + featureID + " is not valid.");
  30630. }
  30631. }
  30632. /**
  30633. * Remove the value from specific feature.
  30634. * @param {BaseMoserObject} item the item to be removed
  30635. * @param {int} featureID the feature id of the attribute to be removed
  30636. */
  30637. }, {
  30638. key: "remove",
  30639. value: function remove(featureID, item) {
  30640. switch (featureID) {
  30641. case 175:
  30642. this.removeItemNormalizationGroup(item);
  30643. break;
  30644. default:
  30645. throw new Error("The feature " + featureID + " is not valid.");
  30646. }
  30647. }
  30648. }], [{
  30649. key: "fromJSON",
  30650. value: function fromJSON(json, factory) {
  30651. var result = factory.createItemNormalizationType();
  30652. var featureList = result.getFeatureList(factory);
  30653. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  30654. return result;
  30655. }
  30656. }]);
  30657. return ItemNormalizationType;
  30658. }(_MoserObject3.default);
  30659. exports.default = ItemNormalizationType;
  30660. /***/ },
  30661. /* 92 */
  30662. /***/ function(module, exports, __webpack_require__) {
  30663. 'use strict';
  30664. Object.defineProperty(exports, "__esModule", {
  30665. value: true
  30666. });
  30667. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  30668. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  30669. var _BaseQueryItemType2 = __webpack_require__(43);
  30670. var _BaseQueryItemType3 = _interopRequireDefault(_BaseQueryItemType2);
  30671. var _MoserObject = __webpack_require__(6);
  30672. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  30673. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  30674. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  30675. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  30676. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  30677. ** IBM Confidential
  30678. **
  30679. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  30680. **
  30681. ** (C) Copyright IBM Corp. 2020
  30682. **
  30683. ** The source code for this program is not published or otherwise divested of its trade secrets,
  30684. ** irrespective of what has been deposited with the U.S. Copyright Office.
  30685. ************************************************************************/
  30686. // GENERATED
  30687. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseQueryItemType (loadtime) // superclass
  30688. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  30689. /**
  30690. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}baseQueryItemType"&gt; &lt;sequence&gt; &lt;element name="numberOfDistinctValues" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="refToHierarchy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  30691. */
  30692. var NamedSet = function (_BaseQueryItemType) {
  30693. _inherits(NamedSet, _BaseQueryItemType);
  30694. function NamedSet() {
  30695. var _ref;
  30696. var _temp, _this, _ret;
  30697. _classCallCheck(this, NamedSet);
  30698. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  30699. args[_key] = arguments[_key];
  30700. }
  30701. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = NamedSet.__proto__ || Object.getPrototypeOf(NamedSet)).call.apply(_ref, [this].concat(args))), _this), _this.numberOfDistinctValues = null, _this.refToHierarchy = null, _temp), _possibleConstructorReturn(_this, _ret);
  30702. }
  30703. _createClass(NamedSet, [{
  30704. key: 'getNumberOfDistinctValues',
  30705. /**
  30706. * Gets the value of the numberOfDistinctValues property.
  30707. * @return {String} possible object is {@link String}
  30708. */
  30709. value: function getNumberOfDistinctValues() {
  30710. return this.numberOfDistinctValues;
  30711. }
  30712. /**
  30713. * Sets the value of the numberOfDistinctValues property.
  30714. * @param {String} value allowed object is {@link String}
  30715. */
  30716. }, {
  30717. key: 'setNumberOfDistinctValues',
  30718. value: function setNumberOfDistinctValues(value) {
  30719. var oldValue = this.numberOfDistinctValues;
  30720. this.numberOfDistinctValues = value;
  30721. this._setAndNotify(69, oldValue, value, false, true);
  30722. }
  30723. /**
  30724. * Gets the value of the refToHierarchy property.
  30725. * @return {String} possible object is {@link String}
  30726. */
  30727. }, {
  30728. key: 'getRefToHierarchy',
  30729. value: function getRefToHierarchy() {
  30730. return this.refToHierarchy;
  30731. }
  30732. /**
  30733. * Sets the value of the refToHierarchy property.
  30734. * @param {String} value allowed object is {@link String}
  30735. */
  30736. }, {
  30737. key: 'setRefToHierarchy',
  30738. value: function setRefToHierarchy(value) {
  30739. var oldValue = this.refToHierarchy;
  30740. this.refToHierarchy = value;
  30741. this._setAndNotify(70, oldValue, value, false, true);
  30742. }
  30743. /**
  30744. * Creates a new instance of <code>NamedSet</code> object from JSON data.
  30745. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  30746. * @param {Object} json JSON data to be used to create the <code> NamedSet</code> object from.
  30747. * @return {NamedSet} an object of type <code>NamedSet</code>
  30748. */
  30749. }, {
  30750. key: 'getObjectType',
  30751. /**
  30752. * Retrieves the type of this object
  30753. * @return {String} the object type in a <code>String</code>
  30754. */
  30755. value: function getObjectType() {
  30756. return "NamedSet";
  30757. }
  30758. /**
  30759. * Get a list of FeatureObjects
  30760. * @return {Array} A list of FeatureObjects
  30761. */
  30762. }, {
  30763. key: 'getFeatureList',
  30764. value: function getFeatureList(factory) {
  30765. var featureList = [];
  30766. featureList.push(this.createFeature(false, false, false, 69, "numberOfDistinctValues", null));
  30767. featureList.push(this.createFeature(false, false, false, 70, "refToHierarchy", null));
  30768. Array.prototype.push.apply(featureList, _get(NamedSet.prototype.__proto__ || Object.getPrototypeOf(NamedSet.prototype), 'getFeatureList', this).call(this, factory));
  30769. return featureList;
  30770. }
  30771. /**
  30772. * Set the value of a specific feature.
  30773. * @param {BaseMoserObject} value the value to set
  30774. * @param {int} featureID the feature id of the attribute to be set
  30775. */
  30776. }, {
  30777. key: 'set',
  30778. value: function set(featureID, value) {
  30779. switch (featureID) {
  30780. case 69:
  30781. this.setNumberOfDistinctValues(value);
  30782. break;
  30783. case 70:
  30784. this.setRefToHierarchy(value);
  30785. break;
  30786. default:
  30787. _get(NamedSet.prototype.__proto__ || Object.getPrototypeOf(NamedSet.prototype), 'set', this).call(this, featureID, value);
  30788. }
  30789. }
  30790. /**
  30791. * Get the value of a specific feature.
  30792. * @param {int} featureID the feature id of the attribute to get
  30793. */
  30794. }, {
  30795. key: 'get',
  30796. value: function get(featureID) {
  30797. switch (featureID) {
  30798. case 69:
  30799. return this.getNumberOfDistinctValues();
  30800. case 70:
  30801. return this.getRefToHierarchy();
  30802. default:
  30803. return _get(NamedSet.prototype.__proto__ || Object.getPrototypeOf(NamedSet.prototype), 'get', this).call(this, featureID);
  30804. }
  30805. }
  30806. /**
  30807. * Get the value of a specific feature.
  30808. * @param {int} featureID the feature id of the attribute to get
  30809. */
  30810. }, {
  30811. key: 'basicGet',
  30812. value: function basicGet(featureID) {
  30813. switch (featureID) {
  30814. case 69:
  30815. return this.getNumberOfDistinctValues();
  30816. case 70:
  30817. return this.getRefToHierarchy();
  30818. default:
  30819. return _get(NamedSet.prototype.__proto__ || Object.getPrototypeOf(NamedSet.prototype), 'basicGet', this).call(this, featureID);
  30820. }
  30821. }
  30822. }], [{
  30823. key: 'fromJSON',
  30824. value: function fromJSON(json, factory) {
  30825. var result = factory.createNamedSet();
  30826. var featureList = result.getFeatureList(factory);
  30827. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  30828. return result;
  30829. }
  30830. }]);
  30831. return NamedSet;
  30832. }(_BaseQueryItemType3.default);
  30833. exports.default = NamedSet;
  30834. /***/ },
  30835. /* 93 */
  30836. /***/ function(module, exports, __webpack_require__) {
  30837. 'use strict';
  30838. Object.defineProperty(exports, "__esModule", {
  30839. value: true
  30840. });
  30841. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  30842. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  30843. var _MoserObject2 = __webpack_require__(6);
  30844. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  30845. var _CardinalityEnum = __webpack_require__(59);
  30846. var _CardinalityEnum2 = _interopRequireDefault(_CardinalityEnum);
  30847. var _ReferenceResolver = __webpack_require__(40);
  30848. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  30849. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  30850. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  30851. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  30852. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  30853. ** IBM Confidential
  30854. **
  30855. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  30856. **
  30857. ** (C) Copyright IBM Corp. 2021
  30858. **
  30859. ** The source code for this program is not published or otherwise divested of its trade secrets,
  30860. ** irrespective of what has been deposited with the U.S. Copyright Office.
  30861. ************************************************************************/
  30862. // GENERATED
  30863. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // getModuleObject, superclass, fromJSONHelper
  30864. //@import com/ibm/bi/platform/moser/common/generated/metadata/CardinalityEnum (runtime) // new
  30865. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (runtime) // resolveCardinalityType
  30866. /**
  30867. * <p>Java class for cardinalityType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="cardinalityType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="mincard" type="{}cardinalityEnum" minOccurs="0"/&gt; &lt;element name="maxcard" type="{}cardinalityEnum" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  30868. */
  30869. var CardinalityType = function (_MoserObject) {
  30870. _inherits(CardinalityType, _MoserObject);
  30871. function CardinalityType() {
  30872. var _ref;
  30873. var _temp, _this, _ret;
  30874. _classCallCheck(this, CardinalityType);
  30875. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  30876. args[_key] = arguments[_key];
  30877. }
  30878. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CardinalityType.__proto__ || Object.getPrototypeOf(CardinalityType)).call.apply(_ref, [this].concat(args))), _this), _this.ref = null, _this.mincard = null, _this.maxcard = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  30879. }
  30880. _createClass(CardinalityType, [{
  30881. key: 'getRef',
  30882. /**
  30883. * Gets the value of the ref property.
  30884. * @return {String} possible object is {@link String}
  30885. */
  30886. value: function getRef() {
  30887. return this.ref;
  30888. }
  30889. /**
  30890. * Sets the value of the ref property.
  30891. * @param {String} value allowed object is {@link String}
  30892. */
  30893. }, {
  30894. key: 'setRef',
  30895. value: function setRef(value) {
  30896. var oldValue = this.ref;
  30897. this.ref = value;
  30898. this._setAndNotify(36, oldValue, value, false, false);
  30899. this._referencedObject = null;
  30900. }
  30901. /**
  30902. * Gets the value of the mincard property.
  30903. * @return {CardinalityEnum} possible object is {@link CardinalityEnum}
  30904. */
  30905. }, {
  30906. key: 'getMincard',
  30907. value: function getMincard() {
  30908. return this.mincard;
  30909. }
  30910. /**
  30911. * Sets the value of the mincard property.
  30912. * @param {CardinalityEnum} value allowed object is {@link CardinalityEnum}
  30913. */
  30914. }, {
  30915. key: 'setMincard',
  30916. value: function setMincard(value) {
  30917. var oldValue = this.mincard;
  30918. this.mincard = value;
  30919. this._setAndNotify(207, oldValue, value, false, false);
  30920. }
  30921. /**
  30922. * Gets the value of the maxcard property.
  30923. * @return {CardinalityEnum} possible object is {@link CardinalityEnum}
  30924. */
  30925. }, {
  30926. key: 'getMaxcard',
  30927. value: function getMaxcard() {
  30928. return this.maxcard;
  30929. }
  30930. /**
  30931. * Sets the value of the maxcard property.
  30932. * @param {CardinalityEnum} value allowed object is {@link CardinalityEnum}
  30933. */
  30934. }, {
  30935. key: 'setMaxcard',
  30936. value: function setMaxcard(value) {
  30937. var oldValue = this.maxcard;
  30938. this.maxcard = value;
  30939. this._setAndNotify(208, oldValue, value, false, false);
  30940. }
  30941. /**
  30942. * Creates a new instance of <code>CardinalityType</code> object from JSON data.
  30943. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  30944. * @param {Object} json JSON data to be used to create the <code> CardinalityType</code> object from.
  30945. * @return {CardinalityType} an object of type <code>CardinalityType</code>
  30946. */
  30947. }, {
  30948. key: 'getObjectType',
  30949. /**
  30950. * Retrieves the type of this object
  30951. * @return {String} the object type in a <code>String</code>
  30952. */
  30953. value: function getObjectType() {
  30954. return "CardinalityType";
  30955. }
  30956. /**
  30957. * Get a list of FeatureObjects
  30958. * @return {Array} A list of FeatureObjects
  30959. */
  30960. }, {
  30961. key: 'getFeatureList',
  30962. value: function getFeatureList(factory) {
  30963. var featureList = [];
  30964. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  30965. featureList.push(this.createFeature(false, true, false, 207, "mincard", _CardinalityEnum2.default));
  30966. featureList.push(this.createFeature(false, true, false, 208, "maxcard", _CardinalityEnum2.default));
  30967. Array.prototype.push.apply(featureList, _get(CardinalityType.prototype.__proto__ || Object.getPrototypeOf(CardinalityType.prototype), 'getFeatureList', this).call(this, factory));
  30968. return featureList;
  30969. }
  30970. /**
  30971. * Set the value of a specific feature.
  30972. * @param {BaseMoserObject} value the value to set
  30973. * @param {int} featureID the feature id of the attribute to be set
  30974. */
  30975. }, {
  30976. key: 'set',
  30977. value: function set(featureID, value) {
  30978. switch (featureID) {
  30979. case 36:
  30980. this.setRef(value);
  30981. break;
  30982. case 207:
  30983. this.setMincard(value);
  30984. break;
  30985. case 208:
  30986. this.setMaxcard(value);
  30987. break;
  30988. default:
  30989. throw new Error("The feature " + featureID + " is not valid.");
  30990. }
  30991. }
  30992. /**
  30993. * Get the value of a specific feature.
  30994. * @param {int} featureID the feature id of the attribute to get
  30995. */
  30996. }, {
  30997. key: 'get',
  30998. value: function get(featureID) {
  30999. switch (featureID) {
  31000. case 36:
  31001. return this.getRef();
  31002. case 207:
  31003. return this.getMincard();
  31004. case 208:
  31005. return this.getMaxcard();
  31006. default:
  31007. throw new Error("The feature " + featureID + " is not valid.");
  31008. }
  31009. }
  31010. /**
  31011. * Get the value of a specific feature.
  31012. * @param {int} featureID the feature id of the attribute to get
  31013. */
  31014. }, {
  31015. key: 'basicGet',
  31016. value: function basicGet(featureID) {
  31017. switch (featureID) {
  31018. case 36:
  31019. return this.getRef();
  31020. case 207:
  31021. return this.getMincard();
  31022. case 208:
  31023. return this.getMaxcard();
  31024. default:
  31025. throw new Error("The feature " + featureID + " is not valid.");
  31026. }
  31027. }
  31028. /**
  31029. * Set the resolved object based on reference.
  31030. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  31031. */
  31032. }, {
  31033. key: 'setReferencedObject',
  31034. value: function setReferencedObject(referencedObject) {
  31035. this._referencedObject = referencedObject;
  31036. }
  31037. /**
  31038. * Get the resolved object based on reference.
  31039. * @return {MoserObject} the referenced <code>MoserObject</code>
  31040. */
  31041. }, {
  31042. key: 'getReferencedObject',
  31043. value: function getReferencedObject() {
  31044. if (!this._referencedObject) {
  31045. _ReferenceResolver2.default.resolveCardinalityType(this, _MoserObject3.default.getModuleObject(this));
  31046. }
  31047. return this._referencedObject;
  31048. }
  31049. }, {
  31050. key: 'clone',
  31051. value: function clone() {
  31052. var cloned = _get(CardinalityType.prototype.__proto__ || Object.getPrototypeOf(CardinalityType.prototype), 'clone', this).call(this);
  31053. cloned.setReferencedObject(this._referencedObject);
  31054. return cloned;
  31055. }
  31056. }], [{
  31057. key: 'fromJSON',
  31058. value: function fromJSON(json, factory) {
  31059. var result = factory.createCardinalityType();
  31060. var featureList = result.getFeatureList(factory);
  31061. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  31062. return result;
  31063. }
  31064. }]);
  31065. return CardinalityType;
  31066. }(_MoserObject3.default);
  31067. exports.default = CardinalityType;
  31068. /***/ },
  31069. /* 94 */
  31070. /***/ function(module, exports, __webpack_require__) {
  31071. 'use strict';
  31072. Object.defineProperty(exports, "__esModule", {
  31073. value: true
  31074. });
  31075. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  31076. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  31077. var _ObjectType2 = __webpack_require__(26);
  31078. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  31079. var _MoserObject = __webpack_require__(6);
  31080. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  31081. var _MoserObjectUtils = __webpack_require__(27);
  31082. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  31083. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  31084. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  31085. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  31086. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  31087. ** IBM Confidential
  31088. **
  31089. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  31090. **
  31091. ** (C) Copyright IBM Corp. 2020
  31092. **
  31093. ** The source code for this program is not published or otherwise divested of its trade secrets,
  31094. ** irrespective of what has been deposited with the U.S. Copyright Office.
  31095. ************************************************************************/
  31096. // GENERATED
  31097. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  31098. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  31099. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForLocalRef
  31100. /**
  31101. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="calculatedMember" type="{}calculatedMemberType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="localRef" type="{}localRefType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  31102. */
  31103. var ItemHierarchy = function (_ObjectType) {
  31104. _inherits(ItemHierarchy, _ObjectType);
  31105. function ItemHierarchy() {
  31106. var _ref;
  31107. var _temp, _this, _ret;
  31108. _classCallCheck(this, ItemHierarchy);
  31109. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  31110. args[_key] = arguments[_key];
  31111. }
  31112. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ItemHierarchy.__proto__ || Object.getPrototypeOf(ItemHierarchy)).call.apply(_ref, [this].concat(args))), _this), _this.ref = null, _this.calculatedMember = null, _this.localRef = null, _temp), _possibleConstructorReturn(_this, _ret);
  31113. }
  31114. _createClass(ItemHierarchy, [{
  31115. key: 'getRef',
  31116. /**
  31117. * Gets the value of the ref property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the ref property. <p> For example, to add a new item, do as follows: <pre> getRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  31118. */
  31119. value: function getRef() {
  31120. if (!this.ref) {
  31121. this.ref = [];
  31122. }
  31123. return this.ref;
  31124. }
  31125. /**
  31126. * Gets the value of the calculatedMember property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the calculatedMember property. <p> For example, to add a new item, do as follows: <pre> getCalculatedMember().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link CalculatedMemberType}
  31127. */
  31128. }, {
  31129. key: 'getCalculatedMember',
  31130. value: function getCalculatedMember() {
  31131. if (!this.calculatedMember) {
  31132. this.calculatedMember = [];
  31133. }
  31134. return this.calculatedMember;
  31135. }
  31136. /**
  31137. * Gets the value of the localRef property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the localRef property. <p> For example, to add a new item, do as follows: <pre> getLocalRef().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link LocalRefType}
  31138. */
  31139. }, {
  31140. key: 'getLocalRef',
  31141. value: function getLocalRef() {
  31142. if (!this.localRef) {
  31143. this.localRef = [];
  31144. }
  31145. return this.localRef;
  31146. }
  31147. /**
  31148. * Gets the value of the <code>ref</code> property without initializing the property to an empty list if it is unset.
  31149. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  31150. */
  31151. }, {
  31152. key: 'basicGetRef',
  31153. value: function basicGetRef() {
  31154. return this.ref;
  31155. }
  31156. /**
  31157. * Gets the value of the <code>calculatedMember</code> property without initializing the property to an empty list if it is unset.
  31158. * @return {Array} the list of <code>CalculatedMemberType</code> elements, or <code>null</code> if not set
  31159. */
  31160. }, {
  31161. key: 'basicGetCalculatedMember',
  31162. value: function basicGetCalculatedMember() {
  31163. return this.calculatedMember;
  31164. }
  31165. /**
  31166. * Gets the value of the <code>localRef</code> property without initializing the property to an empty list if it is unset.
  31167. * @return {Array} the list of <code>LocalRefType</code> elements, or <code>null</code> if not set
  31168. */
  31169. }, {
  31170. key: 'basicGetLocalRef',
  31171. value: function basicGetLocalRef() {
  31172. return this.localRef;
  31173. }
  31174. /**
  31175. * Creates a new instance of <code>ItemHierarchy</code> object from JSON data.
  31176. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  31177. * @param {Object} json JSON data to be used to create the <code> ItemHierarchy</code> object from.
  31178. * @return {ItemHierarchy} an object of type <code>ItemHierarchy</code>
  31179. */
  31180. }, {
  31181. key: 'addRefAt',
  31182. /**
  31183. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  31184. */
  31185. value: function addRefAt(position, item) {
  31186. this._addAtAndNotify(this.getRef(), position, item, 36, false, false);
  31187. }
  31188. /**
  31189. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  31190. */
  31191. }, {
  31192. key: 'addRef',
  31193. value: function addRef(item) {
  31194. this.addRefAt(this.getRef().length, item);
  31195. }
  31196. /**
  31197. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  31198. */
  31199. }, {
  31200. key: 'removeRefAt',
  31201. value: function removeRefAt(position) {
  31202. this._removeAtAndNotify(this.getRef(), position, 36, false);
  31203. }
  31204. /**
  31205. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  31206. */
  31207. }, {
  31208. key: 'removeRef',
  31209. value: function removeRef(item) {
  31210. var i = this.getRef().indexOf(item);
  31211. if (i >= 0) {
  31212. this.removeRefAt(i);
  31213. }
  31214. }
  31215. /**
  31216. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  31217. */
  31218. }, {
  31219. key: 'addCalculatedMemberAt',
  31220. value: function addCalculatedMemberAt(position, item) {
  31221. this._addAtAndNotify(this.getCalculatedMember(), position, item, 72, true, true);
  31222. }
  31223. /**
  31224. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  31225. */
  31226. }, {
  31227. key: 'addCalculatedMember',
  31228. value: function addCalculatedMember(item) {
  31229. this.addCalculatedMemberAt(this.getCalculatedMember().length, item);
  31230. }
  31231. /**
  31232. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  31233. */
  31234. }, {
  31235. key: 'removeCalculatedMemberAt',
  31236. value: function removeCalculatedMemberAt(position) {
  31237. this._removeAtAndNotify(this.getCalculatedMember(), position, 72, true);
  31238. }
  31239. /**
  31240. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  31241. */
  31242. }, {
  31243. key: 'removeCalculatedMember',
  31244. value: function removeCalculatedMember(item) {
  31245. var i = this.getCalculatedMember().indexOf(item);
  31246. if (i >= 0) {
  31247. this.removeCalculatedMemberAt(i);
  31248. }
  31249. }
  31250. /**
  31251. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  31252. */
  31253. }, {
  31254. key: 'addLocalRefAt',
  31255. value: function addLocalRefAt(position, item) {
  31256. this._addAtAndNotify(this.getLocalRef(), position, item, 73, true, false);
  31257. _MoserObjectUtils2.default.propertyOverrideForLocalRef(this);
  31258. }
  31259. /**
  31260. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  31261. */
  31262. }, {
  31263. key: 'addLocalRef',
  31264. value: function addLocalRef(item) {
  31265. this.addLocalRefAt(this.getLocalRef().length, item);
  31266. }
  31267. /**
  31268. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  31269. */
  31270. }, {
  31271. key: 'removeLocalRefAt',
  31272. value: function removeLocalRefAt(position) {
  31273. this._removeAtAndNotify(this.getLocalRef(), position, 73, true);
  31274. }
  31275. /**
  31276. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  31277. */
  31278. }, {
  31279. key: 'removeLocalRef',
  31280. value: function removeLocalRef(item) {
  31281. var i = this.getLocalRef().indexOf(item);
  31282. if (i >= 0) {
  31283. this.removeLocalRefAt(i);
  31284. }
  31285. }
  31286. /**
  31287. * Retrieves the type of this object
  31288. * @return {String} the object type in a <code>String</code>
  31289. */
  31290. }, {
  31291. key: 'getObjectType',
  31292. value: function getObjectType() {
  31293. return "ItemHierarchy";
  31294. }
  31295. /**
  31296. * Get a list of FeatureObjects
  31297. * @return {Array} A list of FeatureObjects
  31298. */
  31299. }, {
  31300. key: 'getFeatureList',
  31301. value: function getFeatureList(factory) {
  31302. var featureList = [];
  31303. featureList.push(this.createFeature(true, false, false, 36, "ref", null));
  31304. var clazz;
  31305. if (factory) {
  31306. clazz = factory.createCalculatedMemberType().getClass();
  31307. }
  31308. featureList.push(this.createFeature(true, false, true, 72, "calculatedMember", clazz));
  31309. if (factory) {
  31310. clazz = factory.createLocalRefType().getClass();
  31311. }
  31312. featureList.push(this.createFeature(true, false, true, 73, "localRef", clazz));
  31313. Array.prototype.push.apply(featureList, _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'getFeatureList', this).call(this, factory));
  31314. return featureList;
  31315. }
  31316. /**
  31317. * Set the value of a specific feature.
  31318. * @param {BaseMoserObject} value the value to set
  31319. * @param {int} featureID the feature id of the attribute to be set
  31320. */
  31321. }, {
  31322. key: 'set',
  31323. value: function set(featureID, value) {
  31324. switch (featureID) {
  31325. default:
  31326. _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'set', this).call(this, featureID, value);
  31327. }
  31328. }
  31329. /**
  31330. * Set the value of a specific feature.
  31331. * @param {BaseMoserObject} value the value to set the value to set
  31332. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  31333. */
  31334. }, {
  31335. key: '_setList',
  31336. value: function _setList(featureID, value) {
  31337. switch (featureID) {
  31338. case 72:
  31339. this.calculatedMember = value;
  31340. break;
  31341. case 36:
  31342. this.ref = value;
  31343. break;
  31344. case 73:
  31345. this.localRef = value;
  31346. break;
  31347. default:
  31348. _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), '_setList', this).call(this, featureID, value);
  31349. }
  31350. }
  31351. /**
  31352. * Get the value of a specific feature.
  31353. * @param {int} featureID the feature id of the attribute to get
  31354. */
  31355. }, {
  31356. key: 'get',
  31357. value: function get(featureID) {
  31358. switch (featureID) {
  31359. case 72:
  31360. return this.getCalculatedMember();
  31361. case 36:
  31362. return this.getRef();
  31363. case 73:
  31364. return this.getLocalRef();
  31365. default:
  31366. return _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'get', this).call(this, featureID);
  31367. }
  31368. }
  31369. /**
  31370. * Get the value of a specific feature.
  31371. * @param {int} featureID the feature id of the attribute to get
  31372. */
  31373. }, {
  31374. key: 'basicGet',
  31375. value: function basicGet(featureID) {
  31376. switch (featureID) {
  31377. case 72:
  31378. return this.basicGetCalculatedMember();
  31379. case 36:
  31380. return this.basicGetRef();
  31381. case 73:
  31382. return this.basicGetLocalRef();
  31383. default:
  31384. return _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'basicGet', this).call(this, featureID);
  31385. }
  31386. }
  31387. /**
  31388. * Add the value of a specific feature at a specific position
  31389. * @param {int} position the array position of the item to be added
  31390. * @param {BaseMoserObject} value the value to add
  31391. * @param {int} featureID the feature id of the attribute to be added
  31392. */
  31393. }, {
  31394. key: 'addAt',
  31395. value: function addAt(featureID, position, value) {
  31396. switch (featureID) {
  31397. case 72:
  31398. this.addCalculatedMemberAt(position, value);
  31399. break;
  31400. case 36:
  31401. this.addRefAt(position, value);
  31402. break;
  31403. case 73:
  31404. this.addLocalRefAt(position, value);
  31405. break;
  31406. default:
  31407. _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'addAt', this).call(this, featureID, position, value);
  31408. }
  31409. }
  31410. /**
  31411. * Add the value to the end of a specific collection feature
  31412. * @param {BaseMoserObject} value the value to add
  31413. * @param {int} featureID the feature id of the attribute to be added
  31414. */
  31415. }, {
  31416. key: 'add',
  31417. value: function add(featureID, value) {
  31418. switch (featureID) {
  31419. case 72:
  31420. this.addCalculatedMember(value);
  31421. break;
  31422. case 36:
  31423. this.addRef(value);
  31424. break;
  31425. case 73:
  31426. this.addLocalRef(value);
  31427. break;
  31428. default:
  31429. _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'add', this).call(this, featureID, value);
  31430. }
  31431. }
  31432. /**
  31433. * Remove the value of a specific feature by index.
  31434. * @param {int} position the array position of the item to be removed
  31435. * @param {int} featureID the feature id of the attribute to be removed
  31436. */
  31437. }, {
  31438. key: 'removeAt',
  31439. value: function removeAt(featureID, position) {
  31440. switch (featureID) {
  31441. case 72:
  31442. this.removeCalculatedMemberAt(position);
  31443. break;
  31444. case 36:
  31445. this.removeRefAt(position);
  31446. break;
  31447. case 73:
  31448. this.removeLocalRefAt(position);
  31449. break;
  31450. default:
  31451. _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'removeAt', this).call(this, featureID, position);
  31452. }
  31453. }
  31454. /**
  31455. * Remove the value from specific feature.
  31456. * @param {BaseMoserObject} item the item to be removed
  31457. * @param {int} featureID the feature id of the attribute to be removed
  31458. */
  31459. }, {
  31460. key: 'remove',
  31461. value: function remove(featureID, item) {
  31462. switch (featureID) {
  31463. case 72:
  31464. this.removeCalculatedMember(item);
  31465. break;
  31466. case 36:
  31467. this.removeRef(item);
  31468. break;
  31469. case 73:
  31470. this.removeLocalRef(item);
  31471. break;
  31472. default:
  31473. _get(ItemHierarchy.prototype.__proto__ || Object.getPrototypeOf(ItemHierarchy.prototype), 'remove', this).call(this, featureID, item);
  31474. }
  31475. }
  31476. }], [{
  31477. key: 'fromJSON',
  31478. value: function fromJSON(json, factory) {
  31479. var result = factory.createItemHierarchy();
  31480. var featureList = result.getFeatureList(factory);
  31481. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  31482. return result;
  31483. }
  31484. }]);
  31485. return ItemHierarchy;
  31486. }(_ObjectType3.default);
  31487. exports.default = ItemHierarchy;
  31488. /***/ },
  31489. /* 95 */
  31490. /***/ function(module, exports, __webpack_require__) {
  31491. 'use strict';
  31492. Object.defineProperty(exports, "__esModule", {
  31493. value: true
  31494. });
  31495. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  31496. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  31497. var _ObjectType2 = __webpack_require__(26);
  31498. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  31499. var _MoserObjectUtils = __webpack_require__(27);
  31500. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  31501. var _MoserObject = __webpack_require__(6);
  31502. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  31503. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  31504. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  31505. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  31506. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  31507. ** IBM Confidential
  31508. **
  31509. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  31510. **
  31511. ** (C) Copyright IBM Corp. 2020
  31512. **
  31513. ** The source code for this program is not published or otherwise divested of its trade secrets,
  31514. ** irrespective of what has been deposited with the U.S. Copyright Office.
  31515. ************************************************************************/
  31516. // GENERATED
  31517. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  31518. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // propertyOverrideForLocalRef
  31519. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  31520. /**
  31521. * Local reference must only reference to the query items within the same query subject <p>Java class for localRefType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="localRefType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="ref" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  31522. */
  31523. var LocalRefType = function (_ObjectType) {
  31524. _inherits(LocalRefType, _ObjectType);
  31525. function LocalRefType() {
  31526. var _ref;
  31527. var _temp, _this, _ret;
  31528. _classCallCheck(this, LocalRefType);
  31529. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  31530. args[_key] = arguments[_key];
  31531. }
  31532. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = LocalRefType.__proto__ || Object.getPrototypeOf(LocalRefType)).call.apply(_ref, [this].concat(args))), _this), _this.ref = null, _this._referencedObject = null, _temp), _possibleConstructorReturn(_this, _ret);
  31533. }
  31534. _createClass(LocalRefType, [{
  31535. key: 'getRef',
  31536. /**
  31537. * Gets the value of the ref property.
  31538. * @return {String} possible object is {@link String}
  31539. */
  31540. value: function getRef() {
  31541. return this.ref;
  31542. }
  31543. /**
  31544. * Sets the value of the ref property.
  31545. * @param {String} value allowed object is {@link String}
  31546. */
  31547. }, {
  31548. key: 'setRef',
  31549. value: function setRef(value) {
  31550. var oldValue = this.ref;
  31551. this.ref = value;
  31552. this._setAndNotify(36, oldValue, value, false, false);
  31553. _MoserObjectUtils2.default.propertyOverrideForLocalRef(this.getParent());
  31554. this._referencedObject = null;
  31555. }
  31556. /**
  31557. * Creates a new instance of <code>LocalRefType</code> object from JSON data.
  31558. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  31559. * @param {Object} json JSON data to be used to create the <code> LocalRefType</code> object from.
  31560. * @return {LocalRefType} an object of type <code>LocalRefType</code>
  31561. */
  31562. }, {
  31563. key: 'getObjectType',
  31564. /**
  31565. * Retrieves the type of this object
  31566. * @return {String} the object type in a <code>String</code>
  31567. */
  31568. value: function getObjectType() {
  31569. return "LocalRefType";
  31570. }
  31571. /**
  31572. * Get a list of FeatureObjects
  31573. * @return {Array} A list of FeatureObjects
  31574. */
  31575. }, {
  31576. key: 'getFeatureList',
  31577. value: function getFeatureList(factory) {
  31578. var featureList = [];
  31579. featureList.push(this.createFeature(false, false, false, 36, "ref", null));
  31580. Array.prototype.push.apply(featureList, _get(LocalRefType.prototype.__proto__ || Object.getPrototypeOf(LocalRefType.prototype), 'getFeatureList', this).call(this, factory));
  31581. return featureList;
  31582. }
  31583. /**
  31584. * Set the value of a specific feature.
  31585. * @param {BaseMoserObject} value the value to set
  31586. * @param {int} featureID the feature id of the attribute to be set
  31587. */
  31588. }, {
  31589. key: 'set',
  31590. value: function set(featureID, value) {
  31591. switch (featureID) {
  31592. case 36:
  31593. this.setRef(value);
  31594. break;
  31595. default:
  31596. _get(LocalRefType.prototype.__proto__ || Object.getPrototypeOf(LocalRefType.prototype), 'set', this).call(this, featureID, value);
  31597. }
  31598. }
  31599. /**
  31600. * Get the value of a specific feature.
  31601. * @param {int} featureID the feature id of the attribute to get
  31602. */
  31603. }, {
  31604. key: 'get',
  31605. value: function get(featureID) {
  31606. switch (featureID) {
  31607. case 36:
  31608. return this.getRef();
  31609. default:
  31610. return _get(LocalRefType.prototype.__proto__ || Object.getPrototypeOf(LocalRefType.prototype), 'get', this).call(this, featureID);
  31611. }
  31612. }
  31613. /**
  31614. * Get the value of a specific feature.
  31615. * @param {int} featureID the feature id of the attribute to get
  31616. */
  31617. }, {
  31618. key: 'basicGet',
  31619. value: function basicGet(featureID) {
  31620. switch (featureID) {
  31621. case 36:
  31622. return this.getRef();
  31623. default:
  31624. return _get(LocalRefType.prototype.__proto__ || Object.getPrototypeOf(LocalRefType.prototype), 'basicGet', this).call(this, featureID);
  31625. }
  31626. }
  31627. /**
  31628. * Set the resolved object based on reference.
  31629. * @param {MoserObject} referencedObject the referenced <code>MoserObject</code>
  31630. */
  31631. }, {
  31632. key: 'setReferencedObject',
  31633. value: function setReferencedObject(referencedObject) {
  31634. this._referencedObject = referencedObject;
  31635. }
  31636. /**
  31637. * Get the resolved object based on reference.
  31638. * @return {MoserObject} the referenced <code>MoserObject</code>
  31639. */
  31640. }, {
  31641. key: 'getReferencedObject',
  31642. value: function getReferencedObject() {
  31643. return this._referencedObject;
  31644. }
  31645. }, {
  31646. key: 'clone',
  31647. value: function clone() {
  31648. var cloned = _get(LocalRefType.prototype.__proto__ || Object.getPrototypeOf(LocalRefType.prototype), 'clone', this).call(this);
  31649. cloned.setReferencedObject(this._referencedObject);
  31650. return cloned;
  31651. }
  31652. }], [{
  31653. key: 'fromJSON',
  31654. value: function fromJSON(json, factory) {
  31655. var result = factory.createLocalRefType();
  31656. var featureList = result.getFeatureList(factory);
  31657. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  31658. return result;
  31659. }
  31660. }]);
  31661. return LocalRefType;
  31662. }(_ObjectType3.default);
  31663. exports.default = LocalRefType;
  31664. /***/ },
  31665. /* 96 */
  31666. /***/ function(module, exports, __webpack_require__) {
  31667. 'use strict';
  31668. Object.defineProperty(exports, "__esModule", {
  31669. value: true
  31670. });
  31671. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  31672. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  31673. var _ObjectType2 = __webpack_require__(26);
  31674. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  31675. var _MoserObject = __webpack_require__(6);
  31676. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  31677. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  31678. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  31679. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  31680. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  31681. ** IBM Confidential
  31682. **
  31683. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  31684. **
  31685. ** (C) Copyright IBM Corp. 2020
  31686. **
  31687. ** The source code for this program is not published or otherwise divested of its trade secrets,
  31688. ** irrespective of what has been deposited with the U.S. Copyright Office.
  31689. ************************************************************************/
  31690. // GENERATED
  31691. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  31692. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  31693. /**
  31694. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element ref="{}parameterValue" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  31695. */
  31696. var ParameterValueSet = function (_ObjectType) {
  31697. _inherits(ParameterValueSet, _ObjectType);
  31698. function ParameterValueSet() {
  31699. var _ref;
  31700. var _temp, _this, _ret;
  31701. _classCallCheck(this, ParameterValueSet);
  31702. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  31703. args[_key] = arguments[_key];
  31704. }
  31705. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ParameterValueSet.__proto__ || Object.getPrototypeOf(ParameterValueSet)).call.apply(_ref, [this].concat(args))), _this), _this.parameterValue = null, _temp), _possibleConstructorReturn(_this, _ret);
  31706. }
  31707. _createClass(ParameterValueSet, [{
  31708. key: 'getParameterValue',
  31709. /**
  31710. * Gets the value of the parameterValue property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the parameterValue property. <p> For example, to add a new item, do as follows: <pre> getParameterValue().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ParameterValue}
  31711. */
  31712. value: function getParameterValue() {
  31713. if (!this.parameterValue) {
  31714. this.parameterValue = [];
  31715. }
  31716. return this.parameterValue;
  31717. }
  31718. /**
  31719. * Gets the value of the <code>parameterValue</code> property without initializing the property to an empty list if it is unset.
  31720. * @return {Array} the list of <code>ParameterValue</code> elements, or <code>null</code> if not set
  31721. */
  31722. }, {
  31723. key: 'basicGetParameterValue',
  31724. value: function basicGetParameterValue() {
  31725. return this.parameterValue;
  31726. }
  31727. /**
  31728. * Creates a new instance of <code>ParameterValueSet</code> object from JSON data.
  31729. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  31730. * @param {Object} json JSON data to be used to create the <code> ParameterValueSet</code> object from.
  31731. * @return {ParameterValueSet} an object of type <code>ParameterValueSet</code>
  31732. */
  31733. }, {
  31734. key: 'addParameterValueAt',
  31735. /**
  31736. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  31737. */
  31738. value: function addParameterValueAt(position, item) {
  31739. this._addAtAndNotify(this.getParameterValue(), position, item, 1, true, false);
  31740. }
  31741. /**
  31742. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  31743. */
  31744. }, {
  31745. key: 'addParameterValue',
  31746. value: function addParameterValue(item) {
  31747. this.addParameterValueAt(this.getParameterValue().length, item);
  31748. }
  31749. /**
  31750. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  31751. */
  31752. }, {
  31753. key: 'removeParameterValueAt',
  31754. value: function removeParameterValueAt(position) {
  31755. this._removeAtAndNotify(this.getParameterValue(), position, 1, true);
  31756. }
  31757. /**
  31758. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  31759. */
  31760. }, {
  31761. key: 'removeParameterValue',
  31762. value: function removeParameterValue(item) {
  31763. var i = this.getParameterValue().indexOf(item);
  31764. if (i >= 0) {
  31765. this.removeParameterValueAt(i);
  31766. }
  31767. }
  31768. /**
  31769. * Retrieves the type of this object
  31770. * @return {String} the object type in a <code>String</code>
  31771. */
  31772. }, {
  31773. key: 'getObjectType',
  31774. value: function getObjectType() {
  31775. return "ParameterValueSet";
  31776. }
  31777. /**
  31778. * Get a list of FeatureObjects
  31779. * @return {Array} A list of FeatureObjects
  31780. */
  31781. }, {
  31782. key: 'getFeatureList',
  31783. value: function getFeatureList(factory) {
  31784. var featureList = [];
  31785. var clazz;
  31786. if (factory) {
  31787. clazz = factory.createParameterValue().getClass();
  31788. }
  31789. featureList.push(this.createFeature(true, false, true, 1, "parameterValue", clazz));
  31790. Array.prototype.push.apply(featureList, _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'getFeatureList', this).call(this, factory));
  31791. return featureList;
  31792. }
  31793. /**
  31794. * Set the value of a specific feature.
  31795. * @param {BaseMoserObject} value the value to set
  31796. * @param {int} featureID the feature id of the attribute to be set
  31797. */
  31798. }, {
  31799. key: 'set',
  31800. value: function set(featureID, value) {
  31801. switch (featureID) {
  31802. default:
  31803. _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'set', this).call(this, featureID, value);
  31804. }
  31805. }
  31806. /**
  31807. * Set the value of a specific feature.
  31808. * @param {BaseMoserObject} value the value to set the value to set
  31809. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  31810. */
  31811. }, {
  31812. key: '_setList',
  31813. value: function _setList(featureID, value) {
  31814. switch (featureID) {
  31815. case 1:
  31816. this.parameterValue = value;
  31817. break;
  31818. default:
  31819. _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), '_setList', this).call(this, featureID, value);
  31820. }
  31821. }
  31822. /**
  31823. * Get the value of a specific feature.
  31824. * @param {int} featureID the feature id of the attribute to get
  31825. */
  31826. }, {
  31827. key: 'get',
  31828. value: function get(featureID) {
  31829. switch (featureID) {
  31830. case 1:
  31831. return this.getParameterValue();
  31832. default:
  31833. return _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'get', this).call(this, featureID);
  31834. }
  31835. }
  31836. /**
  31837. * Get the value of a specific feature.
  31838. * @param {int} featureID the feature id of the attribute to get
  31839. */
  31840. }, {
  31841. key: 'basicGet',
  31842. value: function basicGet(featureID) {
  31843. switch (featureID) {
  31844. case 1:
  31845. return this.basicGetParameterValue();
  31846. default:
  31847. return _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'basicGet', this).call(this, featureID);
  31848. }
  31849. }
  31850. /**
  31851. * Add the value of a specific feature at a specific position
  31852. * @param {int} position the array position of the item to be added
  31853. * @param {BaseMoserObject} value the value to add
  31854. * @param {int} featureID the feature id of the attribute to be added
  31855. */
  31856. }, {
  31857. key: 'addAt',
  31858. value: function addAt(featureID, position, value) {
  31859. switch (featureID) {
  31860. case 1:
  31861. this.addParameterValueAt(position, value);
  31862. break;
  31863. default:
  31864. _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'addAt', this).call(this, featureID, position, value);
  31865. }
  31866. }
  31867. /**
  31868. * Add the value to the end of a specific collection feature
  31869. * @param {BaseMoserObject} value the value to add
  31870. * @param {int} featureID the feature id of the attribute to be added
  31871. */
  31872. }, {
  31873. key: 'add',
  31874. value: function add(featureID, value) {
  31875. switch (featureID) {
  31876. case 1:
  31877. this.addParameterValue(value);
  31878. break;
  31879. default:
  31880. _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'add', this).call(this, featureID, value);
  31881. }
  31882. }
  31883. /**
  31884. * Remove the value of a specific feature by index.
  31885. * @param {int} position the array position of the item to be removed
  31886. * @param {int} featureID the feature id of the attribute to be removed
  31887. */
  31888. }, {
  31889. key: 'removeAt',
  31890. value: function removeAt(featureID, position) {
  31891. switch (featureID) {
  31892. case 1:
  31893. this.removeParameterValueAt(position);
  31894. break;
  31895. default:
  31896. _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'removeAt', this).call(this, featureID, position);
  31897. }
  31898. }
  31899. /**
  31900. * Remove the value from specific feature.
  31901. * @param {BaseMoserObject} item the item to be removed
  31902. * @param {int} featureID the feature id of the attribute to be removed
  31903. */
  31904. }, {
  31905. key: 'remove',
  31906. value: function remove(featureID, item) {
  31907. switch (featureID) {
  31908. case 1:
  31909. this.removeParameterValue(item);
  31910. break;
  31911. default:
  31912. _get(ParameterValueSet.prototype.__proto__ || Object.getPrototypeOf(ParameterValueSet.prototype), 'remove', this).call(this, featureID, item);
  31913. }
  31914. }
  31915. }], [{
  31916. key: 'fromJSON',
  31917. value: function fromJSON(json, factory) {
  31918. var result = factory.createParameterValueSet();
  31919. var featureList = result.getFeatureList(factory);
  31920. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  31921. return result;
  31922. }
  31923. }]);
  31924. return ParameterValueSet;
  31925. }(_ObjectType3.default);
  31926. exports.default = ParameterValueSet;
  31927. /***/ },
  31928. /* 97 */
  31929. /***/ function(module, exports, __webpack_require__) {
  31930. 'use strict';
  31931. Object.defineProperty(exports, "__esModule", {
  31932. value: true
  31933. });
  31934. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  31935. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  31936. var _MoserObject2 = __webpack_require__(6);
  31937. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  31938. var _ParameterDataType = __webpack_require__(98);
  31939. var _ParameterDataType2 = _interopRequireDefault(_ParameterDataType);
  31940. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  31941. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  31942. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  31943. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  31944. ** IBM Confidential
  31945. **
  31946. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  31947. **
  31948. ** (C) Copyright IBM Corp. 2020
  31949. **
  31950. ** The source code for this program is not published or otherwise divested of its trade secrets,
  31951. ** irrespective of what has been deposited with the U.S. Copyright Office.
  31952. ************************************************************************/
  31953. // GENERATED
  31954. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  31955. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterDataType (runtime) // new
  31956. /**
  31957. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="parameterName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="dataType" type="{}parameterDataType"/&gt; &lt;element name="invert" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="values" type="{}valueType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  31958. */
  31959. var ParameterValue = function (_MoserObject) {
  31960. _inherits(ParameterValue, _MoserObject);
  31961. function ParameterValue() {
  31962. var _ref;
  31963. var _temp, _this, _ret;
  31964. _classCallCheck(this, ParameterValue);
  31965. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  31966. args[_key] = arguments[_key];
  31967. }
  31968. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ParameterValue.__proto__ || Object.getPrototypeOf(ParameterValue)).call.apply(_ref, [this].concat(args))), _this), _this.parameterName = null, _this.dataType = null, _this.invert = null, _this.values = null, _temp), _possibleConstructorReturn(_this, _ret);
  31969. }
  31970. _createClass(ParameterValue, [{
  31971. key: 'getParameterName',
  31972. /**
  31973. * Gets the value of the parameterName property.
  31974. * @return {String} possible object is {@link String}
  31975. */
  31976. value: function getParameterName() {
  31977. return this.parameterName;
  31978. }
  31979. /**
  31980. * Sets the value of the parameterName property.
  31981. * @param {String} value allowed object is {@link String}
  31982. */
  31983. }, {
  31984. key: 'setParameterName',
  31985. value: function setParameterName(value) {
  31986. var oldValue = this.parameterName;
  31987. this.parameterName = value;
  31988. this._setAndNotify(80, oldValue, value, false, false);
  31989. }
  31990. /**
  31991. * Gets the value of the dataType property.
  31992. * @return {ParameterDataType} possible object is {@link ParameterDataType}
  31993. */
  31994. }, {
  31995. key: 'getDataType',
  31996. value: function getDataType() {
  31997. return this.dataType;
  31998. }
  31999. /**
  32000. * Sets the value of the dataType property.
  32001. * @param {ParameterDataType} value allowed object is {@link ParameterDataType}
  32002. */
  32003. }, {
  32004. key: 'setDataType',
  32005. value: function setDataType(value) {
  32006. var oldValue = this.dataType;
  32007. this.dataType = value;
  32008. this._setAndNotify(82, oldValue, value, false, false);
  32009. }
  32010. /**
  32011. * Gets the value of the invert property.
  32012. * @return {Boolean} possible object is {@link Boolean}
  32013. */
  32014. }, {
  32015. key: 'isInvert',
  32016. value: function isInvert() {
  32017. return this.invert;
  32018. }
  32019. /**
  32020. * Sets the value of the invert property.
  32021. * @param {Boolean} value allowed object is {@link Boolean}
  32022. */
  32023. }, {
  32024. key: 'setInvert',
  32025. value: function setInvert(value) {
  32026. var oldValue = this.invert;
  32027. this.invert = value;
  32028. this._setAndNotify(81, oldValue, value, false, false);
  32029. }
  32030. /**
  32031. * Gets the value of the values property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the values property. <p> For example, to add a new item, do as follows: <pre> getValues().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ValueType}
  32032. */
  32033. }, {
  32034. key: 'getValues',
  32035. value: function getValues() {
  32036. if (!this.values) {
  32037. this.values = [];
  32038. }
  32039. return this.values;
  32040. }
  32041. /**
  32042. * Gets the value of the <code>values</code> property without initializing the property to an empty list if it is unset.
  32043. * @return {Array} the list of <code>ValueType</code> elements, or <code>null</code> if not set
  32044. */
  32045. }, {
  32046. key: 'basicGetValues',
  32047. value: function basicGetValues() {
  32048. return this.values;
  32049. }
  32050. /**
  32051. * Creates a new instance of <code>ParameterValue</code> object from JSON data.
  32052. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  32053. * @param {Object} json JSON data to be used to create the <code> ParameterValue</code> object from.
  32054. * @return {ParameterValue} an object of type <code>ParameterValue</code>
  32055. */
  32056. }, {
  32057. key: 'addValuesAt',
  32058. /**
  32059. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  32060. */
  32061. value: function addValuesAt(position, item) {
  32062. this._addAtAndNotify(this.getValues(), position, item, 83, true, false);
  32063. }
  32064. /**
  32065. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  32066. */
  32067. }, {
  32068. key: 'addValues',
  32069. value: function addValues(item) {
  32070. this.addValuesAt(this.getValues().length, item);
  32071. }
  32072. /**
  32073. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  32074. */
  32075. }, {
  32076. key: 'removeValuesAt',
  32077. value: function removeValuesAt(position) {
  32078. this._removeAtAndNotify(this.getValues(), position, 83, true);
  32079. }
  32080. /**
  32081. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  32082. */
  32083. }, {
  32084. key: 'removeValues',
  32085. value: function removeValues(item) {
  32086. var i = this.getValues().indexOf(item);
  32087. if (i >= 0) {
  32088. this.removeValuesAt(i);
  32089. }
  32090. }
  32091. /**
  32092. * Retrieves the type of this object
  32093. * @return {String} the object type in a <code>String</code>
  32094. */
  32095. }, {
  32096. key: 'getObjectType',
  32097. value: function getObjectType() {
  32098. return "ParameterValue";
  32099. }
  32100. /**
  32101. * Get a list of FeatureObjects
  32102. * @return {Array} A list of FeatureObjects
  32103. */
  32104. }, {
  32105. key: 'getFeatureList',
  32106. value: function getFeatureList(factory) {
  32107. var featureList = [];
  32108. featureList.push(this.createFeature(false, false, false, 80, "parameterName", null));
  32109. featureList.push(this.createFeature(false, true, false, 82, "dataType", _ParameterDataType2.default));
  32110. featureList.push(this.createFeature(false, false, false, 81, "invert", null));
  32111. var clazz;
  32112. if (factory) {
  32113. clazz = factory.createValueType().getClass();
  32114. }
  32115. featureList.push(this.createFeature(true, false, true, 83, "values", clazz));
  32116. Array.prototype.push.apply(featureList, _get(ParameterValue.prototype.__proto__ || Object.getPrototypeOf(ParameterValue.prototype), 'getFeatureList', this).call(this, factory));
  32117. return featureList;
  32118. }
  32119. /**
  32120. * Set the value of a specific feature.
  32121. * @param {BaseMoserObject} value the value to set
  32122. * @param {int} featureID the feature id of the attribute to be set
  32123. */
  32124. }, {
  32125. key: 'set',
  32126. value: function set(featureID, value) {
  32127. switch (featureID) {
  32128. case 80:
  32129. this.setParameterName(value);
  32130. break;
  32131. case 81:
  32132. this.setInvert(value);
  32133. break;
  32134. case 82:
  32135. this.setDataType(value);
  32136. break;
  32137. default:
  32138. throw new Error("The feature " + featureID + " is not valid.");
  32139. }
  32140. }
  32141. /**
  32142. * Set the value of a specific feature.
  32143. * @param {BaseMoserObject} value the value to set the value to set
  32144. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  32145. */
  32146. }, {
  32147. key: '_setList',
  32148. value: function _setList(featureID, value) {
  32149. switch (featureID) {
  32150. case 83:
  32151. this.values = value;
  32152. break;
  32153. default:
  32154. throw new Error("The feature " + featureID + " is not valid.");
  32155. }
  32156. }
  32157. /**
  32158. * Get the value of a specific feature.
  32159. * @param {int} featureID the feature id of the attribute to get
  32160. */
  32161. }, {
  32162. key: 'get',
  32163. value: function get(featureID) {
  32164. switch (featureID) {
  32165. case 80:
  32166. return this.getParameterName();
  32167. case 81:
  32168. return this.isInvert();
  32169. case 82:
  32170. return this.getDataType();
  32171. case 83:
  32172. return this.getValues();
  32173. default:
  32174. throw new Error("The feature " + featureID + " is not valid.");
  32175. }
  32176. }
  32177. /**
  32178. * Get the value of a specific feature.
  32179. * @param {int} featureID the feature id of the attribute to get
  32180. */
  32181. }, {
  32182. key: 'basicGet',
  32183. value: function basicGet(featureID) {
  32184. switch (featureID) {
  32185. case 80:
  32186. return this.getParameterName();
  32187. case 81:
  32188. return this.isInvert();
  32189. case 82:
  32190. return this.getDataType();
  32191. case 83:
  32192. return this.basicGetValues();
  32193. default:
  32194. throw new Error("The feature " + featureID + " is not valid.");
  32195. }
  32196. }
  32197. /**
  32198. * Add the value of a specific feature at a specific position
  32199. * @param {int} position the array position of the item to be added
  32200. * @param {BaseMoserObject} value the value to add
  32201. * @param {int} featureID the feature id of the attribute to be added
  32202. */
  32203. }, {
  32204. key: 'addAt',
  32205. value: function addAt(featureID, position, value) {
  32206. switch (featureID) {
  32207. case 83:
  32208. this.addValuesAt(position, value);
  32209. break;
  32210. default:
  32211. throw new Error("The feature " + featureID + " is not valid.");
  32212. }
  32213. }
  32214. /**
  32215. * Add the value to the end of a specific collection feature
  32216. * @param {BaseMoserObject} value the value to add
  32217. * @param {int} featureID the feature id of the attribute to be added
  32218. */
  32219. }, {
  32220. key: 'add',
  32221. value: function add(featureID, value) {
  32222. switch (featureID) {
  32223. case 83:
  32224. this.addValues(value);
  32225. break;
  32226. default:
  32227. throw new Error("The feature " + featureID + " is not valid.");
  32228. }
  32229. }
  32230. /**
  32231. * Remove the value of a specific feature by index.
  32232. * @param {int} position the array position of the item to be removed
  32233. * @param {int} featureID the feature id of the attribute to be removed
  32234. */
  32235. }, {
  32236. key: 'removeAt',
  32237. value: function removeAt(featureID, position) {
  32238. switch (featureID) {
  32239. case 83:
  32240. this.removeValuesAt(position);
  32241. break;
  32242. default:
  32243. throw new Error("The feature " + featureID + " is not valid.");
  32244. }
  32245. }
  32246. /**
  32247. * Remove the value from specific feature.
  32248. * @param {BaseMoserObject} item the item to be removed
  32249. * @param {int} featureID the feature id of the attribute to be removed
  32250. */
  32251. }, {
  32252. key: 'remove',
  32253. value: function remove(featureID, item) {
  32254. switch (featureID) {
  32255. case 83:
  32256. this.removeValues(item);
  32257. break;
  32258. default:
  32259. throw new Error("The feature " + featureID + " is not valid.");
  32260. }
  32261. }
  32262. }], [{
  32263. key: 'fromJSON',
  32264. value: function fromJSON(json, factory) {
  32265. var result = factory.createParameterValue();
  32266. var featureList = result.getFeatureList(factory);
  32267. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  32268. return result;
  32269. }
  32270. }]);
  32271. return ParameterValue;
  32272. }(_MoserObject3.default);
  32273. exports.default = ParameterValue;
  32274. /***/ },
  32275. /* 98 */
  32276. /***/ function(module, exports, __webpack_require__) {
  32277. "use strict";
  32278. Object.defineProperty(exports, "__esModule", {
  32279. value: true
  32280. });
  32281. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  32282. var _Enum2 = __webpack_require__(12);
  32283. var _Enum3 = _interopRequireDefault(_Enum2);
  32284. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  32285. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  32286. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  32287. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  32288. ** IBM Confidential
  32289. **
  32290. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  32291. **
  32292. ** (C) Copyright IBM Corp. 2020
  32293. **
  32294. ** The source code for this program is not published or otherwise divested of its trade secrets,
  32295. ** irrespective of what has been deposited with the U.S. Copyright Office.
  32296. ************************************************************************/
  32297. // GENERATED
  32298. //@import Enum (loadtime) // superclass
  32299. /**
  32300. * <p>Java class for parameterDataType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="parameterDataType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="boolean"/&gt; &lt;enumeration value="string"/&gt; &lt;enumeration value="integer"/&gt; &lt;enumeration value="decimal"/&gt; &lt;enumeration value="datetime"/&gt; &lt;enumeration value="time"/&gt; &lt;enumeration value="date"/&gt; &lt;enumeration value="interval"/&gt; &lt;enumeration value="memberUniqueName"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  32301. */
  32302. var ParameterDataType = function (_Enum) {
  32303. _inherits(ParameterDataType, _Enum);
  32304. function ParameterDataType(v) {
  32305. _classCallCheck(this, ParameterDataType);
  32306. var _this = _possibleConstructorReturn(this, (ParameterDataType.__proto__ || Object.getPrototypeOf(ParameterDataType)).call(this, v));
  32307. _this.enumValue = null;
  32308. _this.enumValue = v;
  32309. return _this;
  32310. }
  32311. _createClass(ParameterDataType, [{
  32312. key: "value",
  32313. value: function value() {
  32314. return this.enumValue;
  32315. }
  32316. }, {
  32317. key: "getResourceId",
  32318. value: function getResourceId() {
  32319. return "ParameterDataType" + "_" + this.value();
  32320. }
  32321. }], [{
  32322. key: "fromValue",
  32323. value: function fromValue(v) {
  32324. for (var i = 0; i < ParameterDataType.values().length; ++i) {
  32325. if (ParameterDataType.values()[i].enumValue == v) {
  32326. return ParameterDataType.values()[i];
  32327. }
  32328. }
  32329. throw new Error(v);
  32330. }
  32331. }]);
  32332. return ParameterDataType;
  32333. }(_Enum3.default);
  32334. ParameterDataType.BOOLEAN = ParameterDataType.newLiteral("boolean");
  32335. ParameterDataType.STRING = ParameterDataType.newLiteral("string");
  32336. ParameterDataType.INTEGER = ParameterDataType.newLiteral("integer");
  32337. ParameterDataType.DECIMAL = ParameterDataType.newLiteral("decimal");
  32338. ParameterDataType.DATETIME = ParameterDataType.newLiteral("datetime");
  32339. ParameterDataType.TIME = ParameterDataType.newLiteral("time");
  32340. ParameterDataType.DATE = ParameterDataType.newLiteral("date");
  32341. ParameterDataType.INTERVAL = ParameterDataType.newLiteral("interval");
  32342. ParameterDataType.MEMBER_UNIQUE_NAME = ParameterDataType.newLiteral("memberUniqueName");
  32343. exports.default = ParameterDataType;
  32344. /***/ },
  32345. /* 99 */
  32346. /***/ function(module, exports, __webpack_require__) {
  32347. 'use strict';
  32348. Object.defineProperty(exports, "__esModule", {
  32349. value: true
  32350. });
  32351. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  32352. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  32353. var _MoserObject2 = __webpack_require__(6);
  32354. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  32355. var _ValueOperatorType = __webpack_require__(100);
  32356. var _ValueOperatorType2 = _interopRequireDefault(_ValueOperatorType);
  32357. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  32358. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  32359. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  32360. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  32361. ** IBM Confidential
  32362. **
  32363. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  32364. **
  32365. ** (C) Copyright IBM Corp. 2021
  32366. **
  32367. ** The source code for this program is not published or otherwise divested of its trade secrets,
  32368. ** irrespective of what has been deposited with the U.S. Copyright Office.
  32369. ************************************************************************/
  32370. // GENERATED
  32371. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  32372. //@import com/ibm/bi/platform/moser/common/generated/metadata/ValueOperatorType (runtime) // new
  32373. /**
  32374. * An individual value, could also be a null value. A null values translates in SQL to an IS NULL condition <p>Java class for valueType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="valueType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="operator" type="{}valueOperatorType"/&gt; &lt;element name="use" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="display" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="use2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="display2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  32375. */
  32376. var ValueType = function (_MoserObject) {
  32377. _inherits(ValueType, _MoserObject);
  32378. function ValueType() {
  32379. var _ref;
  32380. var _temp, _this, _ret;
  32381. _classCallCheck(this, ValueType);
  32382. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  32383. args[_key] = arguments[_key];
  32384. }
  32385. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ValueType.__proto__ || Object.getPrototypeOf(ValueType)).call.apply(_ref, [this].concat(args))), _this), _this.operator = null, _this.use = null, _this.display = null, _this.use2 = null, _this.display2 = null, _temp), _possibleConstructorReturn(_this, _ret);
  32386. }
  32387. _createClass(ValueType, [{
  32388. key: 'getOperator',
  32389. /**
  32390. * Gets the value of the operator property.
  32391. * @return {ValueOperatorType} possible object is {@link ValueOperatorType}
  32392. */
  32393. value: function getOperator() {
  32394. return this.operator;
  32395. }
  32396. /**
  32397. * Sets the value of the operator property.
  32398. * @param {ValueOperatorType} value allowed object is {@link ValueOperatorType}
  32399. */
  32400. }, {
  32401. key: 'setOperator',
  32402. value: function setOperator(value) {
  32403. var oldValue = this.operator;
  32404. this.operator = value;
  32405. this._setAndNotify(206, oldValue, value, false, false);
  32406. }
  32407. /**
  32408. * Gets the value of the use property.
  32409. * @return {String} possible object is {@link String}
  32410. */
  32411. }, {
  32412. key: 'getUse',
  32413. value: function getUse() {
  32414. return this.use;
  32415. }
  32416. /**
  32417. * Sets the value of the use property.
  32418. * @param {String} value allowed object is {@link String}
  32419. */
  32420. }, {
  32421. key: 'setUse',
  32422. value: function setUse(value) {
  32423. var oldValue = this.use;
  32424. this.use = value;
  32425. this._setAndNotify(130, oldValue, value, false, false);
  32426. }
  32427. /**
  32428. * Gets the value of the display property.
  32429. * @return {String} possible object is {@link String}
  32430. */
  32431. }, {
  32432. key: 'getDisplay',
  32433. value: function getDisplay() {
  32434. return this.display;
  32435. }
  32436. /**
  32437. * Sets the value of the display property.
  32438. * @param {String} value allowed object is {@link String}
  32439. */
  32440. }, {
  32441. key: 'setDisplay',
  32442. value: function setDisplay(value) {
  32443. var oldValue = this.display;
  32444. this.display = value;
  32445. this._setAndNotify(182, oldValue, value, false, false);
  32446. }
  32447. /**
  32448. * Gets the value of the use2 property.
  32449. * @return {String} possible object is {@link String}
  32450. */
  32451. }, {
  32452. key: 'getUse2',
  32453. value: function getUse2() {
  32454. return this.use2;
  32455. }
  32456. /**
  32457. * Sets the value of the use2 property.
  32458. * @param {String} value allowed object is {@link String}
  32459. */
  32460. }, {
  32461. key: 'setUse2',
  32462. value: function setUse2(value) {
  32463. var oldValue = this.use2;
  32464. this.use2 = value;
  32465. this._setAndNotify(204, oldValue, value, false, false);
  32466. }
  32467. /**
  32468. * Gets the value of the display2 property.
  32469. * @return {String} possible object is {@link String}
  32470. */
  32471. }, {
  32472. key: 'getDisplay2',
  32473. value: function getDisplay2() {
  32474. return this.display2;
  32475. }
  32476. /**
  32477. * Sets the value of the display2 property.
  32478. * @param {String} value allowed object is {@link String}
  32479. */
  32480. }, {
  32481. key: 'setDisplay2',
  32482. value: function setDisplay2(value) {
  32483. var oldValue = this.display2;
  32484. this.display2 = value;
  32485. this._setAndNotify(205, oldValue, value, false, false);
  32486. }
  32487. /**
  32488. * Creates a new instance of <code>ValueType</code> object from JSON data.
  32489. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  32490. * @param {Object} json JSON data to be used to create the <code> ValueType</code> object from.
  32491. * @return {ValueType} an object of type <code>ValueType</code>
  32492. */
  32493. }, {
  32494. key: 'getObjectType',
  32495. /**
  32496. * Retrieves the type of this object
  32497. * @return {String} the object type in a <code>String</code>
  32498. */
  32499. value: function getObjectType() {
  32500. return "ValueType";
  32501. }
  32502. /**
  32503. * Get a list of FeatureObjects
  32504. * @return {Array} A list of FeatureObjects
  32505. */
  32506. }, {
  32507. key: 'getFeatureList',
  32508. value: function getFeatureList(factory) {
  32509. var featureList = [];
  32510. featureList.push(this.createFeature(false, true, false, 206, "operator", _ValueOperatorType2.default));
  32511. featureList.push(this.createFeature(false, false, false, 130, "use", null));
  32512. featureList.push(this.createFeature(false, false, false, 182, "display", null));
  32513. featureList.push(this.createFeature(false, false, false, 204, "use2", null));
  32514. featureList.push(this.createFeature(false, false, false, 205, "display2", null));
  32515. Array.prototype.push.apply(featureList, _get(ValueType.prototype.__proto__ || Object.getPrototypeOf(ValueType.prototype), 'getFeatureList', this).call(this, factory));
  32516. return featureList;
  32517. }
  32518. /**
  32519. * Set the value of a specific feature.
  32520. * @param {BaseMoserObject} value the value to set
  32521. * @param {int} featureID the feature id of the attribute to be set
  32522. */
  32523. }, {
  32524. key: 'set',
  32525. value: function set(featureID, value) {
  32526. switch (featureID) {
  32527. case 204:
  32528. this.setUse2(value);
  32529. break;
  32530. case 205:
  32531. this.setDisplay2(value);
  32532. break;
  32533. case 206:
  32534. this.setOperator(value);
  32535. break;
  32536. case 130:
  32537. this.setUse(value);
  32538. break;
  32539. case 182:
  32540. this.setDisplay(value);
  32541. break;
  32542. default:
  32543. throw new Error("The feature " + featureID + " is not valid.");
  32544. }
  32545. }
  32546. /**
  32547. * Get the value of a specific feature.
  32548. * @param {int} featureID the feature id of the attribute to get
  32549. */
  32550. }, {
  32551. key: 'get',
  32552. value: function get(featureID) {
  32553. switch (featureID) {
  32554. case 204:
  32555. return this.getUse2();
  32556. case 205:
  32557. return this.getDisplay2();
  32558. case 206:
  32559. return this.getOperator();
  32560. case 130:
  32561. return this.getUse();
  32562. case 182:
  32563. return this.getDisplay();
  32564. default:
  32565. throw new Error("The feature " + featureID + " is not valid.");
  32566. }
  32567. }
  32568. /**
  32569. * Get the value of a specific feature.
  32570. * @param {int} featureID the feature id of the attribute to get
  32571. */
  32572. }, {
  32573. key: 'basicGet',
  32574. value: function basicGet(featureID) {
  32575. switch (featureID) {
  32576. case 204:
  32577. return this.getUse2();
  32578. case 205:
  32579. return this.getDisplay2();
  32580. case 206:
  32581. return this.getOperator();
  32582. case 130:
  32583. return this.getUse();
  32584. case 182:
  32585. return this.getDisplay();
  32586. default:
  32587. throw new Error("The feature " + featureID + " is not valid.");
  32588. }
  32589. }
  32590. }], [{
  32591. key: 'fromJSON',
  32592. value: function fromJSON(json, factory) {
  32593. var result = factory.createValueType();
  32594. var featureList = result.getFeatureList(factory);
  32595. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  32596. return result;
  32597. }
  32598. }]);
  32599. return ValueType;
  32600. }(_MoserObject3.default);
  32601. exports.default = ValueType;
  32602. /***/ },
  32603. /* 100 */
  32604. /***/ function(module, exports, __webpack_require__) {
  32605. "use strict";
  32606. Object.defineProperty(exports, "__esModule", {
  32607. value: true
  32608. });
  32609. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  32610. var _Enum2 = __webpack_require__(12);
  32611. var _Enum3 = _interopRequireDefault(_Enum2);
  32612. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  32613. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  32614. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  32615. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  32616. ** IBM Confidential
  32617. **
  32618. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  32619. **
  32620. ** (C) Copyright IBM Corp. 2020
  32621. **
  32622. ** The source code for this program is not published or otherwise divested of its trade secrets,
  32623. ** irrespective of what has been deposited with the U.S. Copyright Office.
  32624. ************************************************************************/
  32625. // GENERATED
  32626. //@import Enum (loadtime) // superclass
  32627. /**
  32628. * <p>Java class for valueOperatorType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="valueOperatorType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="isNull"/&gt; &lt;enumeration value="greaterThan"/&gt; &lt;enumeration value="greaterEqual"/&gt; &lt;enumeration value="lessThan"/&gt; &lt;enumeration value="lessEqual"/&gt; &lt;enumeration value="notEqual"/&gt; &lt;enumeration value="equal"/&gt; &lt;enumeration value="between"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  32629. */
  32630. var ValueOperatorType = function (_Enum) {
  32631. _inherits(ValueOperatorType, _Enum);
  32632. function ValueOperatorType(v) {
  32633. _classCallCheck(this, ValueOperatorType);
  32634. var _this = _possibleConstructorReturn(this, (ValueOperatorType.__proto__ || Object.getPrototypeOf(ValueOperatorType)).call(this, v));
  32635. _this.enumValue = null;
  32636. _this.enumValue = v;
  32637. return _this;
  32638. }
  32639. _createClass(ValueOperatorType, [{
  32640. key: "value",
  32641. value: function value() {
  32642. return this.enumValue;
  32643. }
  32644. }, {
  32645. key: "getResourceId",
  32646. value: function getResourceId() {
  32647. return "ValueOperatorType" + "_" + this.value();
  32648. }
  32649. }], [{
  32650. key: "fromValue",
  32651. value: function fromValue(v) {
  32652. for (var i = 0; i < ValueOperatorType.values().length; ++i) {
  32653. if (ValueOperatorType.values()[i].enumValue == v) {
  32654. return ValueOperatorType.values()[i];
  32655. }
  32656. }
  32657. throw new Error(v);
  32658. }
  32659. }]);
  32660. return ValueOperatorType;
  32661. }(_Enum3.default);
  32662. ValueOperatorType.IS_NULL = ValueOperatorType.newLiteral("isNull");
  32663. ValueOperatorType.GREATER_THAN = ValueOperatorType.newLiteral("greaterThan");
  32664. ValueOperatorType.GREATER_EQUAL = ValueOperatorType.newLiteral("greaterEqual");
  32665. ValueOperatorType.LESS_THAN = ValueOperatorType.newLiteral("lessThan");
  32666. ValueOperatorType.LESS_EQUAL = ValueOperatorType.newLiteral("lessEqual");
  32667. ValueOperatorType.NOT_EQUAL = ValueOperatorType.newLiteral("notEqual");
  32668. ValueOperatorType.EQUAL = ValueOperatorType.newLiteral("equal");
  32669. ValueOperatorType.BETWEEN = ValueOperatorType.newLiteral("between");
  32670. exports.default = ValueOperatorType;
  32671. /***/ },
  32672. /* 101 */
  32673. /***/ function(module, exports, __webpack_require__) {
  32674. 'use strict';
  32675. Object.defineProperty(exports, "__esModule", {
  32676. value: true
  32677. });
  32678. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  32679. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  32680. var _MoserObject2 = __webpack_require__(6);
  32681. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  32682. var _ParameterDataType = __webpack_require__(98);
  32683. var _ParameterDataType2 = _interopRequireDefault(_ParameterDataType);
  32684. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  32685. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  32686. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  32687. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  32688. ** IBM Confidential
  32689. **
  32690. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  32691. **
  32692. ** (C) Copyright IBM Corp. 2020
  32693. **
  32694. ** The source code for this program is not published or otherwise divested of its trade secrets,
  32695. ** irrespective of what has been deposited with the U.S. Copyright Office.
  32696. ************************************************************************/
  32697. // GENERATED
  32698. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  32699. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterDataType (runtime) // new
  32700. /**
  32701. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="parameterName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="dataType" type="{}parameterDataType"/&gt; &lt;element name="modelFilterItem" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="capabilities" type="{}parameterCapabilitiesType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  32702. */
  32703. var ParameterFault = function (_MoserObject) {
  32704. _inherits(ParameterFault, _MoserObject);
  32705. function ParameterFault() {
  32706. var _ref;
  32707. var _temp, _this, _ret;
  32708. _classCallCheck(this, ParameterFault);
  32709. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  32710. args[_key] = arguments[_key];
  32711. }
  32712. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ParameterFault.__proto__ || Object.getPrototypeOf(ParameterFault)).call.apply(_ref, [this].concat(args))), _this), _this.parameterName = null, _this.dataType = null, _this.modelFilterItem = null, _this.capabilities = null, _temp), _possibleConstructorReturn(_this, _ret);
  32713. }
  32714. _createClass(ParameterFault, [{
  32715. key: 'getParameterName',
  32716. /**
  32717. * Gets the value of the parameterName property.
  32718. * @return {String} possible object is {@link String}
  32719. */
  32720. value: function getParameterName() {
  32721. return this.parameterName;
  32722. }
  32723. /**
  32724. * Sets the value of the parameterName property.
  32725. * @param {String} value allowed object is {@link String}
  32726. */
  32727. }, {
  32728. key: 'setParameterName',
  32729. value: function setParameterName(value) {
  32730. var oldValue = this.parameterName;
  32731. this.parameterName = value;
  32732. this._setAndNotify(80, oldValue, value, false, false);
  32733. }
  32734. /**
  32735. * Gets the value of the dataType property.
  32736. * @return {ParameterDataType} possible object is {@link ParameterDataType}
  32737. */
  32738. }, {
  32739. key: 'getDataType',
  32740. value: function getDataType() {
  32741. return this.dataType;
  32742. }
  32743. /**
  32744. * Sets the value of the dataType property.
  32745. * @param {ParameterDataType} value allowed object is {@link ParameterDataType}
  32746. */
  32747. }, {
  32748. key: 'setDataType',
  32749. value: function setDataType(value) {
  32750. var oldValue = this.dataType;
  32751. this.dataType = value;
  32752. this._setAndNotify(82, oldValue, value, false, false);
  32753. }
  32754. /**
  32755. * Gets the value of the modelFilterItem property.
  32756. * @return {String} possible object is {@link String}
  32757. */
  32758. }, {
  32759. key: 'getModelFilterItem',
  32760. value: function getModelFilterItem() {
  32761. return this.modelFilterItem;
  32762. }
  32763. /**
  32764. * Sets the value of the modelFilterItem property.
  32765. * @param {String} value allowed object is {@link String}
  32766. */
  32767. }, {
  32768. key: 'setModelFilterItem',
  32769. value: function setModelFilterItem(value) {
  32770. var oldValue = this.modelFilterItem;
  32771. this.modelFilterItem = value;
  32772. this._setAndNotify(118, oldValue, value, false, false);
  32773. }
  32774. /**
  32775. * Gets the value of the capabilities property.
  32776. * @return {ParameterCapabilitiesType} possible object is {@link ParameterCapabilitiesType}
  32777. */
  32778. }, {
  32779. key: 'getCapabilities',
  32780. value: function getCapabilities() {
  32781. return this.capabilities;
  32782. }
  32783. /**
  32784. * Sets the value of the capabilities property.
  32785. * @param {ParameterCapabilitiesType} value allowed object is {@link ParameterCapabilitiesType}
  32786. */
  32787. }, {
  32788. key: 'setCapabilities',
  32789. value: function setCapabilities(value) {
  32790. var oldValue = this.capabilities;
  32791. this.capabilities = value;
  32792. this._setAndNotify(117, oldValue, value, true, false);
  32793. }
  32794. /**
  32795. * Creates a new instance of <code>ParameterFault</code> object from JSON data.
  32796. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  32797. * @param {Object} json JSON data to be used to create the <code> ParameterFault</code> object from.
  32798. * @return {ParameterFault} an object of type <code>ParameterFault</code>
  32799. */
  32800. }, {
  32801. key: 'getObjectType',
  32802. /**
  32803. * Retrieves the type of this object
  32804. * @return {String} the object type in a <code>String</code>
  32805. */
  32806. value: function getObjectType() {
  32807. return "ParameterFault";
  32808. }
  32809. /**
  32810. * Get a list of FeatureObjects
  32811. * @return {Array} A list of FeatureObjects
  32812. */
  32813. }, {
  32814. key: 'getFeatureList',
  32815. value: function getFeatureList(factory) {
  32816. var featureList = [];
  32817. featureList.push(this.createFeature(false, false, false, 80, "parameterName", null));
  32818. featureList.push(this.createFeature(false, true, false, 82, "dataType", _ParameterDataType2.default));
  32819. featureList.push(this.createFeature(false, false, false, 118, "modelFilterItem", null));
  32820. var clazz;
  32821. if (factory) {
  32822. clazz = factory.createParameterCapabilitiesType().getClass();
  32823. }
  32824. featureList.push(this.createFeature(false, false, true, 117, "capabilities", clazz));
  32825. Array.prototype.push.apply(featureList, _get(ParameterFault.prototype.__proto__ || Object.getPrototypeOf(ParameterFault.prototype), 'getFeatureList', this).call(this, factory));
  32826. return featureList;
  32827. }
  32828. /**
  32829. * Set the value of a specific feature.
  32830. * @param {BaseMoserObject} value the value to set
  32831. * @param {int} featureID the feature id of the attribute to be set
  32832. */
  32833. }, {
  32834. key: 'set',
  32835. value: function set(featureID, value) {
  32836. switch (featureID) {
  32837. case 80:
  32838. this.setParameterName(value);
  32839. break;
  32840. case 117:
  32841. this.setCapabilities(value);
  32842. break;
  32843. case 118:
  32844. this.setModelFilterItem(value);
  32845. break;
  32846. case 82:
  32847. this.setDataType(value);
  32848. break;
  32849. default:
  32850. throw new Error("The feature " + featureID + " is not valid.");
  32851. }
  32852. }
  32853. /**
  32854. * Get the value of a specific feature.
  32855. * @param {int} featureID the feature id of the attribute to get
  32856. */
  32857. }, {
  32858. key: 'get',
  32859. value: function get(featureID) {
  32860. switch (featureID) {
  32861. case 80:
  32862. return this.getParameterName();
  32863. case 117:
  32864. return this.getCapabilities();
  32865. case 118:
  32866. return this.getModelFilterItem();
  32867. case 82:
  32868. return this.getDataType();
  32869. default:
  32870. throw new Error("The feature " + featureID + " is not valid.");
  32871. }
  32872. }
  32873. /**
  32874. * Get the value of a specific feature.
  32875. * @param {int} featureID the feature id of the attribute to get
  32876. */
  32877. }, {
  32878. key: 'basicGet',
  32879. value: function basicGet(featureID) {
  32880. switch (featureID) {
  32881. case 80:
  32882. return this.getParameterName();
  32883. case 117:
  32884. return this.getCapabilities();
  32885. case 118:
  32886. return this.getModelFilterItem();
  32887. case 82:
  32888. return this.getDataType();
  32889. default:
  32890. throw new Error("The feature " + featureID + " is not valid.");
  32891. }
  32892. }
  32893. }], [{
  32894. key: 'fromJSON',
  32895. value: function fromJSON(json, factory) {
  32896. var result = factory.createParameterFault();
  32897. var featureList = result.getFeatureList(factory);
  32898. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  32899. return result;
  32900. }
  32901. }]);
  32902. return ParameterFault;
  32903. }(_MoserObject3.default);
  32904. exports.default = ParameterFault;
  32905. /***/ },
  32906. /* 102 */
  32907. /***/ function(module, exports, __webpack_require__) {
  32908. "use strict";
  32909. Object.defineProperty(exports, "__esModule", {
  32910. value: true
  32911. });
  32912. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  32913. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  32914. var _MoserObject2 = __webpack_require__(6);
  32915. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  32916. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  32917. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  32918. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  32919. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  32920. ** IBM Confidential
  32921. **
  32922. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  32923. **
  32924. ** (C) Copyright IBM Corp. 2020
  32925. **
  32926. ** The source code for this program is not published or otherwise divested of its trade secrets,
  32927. ** irrespective of what has been deposited with the U.S. Copyright Office.
  32928. ************************************************************************/
  32929. // GENERATED
  32930. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  32931. /**
  32932. * <p>Java class for parameterCapabilitiesType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="parameterCapabilitiesType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;all&gt; &lt;element name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="multivalued" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="discreteValue" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="boundRange" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="unboundedRange" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;/all&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  32933. */
  32934. var ParameterCapabilitiesType = function (_MoserObject) {
  32935. _inherits(ParameterCapabilitiesType, _MoserObject);
  32936. function ParameterCapabilitiesType() {
  32937. var _ref;
  32938. var _temp, _this, _ret;
  32939. _classCallCheck(this, ParameterCapabilitiesType);
  32940. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  32941. args[_key] = arguments[_key];
  32942. }
  32943. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ParameterCapabilitiesType.__proto__ || Object.getPrototypeOf(ParameterCapabilitiesType)).call.apply(_ref, [this].concat(args))), _this), _this.optional = null, _this.multivalued = null, _this.discreteValue = null, _this.boundRange = null, _this.unboundedRange = null, _temp), _possibleConstructorReturn(_this, _ret);
  32944. }
  32945. _createClass(ParameterCapabilitiesType, [{
  32946. key: "isOptional",
  32947. /**
  32948. * Gets the value of the optional property.
  32949. * @return {Boolean} possible object is {@link Boolean}
  32950. */
  32951. value: function isOptional() {
  32952. return this.optional;
  32953. }
  32954. /**
  32955. * Sets the value of the optional property.
  32956. * @param {Boolean} value allowed object is {@link Boolean}
  32957. */
  32958. }, {
  32959. key: "setOptional",
  32960. value: function setOptional(value) {
  32961. var oldValue = this.optional;
  32962. this.optional = value;
  32963. this._setAndNotify(157, oldValue, value, false, false);
  32964. }
  32965. /**
  32966. * Gets the value of the multivalued property.
  32967. * @return {Boolean} possible object is {@link Boolean}
  32968. */
  32969. }, {
  32970. key: "isMultivalued",
  32971. value: function isMultivalued() {
  32972. return this.multivalued;
  32973. }
  32974. /**
  32975. * Sets the value of the multivalued property.
  32976. * @param {Boolean} value allowed object is {@link Boolean}
  32977. */
  32978. }, {
  32979. key: "setMultivalued",
  32980. value: function setMultivalued(value) {
  32981. var oldValue = this.multivalued;
  32982. this.multivalued = value;
  32983. this._setAndNotify(160, oldValue, value, false, false);
  32984. }
  32985. /**
  32986. * Gets the value of the discreteValue property.
  32987. * @return {Boolean} possible object is {@link Boolean}
  32988. */
  32989. }, {
  32990. key: "isDiscreteValue",
  32991. value: function isDiscreteValue() {
  32992. return this.discreteValue;
  32993. }
  32994. /**
  32995. * Sets the value of the discreteValue property.
  32996. * @param {Boolean} value allowed object is {@link Boolean}
  32997. */
  32998. }, {
  32999. key: "setDiscreteValue",
  33000. value: function setDiscreteValue(value) {
  33001. var oldValue = this.discreteValue;
  33002. this.discreteValue = value;
  33003. this._setAndNotify(158, oldValue, value, false, false);
  33004. }
  33005. /**
  33006. * Gets the value of the boundRange property.
  33007. * @return {Boolean} possible object is {@link Boolean}
  33008. */
  33009. }, {
  33010. key: "isBoundRange",
  33011. value: function isBoundRange() {
  33012. return this.boundRange;
  33013. }
  33014. /**
  33015. * Sets the value of the boundRange property.
  33016. * @param {Boolean} value allowed object is {@link Boolean}
  33017. */
  33018. }, {
  33019. key: "setBoundRange",
  33020. value: function setBoundRange(value) {
  33021. var oldValue = this.boundRange;
  33022. this.boundRange = value;
  33023. this._setAndNotify(156, oldValue, value, false, false);
  33024. }
  33025. /**
  33026. * Gets the value of the unboundedRange property.
  33027. * @return {Boolean} possible object is {@link Boolean}
  33028. */
  33029. }, {
  33030. key: "isUnboundedRange",
  33031. value: function isUnboundedRange() {
  33032. return this.unboundedRange;
  33033. }
  33034. /**
  33035. * Sets the value of the unboundedRange property.
  33036. * @param {Boolean} value allowed object is {@link Boolean}
  33037. */
  33038. }, {
  33039. key: "setUnboundedRange",
  33040. value: function setUnboundedRange(value) {
  33041. var oldValue = this.unboundedRange;
  33042. this.unboundedRange = value;
  33043. this._setAndNotify(159, oldValue, value, false, false);
  33044. }
  33045. /**
  33046. * Creates a new instance of <code>ParameterCapabilitiesType</code> object from JSON data.
  33047. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  33048. * @param {Object} json JSON data to be used to create the <code> ParameterCapabilitiesType</code> object from.
  33049. * @return {ParameterCapabilitiesType} an object of type <code>ParameterCapabilitiesType</code>
  33050. */
  33051. }, {
  33052. key: "getObjectType",
  33053. /**
  33054. * Retrieves the type of this object
  33055. * @return {String} the object type in a <code>String</code>
  33056. */
  33057. value: function getObjectType() {
  33058. return "ParameterCapabilitiesType";
  33059. }
  33060. /**
  33061. * Get a list of FeatureObjects
  33062. * @return {Array} A list of FeatureObjects
  33063. */
  33064. }, {
  33065. key: "getFeatureList",
  33066. value: function getFeatureList(factory) {
  33067. var featureList = [];
  33068. featureList.push(this.createFeature(false, false, false, 157, "optional", null));
  33069. featureList.push(this.createFeature(false, false, false, 160, "multivalued", null));
  33070. featureList.push(this.createFeature(false, false, false, 158, "discreteValue", null));
  33071. featureList.push(this.createFeature(false, false, false, 156, "boundRange", null));
  33072. featureList.push(this.createFeature(false, false, false, 159, "unboundedRange", null));
  33073. Array.prototype.push.apply(featureList, _get(ParameterCapabilitiesType.prototype.__proto__ || Object.getPrototypeOf(ParameterCapabilitiesType.prototype), "getFeatureList", this).call(this, factory));
  33074. return featureList;
  33075. }
  33076. /**
  33077. * Set the value of a specific feature.
  33078. * @param {BaseMoserObject} value the value to set
  33079. * @param {int} featureID the feature id of the attribute to be set
  33080. */
  33081. }, {
  33082. key: "set",
  33083. value: function set(featureID, value) {
  33084. switch (featureID) {
  33085. case 156:
  33086. this.setBoundRange(value);
  33087. break;
  33088. case 157:
  33089. this.setOptional(value);
  33090. break;
  33091. case 158:
  33092. this.setDiscreteValue(value);
  33093. break;
  33094. case 159:
  33095. this.setUnboundedRange(value);
  33096. break;
  33097. case 160:
  33098. this.setMultivalued(value);
  33099. break;
  33100. default:
  33101. throw new Error("The feature " + featureID + " is not valid.");
  33102. }
  33103. }
  33104. /**
  33105. * Get the value of a specific feature.
  33106. * @param {int} featureID the feature id of the attribute to get
  33107. */
  33108. }, {
  33109. key: "get",
  33110. value: function get(featureID) {
  33111. switch (featureID) {
  33112. case 156:
  33113. return this.isBoundRange();
  33114. case 157:
  33115. return this.isOptional();
  33116. case 158:
  33117. return this.isDiscreteValue();
  33118. case 159:
  33119. return this.isUnboundedRange();
  33120. case 160:
  33121. return this.isMultivalued();
  33122. default:
  33123. throw new Error("The feature " + featureID + " is not valid.");
  33124. }
  33125. }
  33126. /**
  33127. * Get the value of a specific feature.
  33128. * @param {int} featureID the feature id of the attribute to get
  33129. */
  33130. }, {
  33131. key: "basicGet",
  33132. value: function basicGet(featureID) {
  33133. switch (featureID) {
  33134. case 156:
  33135. return this.isBoundRange();
  33136. case 157:
  33137. return this.isOptional();
  33138. case 158:
  33139. return this.isDiscreteValue();
  33140. case 159:
  33141. return this.isUnboundedRange();
  33142. case 160:
  33143. return this.isMultivalued();
  33144. default:
  33145. throw new Error("The feature " + featureID + " is not valid.");
  33146. }
  33147. }
  33148. }], [{
  33149. key: "fromJSON",
  33150. value: function fromJSON(json, factory) {
  33151. var result = factory.createParameterCapabilitiesType();
  33152. var featureList = result.getFeatureList(factory);
  33153. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  33154. return result;
  33155. }
  33156. }]);
  33157. return ParameterCapabilitiesType;
  33158. }(_MoserObject3.default);
  33159. exports.default = ParameterCapabilitiesType;
  33160. /***/ },
  33161. /* 103 */
  33162. /***/ function(module, exports, __webpack_require__) {
  33163. 'use strict';
  33164. Object.defineProperty(exports, "__esModule", {
  33165. value: true
  33166. });
  33167. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  33168. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  33169. var _ObjectType2 = __webpack_require__(26);
  33170. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  33171. var _MoserObject = __webpack_require__(6);
  33172. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  33173. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  33174. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  33175. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  33176. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  33177. ** IBM Confidential
  33178. **
  33179. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  33180. **
  33181. ** (C) Copyright IBM Corp. 2021
  33182. **
  33183. ** The source code for this program is not published or otherwise divested of its trade secrets,
  33184. ** irrespective of what has been deposited with the U.S. Copyright Office.
  33185. ************************************************************************/
  33186. // GENERATED
  33187. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  33188. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  33189. /**
  33190. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="parameterName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="uiControlReference" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="lowerLimit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="upperLimit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;choice&gt; &lt;sequence&gt; &lt;element name="staticValueSelector" type="{}valueType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element ref="{}queryValueSelector" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;element name="refDrillGroup" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;/choice&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  33191. */
  33192. var Prompt = function (_ObjectType) {
  33193. _inherits(Prompt, _ObjectType);
  33194. function Prompt() {
  33195. var _ref;
  33196. var _temp, _this, _ret;
  33197. _classCallCheck(this, Prompt);
  33198. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  33199. args[_key] = arguments[_key];
  33200. }
  33201. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Prompt.__proto__ || Object.getPrototypeOf(Prompt)).call.apply(_ref, [this].concat(args))), _this), _this.parameterName = null, _this.uiControlReference = null, _this.lowerLimit = null, _this.upperLimit = null, _this.staticValueSelector = null, _this.queryValueSelector = null, _this.refDrillGroup = null, _temp), _possibleConstructorReturn(_this, _ret);
  33202. }
  33203. _createClass(Prompt, [{
  33204. key: 'getParameterName',
  33205. /**
  33206. * Gets the value of the parameterName property.
  33207. * @return {String} possible object is {@link String}
  33208. */
  33209. value: function getParameterName() {
  33210. return this.parameterName;
  33211. }
  33212. /**
  33213. * Sets the value of the parameterName property.
  33214. * @param {String} value allowed object is {@link String}
  33215. */
  33216. }, {
  33217. key: 'setParameterName',
  33218. value: function setParameterName(value) {
  33219. var oldValue = this.parameterName;
  33220. this.parameterName = value;
  33221. this._setAndNotify(80, oldValue, value, false, true);
  33222. }
  33223. /**
  33224. * Gets the value of the uiControlReference property.
  33225. * @return {String} possible object is {@link String}
  33226. */
  33227. }, {
  33228. key: 'getUiControlReference',
  33229. value: function getUiControlReference() {
  33230. return this.uiControlReference;
  33231. }
  33232. /**
  33233. * Sets the value of the uiControlReference property.
  33234. * @param {String} value allowed object is {@link String}
  33235. */
  33236. }, {
  33237. key: 'setUiControlReference',
  33238. value: function setUiControlReference(value) {
  33239. var oldValue = this.uiControlReference;
  33240. this.uiControlReference = value;
  33241. this._setAndNotify(238, oldValue, value, false, true);
  33242. }
  33243. /**
  33244. * Gets the value of the lowerLimit property.
  33245. * @return {String} possible object is {@link String}
  33246. */
  33247. }, {
  33248. key: 'getLowerLimit',
  33249. value: function getLowerLimit() {
  33250. return this.lowerLimit;
  33251. }
  33252. /**
  33253. * Sets the value of the lowerLimit property.
  33254. * @param {String} value allowed object is {@link String}
  33255. */
  33256. }, {
  33257. key: 'setLowerLimit',
  33258. value: function setLowerLimit(value) {
  33259. var oldValue = this.lowerLimit;
  33260. this.lowerLimit = value;
  33261. this._setAndNotify(242, oldValue, value, false, true);
  33262. }
  33263. /**
  33264. * Gets the value of the upperLimit property.
  33265. * @return {String} possible object is {@link String}
  33266. */
  33267. }, {
  33268. key: 'getUpperLimit',
  33269. value: function getUpperLimit() {
  33270. return this.upperLimit;
  33271. }
  33272. /**
  33273. * Sets the value of the upperLimit property.
  33274. * @param {String} value allowed object is {@link String}
  33275. */
  33276. }, {
  33277. key: 'setUpperLimit',
  33278. value: function setUpperLimit(value) {
  33279. var oldValue = this.upperLimit;
  33280. this.upperLimit = value;
  33281. this._setAndNotify(241, oldValue, value, false, true);
  33282. }
  33283. /**
  33284. * Gets the value of the staticValueSelector property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the staticValueSelector property. <p> For example, to add a new item, do as follows: <pre> getStaticValueSelector().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ValueType}
  33285. */
  33286. }, {
  33287. key: 'getStaticValueSelector',
  33288. value: function getStaticValueSelector() {
  33289. if (!this.staticValueSelector) {
  33290. this.staticValueSelector = [];
  33291. }
  33292. return this.staticValueSelector;
  33293. }
  33294. /**
  33295. * Gets the value of the queryValueSelector property.
  33296. * @return {QueryValueSelector} possible object is {@link QueryValueSelector}
  33297. */
  33298. }, {
  33299. key: 'getQueryValueSelector',
  33300. value: function getQueryValueSelector() {
  33301. return this.queryValueSelector;
  33302. }
  33303. /**
  33304. * Sets the value of the queryValueSelector property.
  33305. * @param {QueryValueSelector} value allowed object is {@link QueryValueSelector}
  33306. */
  33307. }, {
  33308. key: 'setQueryValueSelector',
  33309. value: function setQueryValueSelector(value) {
  33310. var oldValue = this.queryValueSelector;
  33311. this.queryValueSelector = value;
  33312. this._setAndNotify(239, oldValue, value, true, true);
  33313. }
  33314. /**
  33315. * Gets the value of the refDrillGroup property.
  33316. * @return {String} possible object is {@link String}
  33317. */
  33318. }, {
  33319. key: 'getRefDrillGroup',
  33320. value: function getRefDrillGroup() {
  33321. return this.refDrillGroup;
  33322. }
  33323. /**
  33324. * Sets the value of the refDrillGroup property.
  33325. * @param {String} value allowed object is {@link String}
  33326. */
  33327. }, {
  33328. key: 'setRefDrillGroup',
  33329. value: function setRefDrillGroup(value) {
  33330. var oldValue = this.refDrillGroup;
  33331. this.refDrillGroup = value;
  33332. this._setAndNotify(240, oldValue, value, false, true);
  33333. }
  33334. /**
  33335. * Gets the value of the <code>staticValueSelector</code> property without initializing the property to an empty list if it is unset.
  33336. * @return {Array} the list of <code>ValueType</code> elements, or <code>null</code> if not set
  33337. */
  33338. }, {
  33339. key: 'basicGetStaticValueSelector',
  33340. value: function basicGetStaticValueSelector() {
  33341. return this.staticValueSelector;
  33342. }
  33343. /**
  33344. * Creates a new instance of <code>Prompt</code> object from JSON data.
  33345. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  33346. * @param {Object} json JSON data to be used to create the <code> Prompt</code> object from.
  33347. * @return {Prompt} an object of type <code>Prompt</code>
  33348. */
  33349. }, {
  33350. key: 'addStaticValueSelectorAt',
  33351. /**
  33352. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  33353. */
  33354. value: function addStaticValueSelectorAt(position, item) {
  33355. this._addAtAndNotify(this.getStaticValueSelector(), position, item, 243, true, false);
  33356. }
  33357. /**
  33358. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  33359. */
  33360. }, {
  33361. key: 'addStaticValueSelector',
  33362. value: function addStaticValueSelector(item) {
  33363. this.addStaticValueSelectorAt(this.getStaticValueSelector().length, item);
  33364. }
  33365. /**
  33366. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  33367. */
  33368. }, {
  33369. key: 'removeStaticValueSelectorAt',
  33370. value: function removeStaticValueSelectorAt(position) {
  33371. this._removeAtAndNotify(this.getStaticValueSelector(), position, 243, true);
  33372. }
  33373. /**
  33374. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  33375. */
  33376. }, {
  33377. key: 'removeStaticValueSelector',
  33378. value: function removeStaticValueSelector(item) {
  33379. var i = this.getStaticValueSelector().indexOf(item);
  33380. if (i >= 0) {
  33381. this.removeStaticValueSelectorAt(i);
  33382. }
  33383. }
  33384. /**
  33385. * Retrieves the type of this object
  33386. * @return {String} the object type in a <code>String</code>
  33387. */
  33388. }, {
  33389. key: 'getObjectType',
  33390. value: function getObjectType() {
  33391. return "Prompt";
  33392. }
  33393. /**
  33394. * Get a list of FeatureObjects
  33395. * @return {Array} A list of FeatureObjects
  33396. */
  33397. }, {
  33398. key: 'getFeatureList',
  33399. value: function getFeatureList(factory) {
  33400. var featureList = [];
  33401. featureList.push(this.createFeature(false, false, false, 80, "parameterName", null));
  33402. featureList.push(this.createFeature(false, false, false, 238, "uiControlReference", null));
  33403. featureList.push(this.createFeature(false, false, false, 242, "lowerLimit", null));
  33404. featureList.push(this.createFeature(false, false, false, 241, "upperLimit", null));
  33405. var clazz;
  33406. if (factory) {
  33407. clazz = factory.createValueType().getClass();
  33408. }
  33409. featureList.push(this.createFeature(true, false, true, 243, "staticValueSelector", clazz));
  33410. if (factory) {
  33411. clazz = factory.createQueryValueSelector().getClass();
  33412. }
  33413. featureList.push(this.createFeature(false, false, true, 239, "queryValueSelector", clazz));
  33414. featureList.push(this.createFeature(false, false, false, 240, "refDrillGroup", null));
  33415. Array.prototype.push.apply(featureList, _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'getFeatureList', this).call(this, factory));
  33416. return featureList;
  33417. }
  33418. /**
  33419. * Set the value of a specific feature.
  33420. * @param {BaseMoserObject} value the value to set
  33421. * @param {int} featureID the feature id of the attribute to be set
  33422. */
  33423. }, {
  33424. key: 'set',
  33425. value: function set(featureID, value) {
  33426. switch (featureID) {
  33427. case 238:
  33428. this.setUiControlReference(value);
  33429. break;
  33430. case 239:
  33431. this.setQueryValueSelector(value);
  33432. break;
  33433. case 240:
  33434. this.setRefDrillGroup(value);
  33435. break;
  33436. case 241:
  33437. this.setUpperLimit(value);
  33438. break;
  33439. case 80:
  33440. this.setParameterName(value);
  33441. break;
  33442. case 242:
  33443. this.setLowerLimit(value);
  33444. break;
  33445. default:
  33446. _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'set', this).call(this, featureID, value);
  33447. }
  33448. }
  33449. /**
  33450. * Set the value of a specific feature.
  33451. * @param {BaseMoserObject} value the value to set the value to set
  33452. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  33453. */
  33454. }, {
  33455. key: '_setList',
  33456. value: function _setList(featureID, value) {
  33457. switch (featureID) {
  33458. case 243:
  33459. this.staticValueSelector = value;
  33460. break;
  33461. default:
  33462. _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), '_setList', this).call(this, featureID, value);
  33463. }
  33464. }
  33465. /**
  33466. * Get the value of a specific feature.
  33467. * @param {int} featureID the feature id of the attribute to get
  33468. */
  33469. }, {
  33470. key: 'get',
  33471. value: function get(featureID) {
  33472. switch (featureID) {
  33473. case 238:
  33474. return this.getUiControlReference();
  33475. case 239:
  33476. return this.getQueryValueSelector();
  33477. case 240:
  33478. return this.getRefDrillGroup();
  33479. case 241:
  33480. return this.getUpperLimit();
  33481. case 80:
  33482. return this.getParameterName();
  33483. case 242:
  33484. return this.getLowerLimit();
  33485. case 243:
  33486. return this.getStaticValueSelector();
  33487. default:
  33488. return _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'get', this).call(this, featureID);
  33489. }
  33490. }
  33491. /**
  33492. * Get the value of a specific feature.
  33493. * @param {int} featureID the feature id of the attribute to get
  33494. */
  33495. }, {
  33496. key: 'basicGet',
  33497. value: function basicGet(featureID) {
  33498. switch (featureID) {
  33499. case 238:
  33500. return this.getUiControlReference();
  33501. case 239:
  33502. return this.getQueryValueSelector();
  33503. case 240:
  33504. return this.getRefDrillGroup();
  33505. case 241:
  33506. return this.getUpperLimit();
  33507. case 80:
  33508. return this.getParameterName();
  33509. case 242:
  33510. return this.getLowerLimit();
  33511. case 243:
  33512. return this.basicGetStaticValueSelector();
  33513. default:
  33514. return _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'basicGet', this).call(this, featureID);
  33515. }
  33516. }
  33517. /**
  33518. * Add the value of a specific feature at a specific position
  33519. * @param {int} position the array position of the item to be added
  33520. * @param {BaseMoserObject} value the value to add
  33521. * @param {int} featureID the feature id of the attribute to be added
  33522. */
  33523. }, {
  33524. key: 'addAt',
  33525. value: function addAt(featureID, position, value) {
  33526. switch (featureID) {
  33527. case 243:
  33528. this.addStaticValueSelectorAt(position, value);
  33529. break;
  33530. default:
  33531. _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'addAt', this).call(this, featureID, position, value);
  33532. }
  33533. }
  33534. /**
  33535. * Add the value to the end of a specific collection feature
  33536. * @param {BaseMoserObject} value the value to add
  33537. * @param {int} featureID the feature id of the attribute to be added
  33538. */
  33539. }, {
  33540. key: 'add',
  33541. value: function add(featureID, value) {
  33542. switch (featureID) {
  33543. case 243:
  33544. this.addStaticValueSelector(value);
  33545. break;
  33546. default:
  33547. _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'add', this).call(this, featureID, value);
  33548. }
  33549. }
  33550. /**
  33551. * Remove the value of a specific feature by index.
  33552. * @param {int} position the array position of the item to be removed
  33553. * @param {int} featureID the feature id of the attribute to be removed
  33554. */
  33555. }, {
  33556. key: 'removeAt',
  33557. value: function removeAt(featureID, position) {
  33558. switch (featureID) {
  33559. case 243:
  33560. this.removeStaticValueSelectorAt(position);
  33561. break;
  33562. default:
  33563. _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'removeAt', this).call(this, featureID, position);
  33564. }
  33565. }
  33566. /**
  33567. * Remove the value from specific feature.
  33568. * @param {BaseMoserObject} item the item to be removed
  33569. * @param {int} featureID the feature id of the attribute to be removed
  33570. */
  33571. }, {
  33572. key: 'remove',
  33573. value: function remove(featureID, item) {
  33574. switch (featureID) {
  33575. case 243:
  33576. this.removeStaticValueSelector(item);
  33577. break;
  33578. default:
  33579. _get(Prompt.prototype.__proto__ || Object.getPrototypeOf(Prompt.prototype), 'remove', this).call(this, featureID, item);
  33580. }
  33581. }
  33582. }], [{
  33583. key: 'fromJSON',
  33584. value: function fromJSON(json, factory) {
  33585. var result = factory.createPrompt();
  33586. var featureList = result.getFeatureList(factory);
  33587. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  33588. return result;
  33589. }
  33590. }]);
  33591. return Prompt;
  33592. }(_ObjectType3.default);
  33593. exports.default = Prompt;
  33594. /***/ },
  33595. /* 104 */
  33596. /***/ function(module, exports, __webpack_require__) {
  33597. 'use strict';
  33598. Object.defineProperty(exports, "__esModule", {
  33599. value: true
  33600. });
  33601. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  33602. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  33603. var _MoserObject2 = __webpack_require__(6);
  33604. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  33605. var _ParameterDataType = __webpack_require__(98);
  33606. var _ParameterDataType2 = _interopRequireDefault(_ParameterDataType);
  33607. var _ParameterLocationType = __webpack_require__(105);
  33608. var _ParameterLocationType2 = _interopRequireDefault(_ParameterLocationType);
  33609. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  33610. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  33611. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  33612. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  33613. ** IBM Confidential
  33614. **
  33615. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  33616. **
  33617. ** (C) Copyright IBM Corp. 2020
  33618. **
  33619. ** The source code for this program is not published or otherwise divested of its trade secrets,
  33620. ** irrespective of what has been deposited with the U.S. Copyright Office.
  33621. ************************************************************************/
  33622. // GENERATED
  33623. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  33624. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterDataType (runtime) // new
  33625. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterLocationType (runtime) // new
  33626. /**
  33627. * <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="parameterName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="dataType" type="{}parameterDataType"/&gt; &lt;element name="modelFilterItem" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="capabilities" type="{}parameterCapabilitiesType" minOccurs="0"/&gt; &lt;element name="invert" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="values" type="{}valueType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="location" type="{}parameterLocationType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  33628. */
  33629. var ParameterFeedbackInfo = function (_MoserObject) {
  33630. _inherits(ParameterFeedbackInfo, _MoserObject);
  33631. function ParameterFeedbackInfo() {
  33632. var _ref;
  33633. var _temp, _this, _ret;
  33634. _classCallCheck(this, ParameterFeedbackInfo);
  33635. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  33636. args[_key] = arguments[_key];
  33637. }
  33638. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ParameterFeedbackInfo.__proto__ || Object.getPrototypeOf(ParameterFeedbackInfo)).call.apply(_ref, [this].concat(args))), _this), _this.parameterName = null, _this.dataType = null, _this.modelFilterItem = null, _this.capabilities = null, _this.invert = null, _this.values = null, _this.location = null, _temp), _possibleConstructorReturn(_this, _ret);
  33639. }
  33640. _createClass(ParameterFeedbackInfo, [{
  33641. key: 'getParameterName',
  33642. /**
  33643. * Gets the value of the parameterName property.
  33644. * @return {String} possible object is {@link String}
  33645. */
  33646. value: function getParameterName() {
  33647. return this.parameterName;
  33648. }
  33649. /**
  33650. * Sets the value of the parameterName property.
  33651. * @param {String} value allowed object is {@link String}
  33652. */
  33653. }, {
  33654. key: 'setParameterName',
  33655. value: function setParameterName(value) {
  33656. var oldValue = this.parameterName;
  33657. this.parameterName = value;
  33658. this._setAndNotify(80, oldValue, value, false, false);
  33659. }
  33660. /**
  33661. * Gets the value of the dataType property.
  33662. * @return {ParameterDataType} possible object is {@link ParameterDataType}
  33663. */
  33664. }, {
  33665. key: 'getDataType',
  33666. value: function getDataType() {
  33667. return this.dataType;
  33668. }
  33669. /**
  33670. * Sets the value of the dataType property.
  33671. * @param {ParameterDataType} value allowed object is {@link ParameterDataType}
  33672. */
  33673. }, {
  33674. key: 'setDataType',
  33675. value: function setDataType(value) {
  33676. var oldValue = this.dataType;
  33677. this.dataType = value;
  33678. this._setAndNotify(82, oldValue, value, false, false);
  33679. }
  33680. /**
  33681. * Gets the value of the modelFilterItem property.
  33682. * @return {String} possible object is {@link String}
  33683. */
  33684. }, {
  33685. key: 'getModelFilterItem',
  33686. value: function getModelFilterItem() {
  33687. return this.modelFilterItem;
  33688. }
  33689. /**
  33690. * Sets the value of the modelFilterItem property.
  33691. * @param {String} value allowed object is {@link String}
  33692. */
  33693. }, {
  33694. key: 'setModelFilterItem',
  33695. value: function setModelFilterItem(value) {
  33696. var oldValue = this.modelFilterItem;
  33697. this.modelFilterItem = value;
  33698. this._setAndNotify(118, oldValue, value, false, false);
  33699. }
  33700. /**
  33701. * Gets the value of the capabilities property.
  33702. * @return {ParameterCapabilitiesType} possible object is {@link ParameterCapabilitiesType}
  33703. */
  33704. }, {
  33705. key: 'getCapabilities',
  33706. value: function getCapabilities() {
  33707. return this.capabilities;
  33708. }
  33709. /**
  33710. * Sets the value of the capabilities property.
  33711. * @param {ParameterCapabilitiesType} value allowed object is {@link ParameterCapabilitiesType}
  33712. */
  33713. }, {
  33714. key: 'setCapabilities',
  33715. value: function setCapabilities(value) {
  33716. var oldValue = this.capabilities;
  33717. this.capabilities = value;
  33718. this._setAndNotify(117, oldValue, value, true, false);
  33719. }
  33720. /**
  33721. * Gets the value of the invert property.
  33722. * @return {Boolean} possible object is {@link Boolean}
  33723. */
  33724. }, {
  33725. key: 'isInvert',
  33726. value: function isInvert() {
  33727. return this.invert;
  33728. }
  33729. /**
  33730. * Sets the value of the invert property.
  33731. * @param {Boolean} value allowed object is {@link Boolean}
  33732. */
  33733. }, {
  33734. key: 'setInvert',
  33735. value: function setInvert(value) {
  33736. var oldValue = this.invert;
  33737. this.invert = value;
  33738. this._setAndNotify(81, oldValue, value, false, false);
  33739. }
  33740. /**
  33741. * Gets the value of the values property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the values property. <p> For example, to add a new item, do as follows: <pre> getValues().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link ValueType}
  33742. */
  33743. }, {
  33744. key: 'getValues',
  33745. value: function getValues() {
  33746. if (!this.values) {
  33747. this.values = [];
  33748. }
  33749. return this.values;
  33750. }
  33751. /**
  33752. * Gets the value of the location property.
  33753. * @return {ParameterLocationType} possible object is {@link ParameterLocationType}
  33754. */
  33755. }, {
  33756. key: 'getLocation',
  33757. value: function getLocation() {
  33758. return this.location;
  33759. }
  33760. /**
  33761. * Sets the value of the location property.
  33762. * @param {ParameterLocationType} value allowed object is {@link ParameterLocationType}
  33763. */
  33764. }, {
  33765. key: 'setLocation',
  33766. value: function setLocation(value) {
  33767. var oldValue = this.location;
  33768. this.location = value;
  33769. this._setAndNotify(13, oldValue, value, false, false);
  33770. }
  33771. /**
  33772. * Gets the value of the <code>values</code> property without initializing the property to an empty list if it is unset.
  33773. * @return {Array} the list of <code>ValueType</code> elements, or <code>null</code> if not set
  33774. */
  33775. }, {
  33776. key: 'basicGetValues',
  33777. value: function basicGetValues() {
  33778. return this.values;
  33779. }
  33780. /**
  33781. * Creates a new instance of <code>ParameterFeedbackInfo</code> object from JSON data.
  33782. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  33783. * @param {Object} json JSON data to be used to create the <code> ParameterFeedbackInfo</code> object from.
  33784. * @return {ParameterFeedbackInfo} an object of type <code>ParameterFeedbackInfo</code>
  33785. */
  33786. }, {
  33787. key: 'addValuesAt',
  33788. /**
  33789. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  33790. */
  33791. value: function addValuesAt(position, item) {
  33792. this._addAtAndNotify(this.getValues(), position, item, 83, true, false);
  33793. }
  33794. /**
  33795. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  33796. */
  33797. }, {
  33798. key: 'addValues',
  33799. value: function addValues(item) {
  33800. this.addValuesAt(this.getValues().length, item);
  33801. }
  33802. /**
  33803. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  33804. */
  33805. }, {
  33806. key: 'removeValuesAt',
  33807. value: function removeValuesAt(position) {
  33808. this._removeAtAndNotify(this.getValues(), position, 83, true);
  33809. }
  33810. /**
  33811. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  33812. */
  33813. }, {
  33814. key: 'removeValues',
  33815. value: function removeValues(item) {
  33816. var i = this.getValues().indexOf(item);
  33817. if (i >= 0) {
  33818. this.removeValuesAt(i);
  33819. }
  33820. }
  33821. /**
  33822. * Retrieves the type of this object
  33823. * @return {String} the object type in a <code>String</code>
  33824. */
  33825. }, {
  33826. key: 'getObjectType',
  33827. value: function getObjectType() {
  33828. return "ParameterFeedbackInfo";
  33829. }
  33830. /**
  33831. * Get a list of FeatureObjects
  33832. * @return {Array} A list of FeatureObjects
  33833. */
  33834. }, {
  33835. key: 'getFeatureList',
  33836. value: function getFeatureList(factory) {
  33837. var featureList = [];
  33838. featureList.push(this.createFeature(false, false, false, 80, "parameterName", null));
  33839. featureList.push(this.createFeature(false, true, false, 82, "dataType", _ParameterDataType2.default));
  33840. featureList.push(this.createFeature(false, false, false, 118, "modelFilterItem", null));
  33841. var clazz;
  33842. if (factory) {
  33843. clazz = factory.createParameterCapabilitiesType().getClass();
  33844. }
  33845. featureList.push(this.createFeature(false, false, true, 117, "capabilities", clazz));
  33846. featureList.push(this.createFeature(false, false, false, 81, "invert", null));
  33847. if (factory) {
  33848. clazz = factory.createValueType().getClass();
  33849. }
  33850. featureList.push(this.createFeature(true, false, true, 83, "values", clazz));
  33851. featureList.push(this.createFeature(false, true, false, 13, "location", _ParameterLocationType2.default));
  33852. Array.prototype.push.apply(featureList, _get(ParameterFeedbackInfo.prototype.__proto__ || Object.getPrototypeOf(ParameterFeedbackInfo.prototype), 'getFeatureList', this).call(this, factory));
  33853. return featureList;
  33854. }
  33855. /**
  33856. * Set the value of a specific feature.
  33857. * @param {BaseMoserObject} value the value to set
  33858. * @param {int} featureID the feature id of the attribute to be set
  33859. */
  33860. }, {
  33861. key: 'set',
  33862. value: function set(featureID, value) {
  33863. switch (featureID) {
  33864. case 117:
  33865. this.setCapabilities(value);
  33866. break;
  33867. case 81:
  33868. this.setInvert(value);
  33869. break;
  33870. case 118:
  33871. this.setModelFilterItem(value);
  33872. break;
  33873. case 82:
  33874. this.setDataType(value);
  33875. break;
  33876. case 13:
  33877. this.setLocation(value);
  33878. break;
  33879. case 80:
  33880. this.setParameterName(value);
  33881. break;
  33882. default:
  33883. throw new Error("The feature " + featureID + " is not valid.");
  33884. }
  33885. }
  33886. /**
  33887. * Set the value of a specific feature.
  33888. * @param {BaseMoserObject} value the value to set the value to set
  33889. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  33890. */
  33891. }, {
  33892. key: '_setList',
  33893. value: function _setList(featureID, value) {
  33894. switch (featureID) {
  33895. case 83:
  33896. this.values = value;
  33897. break;
  33898. default:
  33899. throw new Error("The feature " + featureID + " is not valid.");
  33900. }
  33901. }
  33902. /**
  33903. * Get the value of a specific feature.
  33904. * @param {int} featureID the feature id of the attribute to get
  33905. */
  33906. }, {
  33907. key: 'get',
  33908. value: function get(featureID) {
  33909. switch (featureID) {
  33910. case 117:
  33911. return this.getCapabilities();
  33912. case 81:
  33913. return this.isInvert();
  33914. case 118:
  33915. return this.getModelFilterItem();
  33916. case 82:
  33917. return this.getDataType();
  33918. case 83:
  33919. return this.getValues();
  33920. case 13:
  33921. return this.getLocation();
  33922. case 80:
  33923. return this.getParameterName();
  33924. default:
  33925. throw new Error("The feature " + featureID + " is not valid.");
  33926. }
  33927. }
  33928. /**
  33929. * Get the value of a specific feature.
  33930. * @param {int} featureID the feature id of the attribute to get
  33931. */
  33932. }, {
  33933. key: 'basicGet',
  33934. value: function basicGet(featureID) {
  33935. switch (featureID) {
  33936. case 117:
  33937. return this.getCapabilities();
  33938. case 81:
  33939. return this.isInvert();
  33940. case 118:
  33941. return this.getModelFilterItem();
  33942. case 82:
  33943. return this.getDataType();
  33944. case 83:
  33945. return this.basicGetValues();
  33946. case 13:
  33947. return this.getLocation();
  33948. case 80:
  33949. return this.getParameterName();
  33950. default:
  33951. throw new Error("The feature " + featureID + " is not valid.");
  33952. }
  33953. }
  33954. /**
  33955. * Add the value of a specific feature at a specific position
  33956. * @param {int} position the array position of the item to be added
  33957. * @param {BaseMoserObject} value the value to add
  33958. * @param {int} featureID the feature id of the attribute to be added
  33959. */
  33960. }, {
  33961. key: 'addAt',
  33962. value: function addAt(featureID, position, value) {
  33963. switch (featureID) {
  33964. case 83:
  33965. this.addValuesAt(position, value);
  33966. break;
  33967. default:
  33968. throw new Error("The feature " + featureID + " is not valid.");
  33969. }
  33970. }
  33971. /**
  33972. * Add the value to the end of a specific collection feature
  33973. * @param {BaseMoserObject} value the value to add
  33974. * @param {int} featureID the feature id of the attribute to be added
  33975. */
  33976. }, {
  33977. key: 'add',
  33978. value: function add(featureID, value) {
  33979. switch (featureID) {
  33980. case 83:
  33981. this.addValues(value);
  33982. break;
  33983. default:
  33984. throw new Error("The feature " + featureID + " is not valid.");
  33985. }
  33986. }
  33987. /**
  33988. * Remove the value of a specific feature by index.
  33989. * @param {int} position the array position of the item to be removed
  33990. * @param {int} featureID the feature id of the attribute to be removed
  33991. */
  33992. }, {
  33993. key: 'removeAt',
  33994. value: function removeAt(featureID, position) {
  33995. switch (featureID) {
  33996. case 83:
  33997. this.removeValuesAt(position);
  33998. break;
  33999. default:
  34000. throw new Error("The feature " + featureID + " is not valid.");
  34001. }
  34002. }
  34003. /**
  34004. * Remove the value from specific feature.
  34005. * @param {BaseMoserObject} item the item to be removed
  34006. * @param {int} featureID the feature id of the attribute to be removed
  34007. */
  34008. }, {
  34009. key: 'remove',
  34010. value: function remove(featureID, item) {
  34011. switch (featureID) {
  34012. case 83:
  34013. this.removeValues(item);
  34014. break;
  34015. default:
  34016. throw new Error("The feature " + featureID + " is not valid.");
  34017. }
  34018. }
  34019. }], [{
  34020. key: 'fromJSON',
  34021. value: function fromJSON(json, factory) {
  34022. var result = factory.createParameterFeedbackInfo();
  34023. var featureList = result.getFeatureList(factory);
  34024. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  34025. return result;
  34026. }
  34027. }]);
  34028. return ParameterFeedbackInfo;
  34029. }(_MoserObject3.default);
  34030. exports.default = ParameterFeedbackInfo;
  34031. /***/ },
  34032. /* 105 */
  34033. /***/ function(module, exports, __webpack_require__) {
  34034. "use strict";
  34035. Object.defineProperty(exports, "__esModule", {
  34036. value: true
  34037. });
  34038. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  34039. var _Enum2 = __webpack_require__(12);
  34040. var _Enum3 = _interopRequireDefault(_Enum2);
  34041. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  34042. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  34043. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  34044. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  34045. ** IBM Confidential
  34046. **
  34047. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  34048. **
  34049. ** (C) Copyright IBM Corp. 2020
  34050. **
  34051. ** The source code for this program is not published or otherwise divested of its trade secrets,
  34052. ** irrespective of what has been deposited with the U.S. Copyright Office.
  34053. ************************************************************************/
  34054. // GENERATED
  34055. //@import Enum (loadtime) // superclass
  34056. /**
  34057. * <p>Java class for parameterLocationType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="parameterLocationType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="request"/&gt; &lt;enumeration value="query"/&gt; &lt;enumeration value="global"/&gt; &lt;enumeration value="module"/&gt; &lt;enumeration value="datasource"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
  34058. */
  34059. var ParameterLocationType = function (_Enum) {
  34060. _inherits(ParameterLocationType, _Enum);
  34061. function ParameterLocationType(v) {
  34062. _classCallCheck(this, ParameterLocationType);
  34063. var _this = _possibleConstructorReturn(this, (ParameterLocationType.__proto__ || Object.getPrototypeOf(ParameterLocationType)).call(this, v));
  34064. _this.enumValue = null;
  34065. _this.enumValue = v;
  34066. return _this;
  34067. }
  34068. _createClass(ParameterLocationType, [{
  34069. key: "value",
  34070. value: function value() {
  34071. return this.enumValue;
  34072. }
  34073. }, {
  34074. key: "getResourceId",
  34075. value: function getResourceId() {
  34076. return "ParameterLocationType" + "_" + this.value();
  34077. }
  34078. }], [{
  34079. key: "fromValue",
  34080. value: function fromValue(v) {
  34081. for (var i = 0; i < ParameterLocationType.values().length; ++i) {
  34082. if (ParameterLocationType.values()[i].enumValue == v) {
  34083. return ParameterLocationType.values()[i];
  34084. }
  34085. }
  34086. throw new Error(v);
  34087. }
  34088. }]);
  34089. return ParameterLocationType;
  34090. }(_Enum3.default);
  34091. ParameterLocationType.REQUEST = ParameterLocationType.newLiteral("request");
  34092. ParameterLocationType.QUERY = ParameterLocationType.newLiteral("query");
  34093. ParameterLocationType.GLOBAL = ParameterLocationType.newLiteral("global");
  34094. ParameterLocationType.MODULE = ParameterLocationType.newLiteral("module");
  34095. ParameterLocationType.DATASOURCE = ParameterLocationType.newLiteral("datasource");
  34096. exports.default = ParameterLocationType;
  34097. /***/ },
  34098. /* 106 */
  34099. /***/ function(module, exports, __webpack_require__) {
  34100. 'use strict';
  34101. Object.defineProperty(exports, "__esModule", {
  34102. value: true
  34103. });
  34104. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  34105. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  34106. var _ObjectType2 = __webpack_require__(26);
  34107. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  34108. var _MoserObject = __webpack_require__(6);
  34109. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  34110. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  34111. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  34112. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  34113. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  34114. ** IBM Confidential
  34115. **
  34116. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  34117. **
  34118. ** (C) Copyright IBM Corp. 2020
  34119. **
  34120. ** The source code for this program is not published or otherwise divested of its trade secrets,
  34121. ** irrespective of what has been deposited with the U.S. Copyright Office.
  34122. ************************************************************************/
  34123. // GENERATED
  34124. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  34125. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  34126. /**
  34127. * <p>Java class for folderType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="folderType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="folderItem" type="{}folderItemType" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  34128. */
  34129. var FolderType = function (_ObjectType) {
  34130. _inherits(FolderType, _ObjectType);
  34131. function FolderType() {
  34132. var _ref;
  34133. var _temp, _this, _ret;
  34134. _classCallCheck(this, FolderType);
  34135. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  34136. args[_key] = arguments[_key];
  34137. }
  34138. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = FolderType.__proto__ || Object.getPrototypeOf(FolderType)).call.apply(_ref, [this].concat(args))), _this), _this.folderItem = null, _temp), _possibleConstructorReturn(_this, _ret);
  34139. }
  34140. _createClass(FolderType, [{
  34141. key: 'getFolderItem',
  34142. /**
  34143. * Gets the value of the folderItem property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the folderItem property. <p> For example, to add a new item, do as follows: <pre> getFolderItem().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link FolderItemType}
  34144. */
  34145. value: function getFolderItem() {
  34146. if (!this.folderItem) {
  34147. this.folderItem = [];
  34148. }
  34149. return this.folderItem;
  34150. }
  34151. /**
  34152. * Gets the value of the <code>folderItem</code> property without initializing the property to an empty list if it is unset.
  34153. * @return {Array} the list of <code>FolderItemType</code> elements, or <code>null</code> if not set
  34154. */
  34155. }, {
  34156. key: 'basicGetFolderItem',
  34157. value: function basicGetFolderItem() {
  34158. return this.folderItem;
  34159. }
  34160. /**
  34161. * Creates a new instance of <code>FolderType</code> object from JSON data.
  34162. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  34163. * @param {Object} json JSON data to be used to create the <code> FolderType</code> object from.
  34164. * @return {FolderType} an object of type <code>FolderType</code>
  34165. */
  34166. }, {
  34167. key: 'addFolderItemAt',
  34168. /**
  34169. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  34170. */
  34171. value: function addFolderItemAt(position, item) {
  34172. this._addAtAndNotify(this.getFolderItem(), position, item, 71, true, false);
  34173. }
  34174. /**
  34175. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  34176. */
  34177. }, {
  34178. key: 'addFolderItem',
  34179. value: function addFolderItem(item) {
  34180. this.addFolderItemAt(this.getFolderItem().length, item);
  34181. }
  34182. /**
  34183. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  34184. */
  34185. }, {
  34186. key: 'removeFolderItemAt',
  34187. value: function removeFolderItemAt(position) {
  34188. this._removeAtAndNotify(this.getFolderItem(), position, 71, true);
  34189. }
  34190. /**
  34191. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  34192. */
  34193. }, {
  34194. key: 'removeFolderItem',
  34195. value: function removeFolderItem(item) {
  34196. var i = this.getFolderItem().indexOf(item);
  34197. if (i >= 0) {
  34198. this.removeFolderItemAt(i);
  34199. }
  34200. }
  34201. /**
  34202. * Retrieves the type of this object
  34203. * @return {String} the object type in a <code>String</code>
  34204. */
  34205. }, {
  34206. key: 'getObjectType',
  34207. value: function getObjectType() {
  34208. return "FolderType";
  34209. }
  34210. /**
  34211. * Get a list of FeatureObjects
  34212. * @return {Array} A list of FeatureObjects
  34213. */
  34214. }, {
  34215. key: 'getFeatureList',
  34216. value: function getFeatureList(factory) {
  34217. var featureList = [];
  34218. var clazz;
  34219. if (factory) {
  34220. clazz = factory.createFolderItemType().getClass();
  34221. }
  34222. featureList.push(this.createFeature(true, false, true, 71, "folderItem", clazz));
  34223. Array.prototype.push.apply(featureList, _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'getFeatureList', this).call(this, factory));
  34224. return featureList;
  34225. }
  34226. /**
  34227. * Set the value of a specific feature.
  34228. * @param {BaseMoserObject} value the value to set
  34229. * @param {int} featureID the feature id of the attribute to be set
  34230. */
  34231. }, {
  34232. key: 'set',
  34233. value: function set(featureID, value) {
  34234. switch (featureID) {
  34235. default:
  34236. _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'set', this).call(this, featureID, value);
  34237. }
  34238. }
  34239. /**
  34240. * Set the value of a specific feature.
  34241. * @param {BaseMoserObject} value the value to set the value to set
  34242. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  34243. */
  34244. }, {
  34245. key: '_setList',
  34246. value: function _setList(featureID, value) {
  34247. switch (featureID) {
  34248. case 71:
  34249. this.folderItem = value;
  34250. break;
  34251. default:
  34252. _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), '_setList', this).call(this, featureID, value);
  34253. }
  34254. }
  34255. /**
  34256. * Get the value of a specific feature.
  34257. * @param {int} featureID the feature id of the attribute to get
  34258. */
  34259. }, {
  34260. key: 'get',
  34261. value: function get(featureID) {
  34262. switch (featureID) {
  34263. case 71:
  34264. return this.getFolderItem();
  34265. default:
  34266. return _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'get', this).call(this, featureID);
  34267. }
  34268. }
  34269. /**
  34270. * Get the value of a specific feature.
  34271. * @param {int} featureID the feature id of the attribute to get
  34272. */
  34273. }, {
  34274. key: 'basicGet',
  34275. value: function basicGet(featureID) {
  34276. switch (featureID) {
  34277. case 71:
  34278. return this.basicGetFolderItem();
  34279. default:
  34280. return _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'basicGet', this).call(this, featureID);
  34281. }
  34282. }
  34283. /**
  34284. * Add the value of a specific feature at a specific position
  34285. * @param {int} position the array position of the item to be added
  34286. * @param {BaseMoserObject} value the value to add
  34287. * @param {int} featureID the feature id of the attribute to be added
  34288. */
  34289. }, {
  34290. key: 'addAt',
  34291. value: function addAt(featureID, position, value) {
  34292. switch (featureID) {
  34293. case 71:
  34294. this.addFolderItemAt(position, value);
  34295. break;
  34296. default:
  34297. _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'addAt', this).call(this, featureID, position, value);
  34298. }
  34299. }
  34300. /**
  34301. * Add the value to the end of a specific collection feature
  34302. * @param {BaseMoserObject} value the value to add
  34303. * @param {int} featureID the feature id of the attribute to be added
  34304. */
  34305. }, {
  34306. key: 'add',
  34307. value: function add(featureID, value) {
  34308. switch (featureID) {
  34309. case 71:
  34310. this.addFolderItem(value);
  34311. break;
  34312. default:
  34313. _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'add', this).call(this, featureID, value);
  34314. }
  34315. }
  34316. /**
  34317. * Remove the value of a specific feature by index.
  34318. * @param {int} position the array position of the item to be removed
  34319. * @param {int} featureID the feature id of the attribute to be removed
  34320. */
  34321. }, {
  34322. key: 'removeAt',
  34323. value: function removeAt(featureID, position) {
  34324. switch (featureID) {
  34325. case 71:
  34326. this.removeFolderItemAt(position);
  34327. break;
  34328. default:
  34329. _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'removeAt', this).call(this, featureID, position);
  34330. }
  34331. }
  34332. /**
  34333. * Remove the value from specific feature.
  34334. * @param {BaseMoserObject} item the item to be removed
  34335. * @param {int} featureID the feature id of the attribute to be removed
  34336. */
  34337. }, {
  34338. key: 'remove',
  34339. value: function remove(featureID, item) {
  34340. switch (featureID) {
  34341. case 71:
  34342. this.removeFolderItem(item);
  34343. break;
  34344. default:
  34345. _get(FolderType.prototype.__proto__ || Object.getPrototypeOf(FolderType.prototype), 'remove', this).call(this, featureID, item);
  34346. }
  34347. }
  34348. }], [{
  34349. key: 'fromJSON',
  34350. value: function fromJSON(json, factory) {
  34351. var result = factory.createFolderType();
  34352. var featureList = result.getFeatureList(factory);
  34353. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  34354. return result;
  34355. }
  34356. }]);
  34357. return FolderType;
  34358. }(_ObjectType3.default);
  34359. exports.default = FolderType;
  34360. /***/ },
  34361. /* 107 */
  34362. /***/ function(module, exports, __webpack_require__) {
  34363. "use strict";
  34364. Object.defineProperty(exports, "__esModule", {
  34365. value: true
  34366. });
  34367. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  34368. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  34369. var _MoserObject2 = __webpack_require__(6);
  34370. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  34371. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  34372. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  34373. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  34374. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  34375. ** IBM Confidential
  34376. **
  34377. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  34378. **
  34379. ** (C) Copyright IBM Corp. 2020
  34380. **
  34381. ** The source code for this program is not published or otherwise divested of its trade secrets,
  34382. ** irrespective of what has been deposited with the U.S. Copyright Office.
  34383. ************************************************************************/
  34384. // GENERATED
  34385. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  34386. /**
  34387. * Intent Service focus view. significant and influential are two part format reference list. <p>Java class for focus complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="focus"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="intent" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="significant" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;element name="influential" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  34388. */
  34389. var Focus = function (_MoserObject) {
  34390. _inherits(Focus, _MoserObject);
  34391. function Focus() {
  34392. var _ref;
  34393. var _temp, _this, _ret;
  34394. _classCallCheck(this, Focus);
  34395. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  34396. args[_key] = arguments[_key];
  34397. }
  34398. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply(_ref, [this].concat(args))), _this), _this.intent = null, _this.significant = null, _this.influential = null, _temp), _possibleConstructorReturn(_this, _ret);
  34399. }
  34400. _createClass(Focus, [{
  34401. key: "getIntent",
  34402. /**
  34403. * Gets the value of the intent property.
  34404. * @return {String} possible object is {@link String}
  34405. */
  34406. value: function getIntent() {
  34407. return this.intent;
  34408. }
  34409. /**
  34410. * Sets the value of the intent property.
  34411. * @param {String} value allowed object is {@link String}
  34412. */
  34413. }, {
  34414. key: "setIntent",
  34415. value: function setIntent(value) {
  34416. var oldValue = this.intent;
  34417. this.intent = value;
  34418. this._setAndNotify(121, oldValue, value, false, false);
  34419. }
  34420. /**
  34421. * Gets the value of the significant property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the significant property. <p> For example, to add a new item, do as follows: <pre> getSignificant().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  34422. */
  34423. }, {
  34424. key: "getSignificant",
  34425. value: function getSignificant() {
  34426. if (!this.significant) {
  34427. this.significant = [];
  34428. }
  34429. return this.significant;
  34430. }
  34431. /**
  34432. * Gets the value of the influential property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the influential property. <p> For example, to add a new item, do as follows: <pre> getInfluential().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link String}
  34433. */
  34434. }, {
  34435. key: "getInfluential",
  34436. value: function getInfluential() {
  34437. if (!this.influential) {
  34438. this.influential = [];
  34439. }
  34440. return this.influential;
  34441. }
  34442. /**
  34443. * Gets the value of the <code>significant</code> property without initializing the property to an empty list if it is unset.
  34444. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  34445. */
  34446. }, {
  34447. key: "basicGetSignificant",
  34448. value: function basicGetSignificant() {
  34449. return this.significant;
  34450. }
  34451. /**
  34452. * Gets the value of the <code>influential</code> property without initializing the property to an empty list if it is unset.
  34453. * @return {Array} the list of <code>String</code> elements, or <code>null</code> if not set
  34454. */
  34455. }, {
  34456. key: "basicGetInfluential",
  34457. value: function basicGetInfluential() {
  34458. return this.influential;
  34459. }
  34460. /**
  34461. * Creates a new instance of <code>Focus</code> object from JSON data.
  34462. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  34463. * @param {Object} json JSON data to be used to create the <code> Focus</code> object from.
  34464. * @return {Focus} an object of type <code>Focus</code>
  34465. */
  34466. }, {
  34467. key: "addSignificantAt",
  34468. /**
  34469. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  34470. */
  34471. value: function addSignificantAt(position, item) {
  34472. this._addAtAndNotify(this.getSignificant(), position, item, 120, false, false);
  34473. }
  34474. /**
  34475. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  34476. */
  34477. }, {
  34478. key: "addSignificant",
  34479. value: function addSignificant(item) {
  34480. this.addSignificantAt(this.getSignificant().length, item);
  34481. }
  34482. /**
  34483. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  34484. */
  34485. }, {
  34486. key: "removeSignificantAt",
  34487. value: function removeSignificantAt(position) {
  34488. this._removeAtAndNotify(this.getSignificant(), position, 120, false);
  34489. }
  34490. /**
  34491. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  34492. */
  34493. }, {
  34494. key: "removeSignificant",
  34495. value: function removeSignificant(item) {
  34496. var i = this.getSignificant().indexOf(item);
  34497. if (i >= 0) {
  34498. this.removeSignificantAt(i);
  34499. }
  34500. }
  34501. /**
  34502. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  34503. */
  34504. }, {
  34505. key: "addInfluentialAt",
  34506. value: function addInfluentialAt(position, item) {
  34507. this._addAtAndNotify(this.getInfluential(), position, item, 122, false, false);
  34508. }
  34509. /**
  34510. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  34511. */
  34512. }, {
  34513. key: "addInfluential",
  34514. value: function addInfluential(item) {
  34515. this.addInfluentialAt(this.getInfluential().length, item);
  34516. }
  34517. /**
  34518. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  34519. */
  34520. }, {
  34521. key: "removeInfluentialAt",
  34522. value: function removeInfluentialAt(position) {
  34523. this._removeAtAndNotify(this.getInfluential(), position, 122, false);
  34524. }
  34525. /**
  34526. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  34527. */
  34528. }, {
  34529. key: "removeInfluential",
  34530. value: function removeInfluential(item) {
  34531. var i = this.getInfluential().indexOf(item);
  34532. if (i >= 0) {
  34533. this.removeInfluentialAt(i);
  34534. }
  34535. }
  34536. /**
  34537. * Retrieves the type of this object
  34538. * @return {String} the object type in a <code>String</code>
  34539. */
  34540. }, {
  34541. key: "getObjectType",
  34542. value: function getObjectType() {
  34543. return "Focus";
  34544. }
  34545. /**
  34546. * Get a list of FeatureObjects
  34547. * @return {Array} A list of FeatureObjects
  34548. */
  34549. }, {
  34550. key: "getFeatureList",
  34551. value: function getFeatureList(factory) {
  34552. var featureList = [];
  34553. featureList.push(this.createFeature(false, false, false, 121, "intent", null));
  34554. featureList.push(this.createFeature(true, false, false, 120, "significant", null));
  34555. featureList.push(this.createFeature(true, false, false, 122, "influential", null));
  34556. Array.prototype.push.apply(featureList, _get(Focus.prototype.__proto__ || Object.getPrototypeOf(Focus.prototype), "getFeatureList", this).call(this, factory));
  34557. return featureList;
  34558. }
  34559. /**
  34560. * Set the value of a specific feature.
  34561. * @param {BaseMoserObject} value the value to set
  34562. * @param {int} featureID the feature id of the attribute to be set
  34563. */
  34564. }, {
  34565. key: "set",
  34566. value: function set(featureID, value) {
  34567. switch (featureID) {
  34568. case 121:
  34569. this.setIntent(value);
  34570. break;
  34571. default:
  34572. throw new Error("The feature " + featureID + " is not valid.");
  34573. }
  34574. }
  34575. /**
  34576. * Set the value of a specific feature.
  34577. * @param {BaseMoserObject} value the value to set the value to set
  34578. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  34579. */
  34580. }, {
  34581. key: "_setList",
  34582. value: function _setList(featureID, value) {
  34583. switch (featureID) {
  34584. case 120:
  34585. this.significant = value;
  34586. break;
  34587. case 122:
  34588. this.influential = value;
  34589. break;
  34590. default:
  34591. throw new Error("The feature " + featureID + " is not valid.");
  34592. }
  34593. }
  34594. /**
  34595. * Get the value of a specific feature.
  34596. * @param {int} featureID the feature id of the attribute to get
  34597. */
  34598. }, {
  34599. key: "get",
  34600. value: function get(featureID) {
  34601. switch (featureID) {
  34602. case 120:
  34603. return this.getSignificant();
  34604. case 121:
  34605. return this.getIntent();
  34606. case 122:
  34607. return this.getInfluential();
  34608. default:
  34609. throw new Error("The feature " + featureID + " is not valid.");
  34610. }
  34611. }
  34612. /**
  34613. * Get the value of a specific feature.
  34614. * @param {int} featureID the feature id of the attribute to get
  34615. */
  34616. }, {
  34617. key: "basicGet",
  34618. value: function basicGet(featureID) {
  34619. switch (featureID) {
  34620. case 120:
  34621. return this.basicGetSignificant();
  34622. case 121:
  34623. return this.getIntent();
  34624. case 122:
  34625. return this.basicGetInfluential();
  34626. default:
  34627. throw new Error("The feature " + featureID + " is not valid.");
  34628. }
  34629. }
  34630. /**
  34631. * Add the value of a specific feature at a specific position
  34632. * @param {int} position the array position of the item to be added
  34633. * @param {BaseMoserObject} value the value to add
  34634. * @param {int} featureID the feature id of the attribute to be added
  34635. */
  34636. }, {
  34637. key: "addAt",
  34638. value: function addAt(featureID, position, value) {
  34639. switch (featureID) {
  34640. case 120:
  34641. this.addSignificantAt(position, value);
  34642. break;
  34643. case 122:
  34644. this.addInfluentialAt(position, value);
  34645. break;
  34646. default:
  34647. throw new Error("The feature " + featureID + " is not valid.");
  34648. }
  34649. }
  34650. /**
  34651. * Add the value to the end of a specific collection feature
  34652. * @param {BaseMoserObject} value the value to add
  34653. * @param {int} featureID the feature id of the attribute to be added
  34654. */
  34655. }, {
  34656. key: "add",
  34657. value: function add(featureID, value) {
  34658. switch (featureID) {
  34659. case 120:
  34660. this.addSignificant(value);
  34661. break;
  34662. case 122:
  34663. this.addInfluential(value);
  34664. break;
  34665. default:
  34666. throw new Error("The feature " + featureID + " is not valid.");
  34667. }
  34668. }
  34669. /**
  34670. * Remove the value of a specific feature by index.
  34671. * @param {int} position the array position of the item to be removed
  34672. * @param {int} featureID the feature id of the attribute to be removed
  34673. */
  34674. }, {
  34675. key: "removeAt",
  34676. value: function removeAt(featureID, position) {
  34677. switch (featureID) {
  34678. case 120:
  34679. this.removeSignificantAt(position);
  34680. break;
  34681. case 122:
  34682. this.removeInfluentialAt(position);
  34683. break;
  34684. default:
  34685. throw new Error("The feature " + featureID + " is not valid.");
  34686. }
  34687. }
  34688. /**
  34689. * Remove the value from specific feature.
  34690. * @param {BaseMoserObject} item the item to be removed
  34691. * @param {int} featureID the feature id of the attribute to be removed
  34692. */
  34693. }, {
  34694. key: "remove",
  34695. value: function remove(featureID, item) {
  34696. switch (featureID) {
  34697. case 120:
  34698. this.removeSignificant(item);
  34699. break;
  34700. case 122:
  34701. this.removeInfluential(item);
  34702. break;
  34703. default:
  34704. throw new Error("The feature " + featureID + " is not valid.");
  34705. }
  34706. }
  34707. }], [{
  34708. key: "fromJSON",
  34709. value: function fromJSON(json, factory) {
  34710. var result = factory.createFocus();
  34711. var featureList = result.getFeatureList(factory);
  34712. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  34713. return result;
  34714. }
  34715. }]);
  34716. return Focus;
  34717. }(_MoserObject3.default);
  34718. exports.default = Focus;
  34719. /***/ },
  34720. /* 108 */
  34721. /***/ function(module, exports, __webpack_require__) {
  34722. "use strict";
  34723. Object.defineProperty(exports, "__esModule", {
  34724. value: true
  34725. });
  34726. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  34727. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  34728. var _MoserObject2 = __webpack_require__(6);
  34729. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  34730. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  34731. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  34732. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  34733. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  34734. ** IBM Confidential
  34735. **
  34736. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  34737. **
  34738. ** (C) Copyright IBM Corp. 2020
  34739. **
  34740. ** The source code for this program is not published or otherwise divested of its trade secrets,
  34741. ** irrespective of what has been deposited with the U.S. Copyright Office.
  34742. ************************************************************************/
  34743. // GENERATED
  34744. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  34745. /**
  34746. * A rule that decide if a column can be split. <p>Java class for splitRule complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="splitRule"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="datatype" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="columnNamePattern" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="lookupModule" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="lookupTableId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="lookupColumnId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="joinRelationship" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  34747. */
  34748. var SplitRule = function (_MoserObject) {
  34749. _inherits(SplitRule, _MoserObject);
  34750. function SplitRule() {
  34751. var _ref;
  34752. var _temp, _this, _ret;
  34753. _classCallCheck(this, SplitRule);
  34754. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  34755. args[_key] = arguments[_key];
  34756. }
  34757. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = SplitRule.__proto__ || Object.getPrototypeOf(SplitRule)).call.apply(_ref, [this].concat(args))), _this), _this.datatype = null, _this.columnNamePattern = null, _this.lookupModule = null, _this.lookupTableId = null, _this.lookupColumnId = null, _this.joinRelationship = null, _temp), _possibleConstructorReturn(_this, _ret);
  34758. }
  34759. _createClass(SplitRule, [{
  34760. key: "getDatatype",
  34761. /**
  34762. * Gets the value of the datatype property.
  34763. * @return {String} possible object is {@link String}
  34764. */
  34765. value: function getDatatype() {
  34766. return this.datatype;
  34767. }
  34768. /**
  34769. * Sets the value of the datatype property.
  34770. * @param {String} value allowed object is {@link String}
  34771. */
  34772. }, {
  34773. key: "setDatatype",
  34774. value: function setDatatype(value) {
  34775. var oldValue = this.datatype;
  34776. this.datatype = value;
  34777. this._setAndNotify(64, oldValue, value, false, false);
  34778. }
  34779. /**
  34780. * Gets the value of the columnNamePattern property.
  34781. * @return {String} possible object is {@link String}
  34782. */
  34783. }, {
  34784. key: "getColumnNamePattern",
  34785. value: function getColumnNamePattern() {
  34786. return this.columnNamePattern;
  34787. }
  34788. /**
  34789. * Sets the value of the columnNamePattern property.
  34790. * @param {String} value allowed object is {@link String}
  34791. */
  34792. }, {
  34793. key: "setColumnNamePattern",
  34794. value: function setColumnNamePattern(value) {
  34795. var oldValue = this.columnNamePattern;
  34796. this.columnNamePattern = value;
  34797. this._setAndNotify(65, oldValue, value, false, false);
  34798. }
  34799. /**
  34800. * Gets the value of the lookupModule property.
  34801. * @return {String} possible object is {@link String}
  34802. */
  34803. }, {
  34804. key: "getLookupModule",
  34805. value: function getLookupModule() {
  34806. return this.lookupModule;
  34807. }
  34808. /**
  34809. * Sets the value of the lookupModule property.
  34810. * @param {String} value allowed object is {@link String}
  34811. */
  34812. }, {
  34813. key: "setLookupModule",
  34814. value: function setLookupModule(value) {
  34815. var oldValue = this.lookupModule;
  34816. this.lookupModule = value;
  34817. this._setAndNotify(66, oldValue, value, false, false);
  34818. }
  34819. /**
  34820. * Gets the value of the lookupTableId property.
  34821. * @return {String} possible object is {@link String}
  34822. */
  34823. }, {
  34824. key: "getLookupTableId",
  34825. value: function getLookupTableId() {
  34826. return this.lookupTableId;
  34827. }
  34828. /**
  34829. * Sets the value of the lookupTableId property.
  34830. * @param {String} value allowed object is {@link String}
  34831. */
  34832. }, {
  34833. key: "setLookupTableId",
  34834. value: function setLookupTableId(value) {
  34835. var oldValue = this.lookupTableId;
  34836. this.lookupTableId = value;
  34837. this._setAndNotify(63, oldValue, value, false, false);
  34838. }
  34839. /**
  34840. * Gets the value of the lookupColumnId property.
  34841. * @return {String} possible object is {@link String}
  34842. */
  34843. }, {
  34844. key: "getLookupColumnId",
  34845. value: function getLookupColumnId() {
  34846. return this.lookupColumnId;
  34847. }
  34848. /**
  34849. * Sets the value of the lookupColumnId property.
  34850. * @param {String} value allowed object is {@link String}
  34851. */
  34852. }, {
  34853. key: "setLookupColumnId",
  34854. value: function setLookupColumnId(value) {
  34855. var oldValue = this.lookupColumnId;
  34856. this.lookupColumnId = value;
  34857. this._setAndNotify(67, oldValue, value, false, false);
  34858. }
  34859. /**
  34860. * Gets the value of the joinRelationship property.
  34861. * @return {String} possible object is {@link String}
  34862. */
  34863. }, {
  34864. key: "getJoinRelationship",
  34865. value: function getJoinRelationship() {
  34866. return this.joinRelationship;
  34867. }
  34868. /**
  34869. * Sets the value of the joinRelationship property.
  34870. * @param {String} value allowed object is {@link String}
  34871. */
  34872. }, {
  34873. key: "setJoinRelationship",
  34874. value: function setJoinRelationship(value) {
  34875. var oldValue = this.joinRelationship;
  34876. this.joinRelationship = value;
  34877. this._setAndNotify(68, oldValue, value, false, false);
  34878. }
  34879. /**
  34880. * Creates a new instance of <code>SplitRule</code> object from JSON data.
  34881. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  34882. * @param {Object} json JSON data to be used to create the <code> SplitRule</code> object from.
  34883. * @return {SplitRule} an object of type <code>SplitRule</code>
  34884. */
  34885. }, {
  34886. key: "getObjectType",
  34887. /**
  34888. * Retrieves the type of this object
  34889. * @return {String} the object type in a <code>String</code>
  34890. */
  34891. value: function getObjectType() {
  34892. return "SplitRule";
  34893. }
  34894. /**
  34895. * Get a list of FeatureObjects
  34896. * @return {Array} A list of FeatureObjects
  34897. */
  34898. }, {
  34899. key: "getFeatureList",
  34900. value: function getFeatureList(factory) {
  34901. var featureList = [];
  34902. featureList.push(this.createFeature(false, false, false, 64, "datatype", null));
  34903. featureList.push(this.createFeature(false, false, false, 65, "columnNamePattern", null));
  34904. featureList.push(this.createFeature(false, false, false, 66, "lookupModule", null));
  34905. featureList.push(this.createFeature(false, false, false, 63, "lookupTableId", null));
  34906. featureList.push(this.createFeature(false, false, false, 67, "lookupColumnId", null));
  34907. featureList.push(this.createFeature(false, false, false, 68, "joinRelationship", null));
  34908. Array.prototype.push.apply(featureList, _get(SplitRule.prototype.__proto__ || Object.getPrototypeOf(SplitRule.prototype), "getFeatureList", this).call(this, factory));
  34909. return featureList;
  34910. }
  34911. /**
  34912. * Set the value of a specific feature.
  34913. * @param {BaseMoserObject} value the value to set
  34914. * @param {int} featureID the feature id of the attribute to be set
  34915. */
  34916. }, {
  34917. key: "set",
  34918. value: function set(featureID, value) {
  34919. switch (featureID) {
  34920. case 63:
  34921. this.setLookupTableId(value);
  34922. break;
  34923. case 64:
  34924. this.setDatatype(value);
  34925. break;
  34926. case 65:
  34927. this.setColumnNamePattern(value);
  34928. break;
  34929. case 66:
  34930. this.setLookupModule(value);
  34931. break;
  34932. case 67:
  34933. this.setLookupColumnId(value);
  34934. break;
  34935. case 68:
  34936. this.setJoinRelationship(value);
  34937. break;
  34938. default:
  34939. throw new Error("The feature " + featureID + " is not valid.");
  34940. }
  34941. }
  34942. /**
  34943. * Get the value of a specific feature.
  34944. * @param {int} featureID the feature id of the attribute to get
  34945. */
  34946. }, {
  34947. key: "get",
  34948. value: function get(featureID) {
  34949. switch (featureID) {
  34950. case 63:
  34951. return this.getLookupTableId();
  34952. case 64:
  34953. return this.getDatatype();
  34954. case 65:
  34955. return this.getColumnNamePattern();
  34956. case 66:
  34957. return this.getLookupModule();
  34958. case 67:
  34959. return this.getLookupColumnId();
  34960. case 68:
  34961. return this.getJoinRelationship();
  34962. default:
  34963. throw new Error("The feature " + featureID + " is not valid.");
  34964. }
  34965. }
  34966. /**
  34967. * Get the value of a specific feature.
  34968. * @param {int} featureID the feature id of the attribute to get
  34969. */
  34970. }, {
  34971. key: "basicGet",
  34972. value: function basicGet(featureID) {
  34973. switch (featureID) {
  34974. case 63:
  34975. return this.getLookupTableId();
  34976. case 64:
  34977. return this.getDatatype();
  34978. case 65:
  34979. return this.getColumnNamePattern();
  34980. case 66:
  34981. return this.getLookupModule();
  34982. case 67:
  34983. return this.getLookupColumnId();
  34984. case 68:
  34985. return this.getJoinRelationship();
  34986. default:
  34987. throw new Error("The feature " + featureID + " is not valid.");
  34988. }
  34989. }
  34990. }], [{
  34991. key: "fromJSON",
  34992. value: function fromJSON(json, factory) {
  34993. var result = factory.createSplitRule();
  34994. var featureList = result.getFeatureList(factory);
  34995. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  34996. return result;
  34997. }
  34998. }]);
  34999. return SplitRule;
  35000. }(_MoserObject3.default);
  35001. exports.default = SplitRule;
  35002. /***/ },
  35003. /* 109 */
  35004. /***/ function(module, exports, __webpack_require__) {
  35005. "use strict";
  35006. Object.defineProperty(exports, "__esModule", {
  35007. value: true
  35008. });
  35009. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  35010. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  35011. var _MoserObject2 = __webpack_require__(6);
  35012. var _MoserObject3 = _interopRequireDefault(_MoserObject2);
  35013. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  35014. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  35015. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  35016. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  35017. ** IBM Confidential
  35018. **
  35019. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  35020. **
  35021. ** (C) Copyright IBM Corp. 2020
  35022. **
  35023. ** The source code for this program is not published or otherwise divested of its trade secrets,
  35024. ** irrespective of what has been deposited with the U.S. Copyright Office.
  35025. ************************************************************************/
  35026. // GENERATED
  35027. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (loadtime) // superclass, fromJSONHelper
  35028. /**
  35029. * Column Split configuration, saved in the ModelingService configuration file. <p>Java class for splitConfig complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="splitConfig"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="splitRules" type="{}splitRule" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  35030. */
  35031. var SplitConfig = function (_MoserObject) {
  35032. _inherits(SplitConfig, _MoserObject);
  35033. function SplitConfig() {
  35034. var _ref;
  35035. var _temp, _this, _ret;
  35036. _classCallCheck(this, SplitConfig);
  35037. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  35038. args[_key] = arguments[_key];
  35039. }
  35040. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = SplitConfig.__proto__ || Object.getPrototypeOf(SplitConfig)).call.apply(_ref, [this].concat(args))), _this), _this.splitRules = null, _temp), _possibleConstructorReturn(_this, _ret);
  35041. }
  35042. _createClass(SplitConfig, [{
  35043. key: "getSplitRules",
  35044. /**
  35045. * Gets the value of the splitRules property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the splitRules property. <p> For example, to add a new item, do as follows: <pre> getSplitRules().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list {@link SplitRule}
  35046. */
  35047. value: function getSplitRules() {
  35048. if (!this.splitRules) {
  35049. this.splitRules = [];
  35050. }
  35051. return this.splitRules;
  35052. }
  35053. /**
  35054. * Gets the value of the <code>splitRules</code> property without initializing the property to an empty list if it is unset.
  35055. * @return {Array} the list of <code>SplitRule</code> elements, or <code>null</code> if not set
  35056. */
  35057. }, {
  35058. key: "basicGetSplitRules",
  35059. value: function basicGetSplitRules() {
  35060. return this.splitRules;
  35061. }
  35062. /**
  35063. * Creates a new instance of <code>SplitConfig</code> object from JSON data.
  35064. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  35065. * @param {Object} json JSON data to be used to create the <code> SplitConfig</code> object from.
  35066. * @return {SplitConfig} an object of type <code>SplitConfig</code>
  35067. */
  35068. }, {
  35069. key: "addSplitRulesAt",
  35070. /**
  35071. * Adds the <code>item</code> to the collection at the given position and fires a notification to listeners.
  35072. */
  35073. value: function addSplitRulesAt(position, item) {
  35074. this._addAtAndNotify(this.getSplitRules(), position, item, 84, true, false);
  35075. }
  35076. /**
  35077. * Adds the <code>item</code> to the end of the collection and fires a notification to listeners.
  35078. */
  35079. }, {
  35080. key: "addSplitRules",
  35081. value: function addSplitRules(item) {
  35082. this.addSplitRulesAt(this.getSplitRules().length, item);
  35083. }
  35084. /**
  35085. * Removes the item at <code>position</code> from the collection and fires a notification to listeners.
  35086. */
  35087. }, {
  35088. key: "removeSplitRulesAt",
  35089. value: function removeSplitRulesAt(position) {
  35090. this._removeAtAndNotify(this.getSplitRules(), position, 84, true);
  35091. }
  35092. /**
  35093. * Removes the <code>item</code> from the collection and fires a notification to listeners.
  35094. */
  35095. }, {
  35096. key: "removeSplitRules",
  35097. value: function removeSplitRules(item) {
  35098. var i = this.getSplitRules().indexOf(item);
  35099. if (i >= 0) {
  35100. this.removeSplitRulesAt(i);
  35101. }
  35102. }
  35103. /**
  35104. * Retrieves the type of this object
  35105. * @return {String} the object type in a <code>String</code>
  35106. */
  35107. }, {
  35108. key: "getObjectType",
  35109. value: function getObjectType() {
  35110. return "SplitConfig";
  35111. }
  35112. /**
  35113. * Get a list of FeatureObjects
  35114. * @return {Array} A list of FeatureObjects
  35115. */
  35116. }, {
  35117. key: "getFeatureList",
  35118. value: function getFeatureList(factory) {
  35119. var featureList = [];
  35120. var clazz;
  35121. if (factory) {
  35122. clazz = factory.createSplitRule().getClass();
  35123. }
  35124. featureList.push(this.createFeature(true, false, true, 84, "splitRules", clazz));
  35125. Array.prototype.push.apply(featureList, _get(SplitConfig.prototype.__proto__ || Object.getPrototypeOf(SplitConfig.prototype), "getFeatureList", this).call(this, factory));
  35126. return featureList;
  35127. }
  35128. /**
  35129. * Set the value of a specific feature.
  35130. * @param {BaseMoserObject} value the value to set
  35131. * @param {int} featureID the feature id of the attribute to be set
  35132. */
  35133. }, {
  35134. key: "set",
  35135. value: function set(featureID, value) {
  35136. switch (featureID) {
  35137. default:
  35138. throw new Error("The feature " + featureID + " is not valid.");
  35139. }
  35140. }
  35141. /**
  35142. * Set the value of a specific feature.
  35143. * @param {BaseMoserObject} value the value to set the value to set
  35144. * @param {int} featureID the feature id of the attribute to be set the feature id of the attribute to be set
  35145. */
  35146. }, {
  35147. key: "_setList",
  35148. value: function _setList(featureID, value) {
  35149. switch (featureID) {
  35150. case 84:
  35151. this.splitRules = value;
  35152. break;
  35153. default:
  35154. throw new Error("The feature " + featureID + " is not valid.");
  35155. }
  35156. }
  35157. /**
  35158. * Get the value of a specific feature.
  35159. * @param {int} featureID the feature id of the attribute to get
  35160. */
  35161. }, {
  35162. key: "get",
  35163. value: function get(featureID) {
  35164. switch (featureID) {
  35165. case 84:
  35166. return this.getSplitRules();
  35167. default:
  35168. throw new Error("The feature " + featureID + " is not valid.");
  35169. }
  35170. }
  35171. /**
  35172. * Get the value of a specific feature.
  35173. * @param {int} featureID the feature id of the attribute to get
  35174. */
  35175. }, {
  35176. key: "basicGet",
  35177. value: function basicGet(featureID) {
  35178. switch (featureID) {
  35179. case 84:
  35180. return this.basicGetSplitRules();
  35181. default:
  35182. throw new Error("The feature " + featureID + " is not valid.");
  35183. }
  35184. }
  35185. /**
  35186. * Add the value of a specific feature at a specific position
  35187. * @param {int} position the array position of the item to be added
  35188. * @param {BaseMoserObject} value the value to add
  35189. * @param {int} featureID the feature id of the attribute to be added
  35190. */
  35191. }, {
  35192. key: "addAt",
  35193. value: function addAt(featureID, position, value) {
  35194. switch (featureID) {
  35195. case 84:
  35196. this.addSplitRulesAt(position, value);
  35197. break;
  35198. default:
  35199. throw new Error("The feature " + featureID + " is not valid.");
  35200. }
  35201. }
  35202. /**
  35203. * Add the value to the end of a specific collection feature
  35204. * @param {BaseMoserObject} value the value to add
  35205. * @param {int} featureID the feature id of the attribute to be added
  35206. */
  35207. }, {
  35208. key: "add",
  35209. value: function add(featureID, value) {
  35210. switch (featureID) {
  35211. case 84:
  35212. this.addSplitRules(value);
  35213. break;
  35214. default:
  35215. throw new Error("The feature " + featureID + " is not valid.");
  35216. }
  35217. }
  35218. /**
  35219. * Remove the value of a specific feature by index.
  35220. * @param {int} position the array position of the item to be removed
  35221. * @param {int} featureID the feature id of the attribute to be removed
  35222. */
  35223. }, {
  35224. key: "removeAt",
  35225. value: function removeAt(featureID, position) {
  35226. switch (featureID) {
  35227. case 84:
  35228. this.removeSplitRulesAt(position);
  35229. break;
  35230. default:
  35231. throw new Error("The feature " + featureID + " is not valid.");
  35232. }
  35233. }
  35234. /**
  35235. * Remove the value from specific feature.
  35236. * @param {BaseMoserObject} item the item to be removed
  35237. * @param {int} featureID the feature id of the attribute to be removed
  35238. */
  35239. }, {
  35240. key: "remove",
  35241. value: function remove(featureID, item) {
  35242. switch (featureID) {
  35243. case 84:
  35244. this.removeSplitRules(item);
  35245. break;
  35246. default:
  35247. throw new Error("The feature " + featureID + " is not valid.");
  35248. }
  35249. }
  35250. }], [{
  35251. key: "fromJSON",
  35252. value: function fromJSON(json, factory) {
  35253. var result = factory.createSplitConfig();
  35254. var featureList = result.getFeatureList(factory);
  35255. _MoserObject3.default.fromJSONHelper(result, featureList, json, factory);
  35256. return result;
  35257. }
  35258. }]);
  35259. return SplitConfig;
  35260. }(_MoserObject3.default);
  35261. exports.default = SplitConfig;
  35262. /***/ },
  35263. /* 110 */
  35264. /***/ function(module, exports, __webpack_require__) {
  35265. 'use strict';
  35266. Object.defineProperty(exports, "__esModule", {
  35267. value: true
  35268. });
  35269. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  35270. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  35271. var _ObjectType2 = __webpack_require__(26);
  35272. var _ObjectType3 = _interopRequireDefault(_ObjectType2);
  35273. var _MoserObject = __webpack_require__(6);
  35274. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  35275. var _UsageType = __webpack_require__(44);
  35276. var _UsageType2 = _interopRequireDefault(_UsageType);
  35277. var _RegularAggregateType = __webpack_require__(22);
  35278. var _RegularAggregateType2 = _interopRequireDefault(_RegularAggregateType);
  35279. var _HighLevelDataType = __webpack_require__(15);
  35280. var _HighLevelDataType2 = _interopRequireDefault(_HighLevelDataType);
  35281. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  35282. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  35283. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  35284. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  35285. ** IBM Confidential
  35286. **
  35287. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  35288. **
  35289. ** (C) Copyright IBM Corp. 2020
  35290. **
  35291. ** The source code for this program is not published or otherwise divested of its trade secrets,
  35292. ** irrespective of what has been deposited with the U.S. Copyright Office.
  35293. ************************************************************************/
  35294. // GENERATED
  35295. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (loadtime) // superclass
  35296. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // fromJSONHelper
  35297. //@import com/ibm/bi/platform/moser/common/generated/metadata/UsageType (runtime) // new
  35298. //@import com/ibm/bi/platform/moser/common/generated/metadata/RegularAggregateType (runtime) // new
  35299. //@import com/ibm/bi/platform/moser/common/generated/metadata/HighLevelDataType (runtime) // new
  35300. /**
  35301. * <p>Java class for projectedItemType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="projectedItemType"&gt; &lt;complexContent&gt; &lt;extension base="{}objectType"&gt; &lt;sequence&gt; &lt;element name="externalName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="usage" type="{}usageType" minOccurs="0"/&gt; &lt;element name="datatype" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; &lt;element name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/&gt; &lt;element name="regularAggregate" type="{}regularAggregateType" minOccurs="0"/&gt; &lt;element name="highlevelDatatype" type="{}highLevelDataType" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
  35302. */
  35303. var ProjectedItemType = function (_ObjectType) {
  35304. _inherits(ProjectedItemType, _ObjectType);
  35305. function ProjectedItemType() {
  35306. var _ref;
  35307. var _temp, _this, _ret;
  35308. _classCallCheck(this, ProjectedItemType);
  35309. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  35310. args[_key] = arguments[_key];
  35311. }
  35312. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ProjectedItemType.__proto__ || Object.getPrototypeOf(ProjectedItemType)).call.apply(_ref, [this].concat(args))), _this), _this.externalName = null, _this.usage = null, _this.datatype = null, _this.nullable = null, _this.regularAggregate = null, _this.highlevelDatatype = null, _temp), _possibleConstructorReturn(_this, _ret);
  35313. }
  35314. _createClass(ProjectedItemType, [{
  35315. key: 'getExternalName',
  35316. /**
  35317. * Gets the value of the externalName property.
  35318. * @return {String} possible object is {@link String}
  35319. */
  35320. value: function getExternalName() {
  35321. return this.externalName;
  35322. }
  35323. /**
  35324. * Sets the value of the externalName property.
  35325. * @param {String} value allowed object is {@link String}
  35326. */
  35327. }, {
  35328. key: 'setExternalName',
  35329. value: function setExternalName(value) {
  35330. var oldValue = this.externalName;
  35331. this.externalName = value;
  35332. this._setAndNotify(76, oldValue, value, false, true);
  35333. }
  35334. /**
  35335. * Gets the value of the usage property.
  35336. * @return {UsageType} possible object is {@link UsageType}
  35337. */
  35338. }, {
  35339. key: 'getUsage',
  35340. value: function getUsage() {
  35341. return this.usage;
  35342. }
  35343. /**
  35344. * Sets the value of the usage property.
  35345. * @param {UsageType} value allowed object is {@link UsageType}
  35346. */
  35347. }, {
  35348. key: 'setUsage',
  35349. value: function setUsage(value) {
  35350. var oldValue = this.usage;
  35351. this.usage = value;
  35352. this._setAndNotify(77, oldValue, value, false, true);
  35353. }
  35354. /**
  35355. * Gets the value of the datatype property.
  35356. * @return {String} possible object is {@link String}
  35357. */
  35358. }, {
  35359. key: 'getDatatype',
  35360. value: function getDatatype() {
  35361. return this.datatype;
  35362. }
  35363. /**
  35364. * Sets the value of the datatype property.
  35365. * @param {String} value allowed object is {@link String}
  35366. */
  35367. }, {
  35368. key: 'setDatatype',
  35369. value: function setDatatype(value) {
  35370. var oldValue = this.datatype;
  35371. this.datatype = value;
  35372. this._setAndNotify(64, oldValue, value, false, true);
  35373. }
  35374. /**
  35375. * Gets the value of the nullable property.
  35376. * @return {Boolean} possible object is {@link Boolean}
  35377. */
  35378. }, {
  35379. key: 'isNullable',
  35380. value: function isNullable() {
  35381. return this.nullable;
  35382. }
  35383. /**
  35384. * Sets the value of the nullable property.
  35385. * @param {Boolean} value allowed object is {@link Boolean}
  35386. */
  35387. }, {
  35388. key: 'setNullable',
  35389. value: function setNullable(value) {
  35390. var oldValue = this.nullable;
  35391. this.nullable = value;
  35392. this._setAndNotify(74, oldValue, value, false, true);
  35393. }
  35394. /**
  35395. * Gets the value of the regularAggregate property.
  35396. * @return {RegularAggregateType} possible object is {@link RegularAggregateType}
  35397. */
  35398. }, {
  35399. key: 'getRegularAggregate',
  35400. value: function getRegularAggregate() {
  35401. return this.regularAggregate;
  35402. }
  35403. /**
  35404. * Sets the value of the regularAggregate property.
  35405. * @param {RegularAggregateType} value allowed object is {@link RegularAggregateType}
  35406. */
  35407. }, {
  35408. key: 'setRegularAggregate',
  35409. value: function setRegularAggregate(value) {
  35410. var oldValue = this.regularAggregate;
  35411. this.regularAggregate = value;
  35412. this._setAndNotify(78, oldValue, value, false, true);
  35413. }
  35414. /**
  35415. * Gets the value of the highlevelDatatype property.
  35416. * @return {HighLevelDataType} possible object is {@link HighLevelDataType}
  35417. */
  35418. }, {
  35419. key: 'getHighlevelDatatype',
  35420. value: function getHighlevelDatatype() {
  35421. return this.highlevelDatatype;
  35422. }
  35423. /**
  35424. * Sets the value of the highlevelDatatype property.
  35425. * @param {HighLevelDataType} value allowed object is {@link HighLevelDataType}
  35426. */
  35427. }, {
  35428. key: 'setHighlevelDatatype',
  35429. value: function setHighlevelDatatype(value) {
  35430. var oldValue = this.highlevelDatatype;
  35431. this.highlevelDatatype = value;
  35432. this._setAndNotify(75, oldValue, value, false, true);
  35433. }
  35434. /**
  35435. * Creates a new instance of <code>ProjectedItemType</code> object from JSON data.
  35436. * @param {ObjectFactory} factory <code>ObjectFactory</> object for object creation.
  35437. * @param {Object} json JSON data to be used to create the <code> ProjectedItemType</code> object from.
  35438. * @return {ProjectedItemType} an object of type <code>ProjectedItemType</code>
  35439. */
  35440. }, {
  35441. key: 'getObjectType',
  35442. /**
  35443. * Retrieves the type of this object
  35444. * @return {String} the object type in a <code>String</code>
  35445. */
  35446. value: function getObjectType() {
  35447. return "ProjectedItemType";
  35448. }
  35449. /**
  35450. * Get a list of FeatureObjects
  35451. * @return {Array} A list of FeatureObjects
  35452. */
  35453. }, {
  35454. key: 'getFeatureList',
  35455. value: function getFeatureList(factory) {
  35456. var featureList = [];
  35457. featureList.push(this.createFeature(false, false, false, 76, "externalName", null));
  35458. featureList.push(this.createFeature(false, true, false, 77, "usage", _UsageType2.default));
  35459. featureList.push(this.createFeature(false, false, false, 64, "datatype", null));
  35460. featureList.push(this.createFeature(false, false, false, 74, "nullable", null));
  35461. featureList.push(this.createFeature(false, true, false, 78, "regularAggregate", _RegularAggregateType2.default));
  35462. featureList.push(this.createFeature(false, true, false, 75, "highlevelDatatype", _HighLevelDataType2.default));
  35463. Array.prototype.push.apply(featureList, _get(ProjectedItemType.prototype.__proto__ || Object.getPrototypeOf(ProjectedItemType.prototype), 'getFeatureList', this).call(this, factory));
  35464. return featureList;
  35465. }
  35466. /**
  35467. * Set the value of a specific feature.
  35468. * @param {BaseMoserObject} value the value to set
  35469. * @param {int} featureID the feature id of the attribute to be set
  35470. */
  35471. }, {
  35472. key: 'set',
  35473. value: function set(featureID, value) {
  35474. switch (featureID) {
  35475. case 74:
  35476. this.setNullable(value);
  35477. break;
  35478. case 64:
  35479. this.setDatatype(value);
  35480. break;
  35481. case 75:
  35482. this.setHighlevelDatatype(value);
  35483. break;
  35484. case 76:
  35485. this.setExternalName(value);
  35486. break;
  35487. case 77:
  35488. this.setUsage(value);
  35489. break;
  35490. case 78:
  35491. this.setRegularAggregate(value);
  35492. break;
  35493. default:
  35494. _get(ProjectedItemType.prototype.__proto__ || Object.getPrototypeOf(ProjectedItemType.prototype), 'set', this).call(this, featureID, value);
  35495. }
  35496. }
  35497. /**
  35498. * Get the value of a specific feature.
  35499. * @param {int} featureID the feature id of the attribute to get
  35500. */
  35501. }, {
  35502. key: 'get',
  35503. value: function get(featureID) {
  35504. switch (featureID) {
  35505. case 74:
  35506. return this.isNullable();
  35507. case 64:
  35508. return this.getDatatype();
  35509. case 75:
  35510. return this.getHighlevelDatatype();
  35511. case 76:
  35512. return this.getExternalName();
  35513. case 77:
  35514. return this.getUsage();
  35515. case 78:
  35516. return this.getRegularAggregate();
  35517. default:
  35518. return _get(ProjectedItemType.prototype.__proto__ || Object.getPrototypeOf(ProjectedItemType.prototype), 'get', this).call(this, featureID);
  35519. }
  35520. }
  35521. /**
  35522. * Get the value of a specific feature.
  35523. * @param {int} featureID the feature id of the attribute to get
  35524. */
  35525. }, {
  35526. key: 'basicGet',
  35527. value: function basicGet(featureID) {
  35528. switch (featureID) {
  35529. case 74:
  35530. return this.isNullable();
  35531. case 64:
  35532. return this.getDatatype();
  35533. case 75:
  35534. return this.getHighlevelDatatype();
  35535. case 76:
  35536. return this.getExternalName();
  35537. case 77:
  35538. return this.getUsage();
  35539. case 78:
  35540. return this.getRegularAggregate();
  35541. default:
  35542. return _get(ProjectedItemType.prototype.__proto__ || Object.getPrototypeOf(ProjectedItemType.prototype), 'basicGet', this).call(this, featureID);
  35543. }
  35544. }
  35545. }], [{
  35546. key: 'fromJSON',
  35547. value: function fromJSON(json, factory) {
  35548. var result = factory.createProjectedItemType();
  35549. var featureList = result.getFeatureList(factory);
  35550. _MoserObject2.default.fromJSONHelper(result, featureList, json, factory);
  35551. return result;
  35552. }
  35553. }]);
  35554. return ProjectedItemType;
  35555. }(_ObjectType3.default);
  35556. exports.default = ProjectedItemType;
  35557. /***/ },
  35558. /* 111 */
  35559. /***/ function(module, exports, __webpack_require__) {
  35560. 'use strict';
  35561. Object.defineProperty(exports, "__esModule", {
  35562. value: true
  35563. });
  35564. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  35565. var _BaseMoserObject2 = __webpack_require__(2);
  35566. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  35567. var _Index = __webpack_require__(3);
  35568. var _Index2 = _interopRequireDefault(_Index);
  35569. var _ForeignKey = __webpack_require__(24);
  35570. var _ForeignKey2 = _interopRequireDefault(_ForeignKey);
  35571. var _QuerySubject = __webpack_require__(25);
  35572. var _QuerySubject2 = _interopRequireDefault(_QuerySubject);
  35573. var _SecurityFilter = __webpack_require__(36);
  35574. var _SecurityFilter2 = _interopRequireDefault(_SecurityFilter);
  35575. var _Relationship = __webpack_require__(37);
  35576. var _Relationship2 = _interopRequireDefault(_Relationship);
  35577. var _ParameterMap = __webpack_require__(49);
  35578. var _ParameterMap2 = _interopRequireDefault(_ParameterMap);
  35579. var _DrillGroup = __webpack_require__(50);
  35580. var _DrillGroup2 = _interopRequireDefault(_DrillGroup);
  35581. var _QueryValueSelector = __webpack_require__(51);
  35582. var _QueryValueSelector2 = _interopRequireDefault(_QueryValueSelector);
  35583. var _Module = __webpack_require__(54);
  35584. var _Module2 = _interopRequireDefault(_Module);
  35585. var _ReferenceResolver = __webpack_require__(40);
  35586. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  35587. var _ValidationMessage = __webpack_require__(56);
  35588. var _ValidationMessage2 = _interopRequireDefault(_ValidationMessage);
  35589. var _Feedback = __webpack_require__(57);
  35590. var _Feedback2 = _interopRequireDefault(_Feedback);
  35591. var _ItemNormalizationGroupType = __webpack_require__(58);
  35592. var _ItemNormalizationGroupType2 = _interopRequireDefault(_ItemNormalizationGroupType);
  35593. var _TextResource = __webpack_require__(60);
  35594. var _TextResource2 = _interopRequireDefault(_TextResource);
  35595. var _SortListType = __webpack_require__(61);
  35596. var _SortListType2 = _interopRequireDefault(_SortListType);
  35597. var _ItemType = __webpack_require__(62);
  35598. var _ItemType2 = _interopRequireDefault(_ItemType);
  35599. var _FacetType = __webpack_require__(63);
  35600. var _FacetType2 = _interopRequireDefault(_FacetType);
  35601. var _DataSource = __webpack_require__(66);
  35602. var _DataSource2 = _interopRequireDefault(_DataSource);
  35603. var _PhysicalObjectType = __webpack_require__(4);
  35604. var _PhysicalObjectType2 = _interopRequireDefault(_PhysicalObjectType);
  35605. var _BaseObjectType = __webpack_require__(5);
  35606. var _BaseObjectType2 = _interopRequireDefault(_BaseObjectType);
  35607. var _Jdbc = __webpack_require__(67);
  35608. var _Jdbc2 = _interopRequireDefault(_Jdbc);
  35609. var _Table = __webpack_require__(68);
  35610. var _Table2 = _interopRequireDefault(_Table);
  35611. var _Column = __webpack_require__(70);
  35612. var _Column2 = _interopRequireDefault(_Column);
  35613. var _PrimaryKey = __webpack_require__(71);
  35614. var _PrimaryKey2 = _interopRequireDefault(_PrimaryKey);
  35615. var _TableItemType = __webpack_require__(72);
  35616. var _TableItemType2 = _interopRequireDefault(_TableItemType);
  35617. var _StoredProcedure = __webpack_require__(73);
  35618. var _StoredProcedure2 = _interopRequireDefault(_StoredProcedure);
  35619. var _ProcParameterType = __webpack_require__(74);
  35620. var _ProcParameterType2 = _interopRequireDefault(_ProcParameterType);
  35621. var _DbFunction = __webpack_require__(76);
  35622. var _DbFunction2 = _interopRequireDefault(_DbFunction);
  35623. var _Struct = __webpack_require__(77);
  35624. var _Struct2 = _interopRequireDefault(_Struct);
  35625. var _Multiset = __webpack_require__(78);
  35626. var _Multiset2 = _interopRequireDefault(_Multiset);
  35627. var _ObjectType = __webpack_require__(26);
  35628. var _ObjectType2 = _interopRequireDefault(_ObjectType);
  35629. var _PropertyType = __webpack_require__(79);
  35630. var _PropertyType2 = _interopRequireDefault(_PropertyType);
  35631. var _QueryItem = __webpack_require__(80);
  35632. var _QueryItem2 = _interopRequireDefault(_QueryItem);
  35633. var _TaxonomyType = __webpack_require__(81);
  35634. var _TaxonomyType2 = _interopRequireDefault(_TaxonomyType);
  35635. var _SplitType = __webpack_require__(82);
  35636. var _SplitType2 = _interopRequireDefault(_SplitType);
  35637. var _PromptInfoType = __webpack_require__(85);
  35638. var _PromptInfoType2 = _interopRequireDefault(_PromptInfoType);
  35639. var _CalculatedMemberType = __webpack_require__(87);
  35640. var _CalculatedMemberType2 = _interopRequireDefault(_CalculatedMemberType);
  35641. var _MemberType = __webpack_require__(88);
  35642. var _MemberType2 = _interopRequireDefault(_MemberType);
  35643. var _Filter = __webpack_require__(41);
  35644. var _Filter2 = _interopRequireDefault(_Filter);
  35645. var _SqlQueryType = __webpack_require__(89);
  35646. var _SqlQueryType2 = _interopRequireDefault(_SqlQueryType);
  35647. var _ItemNormalizationType = __webpack_require__(91);
  35648. var _ItemNormalizationType2 = _interopRequireDefault(_ItemNormalizationType);
  35649. var _NamedSet = __webpack_require__(92);
  35650. var _NamedSet2 = _interopRequireDefault(_NamedSet);
  35651. var _CardinalityType = __webpack_require__(93);
  35652. var _CardinalityType2 = _interopRequireDefault(_CardinalityType);
  35653. var _Calculation = __webpack_require__(42);
  35654. var _Calculation2 = _interopRequireDefault(_Calculation);
  35655. var _ItemHierarchy = __webpack_require__(94);
  35656. var _ItemHierarchy2 = _interopRequireDefault(_ItemHierarchy);
  35657. var _LocalRefType = __webpack_require__(95);
  35658. var _LocalRefType2 = _interopRequireDefault(_LocalRefType);
  35659. var _ParameterValueSet = __webpack_require__(96);
  35660. var _ParameterValueSet2 = _interopRequireDefault(_ParameterValueSet);
  35661. var _ParameterValue = __webpack_require__(97);
  35662. var _ParameterValue2 = _interopRequireDefault(_ParameterValue);
  35663. var _ValueType = __webpack_require__(99);
  35664. var _ValueType2 = _interopRequireDefault(_ValueType);
  35665. var _ParameterFault = __webpack_require__(101);
  35666. var _ParameterFault2 = _interopRequireDefault(_ParameterFault);
  35667. var _ParameterCapabilitiesType = __webpack_require__(102);
  35668. var _ParameterCapabilitiesType2 = _interopRequireDefault(_ParameterCapabilitiesType);
  35669. var _Prompt = __webpack_require__(103);
  35670. var _Prompt2 = _interopRequireDefault(_Prompt);
  35671. var _ParameterFeedbackInfo = __webpack_require__(104);
  35672. var _ParameterFeedbackInfo2 = _interopRequireDefault(_ParameterFeedbackInfo);
  35673. var _FolderType = __webpack_require__(106);
  35674. var _FolderType2 = _interopRequireDefault(_FolderType);
  35675. var _Focus = __webpack_require__(107);
  35676. var _Focus2 = _interopRequireDefault(_Focus);
  35677. var _SplitRule = __webpack_require__(108);
  35678. var _SplitRule2 = _interopRequireDefault(_SplitRule);
  35679. var _SplitConfig = __webpack_require__(109);
  35680. var _SplitConfig2 = _interopRequireDefault(_SplitConfig);
  35681. var _ProjectedItemType = __webpack_require__(110);
  35682. var _ProjectedItemType2 = _interopRequireDefault(_ProjectedItemType);
  35683. var _FolderItemType = __webpack_require__(47);
  35684. var _FolderItemType2 = _interopRequireDefault(_FolderItemType);
  35685. var _DefLinkType = __webpack_require__(48);
  35686. var _DefLinkType2 = _interopRequireDefault(_DefLinkType);
  35687. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  35688. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  35689. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  35690. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  35691. ** IBM Confidential
  35692. **
  35693. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  35694. **
  35695. ** (C) Copyright IBM Corp. 2020
  35696. **
  35697. ** The source code for this program is not published or otherwise divested of its trade secrets,
  35698. ** irrespective of what has been deposited with the U.S. Copyright Office.
  35699. ************************************************************************/
  35700. // GENERATED
  35701. //@import BaseMoserObject (loadtime) // superclass
  35702. //@import com/ibm/bi/platform/moser/common/generated/metadata/Index (runtime) // fromJSON, Index
  35703. //@import com/ibm/bi/platform/moser/common/generated/metadata/ForeignKey (runtime) // fromJSON, ForeignKey
  35704. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubject (runtime) // fromJSON, QuerySubject
  35705. //@import com/ibm/bi/platform/moser/common/generated/metadata/SecurityFilter (runtime) // SecurityFilter, fromJSON
  35706. //@import com/ibm/bi/platform/moser/common/generated/metadata/Relationship (runtime) // Relationship, fromJSON
  35707. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterMap (runtime) // fromJSON, ParameterMap
  35708. //@import com/ibm/bi/platform/moser/common/generated/metadata/DrillGroup (runtime) // DrillGroup, fromJSON
  35709. //@import com/ibm/bi/platform/moser/common/generated/metadata/QueryValueSelector (runtime) // fromJSON, QueryValueSelector
  35710. //@import com/ibm/bi/platform/moser/common/generated/metadata/Module (runtime) // fromJSON, Module
  35711. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (runtime) // resolve
  35712. //@import com/ibm/bi/platform/moser/common/generated/metadata/ValidationMessage (runtime) // ValidationMessage, fromJSON
  35713. //@import com/ibm/bi/platform/moser/common/generated/metadata/Feedback (runtime) // Feedback, fromJSON
  35714. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemNormalizationGroupType (runtime) // fromJSON, ItemNormalizationGroupType
  35715. //@import com/ibm/bi/platform/moser/common/generated/metadata/TextResource (runtime) // TextResource, fromJSON
  35716. //@import com/ibm/bi/platform/moser/common/generated/metadata/SortListType (runtime) // fromJSON, SortListType
  35717. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemType (runtime) // ItemType, fromJSON
  35718. //@import com/ibm/bi/platform/moser/common/generated/metadata/FacetType (runtime) // FacetType, fromJSON
  35719. //@import com/ibm/bi/platform/moser/common/generated/metadata/DataSource (runtime) // fromJSON
  35720. //@import com/ibm/bi/platform/moser/common/generated/metadata/PhysicalObjectType (runtime) // fromJSON
  35721. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseObjectType (runtime) // fromJSON
  35722. //@import com/ibm/bi/platform/moser/common/generated/metadata/Jdbc (runtime) // fromJSON
  35723. //@import com/ibm/bi/platform/moser/common/generated/metadata/Table (runtime) // fromJSON
  35724. //@import com/ibm/bi/platform/moser/common/generated/metadata/Column (runtime) // fromJSON
  35725. //@import com/ibm/bi/platform/moser/common/generated/metadata/PrimaryKey (runtime) // fromJSON
  35726. //@import com/ibm/bi/platform/moser/common/generated/metadata/TableItemType (runtime) // fromJSON
  35727. //@import com/ibm/bi/platform/moser/common/generated/metadata/StoredProcedure (runtime) // fromJSON
  35728. //@import com/ibm/bi/platform/moser/common/generated/metadata/ProcParameterType (runtime) // fromJSON
  35729. //@import com/ibm/bi/platform/moser/common/generated/metadata/DbFunction (runtime) // fromJSON
  35730. //@import com/ibm/bi/platform/moser/common/generated/metadata/Struct (runtime) // fromJSON
  35731. //@import com/ibm/bi/platform/moser/common/generated/metadata/Multiset (runtime) // fromJSON
  35732. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (runtime) // fromJSON
  35733. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertyType (runtime) // fromJSON
  35734. //@import com/ibm/bi/platform/moser/common/generated/metadata/QueryItem (runtime) // fromJSON
  35735. //@import com/ibm/bi/platform/moser/common/generated/metadata/TaxonomyType (runtime) // fromJSON
  35736. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitType (runtime) // fromJSON
  35737. //@import com/ibm/bi/platform/moser/common/generated/metadata/PromptInfoType (runtime) // fromJSON
  35738. //@import com/ibm/bi/platform/moser/common/generated/metadata/CalculatedMemberType (runtime) // fromJSON
  35739. //@import com/ibm/bi/platform/moser/common/generated/metadata/MemberType (runtime) // fromJSON
  35740. //@import com/ibm/bi/platform/moser/common/generated/metadata/Filter (runtime) // fromJSON
  35741. //@import com/ibm/bi/platform/moser/common/generated/metadata/SqlQueryType (runtime) // fromJSON
  35742. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemNormalizationType (runtime) // fromJSON
  35743. //@import com/ibm/bi/platform/moser/common/generated/metadata/NamedSet (runtime) // fromJSON
  35744. //@import com/ibm/bi/platform/moser/common/generated/metadata/CardinalityType (runtime) // fromJSON
  35745. //@import com/ibm/bi/platform/moser/common/generated/metadata/Calculation (runtime) // fromJSON
  35746. //@import com/ibm/bi/platform/moser/common/generated/metadata/ItemHierarchy (runtime) // fromJSON
  35747. //@import com/ibm/bi/platform/moser/common/generated/metadata/LocalRefType (runtime) // fromJSON
  35748. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterValueSet (runtime) // fromJSON
  35749. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterValue (runtime) // fromJSON
  35750. //@import com/ibm/bi/platform/moser/common/generated/metadata/ValueType (runtime) // fromJSON
  35751. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterFault (runtime) // fromJSON
  35752. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterCapabilitiesType (runtime) // fromJSON
  35753. //@import com/ibm/bi/platform/moser/common/generated/metadata/Prompt (runtime) // fromJSON
  35754. //@import com/ibm/bi/platform/moser/common/generated/metadata/ParameterFeedbackInfo (runtime) // fromJSON
  35755. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderType (runtime) // fromJSON
  35756. //@import com/ibm/bi/platform/moser/common/generated/metadata/Focus (runtime) // fromJSON
  35757. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitRule (runtime) // fromJSON
  35758. //@import com/ibm/bi/platform/moser/common/generated/metadata/SplitConfig (runtime) // fromJSON
  35759. //@import com/ibm/bi/platform/moser/common/generated/metadata/ProjectedItemType (runtime) // fromJSON
  35760. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderItemType (runtime) // fromJSON
  35761. //@import com/ibm/bi/platform/moser/common/generated/metadata/DefLinkType (runtime) // fromJSON
  35762. /**
  35763. * This object contains factory methods for each Java content interface and Java element interface generated in the com.ibm.bi.platform.moser.client.generated.metadata package. <p>An JSONObjectFactory allows you to programmatically construct new instances of the Java representation for XML content from a JOSN object. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.
  35764. */
  35765. var JSONObjectFactory = function (_BaseMoserObject) {
  35766. _inherits(JSONObjectFactory, _BaseMoserObject);
  35767. function JSONObjectFactory(objectFactory) {
  35768. _classCallCheck(this, JSONObjectFactory);
  35769. var _this = _possibleConstructorReturn(this, (JSONObjectFactory.__proto__ || Object.getPrototypeOf(JSONObjectFactory)).call(this));
  35770. _this._objectFactory = null;
  35771. _this._objectFactory = objectFactory;
  35772. return _this;
  35773. }
  35774. /**
  35775. * Creates a new instance of <code>Index</code> object from JSON data and notifies all registered listeners with a create event.
  35776. * @param {Object} json JSON data to be used to create the <code> Index</code> object.
  35777. * @return {Index} an object of type <code>Index</code>
  35778. */
  35779. _createClass(JSONObjectFactory, [{
  35780. key: 'createIndex',
  35781. value: function createIndex(json) {
  35782. return _Index2.default.fromJSON(json, this._objectFactory);
  35783. }
  35784. /**
  35785. * Creates a new instance of <code>ForeignKey</code> object from JSON data and notifies all registered listeners with a create event.
  35786. * @param {Object} json JSON data to be used to create the <code> ForeignKey</code> object.
  35787. * @return {ForeignKey} an object of type <code>ForeignKey</code>
  35788. */
  35789. }, {
  35790. key: 'createForeignKey',
  35791. value: function createForeignKey(json) {
  35792. return _ForeignKey2.default.fromJSON(json, this._objectFactory);
  35793. }
  35794. /**
  35795. * Creates a new instance of <code>QuerySubject</code> object from JSON data and notifies all registered listeners with a create event.
  35796. * @param {Object} json JSON data to be used to create the <code> QuerySubject</code> object.
  35797. * @return {QuerySubject} an object of type <code>QuerySubject</code>
  35798. */
  35799. }, {
  35800. key: 'createQuerySubject',
  35801. value: function createQuerySubject(json) {
  35802. return _QuerySubject2.default.fromJSON(json, this._objectFactory);
  35803. }
  35804. /**
  35805. * Creates a new instance of <code>SecurityFilter</code> object from JSON data and notifies all registered listeners with a create event.
  35806. * @param {Object} json JSON data to be used to create the <code> SecurityFilter</code> object.
  35807. * @return {SecurityFilter} an object of type <code>SecurityFilter</code>
  35808. */
  35809. }, {
  35810. key: 'createSecurityFilter',
  35811. value: function createSecurityFilter(json) {
  35812. return _SecurityFilter2.default.fromJSON(json, this._objectFactory);
  35813. }
  35814. /**
  35815. * Creates a new instance of <code>Relationship</code> object from JSON data and notifies all registered listeners with a create event.
  35816. * @param {Object} json JSON data to be used to create the <code> Relationship</code> object.
  35817. * @return {Relationship} an object of type <code>Relationship</code>
  35818. */
  35819. }, {
  35820. key: 'createRelationship',
  35821. value: function createRelationship(json) {
  35822. return _Relationship2.default.fromJSON(json, this._objectFactory);
  35823. }
  35824. /**
  35825. * Creates a new instance of <code>ParameterMap</code> object from JSON data and notifies all registered listeners with a create event.
  35826. * @param {Object} json JSON data to be used to create the <code> ParameterMap</code> object.
  35827. * @return {ParameterMap} an object of type <code>ParameterMap</code>
  35828. */
  35829. }, {
  35830. key: 'createParameterMap',
  35831. value: function createParameterMap(json) {
  35832. return _ParameterMap2.default.fromJSON(json, this._objectFactory);
  35833. }
  35834. /**
  35835. * Creates a new instance of <code>DrillGroup</code> object from JSON data and notifies all registered listeners with a create event.
  35836. * @param {Object} json JSON data to be used to create the <code> DrillGroup</code> object.
  35837. * @return {DrillGroup} an object of type <code>DrillGroup</code>
  35838. */
  35839. }, {
  35840. key: 'createDrillGroup',
  35841. value: function createDrillGroup(json) {
  35842. return _DrillGroup2.default.fromJSON(json, this._objectFactory);
  35843. }
  35844. /**
  35845. * Creates a new instance of <code>QueryValueSelector</code> object from JSON data and notifies all registered listeners with a create event.
  35846. * @param {Object} json JSON data to be used to create the <code> QueryValueSelector</code> object.
  35847. * @return {QueryValueSelector} an object of type <code>QueryValueSelector</code>
  35848. */
  35849. }, {
  35850. key: 'createQueryValueSelector',
  35851. value: function createQueryValueSelector(json) {
  35852. return _QueryValueSelector2.default.fromJSON(json, this._objectFactory);
  35853. }
  35854. /**
  35855. * Creates a new instance of <code>Module</code> object from JSON data and notifies all registered listeners with a create event.
  35856. * @param {Object} json JSON data to be used to create the <code> Module</code> object.
  35857. * @return {Module} an object of type <code>Module</code>
  35858. */
  35859. }, {
  35860. key: 'createModule',
  35861. value: function createModule(json) {
  35862. var module = _Module2.default.fromJSON(json, this._objectFactory);
  35863. module.setOverrideMode(true);
  35864. _ReferenceResolver2.default.resolve(module);
  35865. return module;
  35866. }
  35867. /**
  35868. * Creates a new instance of <code>ValidationMessage</code> object from JSON data and notifies all registered listeners with a create event.
  35869. * @param {Object} json JSON data to be used to create the <code> ValidationMessage</code> object.
  35870. * @return {ValidationMessage} an object of type <code>ValidationMessage</code>
  35871. */
  35872. }, {
  35873. key: 'createValidationMessage',
  35874. value: function createValidationMessage(json) {
  35875. return _ValidationMessage2.default.fromJSON(json, this._objectFactory);
  35876. }
  35877. /**
  35878. * Creates a new instance of <code>Feedback</code> object from JSON data and notifies all registered listeners with a create event.
  35879. * @param {Object} json JSON data to be used to create the <code> Feedback</code> object.
  35880. * @return {Feedback} an object of type <code>Feedback</code>
  35881. */
  35882. }, {
  35883. key: 'createFeedback',
  35884. value: function createFeedback(json) {
  35885. return _Feedback2.default.fromJSON(json, this._objectFactory);
  35886. }
  35887. /**
  35888. * Creates a new instance of <code>ItemNormalizationGroupType</code> object from JSON data and notifies all registered listeners with a create event.
  35889. * @param {Object} json JSON data to be used to create the <code> ItemNormalizationGroupType</code> object.
  35890. * @return {ItemNormalizationGroupType} an object of type <code>ItemNormalizationGroupType</code>
  35891. */
  35892. }, {
  35893. key: 'createItemNormalizationGroupType',
  35894. value: function createItemNormalizationGroupType(json) {
  35895. return _ItemNormalizationGroupType2.default.fromJSON(json, this._objectFactory);
  35896. }
  35897. /**
  35898. * Creates a new instance of <code>TextResource</code> object from JSON data and notifies all registered listeners with a create event.
  35899. * @param {Object} json JSON data to be used to create the <code> TextResource</code> object.
  35900. * @return {TextResource} an object of type <code>TextResource</code>
  35901. */
  35902. }, {
  35903. key: 'createTextResource',
  35904. value: function createTextResource(json) {
  35905. return _TextResource2.default.fromJSON(json, this._objectFactory);
  35906. }
  35907. /**
  35908. * Creates a new instance of <code>UseSpec</code> object from JSON data and notifies all registered listeners with a create event.
  35909. * @param {Object} json JSON data to be used to create the <code> UseSpec</code> object.
  35910. * @return {UseSpec} an object of type <code>UseSpec</code>
  35911. */
  35912. }, {
  35913. key: 'createModuleUseSpec',
  35914. value: function createModuleUseSpec(json) {
  35915. return _Module2.default.UseSpec.fromJSON(json, this._objectFactory);
  35916. }
  35917. /**
  35918. * Creates a new instance of <code>SortListType</code> object from JSON data and notifies all registered listeners with a create event.
  35919. * @param {Object} json JSON data to be used to create the <code> SortListType</code> object.
  35920. * @return {SortListType} an object of type <code>SortListType</code>
  35921. */
  35922. }, {
  35923. key: 'createSortListType',
  35924. value: function createSortListType(json) {
  35925. return _SortListType2.default.fromJSON(json, this._objectFactory);
  35926. }
  35927. /**
  35928. * Creates a new instance of <code>ItemType</code> object from JSON data and notifies all registered listeners with a create event.
  35929. * @param {Object} json JSON data to be used to create the <code> ItemType</code> object.
  35930. * @return {ItemType} an object of type <code>ItemType</code>
  35931. */
  35932. }, {
  35933. key: 'createItemType',
  35934. value: function createItemType(json) {
  35935. return _ItemType2.default.fromJSON(json, this._objectFactory);
  35936. }
  35937. /**
  35938. * Creates a new instance of <code>FacetType</code> object from JSON data and notifies all registered listeners with a create event.
  35939. * @param {Object} json JSON data to be used to create the <code> FacetType</code> object.
  35940. * @return {FacetType} an object of type <code>FacetType</code>
  35941. */
  35942. }, {
  35943. key: 'createFacetType',
  35944. value: function createFacetType(json) {
  35945. return _FacetType2.default.fromJSON(json, this._objectFactory);
  35946. }
  35947. /**
  35948. * Creates a new instance of <code>DataSource</code> object from JSON data and notifies all registered listeners with a create event.
  35949. * @param {Object} json JSON data to be used to create the <code> DataSource</code> object.
  35950. * @return {DataSource} an object of type <code>DataSource</code>
  35951. */
  35952. }, {
  35953. key: 'createDataSource',
  35954. value: function createDataSource(json) {
  35955. return _DataSource2.default.fromJSON(json, this._objectFactory);
  35956. }
  35957. /**
  35958. * Creates a new instance of <code>PhysicalObjectType</code> object from JSON data and notifies all registered listeners with a create event.
  35959. * @param {Object} json JSON data to be used to create the <code> PhysicalObjectType</code> object.
  35960. * @return {PhysicalObjectType} an object of type <code>PhysicalObjectType</code>
  35961. */
  35962. }, {
  35963. key: 'createPhysicalObjectType',
  35964. value: function createPhysicalObjectType(json) {
  35965. return _PhysicalObjectType2.default.fromJSON(json, this._objectFactory);
  35966. }
  35967. /**
  35968. * Creates a new instance of <code>BaseObjectType</code> object from JSON data and notifies all registered listeners with a create event.
  35969. * @param {Object} json JSON data to be used to create the <code> BaseObjectType</code> object.
  35970. * @return {BaseObjectType} an object of type <code>BaseObjectType</code>
  35971. */
  35972. }, {
  35973. key: 'createBaseObjectType',
  35974. value: function createBaseObjectType(json) {
  35975. return _BaseObjectType2.default.fromJSON(json, this._objectFactory);
  35976. }
  35977. /**
  35978. * Creates a new instance of <code>Jdbc</code> object from JSON data and notifies all registered listeners with a create event.
  35979. * @param {Object} json JSON data to be used to create the <code> Jdbc</code> object.
  35980. * @return {Jdbc} an object of type <code>Jdbc</code>
  35981. */
  35982. }, {
  35983. key: 'createJdbc',
  35984. value: function createJdbc(json) {
  35985. return _Jdbc2.default.fromJSON(json, this._objectFactory);
  35986. }
  35987. /**
  35988. * Creates a new instance of <code>Table</code> object from JSON data and notifies all registered listeners with a create event.
  35989. * @param {Object} json JSON data to be used to create the <code> Table</code> object.
  35990. * @return {Table} an object of type <code>Table</code>
  35991. */
  35992. }, {
  35993. key: 'createTable',
  35994. value: function createTable(json) {
  35995. return _Table2.default.fromJSON(json, this._objectFactory);
  35996. }
  35997. /**
  35998. * Creates a new instance of <code>Column</code> object from JSON data and notifies all registered listeners with a create event.
  35999. * @param {Object} json JSON data to be used to create the <code> Column</code> object.
  36000. * @return {Column} an object of type <code>Column</code>
  36001. */
  36002. }, {
  36003. key: 'createColumn',
  36004. value: function createColumn(json) {
  36005. return _Column2.default.fromJSON(json, this._objectFactory);
  36006. }
  36007. /**
  36008. * Creates a new instance of <code>IndexedColumn</code> object from JSON data and notifies all registered listeners with a create event.
  36009. * @param {Object} json JSON data to be used to create the <code> IndexedColumn</code> object.
  36010. * @return {IndexedColumn} an object of type <code>IndexedColumn</code>
  36011. */
  36012. }, {
  36013. key: 'createIndexIndexedColumn',
  36014. value: function createIndexIndexedColumn(json) {
  36015. return _Index2.default.IndexedColumn.fromJSON(json, this._objectFactory);
  36016. }
  36017. /**
  36018. * Creates a new instance of <code>PrimaryKey</code> object from JSON data and notifies all registered listeners with a create event.
  36019. * @param {Object} json JSON data to be used to create the <code> PrimaryKey</code> object.
  36020. * @return {PrimaryKey} an object of type <code>PrimaryKey</code>
  36021. */
  36022. }, {
  36023. key: 'createPrimaryKey',
  36024. value: function createPrimaryKey(json) {
  36025. return _PrimaryKey2.default.fromJSON(json, this._objectFactory);
  36026. }
  36027. /**
  36028. * Creates a new instance of <code>FkColumn</code> object from JSON data and notifies all registered listeners with a create event.
  36029. * @param {Object} json JSON data to be used to create the <code> FkColumn</code> object.
  36030. * @return {FkColumn} an object of type <code>FkColumn</code>
  36031. */
  36032. }, {
  36033. key: 'createForeignKeyFkColumn',
  36034. value: function createForeignKeyFkColumn(json) {
  36035. return _ForeignKey2.default.FkColumn.fromJSON(json, this._objectFactory);
  36036. }
  36037. /**
  36038. * Creates a new instance of <code>TableItemType</code> object from JSON data and notifies all registered listeners with a create event.
  36039. * @param {Object} json JSON data to be used to create the <code> TableItemType</code> object.
  36040. * @return {TableItemType} an object of type <code>TableItemType</code>
  36041. */
  36042. }, {
  36043. key: 'createTableItemType',
  36044. value: function createTableItemType(json) {
  36045. return _TableItemType2.default.fromJSON(json, this._objectFactory);
  36046. }
  36047. /**
  36048. * Creates a new instance of <code>StoredProcedure</code> object from JSON data and notifies all registered listeners with a create event.
  36049. * @param {Object} json JSON data to be used to create the <code> StoredProcedure</code> object.
  36050. * @return {StoredProcedure} an object of type <code>StoredProcedure</code>
  36051. */
  36052. }, {
  36053. key: 'createStoredProcedure',
  36054. value: function createStoredProcedure(json) {
  36055. return _StoredProcedure2.default.fromJSON(json, this._objectFactory);
  36056. }
  36057. /**
  36058. * Creates a new instance of <code>ProcParameterType</code> object from JSON data and notifies all registered listeners with a create event.
  36059. * @param {Object} json JSON data to be used to create the <code> ProcParameterType</code> object.
  36060. * @return {ProcParameterType} an object of type <code>ProcParameterType</code>
  36061. */
  36062. }, {
  36063. key: 'createProcParameterType',
  36064. value: function createProcParameterType(json) {
  36065. return _ProcParameterType2.default.fromJSON(json, this._objectFactory);
  36066. }
  36067. /**
  36068. * Creates a new instance of <code>DbFunction</code> object from JSON data and notifies all registered listeners with a create event.
  36069. * @param {Object} json JSON data to be used to create the <code> DbFunction</code> object.
  36070. * @return {DbFunction} an object of type <code>DbFunction</code>
  36071. */
  36072. }, {
  36073. key: 'createDbFunction',
  36074. value: function createDbFunction(json) {
  36075. return _DbFunction2.default.fromJSON(json, this._objectFactory);
  36076. }
  36077. /**
  36078. * Creates a new instance of <code>Struct</code> object from JSON data and notifies all registered listeners with a create event.
  36079. * @param {Object} json JSON data to be used to create the <code> Struct</code> object.
  36080. * @return {Struct} an object of type <code>Struct</code>
  36081. */
  36082. }, {
  36083. key: 'createStruct',
  36084. value: function createStruct(json) {
  36085. return _Struct2.default.fromJSON(json, this._objectFactory);
  36086. }
  36087. /**
  36088. * Creates a new instance of <code>Multiset</code> object from JSON data and notifies all registered listeners with a create event.
  36089. * @param {Object} json JSON data to be used to create the <code> Multiset</code> object.
  36090. * @return {Multiset} an object of type <code>Multiset</code>
  36091. */
  36092. }, {
  36093. key: 'createMultiset',
  36094. value: function createMultiset(json) {
  36095. return _Multiset2.default.fromJSON(json, this._objectFactory);
  36096. }
  36097. /**
  36098. * Creates a new instance of <code>ObjectType</code> object from JSON data and notifies all registered listeners with a create event.
  36099. * @param {Object} json JSON data to be used to create the <code> ObjectType</code> object.
  36100. * @return {ObjectType} an object of type <code>ObjectType</code>
  36101. */
  36102. }, {
  36103. key: 'createObjectType',
  36104. value: function createObjectType(json) {
  36105. return _ObjectType2.default.fromJSON(json, this._objectFactory);
  36106. }
  36107. /**
  36108. * Creates a new instance of <code>PropertyType</code> object from JSON data and notifies all registered listeners with a create event.
  36109. * @param {Object} json JSON data to be used to create the <code> PropertyType</code> object.
  36110. * @return {PropertyType} an object of type <code>PropertyType</code>
  36111. */
  36112. }, {
  36113. key: 'createPropertyType',
  36114. value: function createPropertyType(json) {
  36115. return _PropertyType2.default.fromJSON(json, this._objectFactory);
  36116. }
  36117. /**
  36118. * Creates a new instance of <code>ColumnDependency</code> object from JSON data and notifies all registered listeners with a create event.
  36119. * @param {Object} json JSON data to be used to create the <code> ColumnDependency</code> object.
  36120. * @return {ColumnDependency} an object of type <code>ColumnDependency</code>
  36121. */
  36122. }, {
  36123. key: 'createQuerySubjectColumnDependency',
  36124. value: function createQuerySubjectColumnDependency(json) {
  36125. return _QuerySubject2.default.ColumnDependency.fromJSON(json, this._objectFactory);
  36126. }
  36127. /**
  36128. * Creates a new instance of <code>QueryItem</code> object from JSON data and notifies all registered listeners with a create event.
  36129. * @param {Object} json JSON data to be used to create the <code> QueryItem</code> object.
  36130. * @return {QueryItem} an object of type <code>QueryItem</code>
  36131. */
  36132. }, {
  36133. key: 'createQueryItem',
  36134. value: function createQueryItem(json) {
  36135. return _QueryItem2.default.fromJSON(json, this._objectFactory);
  36136. }
  36137. /**
  36138. * Creates a new instance of <code>TaxonomyType</code> object from JSON data and notifies all registered listeners with a create event.
  36139. * @param {Object} json JSON data to be used to create the <code> TaxonomyType</code> object.
  36140. * @return {TaxonomyType} an object of type <code>TaxonomyType</code>
  36141. */
  36142. }, {
  36143. key: 'createTaxonomyType',
  36144. value: function createTaxonomyType(json) {
  36145. return _TaxonomyType2.default.fromJSON(json, this._objectFactory);
  36146. }
  36147. /**
  36148. * Creates a new instance of <code>SplitType</code> object from JSON data and notifies all registered listeners with a create event.
  36149. * @param {Object} json JSON data to be used to create the <code> SplitType</code> object.
  36150. * @return {SplitType} an object of type <code>SplitType</code>
  36151. */
  36152. }, {
  36153. key: 'createSplitType',
  36154. value: function createSplitType(json) {
  36155. return _SplitType2.default.fromJSON(json, this._objectFactory);
  36156. }
  36157. /**
  36158. * Creates a new instance of <code>PromptInfoType</code> object from JSON data and notifies all registered listeners with a create event.
  36159. * @param {Object} json JSON data to be used to create the <code> PromptInfoType</code> object.
  36160. * @return {PromptInfoType} an object of type <code>PromptInfoType</code>
  36161. */
  36162. }, {
  36163. key: 'createPromptInfoType',
  36164. value: function createPromptInfoType(json) {
  36165. return _PromptInfoType2.default.fromJSON(json, this._objectFactory);
  36166. }
  36167. /**
  36168. * Creates a new instance of <code>CalculatedMemberType</code> object from JSON data and notifies all registered listeners with a create event.
  36169. * @param {Object} json JSON data to be used to create the <code> CalculatedMemberType</code> object.
  36170. * @return {CalculatedMemberType} an object of type <code>CalculatedMemberType</code>
  36171. */
  36172. }, {
  36173. key: 'createCalculatedMemberType',
  36174. value: function createCalculatedMemberType(json) {
  36175. return _CalculatedMemberType2.default.fromJSON(json, this._objectFactory);
  36176. }
  36177. /**
  36178. * Creates a new instance of <code>MemberType</code> object from JSON data and notifies all registered listeners with a create event.
  36179. * @param {Object} json JSON data to be used to create the <code> MemberType</code> object.
  36180. * @return {MemberType} an object of type <code>MemberType</code>
  36181. */
  36182. }, {
  36183. key: 'createMemberType',
  36184. value: function createMemberType(json) {
  36185. return _MemberType2.default.fromJSON(json, this._objectFactory);
  36186. }
  36187. /**
  36188. * Creates a new instance of <code>Filter</code> object from JSON data and notifies all registered listeners with a create event.
  36189. * @param {Object} json JSON data to be used to create the <code> Filter</code> object.
  36190. * @return {Filter} an object of type <code>Filter</code>
  36191. */
  36192. }, {
  36193. key: 'createFilter',
  36194. value: function createFilter(json) {
  36195. return _Filter2.default.fromJSON(json, this._objectFactory);
  36196. }
  36197. /**
  36198. * Creates a new instance of <code>SqlQueryType</code> object from JSON data and notifies all registered listeners with a create event.
  36199. * @param {Object} json JSON data to be used to create the <code> SqlQueryType</code> object.
  36200. * @return {SqlQueryType} an object of type <code>SqlQueryType</code>
  36201. */
  36202. }, {
  36203. key: 'createSqlQueryType',
  36204. value: function createSqlQueryType(json) {
  36205. return _SqlQueryType2.default.fromJSON(json, this._objectFactory);
  36206. }
  36207. /**
  36208. * Creates a new instance of <code>QueryOperation</code> object from JSON data and notifies all registered listeners with a create event.
  36209. * @param {Object} json JSON data to be used to create the <code> QueryOperation</code> object.
  36210. * @return {QueryOperation} an object of type <code>QueryOperation</code>
  36211. */
  36212. }, {
  36213. key: 'createQuerySubjectQueryOperation',
  36214. value: function createQuerySubjectQueryOperation(json) {
  36215. return _QuerySubject2.default.QueryOperation.fromJSON(json, this._objectFactory);
  36216. }
  36217. /**
  36218. * Creates a new instance of <code>JoinOperation</code> object from JSON data and notifies all registered listeners with a create event.
  36219. * @param {Object} json JSON data to be used to create the <code> JoinOperation</code> object.
  36220. * @return {JoinOperation} an object of type <code>JoinOperation</code>
  36221. */
  36222. }, {
  36223. key: 'createQuerySubjectJoinOperation',
  36224. value: function createQuerySubjectJoinOperation(json) {
  36225. return _QuerySubject2.default.JoinOperation.fromJSON(json, this._objectFactory);
  36226. }
  36227. /**
  36228. * Creates a new instance of <code>ItemNormalizationType</code> object from JSON data and notifies all registered listeners with a create event.
  36229. * @param {Object} json JSON data to be used to create the <code> ItemNormalizationType</code> object.
  36230. * @return {ItemNormalizationType} an object of type <code>ItemNormalizationType</code>
  36231. */
  36232. }, {
  36233. key: 'createItemNormalizationType',
  36234. value: function createItemNormalizationType(json) {
  36235. return _ItemNormalizationType2.default.fromJSON(json, this._objectFactory);
  36236. }
  36237. /**
  36238. * Creates a new instance of <code>SecurityObject</code> object from JSON data and notifies all registered listeners with a create event.
  36239. * @param {Object} json JSON data to be used to create the <code> SecurityObject</code> object.
  36240. * @return {SecurityObject} an object of type <code>SecurityObject</code>
  36241. */
  36242. }, {
  36243. key: 'createSecurityFilterSecurityObject',
  36244. value: function createSecurityFilterSecurityObject(json) {
  36245. return _SecurityFilter2.default.SecurityObject.fromJSON(json, this._objectFactory);
  36246. }
  36247. /**
  36248. * Creates a new instance of <code>NamedSet</code> object from JSON data and notifies all registered listeners with a create event.
  36249. * @param {Object} json JSON data to be used to create the <code> NamedSet</code> object.
  36250. * @return {NamedSet} an object of type <code>NamedSet</code>
  36251. */
  36252. }, {
  36253. key: 'createNamedSet',
  36254. value: function createNamedSet(json) {
  36255. return _NamedSet2.default.fromJSON(json, this._objectFactory);
  36256. }
  36257. /**
  36258. * Creates a new instance of <code>CardinalityType</code> object from JSON data and notifies all registered listeners with a create event.
  36259. * @param {Object} json JSON data to be used to create the <code> CardinalityType</code> object.
  36260. * @return {CardinalityType} an object of type <code>CardinalityType</code>
  36261. */
  36262. }, {
  36263. key: 'createCardinalityType',
  36264. value: function createCardinalityType(json) {
  36265. return _CardinalityType2.default.fromJSON(json, this._objectFactory);
  36266. }
  36267. /**
  36268. * Creates a new instance of <code>Link</code> object from JSON data and notifies all registered listeners with a create event.
  36269. * @param {Object} json JSON data to be used to create the <code> Link</code> object.
  36270. * @return {Link} an object of type <code>Link</code>
  36271. */
  36272. }, {
  36273. key: 'createRelationshipLink',
  36274. value: function createRelationshipLink(json) {
  36275. return _Relationship2.default.Link.fromJSON(json, this._objectFactory);
  36276. }
  36277. /**
  36278. * Creates a new instance of <code>ParameterMapEntry</code> object from JSON data and notifies all registered listeners with a create event.
  36279. * @param {Object} json JSON data to be used to create the <code> ParameterMapEntry</code> object.
  36280. * @return {ParameterMapEntry} an object of type <code>ParameterMapEntry</code>
  36281. */
  36282. }, {
  36283. key: 'createParameterMapParameterMapEntry',
  36284. value: function createParameterMapParameterMapEntry(json) {
  36285. return _ParameterMap2.default.ParameterMapEntry.fromJSON(json, this._objectFactory);
  36286. }
  36287. /**
  36288. * Creates a new instance of <code>QueryItemMap</code> object from JSON data and notifies all registered listeners with a create event.
  36289. * @param {Object} json JSON data to be used to create the <code> QueryItemMap</code> object.
  36290. * @return {QueryItemMap} an object of type <code>QueryItemMap</code>
  36291. */
  36292. }, {
  36293. key: 'createParameterMapQueryItemMap',
  36294. value: function createParameterMapQueryItemMap(json) {
  36295. return _ParameterMap2.default.QueryItemMap.fromJSON(json, this._objectFactory);
  36296. }
  36297. /**
  36298. * Creates a new instance of <code>Calculation</code> object from JSON data and notifies all registered listeners with a create event.
  36299. * @param {Object} json JSON data to be used to create the <code> Calculation</code> object.
  36300. * @return {Calculation} an object of type <code>Calculation</code>
  36301. */
  36302. }, {
  36303. key: 'createCalculation',
  36304. value: function createCalculation(json) {
  36305. return _Calculation2.default.fromJSON(json, this._objectFactory);
  36306. }
  36307. /**
  36308. * Creates a new instance of <code>Segment</code> object from JSON data and notifies all registered listeners with a create event.
  36309. * @param {Object} json JSON data to be used to create the <code> Segment</code> object.
  36310. * @return {Segment} an object of type <code>Segment</code>
  36311. */
  36312. }, {
  36313. key: 'createDrillGroupSegment',
  36314. value: function createDrillGroupSegment(json) {
  36315. return _DrillGroup2.default.Segment.fromJSON(json, this._objectFactory);
  36316. }
  36317. /**
  36318. * Creates a new instance of <code>ItemHierarchy</code> object from JSON data and notifies all registered listeners with a create event.
  36319. * @param {Object} json JSON data to be used to create the <code> ItemHierarchy</code> object.
  36320. * @return {ItemHierarchy} an object of type <code>ItemHierarchy</code>
  36321. */
  36322. }, {
  36323. key: 'createItemHierarchy',
  36324. value: function createItemHierarchy(json) {
  36325. return _ItemHierarchy2.default.fromJSON(json, this._objectFactory);
  36326. }
  36327. /**
  36328. * Creates a new instance of <code>LocalRefType</code> object from JSON data and notifies all registered listeners with a create event.
  36329. * @param {Object} json JSON data to be used to create the <code> LocalRefType</code> object.
  36330. * @return {LocalRefType} an object of type <code>LocalRefType</code>
  36331. */
  36332. }, {
  36333. key: 'createLocalRefType',
  36334. value: function createLocalRefType(json) {
  36335. return _LocalRefType2.default.fromJSON(json, this._objectFactory);
  36336. }
  36337. /**
  36338. * Creates a new instance of <code>ParameterValueSet</code> object from JSON data and notifies all registered listeners with a create event.
  36339. * @param {Object} json JSON data to be used to create the <code> ParameterValueSet</code> object.
  36340. * @return {ParameterValueSet} an object of type <code>ParameterValueSet</code>
  36341. */
  36342. }, {
  36343. key: 'createParameterValueSet',
  36344. value: function createParameterValueSet(json) {
  36345. return _ParameterValueSet2.default.fromJSON(json, this._objectFactory);
  36346. }
  36347. /**
  36348. * Creates a new instance of <code>ParameterValue</code> object from JSON data and notifies all registered listeners with a create event.
  36349. * @param {Object} json JSON data to be used to create the <code> ParameterValue</code> object.
  36350. * @return {ParameterValue} an object of type <code>ParameterValue</code>
  36351. */
  36352. }, {
  36353. key: 'createParameterValue',
  36354. value: function createParameterValue(json) {
  36355. return _ParameterValue2.default.fromJSON(json, this._objectFactory);
  36356. }
  36357. /**
  36358. * Creates a new instance of <code>ValueType</code> object from JSON data and notifies all registered listeners with a create event.
  36359. * @param {Object} json JSON data to be used to create the <code> ValueType</code> object.
  36360. * @return {ValueType} an object of type <code>ValueType</code>
  36361. */
  36362. }, {
  36363. key: 'createValueType',
  36364. value: function createValueType(json) {
  36365. return _ValueType2.default.fromJSON(json, this._objectFactory);
  36366. }
  36367. /**
  36368. * Creates a new instance of <code>ParameterFault</code> object from JSON data and notifies all registered listeners with a create event.
  36369. * @param {Object} json JSON data to be used to create the <code> ParameterFault</code> object.
  36370. * @return {ParameterFault} an object of type <code>ParameterFault</code>
  36371. */
  36372. }, {
  36373. key: 'createParameterFault',
  36374. value: function createParameterFault(json) {
  36375. return _ParameterFault2.default.fromJSON(json, this._objectFactory);
  36376. }
  36377. /**
  36378. * Creates a new instance of <code>ParameterCapabilitiesType</code> object from JSON data and notifies all registered listeners with a create event.
  36379. * @param {Object} json JSON data to be used to create the <code> ParameterCapabilitiesType</code> object.
  36380. * @return {ParameterCapabilitiesType} an object of type <code>ParameterCapabilitiesType</code>
  36381. */
  36382. }, {
  36383. key: 'createParameterCapabilitiesType',
  36384. value: function createParameterCapabilitiesType(json) {
  36385. return _ParameterCapabilitiesType2.default.fromJSON(json, this._objectFactory);
  36386. }
  36387. /**
  36388. * Creates a new instance of <code>Prompt</code> object from JSON data and notifies all registered listeners with a create event.
  36389. * @param {Object} json JSON data to be used to create the <code> Prompt</code> object.
  36390. * @return {Prompt} an object of type <code>Prompt</code>
  36391. */
  36392. }, {
  36393. key: 'createPrompt',
  36394. value: function createPrompt(json) {
  36395. return _Prompt2.default.fromJSON(json, this._objectFactory);
  36396. }
  36397. /**
  36398. * Creates a new instance of <code>SortExpression</code> object from JSON data and notifies all registered listeners with a create event.
  36399. * @param {Object} json JSON data to be used to create the <code> SortExpression</code> object.
  36400. * @return {SortExpression} an object of type <code>SortExpression</code>
  36401. */
  36402. }, {
  36403. key: 'createQueryValueSelectorSortExpression',
  36404. value: function createQueryValueSelectorSortExpression(json) {
  36405. return _QueryValueSelector2.default.SortExpression.fromJSON(json, this._objectFactory);
  36406. }
  36407. /**
  36408. * Creates a new instance of <code>ParameterFeedbackInfo</code> object from JSON data and notifies all registered listeners with a create event.
  36409. * @param {Object} json JSON data to be used to create the <code> ParameterFeedbackInfo</code> object.
  36410. * @return {ParameterFeedbackInfo} an object of type <code>ParameterFeedbackInfo</code>
  36411. */
  36412. }, {
  36413. key: 'createParameterFeedbackInfo',
  36414. value: function createParameterFeedbackInfo(json) {
  36415. return _ParameterFeedbackInfo2.default.fromJSON(json, this._objectFactory);
  36416. }
  36417. /**
  36418. * Creates a new instance of <code>FolderType</code> object from JSON data and notifies all registered listeners with a create event.
  36419. * @param {Object} json JSON data to be used to create the <code> FolderType</code> object.
  36420. * @return {FolderType} an object of type <code>FolderType</code>
  36421. */
  36422. }, {
  36423. key: 'createFolderType',
  36424. value: function createFolderType(json) {
  36425. return _FolderType2.default.fromJSON(json, this._objectFactory);
  36426. }
  36427. /**
  36428. * Creates a new instance of <code>Focus</code> object from JSON data and notifies all registered listeners with a create event.
  36429. * @param {Object} json JSON data to be used to create the <code> Focus</code> object.
  36430. * @return {Focus} an object of type <code>Focus</code>
  36431. */
  36432. }, {
  36433. key: 'createFocus',
  36434. value: function createFocus(json) {
  36435. return _Focus2.default.fromJSON(json, this._objectFactory);
  36436. }
  36437. /**
  36438. * Creates a new instance of <code>ErrorData</code> object from JSON data and notifies all registered listeners with a create event.
  36439. * @param {Object} json JSON data to be used to create the <code> ErrorData</code> object.
  36440. * @return {ErrorData} an object of type <code>ErrorData</code>
  36441. */
  36442. }, {
  36443. key: 'createValidationMessageErrorData',
  36444. value: function createValidationMessageErrorData(json) {
  36445. return _ValidationMessage2.default.ErrorData.fromJSON(json, this._objectFactory);
  36446. }
  36447. /**
  36448. * Creates a new instance of <code>Data</code> object from JSON data and notifies all registered listeners with a create event.
  36449. * @param {Object} json JSON data to be used to create the <code> Data</code> object.
  36450. * @return {Data} an object of type <code>Data</code>
  36451. */
  36452. }, {
  36453. key: 'createFeedbackData',
  36454. value: function createFeedbackData(json) {
  36455. return _Feedback2.default.Data.fromJSON(json, this._objectFactory);
  36456. }
  36457. /**
  36458. * Creates a new instance of <code>Msg</code> object from JSON data and notifies all registered listeners with a create event.
  36459. * @param {Object} json JSON data to be used to create the <code> Msg</code> object.
  36460. * @return {Msg} an object of type <code>Msg</code>
  36461. */
  36462. }, {
  36463. key: 'createFeedbackMsg',
  36464. value: function createFeedbackMsg(json) {
  36465. return _Feedback2.default.Msg.fromJSON(json, this._objectFactory);
  36466. }
  36467. /**
  36468. * Creates a new instance of <code>SplitRule</code> object from JSON data and notifies all registered listeners with a create event.
  36469. * @param {Object} json JSON data to be used to create the <code> SplitRule</code> object.
  36470. * @return {SplitRule} an object of type <code>SplitRule</code>
  36471. */
  36472. }, {
  36473. key: 'createSplitRule',
  36474. value: function createSplitRule(json) {
  36475. return _SplitRule2.default.fromJSON(json, this._objectFactory);
  36476. }
  36477. /**
  36478. * Creates a new instance of <code>SplitConfig</code> object from JSON data and notifies all registered listeners with a create event.
  36479. * @param {Object} json JSON data to be used to create the <code> SplitConfig</code> object.
  36480. * @return {SplitConfig} an object of type <code>SplitConfig</code>
  36481. */
  36482. }, {
  36483. key: 'createSplitConfig',
  36484. value: function createSplitConfig(json) {
  36485. return _SplitConfig2.default.fromJSON(json, this._objectFactory);
  36486. }
  36487. /**
  36488. * Creates a new instance of <code>ProjectedItemType</code> object from JSON data and notifies all registered listeners with a create event.
  36489. * @param {Object} json JSON data to be used to create the <code> ProjectedItemType</code> object.
  36490. * @return {ProjectedItemType} an object of type <code>ProjectedItemType</code>
  36491. */
  36492. }, {
  36493. key: 'createProjectedItemType',
  36494. value: function createProjectedItemType(json) {
  36495. return _ProjectedItemType2.default.fromJSON(json, this._objectFactory);
  36496. }
  36497. /**
  36498. * Creates a new instance of <code>FolderItemType</code> object from JSON data and notifies all registered listeners with a create event.
  36499. * @param {Object} json JSON data to be used to create the <code> FolderItemType</code> object.
  36500. * @return {FolderItemType} an object of type <code>FolderItemType</code>
  36501. */
  36502. }, {
  36503. key: 'createFolderItemType',
  36504. value: function createFolderItemType(json) {
  36505. return _FolderItemType2.default.fromJSON(json, this._objectFactory);
  36506. }
  36507. /**
  36508. * Creates a new instance of <code>DefLinkType</code> object from JSON data and notifies all registered listeners with a create event.
  36509. * @param {Object} json JSON data to be used to create the <code> DefLinkType</code> object.
  36510. * @return {DefLinkType} an object of type <code>DefLinkType</code>
  36511. */
  36512. }, {
  36513. key: 'createDefLinkType',
  36514. value: function createDefLinkType(json) {
  36515. return _DefLinkType2.default.fromJSON(json, this._objectFactory);
  36516. }
  36517. /**
  36518. * Creates a new instance of <code>Key</code> object from JSON data and notifies all registered listeners with a create event.
  36519. * @param {Object} json JSON data to be used to create the <code> Key</code> object.
  36520. * @return {Key} an object of type <code>Key</code>
  36521. */
  36522. }, {
  36523. key: 'createItemNormalizationGroupTypeKey',
  36524. value: function createItemNormalizationGroupTypeKey(json) {
  36525. return _ItemNormalizationGroupType2.default.Key.fromJSON(json, this._objectFactory);
  36526. }
  36527. /**
  36528. * Creates a new instance of <code>Attribute</code> object from JSON data and notifies all registered listeners with a create event.
  36529. * @param {Object} json JSON data to be used to create the <code> Attribute</code> object.
  36530. * @return {Attribute} an object of type <code>Attribute</code>
  36531. */
  36532. }, {
  36533. key: 'createItemNormalizationGroupTypeAttribute',
  36534. value: function createItemNormalizationGroupTypeAttribute(json) {
  36535. return _ItemNormalizationGroupType2.default.Attribute.fromJSON(json, this._objectFactory);
  36536. }
  36537. /**
  36538. * Creates a new instance of <code>Item</code> object from JSON data and notifies all registered listeners with a create event.
  36539. * @param {Object} json JSON data to be used to create the <code> Item</code> object.
  36540. * @return {Item} an object of type <code>Item</code>
  36541. */
  36542. }, {
  36543. key: 'createTextResourceItem',
  36544. value: function createTextResourceItem(json) {
  36545. return _TextResource2.default.Item.fromJSON(json, this._objectFactory);
  36546. }
  36547. /**
  36548. * Creates a new instance of <code>Ancestors</code> object from JSON data and notifies all registered listeners with a create event.
  36549. * @param {Object} json JSON data to be used to create the <code> Ancestors</code> object.
  36550. * @return {Ancestors} an object of type <code>Ancestors</code>
  36551. */
  36552. }, {
  36553. key: 'createModuleUseSpecAncestors',
  36554. value: function createModuleUseSpecAncestors(json) {
  36555. return _Module2.default.UseSpec.Ancestors.fromJSON(json, this._objectFactory);
  36556. }
  36557. /**
  36558. * Creates a new instance of <code>SortItem</code> object from JSON data and notifies all registered listeners with a create event.
  36559. * @param {Object} json JSON data to be used to create the <code> SortItem</code> object.
  36560. * @return {SortItem} an object of type <code>SortItem</code>
  36561. */
  36562. }, {
  36563. key: 'createSortListTypeSortItem',
  36564. value: function createSortListTypeSortItem(json) {
  36565. return _SortListType2.default.SortItem.fromJSON(json, this._objectFactory);
  36566. }
  36567. /**
  36568. * Creates a new instance of <code>Folder</code> object from JSON data and notifies all registered listeners with a create event.
  36569. * @param {Object} json JSON data to be used to create the <code> Folder</code> object.
  36570. * @return {Folder} an object of type <code>Folder</code>
  36571. */
  36572. }, {
  36573. key: 'createItemTypeFolder',
  36574. value: function createItemTypeFolder(json) {
  36575. return _ItemType2.default.Folder.fromJSON(json, this._objectFactory);
  36576. }
  36577. /**
  36578. * Creates a new instance of <code>Context</code> object from JSON data and notifies all registered listeners with a create event.
  36579. * @param {Object} json JSON data to be used to create the <code> Context</code> object.
  36580. * @return {Context} an object of type <code>Context</code>
  36581. */
  36582. }, {
  36583. key: 'createFacetTypeContext',
  36584. value: function createFacetTypeContext(json) {
  36585. return _FacetType2.default.Context.fromJSON(json, this._objectFactory);
  36586. }
  36587. }]);
  36588. return JSONObjectFactory;
  36589. }(_BaseMoserObject3.default);
  36590. exports.default = JSONObjectFactory;
  36591. /***/ },
  36592. /* 112 */
  36593. /***/ function(module, exports, __webpack_require__) {
  36594. 'use strict';
  36595. Object.defineProperty(exports, "__esModule", {
  36596. value: true
  36597. });
  36598. var _BaseMoserObject2 = __webpack_require__(2);
  36599. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  36600. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  36601. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  36602. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  36603. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  36604. ** IBM Confidential
  36605. **
  36606. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  36607. **
  36608. ** (C) Copyright IBM Corp. 2021
  36609. **
  36610. ** The source code for this program is not published or otherwise divested of its trade secrets,
  36611. ** irrespective of what has been deposited with the U.S. Copyright Office.
  36612. ************************************************************************/
  36613. // GENERATED
  36614. //@import BaseMoserObject (loadtime) // superclass
  36615. /**
  36616. * Defines the IDs for features in the model objects. Each feature ID is prefixed by the model class name, followed by the feature name. They can be used to identify the feature to be changed through the generic set(), add() and remove() methods on each model object.
  36617. */
  36618. var Features = function (_BaseMoserObject) {
  36619. _inherits(Features, _BaseMoserObject);
  36620. function Features() {
  36621. _classCallCheck(this, Features);
  36622. return _possibleConstructorReturn(this, (Features.__proto__ || Object.getPrototypeOf(Features)).apply(this, arguments));
  36623. }
  36624. return Features;
  36625. }(_BaseMoserObject3.default);
  36626. Features.PARAMETER_VALUE = 1;
  36627. Features.CONTEXT = 2;
  36628. Features.ITEM = 3;
  36629. Features.RESOURCE_LANGUAGE = 4;
  36630. Features.NAME = 5;
  36631. Features.ORIGINAL_NAME = 6;
  36632. Features.DESCRIPTION = 7;
  36633. Features.HIDDEN = 8;
  36634. Features.MSG = 9;
  36635. Features.SEVERITY = 10;
  36636. Features.DETAIL_MSG = 11;
  36637. Features.ERROR_CODE = 12;
  36638. Features.LOCATION = 13;
  36639. Features.RULE_ID = 14;
  36640. Features.TYPE = 15;
  36641. Features.ERROR_DATA = 16;
  36642. Features.ENABLED = 17;
  36643. Features.SORT_LIST = 18;
  36644. Features.PROMPT_TYPE = 19;
  36645. Features.PROMPT_CASCADE_ON_REF = 20;
  36646. Features.PROMPT_FILTER_ITEM_REF = 21;
  36647. Features.PROMPT_USE_ITEM_REF = 22;
  36648. Features.PROMPT_DISPLAY_ITEM_REF = 23;
  36649. Features.FILTER = 24;
  36650. Features.CALCULATION = 25;
  36651. Features.NAMED_SET = 26;
  36652. Features.ITEM_HIERARCHY = 27;
  36653. Features.QUERY_ITEM = 28;
  36654. Features.FOLDER = 29;
  36655. Features.USE_EXPRESSION = 30;
  36656. Features.DISPLAY_EXPRESSION = 31;
  36657. Features.SORT_EXPRESSION = 32;
  36658. Features.IS_UNIQUE = 33;
  36659. Features.INDEXED_COLUMN = 34;
  36660. Features.VALUE = 35;
  36661. Features.REF = 36;
  36662. Features.KEY_REF = 37;
  36663. Features.IDENTIFIER = 38;
  36664. Features.TEXT = 39;
  36665. Features.NULL_PLACEMENT = 40;
  36666. Features.ORDER = 41;
  36667. Features.SECURITY_OBJECT = 42;
  36668. Features.EXPRESSION = 43;
  36669. Features.SECURITY_FILTER = 44;
  36670. Features.GENERATE_SQL = 45;
  36671. Features.SOURCE_CATEGORY = 46;
  36672. Features.QUERY_OPERATION = 47;
  36673. Features.SHORTCUT_TARGET_QUERY_SUBJECT_REF = 48;
  36674. Features.QUERY_SUBJECT_USAGE = 49;
  36675. Features.SELECT_LIST_CONTROL = 50;
  36676. Features.USE_IN_JOIN_PATH = 51;
  36677. Features.CLASSIFIER = 52;
  36678. Features.ROW_COUNT = 53;
  36679. Features.ITEM_NORMALIZATION = 54;
  36680. Features.USE_LOCAL_CACHE = 55;
  36681. Features.SQL_QUERY = 56;
  36682. Features.COLUMN_DEPENDENCY = 57;
  36683. Features.INSTANCE_TYPE = 58;
  36684. Features.JOIN_OPERATION = 59;
  36685. Features.ORIGINAL_REF = 60;
  36686. Features.NUMBER_OF_ROWS = 61;
  36687. Features.DATA_CACHE_EXPIRY = 62;
  36688. Features.LOOKUP_TABLE_ID = 63;
  36689. Features.DATATYPE = 64;
  36690. Features.COLUMN_NAME_PATTERN = 65;
  36691. Features.LOOKUP_MODULE = 66;
  36692. Features.LOOKUP_COLUMN_ID = 67;
  36693. Features.JOIN_RELATIONSHIP = 68;
  36694. Features.NUMBER_OF_DISTINCT_VALUES = 69;
  36695. Features.REF_TO_HIERARCHY = 70;
  36696. Features.FOLDER_ITEM = 71;
  36697. Features.CALCULATED_MEMBER = 72;
  36698. Features.LOCAL_REF = 73;
  36699. Features.NULLABLE = 74;
  36700. Features.HIGHLEVEL_DATATYPE = 75;
  36701. Features.EXTERNAL_NAME = 76;
  36702. Features.USAGE = 77;
  36703. Features.REGULAR_AGGREGATE = 78;
  36704. Features.DEF_LINK = 79;
  36705. Features.PARAMETER_NAME = 80;
  36706. Features.INVERT = 81;
  36707. Features.DATA_TYPE = 82;
  36708. Features.VALUES = 83;
  36709. Features.SPLIT_RULES = 84;
  36710. Features.IMPORTS = 85;
  36711. Features.SEARCH_PATH = 86;
  36712. Features.PROPERTY = 87;
  36713. Features.STORE_ID = 88;
  36714. Features.ANCESTORS = 89;
  36715. Features.LOAD_AS_NEEDED = 90;
  36716. Features.PARAMETER_MAP_ENTRY = 91;
  36717. Features.FRESHNESS = 92;
  36718. Features.QUERY_ITEM_MAP = 93;
  36719. Features.DEFAULT_VALUE = 94;
  36720. Features.ID_FOR_EXPRESSION = 95;
  36721. Features.CONNECTION_STRING = 96;
  36722. Features.SCHEMA = 97;
  36723. Features.STORED_PROCEDURE = 98;
  36724. Features.CATALOG = 99;
  36725. Features.CUBE_PATH = 100;
  36726. Features.JDBC = 101;
  36727. Features.CUBE_DATA_UPDATED_ON = 102;
  36728. Features.CUBE_CREATED_ON = 103;
  36729. Features.CUBE_DEFAULT_MEASURE = 104;
  36730. Features.DATABASE_TYPE = 105;
  36731. Features.CUBE_SCHEMA_UPDATED_ON = 106;
  36732. Features.CM_DATA_SOURCE = 107;
  36733. Features.CSV_URL = 108;
  36734. Features.PASSWORD = 109;
  36735. Features.CUBE_DESCRIPTION = 110;
  36736. Features.CUBE_IS_OPTIMIZED = 111;
  36737. Features.DB_FUNCTION = 112;
  36738. Features.CUBE = 113;
  36739. Features.CUBE_CURRENT_PERIOD = 114;
  36740. Features.USER = 115;
  36741. Features.TABLE = 116;
  36742. Features.CAPABILITIES = 117;
  36743. Features.MODEL_FILTER_ITEM = 118;
  36744. Features.DIRECTION = 119;
  36745. Features.SIGNIFICANT = 120;
  36746. Features.INTENT = 121;
  36747. Features.INFLUENTIAL = 122;
  36748. Features.JDBC_URL = 123;
  36749. Features.DRIVER_CLASS_NAME = 124;
  36750. Features.CONNECTION_PROPERTIES = 125;
  36751. Features.FAMILY = 126;
  36752. Features.CLAZZ = 127;
  36753. Features.DOMAIN = 128;
  36754. Features.CONTAINER = 129;
  36755. Features.USE = 130;
  36756. Features.FM_MODEL = 131;
  36757. Features.USE_SPEC = 132;
  36758. Features.RELATIONSHIP = 133;
  36759. Features.PARAMETER_MAP = 134;
  36760. Features.METADATA_TREE_VIEW_FOCUS = 135;
  36761. Features.REF_ACTIVE_PARAMETER_VALUE_SET = 136;
  36762. Features.EXPRESSION_LOCALE = 137;
  36763. Features.DRILL_GROUP = 138;
  36764. Features.VERSION = 139;
  36765. Features.PARAMETER_VALUE_SET = 140;
  36766. Features.DATA_RETRIEVAL_MODE = 141;
  36767. Features.TEXT_RESOURCE = 142;
  36768. Features.QUERY_SUBJECT = 143;
  36769. Features.DATA_SOURCE = 144;
  36770. Features.PROMPT = 145;
  36771. Features.METADATA_TREE_VIEW = 146;
  36772. Features.KEY = 147;
  36773. Features.LINE = 148;
  36774. Features.CHARACTER = 149;
  36775. Features.LEFT_REF = 150;
  36776. Features.RIGHT_REF = 151;
  36777. Features.COMPARISON_OPERATOR = 152;
  36778. Features.ITEM_REF = 153;
  36779. Features.KEY_CONSTRAINT = 154;
  36780. Features.KEY_COMPOSITION = 155;
  36781. Features.BOUND_RANGE = 156;
  36782. Features.OPTIONAL = 157;
  36783. Features.DISCRETE_VALUE = 158;
  36784. Features.UNBOUNDED_RANGE = 159;
  36785. Features.MULTIVALUED = 160;
  36786. Features.SQL_OPERATOR = 161;
  36787. Features.PROC_PARAMETER = 162;
  36788. Features.RESULT_DATATYPE = 163;
  36789. Features.KEYED_COLUMN = 164;
  36790. Features.TABLE_ITEM = 165;
  36791. Features.PROPERTY_OVERRIDE = 166;
  36792. Features.EDIT_MODE = 167;
  36793. Features.COMMENT = 168;
  36794. Features.LABEL = 169;
  36795. Features.SCREEN_TIP = 170;
  36796. Features.DATASOURCE_REF = 171;
  36797. Features.SQL_TEXT = 172;
  36798. Features.SQL_TYPE = 173;
  36799. Features.PROJECTED_ITEM = 174;
  36800. Features.ITEM_NORMALIZATION_GROUP = 175;
  36801. Features.DATA = 176;
  36802. Features.VENDOR_TYPE = 177;
  36803. Features.VENDOR_FORMAT = 178;
  36804. Features.FOLDER_LABEL = 179;
  36805. Features.RELATIONSHIP_REF = 180;
  36806. Features.COLUMN_TREATMENT = 181;
  36807. Features.DISPLAY = 182;
  36808. Features.MODE = 183;
  36809. Features.SORT_ITEM = 184;
  36810. Features.SET_OPERATION = 185;
  36811. Features.DUPLICATES = 186;
  36812. Features.QUERY_REF = 187;
  36813. Features.MINIMUM_VALUE = 188;
  36814. Features.NUMBER_OF_NULL_VALUES = 189;
  36815. Features.ROOT_MEMBER = 190;
  36816. Features.CONCEPTS = 191;
  36817. Features.HIERARCHY_HAS_MULTIPLE_ROOTS = 192;
  36818. Features.MEMBERS = 193;
  36819. Features.ORDERED_VALUES = 194;
  36820. Features.MAXIMUM_VALUE = 195;
  36821. Features.TABLE_TYPE = 196;
  36822. Features.COLUMN = 197;
  36823. Features.INDEX = 198;
  36824. Features.FOREIGN_KEY = 199;
  36825. Features.PRIMARY_KEY = 200;
  36826. Features.STRUCT = 201;
  36827. Features.MULTISET = 202;
  36828. Features.SEGMENT = 203;
  36829. Features.USE2 = 204;
  36830. Features.DISPLAY2 = 205;
  36831. Features.OPERATOR = 206;
  36832. Features.MINCARD = 207;
  36833. Features.MAXCARD = 208;
  36834. Features.CM_SEARCH_PATH = 209;
  36835. Features.DISPLAY_PATH = 210;
  36836. Features.PARENT_GROUP_REF = 211;
  36837. Features.ATTRIBUTE = 212;
  36838. Features.CARDINALITY = 213;
  36839. Features.VALIDATION_MESSAGE = 214;
  36840. Features.PK_CATALOG = 215;
  36841. Features.PK_SCHEMA = 216;
  36842. Features.PK_COLUMN = 217;
  36843. Features.PK_TABLE = 218;
  36844. Features.COLUMN_NAME = 219;
  36845. Features.FK_COLUMN = 220;
  36846. Features.DEFAULT_NAME = 221;
  36847. Features.LEVEL_LABEL = 222;
  36848. Features.DIMENSION_UNIQUE_NAME = 223;
  36849. Features.PARENT_UNIQUE_NAME = 224;
  36850. Features.MEMBER_CAPTION = 225;
  36851. Features.LEVEL_NUMBER = 226;
  36852. Features.LEVEL_UNIQUE_NAME = 227;
  36853. Features.PARENT_LEVEL = 228;
  36854. Features.HIERARCHY_UNIQUE_NAME = 229;
  36855. Features.POST_AUTO_AGGREGATION = 230;
  36856. Features.VALUE_REF = 231;
  36857. Features.LEFT = 232;
  36858. Features.LINK = 233;
  36859. Features.RIGHT = 234;
  36860. Features.JOIN_FILTER_TYPE = 235;
  36861. Features.SHORTCUT_TARGET_RELATIONSHIP_REF = 236;
  36862. Features.SORT_ORDER = 237;
  36863. Features.UI_CONTROL_REFERENCE = 238;
  36864. Features.QUERY_VALUE_SELECTOR = 239;
  36865. Features.REF_DRILL_GROUP = 240;
  36866. Features.UPPER_LIMIT = 241;
  36867. Features.LOWER_LIMIT = 242;
  36868. Features.STATIC_VALUE_SELECTOR = 243;
  36869. Features.ROLE = 244;
  36870. Features.FORMAT = 245;
  36871. Features.TAXONOMY = 246;
  36872. Features.AGGREGATE_MODE = 247;
  36873. Features.SPLIT_DEFINITION = 248;
  36874. Features.FACET_DEFINITION = 249;
  36875. Features.DATATYPE_CATEGORY = 250;
  36876. Features.PROMPT_INFO = 251;
  36877. exports.default = Features;
  36878. /***/ },
  36879. /* 113 */
  36880. /***/ function(module, exports, __webpack_require__) {
  36881. "use strict";
  36882. Object.defineProperty(exports, "__esModule", {
  36883. value: true
  36884. });
  36885. var _BaseMoserObject2 = __webpack_require__(2);
  36886. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  36887. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  36888. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  36889. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  36890. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  36891. ** IBM Confidential
  36892. **
  36893. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  36894. **
  36895. ** (C) Copyright IBM Corp. 2020
  36896. **
  36897. ** The source code for this program is not published or otherwise divested of its trade secrets,
  36898. ** irrespective of what has been deposited with the U.S. Copyright Office.
  36899. ************************************************************************/
  36900. // GENERATED
  36901. //@import BaseMoserObject (loadtime) // superclass
  36902. /**
  36903. * Defines the object types in the model objects. Each object type is the model class name. They can be used to compare with the moser object types using <code>getObjectType()</code>.
  36904. */
  36905. var MoserObjectTypes = function (_BaseMoserObject) {
  36906. _inherits(MoserObjectTypes, _BaseMoserObject);
  36907. function MoserObjectTypes() {
  36908. _classCallCheck(this, MoserObjectTypes);
  36909. return _possibleConstructorReturn(this, (MoserObjectTypes.__proto__ || Object.getPrototypeOf(MoserObjectTypes)).apply(this, arguments));
  36910. }
  36911. return MoserObjectTypes;
  36912. }(_BaseMoserObject3.default);
  36913. MoserObjectTypes.MOSER_OBJECT = "MoserObject";
  36914. MoserObjectTypes.PARAMETER_VALUE_SET = "ParameterValueSet";
  36915. MoserObjectTypes.TEXT_RESOURCE = "TextResource";
  36916. MoserObjectTypes.PHYSICAL_OBJECT_TYPE = "PhysicalObjectType";
  36917. MoserObjectTypes.VALIDATION_MESSAGE = "ValidationMessage";
  36918. MoserObjectTypes.FACET_TYPE = "FacetType";
  36919. MoserObjectTypes.PROMPT_INFO_TYPE = "PromptInfoType";
  36920. MoserObjectTypes.ITEM_TYPE = "ItemType";
  36921. MoserObjectTypes.QUERY_VALUE_SELECTOR = "QueryValueSelector";
  36922. MoserObjectTypes.INDEX = "Index";
  36923. MoserObjectTypes.PROPERTY_TYPE = "PropertyType";
  36924. MoserObjectTypes.COLUMN_DEPENDENCY = "ColumnDependency";
  36925. MoserObjectTypes.ITEM = "Item";
  36926. MoserObjectTypes.SORT_ITEM = "SortItem";
  36927. MoserObjectTypes.SECURITY_FILTER = "SecurityFilter";
  36928. MoserObjectTypes.CALCULATION = "Calculation";
  36929. MoserObjectTypes.QUERY_SUBJECT = "QuerySubject";
  36930. MoserObjectTypes.SPLIT_RULE = "SplitRule";
  36931. MoserObjectTypes.NAMED_SET = "NamedSet";
  36932. MoserObjectTypes.FOLDER_TYPE = "FolderType";
  36933. MoserObjectTypes.ITEM_HIERARCHY = "ItemHierarchy";
  36934. MoserObjectTypes.PROJECTED_ITEM_TYPE = "ProjectedItemType";
  36935. MoserObjectTypes.FOLDER_ITEM_TYPE = "FolderItemType";
  36936. MoserObjectTypes.PARAMETER_VALUE = "ParameterValue";
  36937. MoserObjectTypes.SPLIT_CONFIG = "SplitConfig";
  36938. MoserObjectTypes.USE_SPEC = "UseSpec";
  36939. MoserObjectTypes.PARAMETER_MAP = "ParameterMap";
  36940. MoserObjectTypes.BASE_OBJECT_TYPE = "BaseObjectType";
  36941. MoserObjectTypes.DATA_SOURCE = "DataSource";
  36942. MoserObjectTypes.PARAMETER_FEEDBACK_INFO = "ParameterFeedbackInfo";
  36943. MoserObjectTypes.SORT_EXPRESSION = "SortExpression";
  36944. MoserObjectTypes.FOCUS = "Focus";
  36945. MoserObjectTypes.JDBC = "Jdbc";
  36946. MoserObjectTypes.TAXONOMY_TYPE = "TaxonomyType";
  36947. MoserObjectTypes.LOCAL_REF_TYPE = "LocalRefType";
  36948. MoserObjectTypes.MODULE = "Module";
  36949. MoserObjectTypes.PARAMETER_MAP_ENTRY = "ParameterMapEntry";
  36950. MoserObjectTypes.ERROR_DATA = "ErrorData";
  36951. MoserObjectTypes.LINK = "Link";
  36952. MoserObjectTypes.KEY = "Key";
  36953. MoserObjectTypes.PARAMETER_CAPABILITIES_TYPE = "ParameterCapabilitiesType";
  36954. MoserObjectTypes.ATTRIBUTE = "Attribute";
  36955. MoserObjectTypes.DB_FUNCTION = "DbFunction";
  36956. MoserObjectTypes.PRIMARY_KEY = "PrimaryKey";
  36957. MoserObjectTypes.FOLDER = "Folder";
  36958. MoserObjectTypes.SEGMENT = "Segment";
  36959. MoserObjectTypes.STRUCT = "Struct";
  36960. MoserObjectTypes.OBJECT_TYPE = "ObjectType";
  36961. MoserObjectTypes.SQL_QUERY_TYPE = "SqlQueryType";
  36962. MoserObjectTypes.ITEM_NORMALIZATION_TYPE = "ItemNormalizationType";
  36963. MoserObjectTypes.FEEDBACK = "Feedback";
  36964. MoserObjectTypes.COLUMN = "Column";
  36965. MoserObjectTypes.SPLIT_TYPE = "SplitType";
  36966. MoserObjectTypes.PROC_PARAMETER_TYPE = "ProcParameterType";
  36967. MoserObjectTypes.DEF_LINK_TYPE = "DefLinkType";
  36968. MoserObjectTypes.SORT_LIST_TYPE = "SortListType";
  36969. MoserObjectTypes.QUERY_OPERATION = "QueryOperation";
  36970. MoserObjectTypes.MSG = "Msg";
  36971. MoserObjectTypes.CONTEXT = "Context";
  36972. MoserObjectTypes.QUERY_ITEM = "QueryItem";
  36973. MoserObjectTypes.TABLE = "Table";
  36974. MoserObjectTypes.TABLE_ITEM_TYPE = "TableItemType";
  36975. MoserObjectTypes.DRILL_GROUP = "DrillGroup";
  36976. MoserObjectTypes.CALCULATED_MEMBER_TYPE = "CalculatedMemberType";
  36977. MoserObjectTypes.VALUE_TYPE = "ValueType";
  36978. MoserObjectTypes.CARDINALITY_TYPE = "CardinalityType";
  36979. MoserObjectTypes.SECURITY_OBJECT = "SecurityObject";
  36980. MoserObjectTypes.ITEM_NORMALIZATION_GROUP_TYPE = "ItemNormalizationGroupType";
  36981. MoserObjectTypes.DATA = "Data";
  36982. MoserObjectTypes.FK_COLUMN = "FkColumn";
  36983. MoserObjectTypes.FOREIGN_KEY = "ForeignKey";
  36984. MoserObjectTypes.ANCESTORS = "Ancestors";
  36985. MoserObjectTypes.JOIN_OPERATION = "JoinOperation";
  36986. MoserObjectTypes.PARAMETER_FAULT = "ParameterFault";
  36987. MoserObjectTypes.STORED_PROCEDURE = "StoredProcedure";
  36988. MoserObjectTypes.MEMBER_TYPE = "MemberType";
  36989. MoserObjectTypes.FILTER = "Filter";
  36990. MoserObjectTypes.QUERY_ITEM_MAP = "QueryItemMap";
  36991. MoserObjectTypes.RELATIONSHIP = "Relationship";
  36992. MoserObjectTypes.INDEXED_COLUMN = "IndexedColumn";
  36993. MoserObjectTypes.MULTISET = "Multiset";
  36994. MoserObjectTypes.PROMPT = "Prompt";
  36995. MoserObjectTypes.BASE_QUERY_ITEM_TYPE = "BaseQueryItemType";
  36996. exports.default = MoserObjectTypes;
  36997. /***/ },
  36998. /* 114 */
  36999. /***/ function(module, exports, __webpack_require__) {
  37000. 'use strict';
  37001. Object.defineProperty(exports, "__esModule", {
  37002. value: true
  37003. });
  37004. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  37005. var _BaseMoserObject2 = __webpack_require__(2);
  37006. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  37007. var _IdGenerator = __webpack_require__(115);
  37008. var _IdGenerator2 = _interopRequireDefault(_IdGenerator);
  37009. var _ModuleVersion = __webpack_require__(119);
  37010. var _ModuleVersion2 = _interopRequireDefault(_ModuleVersion);
  37011. var _UseSpecType = __webpack_require__(55);
  37012. var _UseSpecType2 = _interopRequireDefault(_UseSpecType);
  37013. var _ModuleRelinker = __webpack_require__(120);
  37014. var _ModuleRelinker2 = _interopRequireDefault(_ModuleRelinker);
  37015. var _EmbeddedModuleRelinker = __webpack_require__(121);
  37016. var _EmbeddedModuleRelinker2 = _interopRequireDefault(_EmbeddedModuleRelinker);
  37017. var _DataModuleExtractor = __webpack_require__(117);
  37018. var _DataModuleExtractor2 = _interopRequireDefault(_DataModuleExtractor);
  37019. var _QuerySubjectUtils = __webpack_require__(116);
  37020. var _QuerySubjectUtils2 = _interopRequireDefault(_QuerySubjectUtils);
  37021. var _InstanceType = __webpack_require__(11);
  37022. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  37023. var _MoserObjectUtils = __webpack_require__(27);
  37024. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  37025. var _ReferenceResolver = __webpack_require__(40);
  37026. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  37027. var _PropertySetter = __webpack_require__(10);
  37028. var _PropertySetter2 = _interopRequireDefault(_PropertySetter);
  37029. var _CopyMode = __webpack_require__(122);
  37030. var _CopyMode2 = _interopRequireDefault(_CopyMode);
  37031. var _CommonResolverUtil = __webpack_require__(118);
  37032. var _CommonResolverUtil2 = _interopRequireDefault(_CommonResolverUtil);
  37033. var _RelationshipUtils = __webpack_require__(123);
  37034. var _RelationshipUtils2 = _interopRequireDefault(_RelationshipUtils);
  37035. var _MoserCommonUtils = __webpack_require__(124);
  37036. var _MoserCommonUtils2 = _interopRequireDefault(_MoserCommonUtils);
  37037. var _QueryItem = __webpack_require__(80);
  37038. var _QueryItem2 = _interopRequireDefault(_QueryItem);
  37039. var _MemberType = __webpack_require__(88);
  37040. var _MemberType2 = _interopRequireDefault(_MemberType);
  37041. var _MoserObject = __webpack_require__(6);
  37042. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  37043. var _PropertyType = __webpack_require__(79);
  37044. var _PropertyType2 = _interopRequireDefault(_PropertyType);
  37045. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  37046. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  37047. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  37048. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  37049. ** IBM Confidential
  37050. **
  37051. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  37052. **
  37053. ** (C) Copyright IBM Corp. 2020
  37054. **
  37055. ** The source code for this program is not published or otherwise divested of its trade secrets,
  37056. ** irrespective of what has been deposited with the U.S. Copyright Office.
  37057. ************************************************************************/
  37058. // GENERATED
  37059. //@import BaseMoserObject (loadtime) // superclass
  37060. //@import com/ibm/bi/platform/moser/client/utils/IdGenerator (static) // generateNewUseSpecId, new, generateNewUseSpecIdWithPrefix, makeIdentifier
  37061. //@import com/ibm/bi/platform/moser/common/generated/metadata/ModuleVersion (static) // ModuleVersion
  37062. //@import com/ibm/bi/platform/moser/common/generated/metadata/UseSpecType (static) // UseSpecType
  37063. //@import com/ibm/bi/platform/moser/client/relink/ModuleRelinker (runtime) // new
  37064. //@import com/ibm/bi/platform/moser/client/relink/EmbeddedModuleRelinker (runtime) // new
  37065. //@import com/ibm/bi/platform/moser/core/module/util/DataModuleExtractor (static) // removeMembersFromQS, removeModuleMetadata, getUseSpecRefs, getUseSpec, getUseSpecByRef
  37066. //@import com/ibm/bi/platform/moser/client/utils/QuerySubjectUtils (static) // getParentModule, clearPropertyOerride, convertReferenceQuerySubjectToCopy, getQueryItemById, getUseSpecById
  37067. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (static) // InstanceType
  37068. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (static) // getList, getQueryItems
  37069. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (static) // strBetween, resolve, getFirstPart, getMoserObjectByIdForExpression, bindMoserObject, resolveRelationship, strAfter, getSecondPart
  37070. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertySetter (static) // getAllQueryItemsInQuerySubject, cleanQuerySubjectItemNormalization, addQueryItemToItemNormalization, setIdentifier, getExtractIdentifiersSpec, getParentQuerySubject, updateIdForExpression, resetReferencedObject, isEmptyRef
  37071. //@import com/ibm/bi/platform/moser/client/utils/CopyMode (static) // CopyMode
  37072. //@import com/ibm/bi/platform/moser/core/metadata/util/CommonResolverUtil (static) // getFMPlaceHolderInMDTV
  37073. //@import com/ibm/bi/platform/moser/client/utils/RelationshipUtils (static) // isEqual
  37074. //@import com/ibm/bi/platform/moser/common/utils/MoserCommonUtils (static) // areCompatibleDataTypes, getScale, generateHighlevelDatatype, createAncestors, getPrecision
  37075. //@import com/ibm/bi/platform/moser/common/generated/metadata/QueryItem (static) // new
  37076. //@import com/ibm/bi/platform/moser/common/generated/metadata/MemberType (static) // new
  37077. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // getModuleObject
  37078. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertyType (static) // new
  37079. /**
  37080. * This class provides a set of static utility APIs for manipulate a data module. This class will be translated to JavaScript If a function is used only for traverse, don't use getXXX (it might create an empty list). use basicGetXXX.
  37081. * @author mohamedelgemaiey
  37082. */
  37083. var ModuleUtils = function (_BaseMoserObject) {
  37084. _inherits(ModuleUtils, _BaseMoserObject);
  37085. function ModuleUtils() {
  37086. _classCallCheck(this, ModuleUtils);
  37087. return _possibleConstructorReturn(this, (ModuleUtils.__proto__ || Object.getPrototypeOf(ModuleUtils)).apply(this, arguments));
  37088. }
  37089. _createClass(ModuleUtils, null, [{
  37090. key: 'createModule',
  37091. /**
  37092. * Create a new module
  37093. * @param {ObjectFactory} objectFactory : the object factory that will be used to create the module
  37094. * @param {String} label : the module label
  37095. * @param {String} expressionLocale : the expression locale
  37096. * @return {Module}
  37097. */
  37098. value: function createModule(objectFactory, label, expressionLocale) {
  37099. var module = objectFactory.createModule();
  37100. module.setLabel(label);
  37101. module.setContainer("C");
  37102. new _IdGenerator2.default(null).generateId(module);
  37103. module.setVersion(_ModuleVersion2.default.LATEST_VERSION);
  37104. module.setExpressionLocale(expressionLocale);
  37105. module.setDataRetrievalMode("liveConnection");
  37106. var f = objectFactory.createFolderType();
  37107. module.addMetadataTreeView(f);
  37108. return module;
  37109. }
  37110. /**
  37111. * Add a source to a module
  37112. * @param {Module} module : the module
  37113. * @param {UseSpecType} srcModuleType : Source type (package, module, file, ...etc)
  37114. * @param {String} srcModuleStoreId : source module store id
  37115. * @param {String} srcModuleSearchPath : source module search path (Deprecated, ignored)
  37116. * @param objectFactory: factory to create new module objects
  37117. * @param {boolean} addMDTVPlaceHolder : true to add a place holder in the MDTV (Only for FM package and OLAP)
  37118. * @param ancestors: the ancestors of the useSpec
  37119. * @return {UseSpec} newly created UseSpec for this source
  37120. */
  37121. }, {
  37122. key: 'addSource',
  37123. value: function addSource(module, srcModuleType, srcModuleStoreId, srcModuleSearchPath, objectFactory, addMDTVPlaceHolder, ancestors) {
  37124. var useSpec = objectFactory.createModuleUseSpec();
  37125. useSpec.setIdentifier(_IdGenerator2.default.generateNewUseSpecId(module));
  37126. useSpec.setType(srcModuleType);
  37127. useSpec.setStoreID(srcModuleStoreId);
  37128. if (ancestors && !(ancestors.length == 0)) {
  37129. Array.prototype.push.apply(useSpec.getAncestors(), ancestors);
  37130. }
  37131. module.addUseSpec(useSpec);
  37132. if (addMDTVPlaceHolder && (_UseSpecType2.default.PACKAGE === srcModuleType || _UseSpecType2.default.LW_OLAP === srcModuleType)) {
  37133. ModuleUtils._addPlaceHolder(module, useSpec.getIdentifier(), objectFactory);
  37134. }
  37135. if (_UseSpecType2.default.DATABASE === srcModuleType) {
  37136. useSpec.setDataCacheExpiry("3600");
  37137. }
  37138. return useSpec;
  37139. }
  37140. /**
  37141. * Relink a source in a Data Module
  37142. * @param {Module} module : the module
  37143. * @param {UseSpec} useSpec : the useSpec to relink
  37144. * @param {UseSpecType} newSrcType : the new source type (package, module, file, ...etc)
  37145. * @param {String} newSrcStoreId : the new source module store id
  37146. * @param newSrcAncestors: the ancestors of the useSpec
  37147. * @param objectFactory: factory to create new module objects
  37148. * @return {UseSpec} newly created UseSpec for the relinked source
  37149. */
  37150. }, {
  37151. key: 'relinkDataModuleSource',
  37152. value: function relinkDataModuleSource(module, useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory) {
  37153. var relinker = new _ModuleRelinker2.default(module, null);
  37154. return relinker.relinkSource(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory);
  37155. }
  37156. /**
  37157. * Relink a data module which contains references to a particular useSpec so they use identifiers from newSrcModule.
  37158. * @param {Module} module : the module
  37159. * @param {UseSpec} useSpec : the useSpec to relink identifiers for
  37160. * @param {Module} newSrcModule : the new module to relink identifiers to
  37161. */
  37162. }, {
  37163. key: 'relinkDataModule',
  37164. value: function relinkDataModule(module, useSpec, newSrcModule) {
  37165. var relinker = new _ModuleRelinker2.default(module, newSrcModule);
  37166. relinker.relinkIdentifiers(useSpec);
  37167. }
  37168. /**
  37169. * Relink a source in an Embedded Module
  37170. * @param {Module} module : the embedded module
  37171. * @param {UseSpec} useSpec : the useSpec to relink
  37172. * @param {UseSpecType} newSrcType : the new source type (package, module, file, ...etc)
  37173. * @param {String} newSrcStoreId : the new source module store id
  37174. * @param newSrcAncestors: the ancestors of the useSpec
  37175. * @param objectFactory: factory to create new module objects
  37176. * @return {UseSpec} newly created UseSpec for the relinked source
  37177. */
  37178. }, {
  37179. key: 'relinkEmbeddedModuleSource',
  37180. value: function relinkEmbeddedModuleSource(module, useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory) {
  37181. var relinker = new _EmbeddedModuleRelinker2.default(module, null);
  37182. return relinker.relinkSource(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory);
  37183. }
  37184. /**
  37185. * Relink a embedded module which contains references to a particular useSpec so they use identifiers from newSrcModule.
  37186. * @param {Module} module : the module
  37187. * @param {UseSpec} useSpec : the useSpec to relink identifiers for
  37188. * @param {Module} newSrcModule : the new module to relink identifiers to
  37189. */
  37190. }, {
  37191. key: 'relinkEmbeddedModule',
  37192. value: function relinkEmbeddedModule(module, useSpec, newSrcModule) {
  37193. var relinker = new _EmbeddedModuleRelinker2.default(module, newSrcModule);
  37194. relinker.relinkIdentifiers(useSpec);
  37195. }
  37196. /**
  37197. * Relink idForExpression's, used against an embedded module, from one source to another.
  37198. * @param {Module} module : Can be either: 1- Currently resolved and working Module (some sources exists) 2- The embedded module in raw form (dashboard has shaping and source no longer exists) 3- Null (no sources or dashboard shaping exists)
  37199. * @param {Array} expressions : list of idForExpressions to relink
  37200. * @param {Module} newSrcModule : the new module to relink identifiers to
  37201. * @return {Array} A list of relinked idForExpressions, in the same order as provided.
  37202. */
  37203. }, {
  37204. key: 'relinkIdForExpressions',
  37205. value: function relinkIdForExpressions(module, expressions, newSrcModule) {
  37206. var relinker = new _EmbeddedModuleRelinker2.default(module, newSrcModule);
  37207. return relinker.relinkIdForExpressions(expressions);
  37208. }
  37209. /**
  37210. * Removes the members in a QuerySubject.
  37211. * @param {QuerySubject} qs - an QuerySubject to have members removed from
  37212. */
  37213. }, {
  37214. key: 'removeMembers',
  37215. value: function removeMembers(qs) {
  37216. _DataModuleExtractor2.default.removeMembersFromQS(qs);
  37217. }
  37218. /**
  37219. * Add a place holder for fm package tree view
  37220. * @param {Module} module
  37221. * @param {String} srcId
  37222. * @param {ObjectFactory} objectFactory
  37223. */
  37224. }, {
  37225. key: '_addPlaceHolder',
  37226. value: function _addPlaceHolder(module, srcId, objectFactory) {
  37227. var placeHolder = objectFactory.createFolderType();
  37228. placeHolder.setIdentifier(srcId);
  37229. var fi = objectFactory.createFolderItemType();
  37230. fi.setFolder(placeHolder);
  37231. var f;
  37232. var mdtv = module.getMetadataTreeView();
  37233. if (mdtv.length == 0) {
  37234. f = objectFactory.createFolderType();
  37235. module.addMetadataTreeView(f);
  37236. } else {
  37237. f = mdtv[0];
  37238. }
  37239. f.addFolderItem(fi);
  37240. }
  37241. /**
  37242. * Prepare the module metadata for saving either a newly created data module or the changes made to an existing data module prior to the REST call: POST "/modules" or PUT "/modules/{moduleId}"
  37243. * @param {Module} module - an Module object with metadata to be saved
  37244. * @return {Object} a JSON object
  37245. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37246. */
  37247. }, {
  37248. key: 'prepareModuleForSave',
  37249. value: function prepareModuleForSave(module) {
  37250. var moduleJSON;
  37251. var clonedModule = module.clone();
  37252. if (clonedModule) {
  37253. _DataModuleExtractor2.default.removeModuleMetadata(clonedModule);
  37254. moduleJSON = clonedModule.toJSON();
  37255. }
  37256. return moduleJSON;
  37257. }
  37258. /**
  37259. * Generate and set the object id in a given scope.
  37260. * @param {ObjectType} scope : The object parent.
  37261. * @param {ObjectType} obj : The object that will needs an id.
  37262. */
  37263. }, {
  37264. key: 'generateObjectId',
  37265. value: function generateObjectId(scope, obj) {
  37266. new _IdGenerator2.default(scope).generateId(obj);
  37267. }
  37268. /**
  37269. * Create and initialized an id generator. The caller can then use the returned id generator to create an id for multiple objects by calling generateId(obj).
  37270. * @return {IdGenerator} an Id generator that is initialized with the given scope.
  37271. */
  37272. }, {
  37273. key: 'getIdGenerator',
  37274. value: function getIdGenerator(scope) {
  37275. return new _IdGenerator2.default(scope);
  37276. }
  37277. /**
  37278. * Generate a new use spec id.
  37279. * @param {Module} module : The module object.
  37280. * @return {String} the new use spec id.
  37281. */
  37282. }, {
  37283. key: 'getNewUseSpecId',
  37284. value: function getNewUseSpecId(module) {
  37285. return _IdGenerator2.default.generateNewUseSpecId(module);
  37286. }
  37287. /**
  37288. * Break the query subject reference and convert it to a copy
  37289. * @param qs: the query subject
  37290. * @param module: The module that includes the query subject
  37291. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37292. */
  37293. }, {
  37294. key: 'convertReferenceQuerySubjectToCopy',
  37295. value: function convertReferenceQuerySubjectToCopy(qs, module) {
  37296. _QuerySubjectUtils2.default.convertReferenceQuerySubjectToCopy(qs, module);
  37297. }
  37298. /**
  37299. * insert querysubject into module, and, add it to MDTV.
  37300. * @param {Module} module : destination module.
  37301. * @param {Array} qsList : querysubject list.
  37302. * @param {FolderType} mdtvFolder : MDTV.
  37303. * @param {int} inserAtIndex : position.
  37304. * @param {ObjectFactory} objectFactory : factory.
  37305. */
  37306. }, {
  37307. key: 'insertQuerySubject',
  37308. value: function insertQuerySubject(module, qsList, mdtvFolder, inserAtIndex, objectFactory) {
  37309. var mdtvIndex = inserAtIndex;
  37310. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37311. var qs = __exp_enFor0[__i_enFor0];
  37312. module.addQuerySubject(qs);
  37313. ModuleUtils._insertFolderItem(mdtvFolder, qs, mdtvIndex++, objectFactory);
  37314. }
  37315. }
  37316. /**
  37317. * get SourceModule UseSpec In ParentModule.
  37318. * @param {MoserObject} srcObj source object.
  37319. * @param {Module} module parent module.
  37320. * @return {UseSpec} UseSpec or null.
  37321. */
  37322. }, {
  37323. key: 'getSourceModuleUseSpecInParentModule',
  37324. value: function getSourceModuleUseSpecInParentModule(srcObj, module) {
  37325. if (!srcObj || !module) {
  37326. return null;
  37327. }
  37328. var useSpecs = module.basicGetUseSpec();
  37329. if (!useSpecs || useSpecs.length == 0) {
  37330. return null;
  37331. }
  37332. var srcModule = _QuerySubjectUtils2.default.getParentModule(srcObj);
  37333. if (!srcModule) {
  37334. return null;
  37335. }
  37336. var useLst = srcModule.basicGetUse();
  37337. if (!useLst || useLst.length != 1) {
  37338. return null;
  37339. }
  37340. var srcModuleStoreId = useLst[0];
  37341. for (var __i_enFor0 = 0, __exp_enFor0 = useSpecs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37342. var useSp = __exp_enFor0[__i_enFor0];
  37343. if (srcModuleStoreId == useSp.getStoreID()) {
  37344. return useSp;
  37345. }
  37346. }
  37347. return null;
  37348. }
  37349. /**
  37350. * get the source module alias from usespec in module.
  37351. * @param {String} srcModuleId existing srcModuleId.
  37352. * @param {Module} module module.
  37353. * @param {MoserObject} srcObj source object.
  37354. * @return {String} source module alias.
  37355. */
  37356. }, {
  37357. key: 'getSourceModuleAliasIfNotDefined',
  37358. value: function getSourceModuleAliasIfNotDefined(srcModuleId, module, srcObj) {
  37359. if (srcModuleId != null) {
  37360. return srcModuleId;
  37361. }
  37362. var useSpec = ModuleUtils.getSourceModuleUseSpecInParentModule(srcObj, module);
  37363. if (useSpec) {
  37364. return useSpec.getIdentifier();
  37365. }
  37366. return null;
  37367. }
  37368. /**
  37369. * Insert query subjects, relationship, calculations, filters into a module. This is typically used to insert a proposal into a module. This method will update the mdtv to insert the ref to the new objects. In case of copying query subject, if it already exists, it restore the deleted query items
  37370. * @param {ObjectType} destParent : destination module (note that in the future this should be other objects too)
  37371. * @param {Array} objList : List of moser objects (currently: query subjects, relationships, calculations, filters, query items)
  37372. * @param {String} srcModuleId : the source module id. i.e. module.usespec[src module].identifier
  37373. * @param {Module} srcModule : the source module
  37374. * @param {boolean} asReference : as reference or copy
  37375. * @param {FolderType} mdtvFolder : where to insert the objects in the mdtv
  37376. * @param {int} insertAtIndex : where to insert the objects in the mdtvFolder
  37377. * @param {ObjectFactory} objectFactory : to create the new objects (if clone is not used)
  37378. * @param {Object} idMap : identifier map, storing old to new identifiers
  37379. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37380. */
  37381. }, {
  37382. key: 'insert',
  37383. value: function insert(destParent, objList, srcModuleId, srcModule, asReference, mdtvFolder, insertAtIndex, objectFactory, idMap) {
  37384. var idGenerator = ModuleUtils.getIdGenerator(destParent);
  37385. var oldIdToNewIdMap = idMap;
  37386. if (!oldIdToNewIdMap) {
  37387. oldIdToNewIdMap = {};
  37388. }
  37389. var mdtvIndex = insertAtIndex;
  37390. var destParentObjectType = destParent.getObjectType();
  37391. for (var __i_enFor0 = 0, __exp_enFor0 = objList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37392. var obj = __exp_enFor0[__i_enFor0];
  37393. var objectType = obj.getObjectType();
  37394. if ("QuerySubject" == objectType && "Module" == destParentObjectType) {
  37395. var module = destParent;
  37396. var qsRef = ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj) + "." + obj.getIdentifier();
  37397. var existingQS = ModuleUtils._findQuerySubjectByOriginalRefThenRef(module, qsRef);
  37398. if (!existingQS) {
  37399. var qs = obj.clone();
  37400. if (qs.basicGetSecurityFilter()) {
  37401. qs.getSecurityFilter().length = 0;
  37402. }
  37403. qs.setInstanceType(asReference ? _InstanceType2.default.REFERENCE : null);
  37404. _QuerySubjectUtils2.default.clearPropertyOerride(qs);
  37405. var oldId = qs.getIdentifier();
  37406. ModuleUtils._updateQuerySubjectRef(module, qs, ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj), srcModule, asReference);
  37407. idGenerator.generateId(qs);
  37408. oldIdToNewIdMap[oldId] = qs.getIdentifier();
  37409. var idForExprPrefix = qs.getIdentifier() + ".";
  37410. for (var __i_enFor1 = 0, __exp_enFor1 = _MoserObjectUtils2.default.getQueryItems(qs), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  37411. var qi = __exp_enFor1[__i_enFor1];
  37412. if (!asReference) {
  37413. qi.setExpression(qi.getIdentifier());
  37414. }
  37415. qi.setIdForExpression(idForExprPrefix + qi.getIdentifier());
  37416. }
  37417. module.addQuerySubject(qs);
  37418. ModuleUtils._insertFolderItem(mdtvFolder, qs, mdtvIndex++, objectFactory);
  37419. } else if (!asReference) {
  37420. var qs = obj;
  37421. ModuleUtils._updateExistingQuerySubject(existingQS, qs, objectFactory);
  37422. }
  37423. } else if ("Relationship" == objectType && "Module" == destParentObjectType) {
  37424. var module = destParent;
  37425. var rel = obj.clone();
  37426. var qsId = oldIdToNewIdMap[rel.getLeft().getRef()];
  37427. if (qsId != null) {
  37428. rel.getLeft().setRef(qsId);
  37429. }
  37430. qsId = oldIdToNewIdMap[rel.getRight().getRef()];
  37431. if (qsId != null) {
  37432. rel.getRight().setRef(qsId);
  37433. }
  37434. if (!ModuleUtils._findRelationshipMatch(module, rel)) {
  37435. var qsLeft = ModuleUtils.getQuerySubjectById(rel.getLeft().getRef(), module);
  37436. var qsRight = ModuleUtils.getQuerySubjectById(rel.getRight().getRef(), module);
  37437. if (qsLeft && qsLeft.getInstanceType() == _InstanceType2.default.REFERENCE && qsRight && qsRight.getInstanceType() == _InstanceType2.default.REFERENCE) {
  37438. rel.setInstanceType(_InstanceType2.default.REFERENCE);
  37439. rel.setRef(ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj) + "." + rel.getIdentifier());
  37440. } else {
  37441. rel.setInstanceType(null);
  37442. rel.setRef(null);
  37443. }
  37444. idGenerator.generateId(rel);
  37445. module.addRelationship(rel);
  37446. }
  37447. _ReferenceResolver2.default.resolveRelationship(rel, module);
  37448. } else if ("Calculation" == objectType && "Module" == destParentObjectType) {
  37449. var module = destParent;
  37450. var calc = obj.clone();
  37451. idGenerator.generateId(calc);
  37452. module.addCalculation(calc);
  37453. ModuleUtils._insertFolderItem(mdtvFolder, calc, mdtvIndex++, objectFactory);
  37454. } else if ("Filter" == objectType && "Module" == destParentObjectType) {
  37455. var module = destParent;
  37456. var filter = obj.clone();
  37457. idGenerator.generateId(filter);
  37458. module.addFilter(filter);
  37459. ModuleUtils._insertFolderItem(mdtvFolder, filter, mdtvIndex++, objectFactory);
  37460. } else if ("FolderItemType" == objectType && "Module" == destParentObjectType) {
  37461. var module = destParent;
  37462. var folderItem = obj.clone();
  37463. var folder = folderItem.getFolder();
  37464. var o = folderItem.getReferencedObject();
  37465. if (folder) {
  37466. var folders = [];
  37467. folders.push(folder);
  37468. ModuleUtils.insert(module, folders, ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj), srcModule, asReference, mdtvFolder, mdtvIndex++, objectFactory, oldIdToNewIdMap);
  37469. } else if (o) {
  37470. var objects = [];
  37471. objects.push(o);
  37472. ModuleUtils.insert(module, objects, ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj), srcModule, asReference, mdtvFolder, mdtvIndex++, objectFactory, oldIdToNewIdMap);
  37473. }
  37474. } else if ("FolderType" == objectType && "Module" == destParentObjectType) {
  37475. var module = destParent;
  37476. var folder = obj.clone();
  37477. idGenerator.generateId(folder);
  37478. var items = folder.basicGetFolderItem();
  37479. if (items && !(items.length == 0)) {
  37480. var folderItems = [];
  37481. Array.prototype.push.apply(folderItems, items);
  37482. folder.basicGetFolderItem().length = 0;
  37483. ModuleUtils.insert(module, folderItems, ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj), srcModule, asReference, folder, 0, objectFactory, oldIdToNewIdMap);
  37484. }
  37485. ModuleUtils._insertFolder(mdtvFolder, folder, mdtvIndex++, objectFactory);
  37486. } else if ("QueryItem" == objectType && "Module" == destParentObjectType) {
  37487. var module = destParent;
  37488. var ancestor = ["QuerySubject"];
  37489. var srcQs = ModuleUtils.getTreeAncestor(obj, ancestor, null);
  37490. var qsRef = ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj) + "." + srcQs.getIdentifier();
  37491. var existingQS = ModuleUtils._findQuerySubjectByOriginalRefThenRef(module, qsRef);
  37492. if (!existingQS) {
  37493. existingQS = srcQs.clone();
  37494. if (existingQS.basicGetSecurityFilter()) {
  37495. existingQS.getSecurityFilter().length = 0;
  37496. }
  37497. existingQS.setInstanceType(asReference ? _InstanceType2.default.REFERENCE : null);
  37498. _QuerySubjectUtils2.default.clearPropertyOerride(existingQS);
  37499. var oldId = existingQS.getIdentifier();
  37500. ModuleUtils._updateQuerySubjectRef(module, existingQS, ModuleUtils.getSourceModuleAliasIfNotDefined(srcModuleId, module, obj), srcModule, asReference);
  37501. idGenerator.generateId(existingQS);
  37502. oldIdToNewIdMap[oldId] = existingQS.getIdentifier();
  37503. module.addQuerySubject(existingQS);
  37504. ModuleUtils._insertFolderItem(mdtvFolder, existingQS, mdtvIndex++, objectFactory);
  37505. for (var __i_enFor2 = 0, __exp_enFor2 = _MoserObjectUtils2.default.getQueryItems(existingQS), __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  37506. var qi = __exp_enFor2[__i_enFor2];
  37507. ModuleUtils._removeObjectFromQuerySubject(qi, true);
  37508. }
  37509. }
  37510. var idForExprPrefix = existingQS.getIdentifier() + ".";
  37511. var qiMap = ModuleUtils._createQIMap(existingQS);
  37512. var qi = obj;
  37513. if (!qiMap[qi.getIdentifier()]) {
  37514. var newQI = obj.clone();
  37515. newQI.setExpression(newQI.getIdentifier());
  37516. newQI.setIdForExpression(idForExprPrefix + newQI.getIdentifier());
  37517. var newItem = objectFactory.createItemType();
  37518. newItem.setQueryItem(newQI);
  37519. existingQS.addItemAt(insertAtIndex, newItem);
  37520. }
  37521. }
  37522. }
  37523. }
  37524. /**
  37525. * Copy query subjects, relationship, calculations, filters, folders from/into a module. This is typically used during a copy/paste. This method will update the mdtv to insert the ref to the new objects.
  37526. * @param {Module} module : destination module
  37527. * @param {Array} objList : List of moser objects (currently: query subjects, relationships, calculations, filters, folders)
  37528. * @param {FolderType} mdtvFolder : the mdtvFolder to insert the object into
  37529. * @param {int} insertAtIndex : where to insert the objects in the mdtvFolder
  37530. * @param {CopyMode} mode : whether to copy common relationships, all relationships or none at all
  37531. * @param {ObjectFactory} objectFactory : to create the new objects (if clone is not used)
  37532. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37533. */
  37534. }, {
  37535. key: 'copy',
  37536. value: function copy(module, objList, mdtvFolder, insertAtIndex, mode, objectFactory) {
  37537. var idGenerator = ModuleUtils.getIdGenerator(module);
  37538. var oldIdToNewIdMap = {};
  37539. var mdtvIndex = insertAtIndex;
  37540. var copiedObj = [];
  37541. for (var __i_enFor0 = 0, __exp_enFor0 = objList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37542. var obj = __exp_enFor0[__i_enFor0];
  37543. copiedObj.push(ModuleUtils._copyMoserObject(module, obj, mdtvFolder, mdtvIndex++, idGenerator, oldIdToNewIdMap, objectFactory));
  37544. }
  37545. var relationships = ModuleUtils._collectRelationshipsToCopy(module, oldIdToNewIdMap, mode);
  37546. for (var __i_enFor1 = 0, __exp_enFor1 = relationships, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  37547. var relationship = __exp_enFor1[__i_enFor1];
  37548. ModuleUtils._copyRelationship(module, relationship, idGenerator, oldIdToNewIdMap);
  37549. }
  37550. return copiedObj;
  37551. }
  37552. /**
  37553. * Copy a MoserObject and insert it into the mdtvFolder.
  37554. * @param {MoserObject} obj
  37555. * @param {FolderType} mdtvFolder
  37556. * @param {int} mdtvIndex
  37557. * @param {IdGenerator} idGenerator
  37558. * @param {Object} oldIdToNewIdMap
  37559. * @param {ObjectFactory} objectFactory
  37560. * @return {MoserObject} The copied MoserObject
  37561. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37562. */
  37563. }, {
  37564. key: '_copyMoserObject',
  37565. value: function _copyMoserObject(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory) {
  37566. var objectType = obj.getObjectType();
  37567. if ("QuerySubject" == objectType) {
  37568. return ModuleUtils._copyQuerySubject(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory);
  37569. } else if ("Relationship" == objectType) {
  37570. return ModuleUtils._copyRelationship(module, obj, idGenerator, oldIdToNewIdMap);
  37571. } else if ("Calculation" == objectType) {
  37572. return ModuleUtils._copyCalculation(module, obj, mdtvFolder, mdtvIndex, idGenerator, objectFactory);
  37573. } else if ("Filter" == objectType) {
  37574. return ModuleUtils._copyFilter(module, obj, mdtvFolder, mdtvIndex, idGenerator, objectFactory);
  37575. } else if ("FolderItemType" == objectType) {
  37576. ModuleUtils._copyFolderItemType(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory);
  37577. } else if ("FolderType" == objectType) {
  37578. return ModuleUtils._copyFolderType(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory);
  37579. }
  37580. return null;
  37581. }
  37582. /**
  37583. * Copy a QuerySubject and insert it into the mdtvFolder.
  37584. * @param {Module} module
  37585. * @param {QuerySubject} obj
  37586. * @param {IdGenerator} idGenerator
  37587. * @param {Object} oldIdToNewIdMap
  37588. * @return {QuerySubject} The copied QuerySubject
  37589. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37590. */
  37591. }, {
  37592. key: '_copyQuerySubject',
  37593. value: function _copyQuerySubject(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory) {
  37594. var qs = obj.clone();
  37595. var oldId = qs.getIdentifier();
  37596. idGenerator.generateId(qs);
  37597. oldIdToNewIdMap[oldId] = qs.getIdentifier();
  37598. _PropertySetter2.default.updateIdForExpression(qs.basicGetItem(), qs.getIdentifier());
  37599. module.addQuerySubject(qs);
  37600. ModuleUtils._insertFolderItem(mdtvFolder, qs, mdtvIndex, objectFactory);
  37601. return qs;
  37602. }
  37603. /**
  37604. * Copy a Relationship.
  37605. * @param {Module} module
  37606. * @param {Relationship} obj
  37607. * @param {IdGenerator} idGenerator
  37608. * @param {Object} oldIdToNewIdMap
  37609. * @return {Relationship} The copied Relationship
  37610. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37611. */
  37612. }, {
  37613. key: '_copyRelationship',
  37614. value: function _copyRelationship(module, obj, idGenerator, oldIdToNewIdMap) {
  37615. var rel = obj.clone();
  37616. var qsId = oldIdToNewIdMap[rel.getLeft().getRef()];
  37617. if (qsId != null) {
  37618. rel.getLeft().setRef(qsId);
  37619. }
  37620. qsId = oldIdToNewIdMap[rel.getRight().getRef()];
  37621. if (qsId != null) {
  37622. rel.getRight().setRef(qsId);
  37623. }
  37624. idGenerator.generateId(rel);
  37625. module.addRelationship(rel);
  37626. _ReferenceResolver2.default.resolveRelationship(rel, module);
  37627. return rel;
  37628. }
  37629. /**
  37630. * Copy a Calculation and insert it into the mdtvFolder.
  37631. * @param {Module} module
  37632. * @param {Calculation} obj
  37633. * @param {FolderType} mdtvFolder
  37634. * @param {int} mdtvIndex
  37635. * @param {IdGenerator} idGenerator
  37636. * @param {ObjectFactory} objectFactory
  37637. * @return {Calculation} The copied Calculation
  37638. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37639. */
  37640. }, {
  37641. key: '_copyCalculation',
  37642. value: function _copyCalculation(module, obj, mdtvFolder, mdtvIndex, idGenerator, objectFactory) {
  37643. var calc = obj.clone();
  37644. idGenerator.generateId(calc);
  37645. module.addCalculation(calc);
  37646. ModuleUtils._insertFolderItem(mdtvFolder, calc, mdtvIndex, objectFactory);
  37647. return calc;
  37648. }
  37649. /**
  37650. * Copy a Filter and insert it into the mdtvFolder.
  37651. * @param {Module} module
  37652. * @param {Filter} obj
  37653. * @param {FolderType} mdtvFolder
  37654. * @param {int} mdtvIndex
  37655. * @param {IdGenerator} idGenerator
  37656. * @param {ObjectFactory} objectFactory
  37657. * @return {Filter} The copied Filter
  37658. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37659. */
  37660. }, {
  37661. key: '_copyFilter',
  37662. value: function _copyFilter(module, obj, mdtvFolder, mdtvIndex, idGenerator, objectFactory) {
  37663. var filter = obj.clone();
  37664. idGenerator.generateId(filter);
  37665. module.addFilter(filter);
  37666. ModuleUtils._insertFolderItem(mdtvFolder, filter, mdtvIndex, objectFactory);
  37667. return filter;
  37668. }
  37669. /**
  37670. * Copy a FolderItemType's content and insert it into the mdtvFolder.
  37671. * @param {Module} module
  37672. * @param {FolderItemType} obj
  37673. * @param {FolderType} mdtvFolder
  37674. * @param {int} mdtvIndex
  37675. * @param {IdGenerator} idGenerator
  37676. * @param {Object} oldIdToNewIdMap
  37677. * @param {ObjectFactory} objectFactory
  37678. * @return {MoserObject} The nested MoserObject that was copied
  37679. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37680. */
  37681. }, {
  37682. key: '_copyFolderItemType',
  37683. value: function _copyFolderItemType(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory) {
  37684. var folder = obj.getFolder();
  37685. var o = obj.getReferencedObject();
  37686. if (folder) {
  37687. return ModuleUtils._copyMoserObject(module, folder, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory);
  37688. } else if (o) {
  37689. return ModuleUtils._copyMoserObject(module, o, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory);
  37690. }
  37691. return null;
  37692. }
  37693. /**
  37694. * Copy a FolderType and insert it into the mdtvFolder. Also copy and insert all this folder's items into the new copy.
  37695. * @param {Module} module
  37696. * @param {FolderType} obj
  37697. * @param {FolderType} mdtvFolder
  37698. * @param {int} mdtvIndex
  37699. * @param {IdGenerator} idGenerator
  37700. * @param {Object} oldIdToNewIdMap
  37701. * @param {ObjectFactory} objectFactory
  37702. * @return {FolderType} The copied FolderType
  37703. * @throws {CloneNotSupportedException} CloneNotSupportedException
  37704. */
  37705. }, {
  37706. key: '_copyFolderType',
  37707. value: function _copyFolderType(module, obj, mdtvFolder, mdtvIndex, idGenerator, oldIdToNewIdMap, objectFactory) {
  37708. var folder = obj.clone();
  37709. idGenerator.generateId(folder);
  37710. var items = folder.basicGetFolderItem();
  37711. if (items && !(items.length == 0)) {
  37712. var folderItems = [];
  37713. Array.prototype.push.apply(folderItems, items);
  37714. items.length = 0;
  37715. var folderIndex = 0;
  37716. for (var __i_enFor0 = 0, __exp_enFor0 = folderItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37717. var item = __exp_enFor0[__i_enFor0];
  37718. ModuleUtils._copyMoserObject(module, item, folder, folderIndex++, idGenerator, oldIdToNewIdMap, objectFactory);
  37719. }
  37720. }
  37721. ModuleUtils._insertFolder(mdtvFolder, folder, mdtvIndex, objectFactory);
  37722. return folder;
  37723. }
  37724. /**
  37725. * Collection relationships related to all QuerySubject's referenced in the oldIdToNewIdMap.
  37726. * @param Module
  37727. * @param {Map} oldIdToNewIdMap
  37728. * @param {CopyMode} mode
  37729. * @return {Array}
  37730. */
  37731. }, {
  37732. key: '_collectRelationshipsToCopy',
  37733. value: function _collectRelationshipsToCopy(module, oldIdToNewIdMap, mode) {
  37734. var relationshipsToCopy = [];
  37735. var relationships = module.basicGetRelationship();
  37736. if (_CopyMode2.default.SELECTION_ONLY === mode || !relationships || relationships.length == 0) {
  37737. return relationshipsToCopy;
  37738. }
  37739. for (var __i_enFor0 = 0, __exp_enFor0 = relationships, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37740. var relationship = __exp_enFor0[__i_enFor0];
  37741. var isLeft = oldIdToNewIdMap[relationship.getLeft().getRef()] != null;
  37742. var isRight = oldIdToNewIdMap[relationship.getRight().getRef()] != null;
  37743. if (_CopyMode2.default.COMMON_RELATIONSHIPS === mode && isLeft && isRight) {
  37744. relationshipsToCopy.push(relationship);
  37745. } else if (_CopyMode2.default.ALL_RELATIONSHIPS === mode && (isLeft || isRight)) {
  37746. relationshipsToCopy.push(relationship);
  37747. }
  37748. }
  37749. return relationshipsToCopy;
  37750. }
  37751. /**
  37752. * Find query subject by original ref if it exists, otherwise, by ref
  37753. * @param {Module} module
  37754. * @param {String} ref
  37755. * @return {QuerySubject} the matching query subject
  37756. */
  37757. }, {
  37758. key: '_findQuerySubjectByOriginalRefThenRef',
  37759. value: function _findQuerySubjectByOriginalRefThenRef(module, ref) {
  37760. var qsList = _MoserObjectUtils2.default.getList(module.basicGetQuerySubject());
  37761. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37762. var qs = __exp_enFor0[__i_enFor0];
  37763. var refList = qs.basicGetOriginalRef();
  37764. if (!refList || refList.length == 0) {
  37765. refList = qs.basicGetRef();
  37766. }
  37767. if (ModuleUtils._findString(refList, ref)) {
  37768. return qs;
  37769. }
  37770. }
  37771. return null;
  37772. }
  37773. }, {
  37774. key: '_updateExistingQuerySubject',
  37775. value: function _updateExistingQuerySubject(existingQS, srcQS, objectFactory) {
  37776. if (srcQS.basicGetItem()) {
  37777. var qiMap = ModuleUtils._createQIMap(existingQS);
  37778. var idForExprPrefix = existingQS.getIdentifier() + ".";
  37779. for (var __i_enFor0 = 0, __exp_enFor0 = _MoserObjectUtils2.default.getQueryItems(srcQS), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37780. var qi = __exp_enFor0[__i_enFor0];
  37781. if (!qiMap[qi.getIdentifier()]) {
  37782. var newQI = qi.clone();
  37783. newQI.setExpression(newQI.getIdentifier());
  37784. newQI.setIdForExpression(idForExprPrefix + newQI.getIdentifier());
  37785. var newItem = objectFactory.createItemType();
  37786. newItem.setQueryItem(newQI);
  37787. existingQS.addItem(newItem);
  37788. }
  37789. }
  37790. }
  37791. }
  37792. }, {
  37793. key: '_createQIMap',
  37794. value: function _createQIMap(qs) {
  37795. var qiMap = {};
  37796. if (qs.basicGetItem()) {
  37797. for (var __i_enFor0 = 0, __exp_enFor0 = _MoserObjectUtils2.default.getQueryItems(qs), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37798. var qi = __exp_enFor0[__i_enFor0];
  37799. qiMap[qi.getIdentifier()] = qi;
  37800. }
  37801. }
  37802. return qiMap;
  37803. }
  37804. /**
  37805. * Insert a package into a module. This method copies the querysubjects, calculations, filters, namedsets into the module, and MDTV. It also updates the deflink ref and querysubject id to have a prefix (eg., M1)
  37806. * @param {ObjectFactory} objectFactory : to create new objects
  37807. * @param {Module} module : the destination module
  37808. * @param {String} srcModuleId : the identifier of the package
  37809. * @param {Module} srcModule : the package
  37810. * @param {FolderType} mdtvFolder : the folder to insert in the MDTV
  37811. * @param {int} insertAtIndex : the index of mdtvFolder array to indicate where to insert in MDTV
  37812. * @throws {CloneNotSupportedException} CloneNotSupportedException : exception when cloning
  37813. */
  37814. }, {
  37815. key: 'insertPackage',
  37816. value: function insertPackage(objectFactory, module, srcModuleId, srcModule, mdtvFolder, insertAtIndex) {
  37817. if (_CommonResolverUtil2.default.getFMPlaceHolderInMDTV(module, srcModuleId)) {
  37818. return;
  37819. }
  37820. var qsList = _MoserObjectUtils2.default.getList(srcModule.basicGetQuerySubject());
  37821. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37822. var qs = __exp_enFor0[__i_enFor0];
  37823. var qsCopy = ModuleUtils._cloneAndUpdateId(qs, srcModuleId);
  37824. module.addQuerySubject(qsCopy);
  37825. for (var __i_enFor1 = 0, __exp_enFor1 = _MoserObjectUtils2.default.getQueryItems(qsCopy), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  37826. var qi = __exp_enFor1[__i_enFor1];
  37827. qi.setIdForExpression(null);
  37828. }
  37829. }
  37830. var calcList = _MoserObjectUtils2.default.getList(srcModule.basicGetCalculation());
  37831. for (var __i_enFor2 = 0, __exp_enFor2 = calcList, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  37832. var calc = __exp_enFor2[__i_enFor2];
  37833. var calcCopy = ModuleUtils._cloneAndUpdateId(calc, srcModuleId);
  37834. module.addCalculation(calcCopy);
  37835. }
  37836. var filterList = _MoserObjectUtils2.default.getList(srcModule.basicGetFilter());
  37837. for (var __i_enFor3 = 0, __exp_enFor3 = filterList, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  37838. var filter = __exp_enFor3[__i_enFor3];
  37839. var filterCopy = ModuleUtils._cloneAndUpdateId(filter, srcModuleId);
  37840. module.addFilter(filterCopy);
  37841. }
  37842. var namedSetList = _MoserObjectUtils2.default.getList(srcModule.basicGetNamedSet());
  37843. for (var __i_enFor4 = 0, __exp_enFor4 = namedSetList, __len_enFor4 = __exp_enFor4.length; __i_enFor4 < __len_enFor4; ++__i_enFor4) {
  37844. var namedSet = __exp_enFor4[__i_enFor4];
  37845. var namedSetCopy = ModuleUtils._cloneAndUpdateId(namedSet, srcModuleId);
  37846. module.addNamedSet(namedSetCopy);
  37847. }
  37848. var placeHolder = objectFactory.createFolderType();
  37849. placeHolder.setIdentifier(srcModuleId);
  37850. placeHolder.setLabel(srcModule.getLabel());
  37851. var fi = objectFactory.createFolderItemType();
  37852. fi.setFolder(srcModule.getMetadataTreeView()[0]);
  37853. placeHolder.addFolderItem(fi);
  37854. var packageFolderItem = objectFactory.createFolderItemType();
  37855. packageFolderItem.setFolder(placeHolder);
  37856. mdtvFolder.addFolderItemAt(insertAtIndex, packageFolderItem);
  37857. ModuleUtils._updateFolderTypeReferences(placeHolder, srcModuleId);
  37858. _ReferenceResolver2.default.resolve(module);
  37859. }
  37860. }, {
  37861. key: '_cloneAndUpdateId',
  37862. value: function _cloneAndUpdateId(obj, idPrefix) {
  37863. var id = idPrefix + "." + obj.getIdentifier();
  37864. var objCopy = obj.clone();
  37865. objCopy.setIdentifier(id);
  37866. objCopy.setIdForExpression(null);
  37867. return objCopy;
  37868. }
  37869. }, {
  37870. key: '_updateFolderTypeReferences',
  37871. value: function _updateFolderTypeReferences(folderType, idPrefix) {
  37872. var folderItemTypes = folderType.basicGetFolderItem();
  37873. if (folderItemTypes) {
  37874. for (var __i_enFor0 = 0, __exp_enFor0 = folderItemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37875. var folderItemType = __exp_enFor0[__i_enFor0];
  37876. var nestedFolder = folderItemType.getFolder();
  37877. if (nestedFolder) {
  37878. ModuleUtils._updateFolderTypeReferences(nestedFolder, idPrefix);
  37879. }
  37880. var defLinkType = folderItemType.getDefLink();
  37881. if (defLinkType && defLinkType.getIdentifier() != null) {
  37882. var ref = idPrefix + "." + defLinkType.getIdentifier();
  37883. defLinkType.setRef(ref);
  37884. }
  37885. }
  37886. }
  37887. }
  37888. }, {
  37889. key: '_insertFolderItem',
  37890. value: function _insertFolderItem(folder, obj, index, objectFactory) {
  37891. var item = objectFactory.createFolderItemType();
  37892. item.setRef(obj.getIdentifier());
  37893. item.setReferencedObject(obj);
  37894. folder.addFolderItemAt(index, item);
  37895. }
  37896. }, {
  37897. key: '_insertFolder',
  37898. value: function _insertFolder(folder, obj, index, objectFactory) {
  37899. var item = objectFactory.createFolderItemType();
  37900. item.setFolder(obj);
  37901. item.setReferencedObject(obj);
  37902. folder.addFolderItemAt(index, item);
  37903. }
  37904. }, {
  37905. key: '_updateQuerySubjectRef',
  37906. value: function _updateQuerySubjectRef(module, qs, srcModuleId, srcModule, isReference) {
  37907. if (isReference) {
  37908. var refs = qs.getOriginalRef();
  37909. refs.length = 0;
  37910. var ref = srcModuleId + "." + qs.getIdentifier();
  37911. refs.push(ref);
  37912. refs = qs.getRef();
  37913. for (var i = 0; i < refs.length; ++i) {
  37914. ref = refs[i];
  37915. var srcModuleUseSpecId = _ReferenceResolver2.default.getFirstPart(ref);
  37916. var oldUseSpec = _QuerySubjectUtils2.default.getUseSpecById(srcModule, srcModuleUseSpecId);
  37917. if (!oldUseSpec) {
  37918. continue;
  37919. }
  37920. var useSpec = ModuleUtils._getUseSpecByStoreId(module, oldUseSpec.getStoreID());
  37921. var newModuleId;
  37922. if (!useSpec) {
  37923. useSpec = oldUseSpec.clone();
  37924. newModuleId = _IdGenerator2.default.generateNewUseSpecIdWithPrefix(module, "__Base");
  37925. useSpec.setIdentifier(newModuleId);
  37926. module.addUseSpec(useSpec);
  37927. } else {
  37928. newModuleId = useSpec.getIdentifier();
  37929. }
  37930. var sepIndex = ref.indexOf(".");
  37931. ref = newModuleId + "." + ref.substring(sepIndex + 1);
  37932. refs[i] = ref;
  37933. }
  37934. } else {
  37935. var refs = qs.basicGetOriginalRef();
  37936. if (refs) {
  37937. refs.length = 0;
  37938. }
  37939. refs = qs.getRef();
  37940. refs.length = 0;
  37941. refs.push(srcModuleId + "." + qs.getIdentifier());
  37942. }
  37943. }
  37944. }, {
  37945. key: '_getUseSpecByStoreId',
  37946. value: function _getUseSpecByStoreId(module, storeId) {
  37947. var uSpecs = _MoserObjectUtils2.default.getList(module.basicGetUseSpec());
  37948. for (var __i_enFor0 = 0, __exp_enFor0 = uSpecs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37949. var useSpec = __exp_enFor0[__i_enFor0];
  37950. if (storeId == useSpec.getStoreID()) {
  37951. return useSpec;
  37952. }
  37953. }
  37954. return null;
  37955. }
  37956. }, {
  37957. key: '_findRelationshipMatch',
  37958. value: function _findRelationshipMatch(module, rel) {
  37959. var relationShips = _MoserObjectUtils2.default.getList(module.basicGetRelationship());
  37960. for (var __i_enFor0 = 0, __exp_enFor0 = relationShips, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37961. var relshp = __exp_enFor0[__i_enFor0];
  37962. if (_RelationshipUtils2.default.isEqual(rel, relshp)) {
  37963. return relshp;
  37964. }
  37965. }
  37966. return null;
  37967. }
  37968. }, {
  37969. key: '_findQuerySubjectByRef',
  37970. value: function _findQuerySubjectByRef(module, qsRef) {
  37971. var qsList = _MoserObjectUtils2.default.getList(module.basicGetQuerySubject());
  37972. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37973. var qs = __exp_enFor0[__i_enFor0];
  37974. if (ModuleUtils._findString(qs.basicGetRef(), qsRef) || ModuleUtils._findString(qs.basicGetOriginalRef(), qsRef)) {
  37975. return qs;
  37976. }
  37977. }
  37978. return null;
  37979. }
  37980. }, {
  37981. key: '_findString',
  37982. value: function _findString(strList, strValue) {
  37983. if (!strList) {
  37984. return false;
  37985. }
  37986. for (var __i_enFor0 = 0, __exp_enFor0 = strList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  37987. var str = __exp_enFor0[__i_enFor0];
  37988. if (str == strValue) {
  37989. return true;
  37990. }
  37991. }
  37992. return false;
  37993. }
  37994. }, {
  37995. key: '_deleteRelationshipsForQuerySubject',
  37996. value: function _deleteRelationshipsForQuerySubject(module, rels, qsId) {
  37997. var i;
  37998. for (i = rels.length - 1; i >= 0; --i) {
  37999. var rel = rels[i];
  38000. if (qsId == rel.getLeft().getRef() || qsId == rel.getRight().getRef()) {
  38001. module.removeRelationshipAt(i);
  38002. }
  38003. }
  38004. }
  38005. /**
  38006. * Delete a query subject from a module and clean up any reference to the query subject
  38007. * @param {Module} module
  38008. * @param {QuerySubject} qs : query subject to be deleted from module
  38009. */
  38010. }, {
  38011. key: 'deleteQuerySubject',
  38012. value: function deleteQuerySubject(module, qs) {
  38013. ModuleUtils._deleteQuerySubjectImp(module, qs, true);
  38014. }
  38015. }, {
  38016. key: '_deleteQuerySubjectRelatedObjects',
  38017. value: function _deleteQuerySubjectRelatedObjects(module, qs, qsId) {
  38018. var rels = _MoserObjectUtils2.default.getList(module.basicGetRelationship());
  38019. ModuleUtils._deleteRelationshipsForQuerySubject(module, rels, qsId);
  38020. var querySubjects = _MoserObjectUtils2.default.getList(module.basicGetQuerySubject());
  38021. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38022. var aQS = __exp_enFor0[__i_enFor0];
  38023. if (aQS === qs) {
  38024. continue;
  38025. }
  38026. var join = aQS.getJoinOperation();
  38027. if (!join) {
  38028. continue;
  38029. }
  38030. var relsJoin = _MoserObjectUtils2.default.getList(join.basicGetRelationship());
  38031. ModuleUtils._deleteRelationshipsForQuerySubject(module, relsJoin, qsId);
  38032. }
  38033. var dgs = _MoserObjectUtils2.default.getList(module.basicGetDrillGroup());
  38034. var qsFirstPart = qsId + ".";
  38035. var i;
  38036. for (i = dgs.length - 1; i >= 0; --i) {
  38037. var dg = dgs[i];
  38038. var segs = dg.basicGetSegment();
  38039. if (!segs) {
  38040. continue;
  38041. }
  38042. for (var j = segs.length - 1; j >= 0; --j) {
  38043. if (segs[j].getRef().indexOf(qsFirstPart) == 0) {
  38044. dg.removeSegmentAt(j);
  38045. }
  38046. }
  38047. }
  38048. }
  38049. }, {
  38050. key: '_deleteQuerySubjectImp',
  38051. value: function _deleteQuerySubjectImp(module, qs, bClean) {
  38052. var qsId = qs.getIdentifier();
  38053. if (bClean) {
  38054. ModuleUtils._deleteQuerySubjectRelatedObjects(module, qs, qsId);
  38055. }
  38056. var mdtvs = _MoserObjectUtils2.default.getList(module.basicGetMetadataTreeView());
  38057. for (var __i_enFor0 = 0, __exp_enFor0 = mdtvs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38058. var folder = __exp_enFor0[__i_enFor0];
  38059. var del = ModuleUtils._removeQuerySubjectFromMDTVFolder(qsId, folder, bClean);
  38060. if (!bClean && del) {
  38061. return del;
  38062. }
  38063. }
  38064. module.removeQuerySubject(qs);
  38065. return qs;
  38066. }
  38067. }, {
  38068. key: '_removeQuerySubjectFromMDTVFolder',
  38069. value: function _removeQuerySubjectFromMDTVFolder(qsId, folder, bClean) {
  38070. if (!folder) {
  38071. return null;
  38072. }
  38073. var itemList = _MoserObjectUtils2.default.getList(folder.basicGetFolderItem());
  38074. for (var j = itemList.length - 1; j >= 0; --j) {
  38075. if (qsId == itemList[j].getRef()) {
  38076. var r = itemList[j];
  38077. if (bClean) {
  38078. folder.removeFolderItemAt(j);
  38079. } else {
  38080. return r;
  38081. }
  38082. } else {
  38083. var r = ModuleUtils._removeQuerySubjectFromMDTVFolder(qsId, itemList[j].getFolder(), bClean);
  38084. if (r && !bClean) {
  38085. return r;
  38086. }
  38087. }
  38088. }
  38089. return null;
  38090. }
  38091. /**
  38092. * We are inserting qsList into dstModule, so we need to find some relationships in srcModule that we can copy to dstModule as well
  38093. * @param srcModule: Source Module
  38094. * @param srcModuleId: this is dstModule.srcModuleUseSpec.id
  38095. * @param qsList: List of query subjects coming from the srcModule and will be added to the dstModule
  38096. * @param dstModule: Destination Module
  38097. * @return {Array} List of suggested relationships
  38098. */
  38099. }, {
  38100. key: 'suggestRelationships',
  38101. value: function suggestRelationships(srcModule, srcModuleId, qsList, dstModule) {
  38102. var result = [];
  38103. var qsIds = {};
  38104. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38105. var qs = __exp_enFor0[__i_enFor0];
  38106. qsIds[qs.getIdentifier()] = 1;
  38107. }
  38108. var qsRefs = {};
  38109. var dstQSList = _MoserObjectUtils2.default.getList(dstModule.basicGetQuerySubject());
  38110. for (var __i_enFor1 = 0, __exp_enFor1 = dstQSList, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  38111. var qs = __exp_enFor1[__i_enFor1];
  38112. var prefix = srcModuleId + ".";
  38113. var qsRefList = _MoserObjectUtils2.default.getList(qs.basicGetRef());
  38114. for (var __i_enFor2 = 0, __exp_enFor2 = qsRefList, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  38115. var ref = __exp_enFor2[__i_enFor2];
  38116. if (ref.indexOf(prefix) == 0) {
  38117. qsRefs[ref] = 1;
  38118. }
  38119. }
  38120. var qsOrgRefList = _MoserObjectUtils2.default.getList(qs.basicGetOriginalRef());
  38121. for (var __i_enFor3 = 0, __exp_enFor3 = qsOrgRefList, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  38122. var ref = __exp_enFor3[__i_enFor3];
  38123. if (ref.indexOf(prefix) == 0) {
  38124. qsRefs[ref] = 1;
  38125. }
  38126. }
  38127. }
  38128. var srcRelList = _MoserObjectUtils2.default.getList(srcModule.basicGetRelationship());
  38129. for (var __i_enFor4 = 0, __exp_enFor4 = srcRelList, __len_enFor4 = __exp_enFor4.length; __i_enFor4 < __len_enFor4; ++__i_enFor4) {
  38130. var rel = __exp_enFor4[__i_enFor4];
  38131. var otherQSId;
  38132. if (qsIds.hasOwnProperty(rel.getLeft().getRef())) {
  38133. otherQSId = rel.getRight().getRef();
  38134. } else if (qsIds.hasOwnProperty(rel.getRight().getRef())) {
  38135. otherQSId = rel.getLeft().getRef();
  38136. } else {
  38137. continue;
  38138. }
  38139. if (qsIds.hasOwnProperty(otherQSId)) {
  38140. result.push(rel);
  38141. } else {
  38142. var otherRef = srcModuleId + "." + otherQSId;
  38143. if (qsRefs.hasOwnProperty(otherRef)) {
  38144. result.push(rel);
  38145. } else {
  38146. var qs = ModuleUtils.getQuerySubjectById(otherQSId, srcModule);
  38147. if (qs) {
  38148. var ref = qs.getRef()[0];
  38149. if (ref != null && !(ref.length === 0)) {
  38150. var useSpec = _DataModuleExtractor2.default.getUseSpecByRef(srcModule, ref, true);
  38151. var storeId = null;
  38152. if (useSpec) {
  38153. storeId = useSpec.getStoreID();
  38154. }
  38155. if (storeId != null) {
  38156. var dstModuleUSpecs = _MoserObjectUtils2.default.getList(dstModule.basicGetUseSpec());
  38157. for (var __i_enFor5 = 0, __exp_enFor5 = dstModuleUSpecs, __len_enFor5 = __exp_enFor5.length; __i_enFor5 < __len_enFor5; ++__i_enFor5) {
  38158. var us = __exp_enFor5[__i_enFor5];
  38159. var id = us.getIdentifier();
  38160. if (us.getStoreID() == storeId && id.indexOf("__Base") != 0) {
  38161. var dstRef = us.getIdentifier() + "." + _ReferenceResolver2.default.getSecondPart(ref);
  38162. var qsDst = ModuleUtils._findQuerySubjectByRef(dstModule, dstRef);
  38163. if (qsDst) {
  38164. result.push(rel);
  38165. }
  38166. break;
  38167. }
  38168. }
  38169. }
  38170. }
  38171. }
  38172. }
  38173. }
  38174. }
  38175. return result;
  38176. }
  38177. /**
  38178. * Retrieve <code>QuerySubject</code> by identifier
  38179. * @param {String} id the identifier used as a 'ref' by other objects
  38180. * @param {Module} module the data module
  38181. * @return {QuerySubject} a reference of the <code>QuerySubject</code>
  38182. */
  38183. }, {
  38184. key: 'getQuerySubjectById',
  38185. value: function getQuerySubjectById(id, module) {
  38186. var querySubject;
  38187. var qsList = _MoserObjectUtils2.default.getList(module.basicGetQuerySubject());
  38188. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38189. var qs = __exp_enFor0[__i_enFor0];
  38190. if (qs.getIdentifier() == id) {
  38191. querySubject = qs;
  38192. break;
  38193. }
  38194. }
  38195. return querySubject;
  38196. }
  38197. /**
  38198. * Retrieve <code>Calculation</code> by identifier
  38199. * @param {String} id the identifier used as a 'ref' by other objects
  38200. * @param {Module} module the data module
  38201. * @return {Calculation} a reference of the <code>Calculation</code>
  38202. */
  38203. }, {
  38204. key: 'getCalculationById',
  38205. value: function getCalculationById(id, module) {
  38206. var calculation;
  38207. var calculations = _MoserObjectUtils2.default.getList(module.basicGetCalculation());
  38208. for (var __i_enFor0 = 0, __exp_enFor0 = calculations, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38209. var calc = __exp_enFor0[__i_enFor0];
  38210. if (calc.getIdentifier() == id) {
  38211. calculation = calc;
  38212. break;
  38213. }
  38214. }
  38215. return calculation;
  38216. }
  38217. /**
  38218. * Retrieve <code>QueryItem</code> by identifier
  38219. * @param {String} qualifiedID the identifier used as a 'ref' by other objects to refer to a QueryItem. It is in the format of "querysubjectid.queryitemid"
  38220. * @param {Module} module the data module
  38221. * @return {BaseQueryItemType} a reference of the <code>QueryItem</code>
  38222. */
  38223. }, {
  38224. key: 'getQueryItemById',
  38225. value: function getQueryItemById(qualifiedID, module) {
  38226. var queryItem;
  38227. var qsId = _ReferenceResolver2.default.getFirstPart(qualifiedID);
  38228. if (qsId != null && qsId.length > 0) {
  38229. var qs = ModuleUtils.getQuerySubjectById(qsId, module);
  38230. var qiId = _ReferenceResolver2.default.getSecondPart(qualifiedID);
  38231. if (qs && qiId != null && qiId.length > 0) {
  38232. queryItem = _QuerySubjectUtils2.default.getQueryItemById(qiId, qs);
  38233. }
  38234. }
  38235. return queryItem;
  38236. }
  38237. /**
  38238. * Retrieve <code>Filter</code> by identifier
  38239. * @param {String} id the identifier used as a 'ref' by other objects
  38240. * @param {Module} module the data module
  38241. * @return {Filter} a reference of the <code>Filter</code>
  38242. */
  38243. }, {
  38244. key: 'getFilterById',
  38245. value: function getFilterById(id, module) {
  38246. var filter;
  38247. var filterList = _MoserObjectUtils2.default.getList(module.basicGetFilter());
  38248. for (var __i_enFor0 = 0, __exp_enFor0 = filterList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38249. var fltr = __exp_enFor0[__i_enFor0];
  38250. if (fltr.getIdentifier() == id) {
  38251. filter = fltr;
  38252. break;
  38253. }
  38254. }
  38255. return filter;
  38256. }
  38257. /**
  38258. * Retrieve <code>MoserObject</code> by idForExpression
  38259. * @param {String} idForExprn the idForExpression to look for
  38260. * @param {Module} module the data module
  38261. * @return {MoserObject} a reference of the <code>MoserObject</code> including QuerySubject, QueryItem, Calculation and Filter
  38262. */
  38263. }, {
  38264. key: 'getMoserObjectByIdForExpression',
  38265. value: function getMoserObjectByIdForExpression(idForExprn, module) {
  38266. var obj = _ReferenceResolver2.default.getMoserObjectByIdForExpression(idForExprn, module);
  38267. if (!obj) {
  38268. var alias = _ReferenceResolver2.default.strBetween(idForExprn, "[", "].");
  38269. if (alias != null) {
  38270. for (var __i_enFor0 = 0, __exp_enFor0 = module.getUseSpec(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38271. var useSpec = __exp_enFor0[__i_enFor0];
  38272. if (alias == useSpec.getIdentifier()) {
  38273. var newID = alias + "." + _ReferenceResolver2.default.strAfter(idForExprn, "].");
  38274. return _ReferenceResolver2.default.getMoserObjectByIdForExpression(newID, module);
  38275. }
  38276. }
  38277. }
  38278. }
  38279. return obj;
  38280. }
  38281. }, {
  38282. key: '_getModule',
  38283. value: function _getModule(o) {
  38284. var obj = o.getParent();
  38285. while (obj) {
  38286. if ("Module" == obj.getObjectType()) {
  38287. return obj;
  38288. }
  38289. obj = obj.getParent();
  38290. }
  38291. return null;
  38292. }
  38293. /**
  38294. * If you have a ObjectType, it may have a ref that point to an object in a source. This method returns the UseSpec that point to that source.
  38295. * @param {ObjectType} obj : ObjectType to find UseSpec for.
  38296. * @param {Module} m : the module that contains the object. if null, we'll try to find it using getParent()
  38297. * @return {UseSpec} UseSpec of the referenced source or null if can't find it.
  38298. */
  38299. }, {
  38300. key: 'getObjectUseSpec',
  38301. value: function getObjectUseSpec(obj, m) {
  38302. var module = m;
  38303. if (!module) {
  38304. module = ModuleUtils._getModule(obj);
  38305. if (!module) {
  38306. throw new Error("Can't find the module!");
  38307. }
  38308. }
  38309. return _DataModuleExtractor2.default.getUseSpec(obj, module, false);
  38310. }
  38311. /**
  38312. * For a given UseSpec, return the list of ObjectType's in the Module that are referencing it. The only ObjectType's that can have a reference are: QuerySubject, Relationship, Calculation, Filter
  38313. * @param {UseSpec} useSpec : The UseSpec to find all references of
  38314. * @param {Module} m : the module that contains the object. if null, we'll try to find it using getParent()
  38315. * @return {Array}
  38316. */
  38317. }, {
  38318. key: 'getUseSpecRefs',
  38319. value: function getUseSpecRefs(useSpec, m) {
  38320. var module = m;
  38321. if (!module) {
  38322. module = ModuleUtils._getModule(useSpec);
  38323. if (!module) {
  38324. throw new Error("Can't find the module!");
  38325. }
  38326. }
  38327. return _DataModuleExtractor2.default.getUseSpecRefs(useSpec, module);
  38328. }
  38329. /**
  38330. * Create a list of Ancestors by parsing a JSONArray that is returned with /sources calls.
  38331. * @param {Array} ancestorsResp JSONArray that is returned with /sources calls., e.g.[ { "name": "Some directory", "id": "iAA9C873CD3AF42D5ADB36572D05C98E6", "type": "directory" }, { "name": "My Folders", "id": "i32DE242D91604B8DAB9CE8EA5E46B37D", "type": "folder" }, { "name": "Some directory", "id": "iAA9C873CD3AF42D5ADB36572D05C98E6", "type": "directory" } ]
  38332. * @param {String} myFoldersLabel symbolic id for my content folder
  38333. * @param {String} teamContentLabel symbolic if for team content folder
  38334. * @return {Array} list of ancestors
  38335. */
  38336. }, {
  38337. key: 'createAncestors',
  38338. value: function createAncestors(ancestorsResp, myFoldersLabel, teamContentLabel) {
  38339. return _MoserCommonUtils2.default.createAncestors(ancestorsResp, myFoldersLabel, teamContentLabel);
  38340. }
  38341. /**
  38342. * Create members under the given parent from the JSON response to calling the members endpoint API.
  38343. * @param {ObjectFactory} factory - Used to create a member.
  38344. * @param {MoserObject} parent - Created members are added to this parent.
  38345. * @param {Object} membersResponse - Input members response from which members are created.
  38346. */
  38347. }, {
  38348. key: 'createMembers',
  38349. value: function createMembers(factory, parent, membersResponse) {
  38350. if (!factory || !parent || !membersResponse) {
  38351. return null;
  38352. }
  38353. var dataItems = membersResponse["dataItems"];
  38354. if (!dataItems || dataItems.length == 0) {
  38355. return null;
  38356. }
  38357. if (!(parent instanceof _QueryItem2.default || parent instanceof _MemberType2.default)) {
  38358. return null;
  38359. }
  38360. var items = dataItems[0]["items"];
  38361. if (!items) {
  38362. return null;
  38363. }
  38364. var members = [];
  38365. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38366. var item = __exp_enFor0[__i_enFor0];
  38367. var member = ModuleUtils._addMember(factory, ModuleUtils._getData(item), parent);
  38368. if (member) {
  38369. members.push(member);
  38370. ModuleUtils.setMemberHidden(member, false);
  38371. }
  38372. }
  38373. return members;
  38374. }
  38375. }, {
  38376. key: '_getData',
  38377. value: function _getData(item) {
  38378. var t = item["t"];
  38379. if (!t || t.length != 1) {
  38380. return null;
  38381. }
  38382. return t[0];
  38383. }
  38384. /**
  38385. * @param {ObjectFactory} factory
  38386. * @param item
  38387. * @param {MoserObject} parent
  38388. */
  38389. }, {
  38390. key: '_addMember',
  38391. value: function _addMember(factory, data, parent) {
  38392. if (!data || !parent) {
  38393. return null;
  38394. }
  38395. var mun = data["u"];
  38396. var member = ModuleUtils._getMember(parent, mun);
  38397. if (member) {
  38398. if (parent instanceof _QueryItem2.default) {
  38399. parent.removeMembers(member);
  38400. parent.addMembers(member);
  38401. } else {
  38402. parent.removeMembers(member);
  38403. parent.addMembers(member);
  38404. }
  38405. return member;
  38406. }
  38407. member = factory.createMemberType();
  38408. ModuleUtils.setMemberHidden(member, true);
  38409. member.setIdentifier(mun);
  38410. member.setIdForExpression(mun);
  38411. member.setLabel(data["d"]);
  38412. member.setMemberCaption(data["d"]);
  38413. var jparent = data["p"];
  38414. if (jparent) {
  38415. member.setParentUniqueName(jparent["u"]);
  38416. }
  38417. member.setDimensionUniqueName(data["du"]);
  38418. member.setLevelNumber(data["ln"]);
  38419. member.setLevelLabel(data["ll"]);
  38420. member.setLevelUniqueName(data["lu"]);
  38421. member.setHierarchyUniqueName(data["hu"]);
  38422. member.setParentLevel(data["pn"]);
  38423. if (parent instanceof _QueryItem2.default) {
  38424. parent.addMembers(member);
  38425. } else {
  38426. parent.addMembers(member);
  38427. }
  38428. return member;
  38429. }
  38430. /**
  38431. * @param {MoserObject} parent
  38432. * @param {String} mun
  38433. * @return {MemberType}
  38434. */
  38435. }, {
  38436. key: '_getMember',
  38437. value: function _getMember(parent, mun) {
  38438. if (mun == null) {
  38439. return null;
  38440. }
  38441. var members;
  38442. if (parent instanceof _QueryItem2.default) {
  38443. members = parent.basicGetMembers();
  38444. } else {
  38445. members = parent.basicGetMembers();
  38446. }
  38447. if (!members || members.length == 0) {
  38448. return null;
  38449. }
  38450. for (var __i_enFor0 = 0, __exp_enFor0 = members, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38451. var member = __exp_enFor0[__i_enFor0];
  38452. if (mun == member.getIdForExpression()) {
  38453. return member;
  38454. }
  38455. }
  38456. return null;
  38457. }
  38458. /**
  38459. * Create members under the given parent from the JSON response to calling the members endpoint API.
  38460. * @param {ObjectFactory} factory - Used to create a member.
  38461. * @param parent - Created members are added to this parent.
  38462. * @param {Object} membersResponse - Input members response from which members are created.
  38463. */
  38464. }, {
  38465. key: 'createMembersForSearch',
  38466. value: function createMembersForSearch(factory, module, membersResponse) {
  38467. if (!factory || !module || !membersResponse) {
  38468. return null;
  38469. }
  38470. var dataItems = membersResponse["dataItems"];
  38471. if (!dataItems || dataItems.length != 1) {
  38472. return null;
  38473. }
  38474. var items = dataItems[0]["items"];
  38475. if (!items || items.length == 0) {
  38476. return null;
  38477. }
  38478. var members = [];
  38479. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38480. var item = __exp_enFor0[__i_enFor0];
  38481. var data = ModuleUtils._getData(item);
  38482. var parent = ModuleUtils._getMemberParent(module, data);
  38483. if (parent) {
  38484. var member = ModuleUtils._addMember(factory, data, parent);
  38485. if (member) {
  38486. members.push(member);
  38487. member.setParent(parent);
  38488. }
  38489. }
  38490. }
  38491. return members;
  38492. }
  38493. /**
  38494. * @param {Module} module
  38495. * @param {Object} item
  38496. * @return {MoserObject}
  38497. */
  38498. }, {
  38499. key: '_getMemberParent',
  38500. value: function _getMemberParent(module, item) {
  38501. if (!module || !item) {
  38502. return null;
  38503. }
  38504. var mun = item["u"];
  38505. if (mun == null) {
  38506. return null;
  38507. }
  38508. var itemId = ModuleUtils._extractItemID(mun);
  38509. return _ReferenceResolver2.default.bindMoserObject(module, itemId);
  38510. }
  38511. /**
  38512. * @param {String} startAtPath
  38513. * @return {String}
  38514. */
  38515. }, {
  38516. key: '_extractItemID',
  38517. value: function _extractItemID(startAtPath) {
  38518. var itemId = startAtPath;
  38519. var idx = startAtPath.indexOf("->");
  38520. if (idx != -1) {
  38521. itemId = startAtPath.substring(0, idx);
  38522. }
  38523. return itemId;
  38524. }
  38525. /**
  38526. * Given the Moser JSON response of a long running task (TaskState), calculate a percentage completed.
  38527. * @param {Object} taskStatus
  38528. */
  38529. }, {
  38530. key: 'taskPercentage',
  38531. value: function taskPercentage(taskStatus) {
  38532. var state = taskStatus["state"];
  38533. if ("SUCCESS" == state || "CANCELLED" == state || "ERROR" == state || "NOT_AVAILABLE" == state) {
  38534. return 100;
  38535. }
  38536. if ("PENDING" == state) {
  38537. return 0;
  38538. }
  38539. return ModuleUtils._taskStepPercentage(taskStatus["taskStep"]);
  38540. }
  38541. /**
  38542. * Given the JSON of a TaskStep, calculate a percentage completed.
  38543. * @param {Object} taskStep
  38544. */
  38545. }, {
  38546. key: '_taskStepPercentage',
  38547. value: function _taskStepPercentage(taskStep) {
  38548. var numTotalSteps = taskStep["numTotalSteps"];
  38549. var numCompleted = taskStep.hasOwnProperty("numCompleted") ? taskStep["numCompleted"] : 0;
  38550. var currentStepNum = taskStep["currentStepNum"];
  38551. var percentagePerStep = 100.0 / numTotalSteps;
  38552. var stepNum = currentStepNum < 1 ? 1 : currentStepNum;
  38553. stepNum += numCompleted;
  38554. var percentageCompleted = percentagePerStep * (stepNum - 1);
  38555. var currentSubTask = taskStep["currentSubTask"];
  38556. if (currentSubTask) {
  38557. percentageCompleted += percentagePerStep * ModuleUtils._taskStepPercentage(currentSubTask) / 100.0;
  38558. }
  38559. return percentageCompleted > 100.0 ? 100 : percentageCompleted < 0.0 ? 0 : Math.round(percentageCompleted);
  38560. }
  38561. }, {
  38562. key: 'findObjectTypeByIdForExpression',
  38563. value: function findObjectTypeByIdForExpression(module, idForExprn) {
  38564. if (idForExprn == null || idForExprn.length === 0) {
  38565. return null;
  38566. }
  38567. var parts = idForExprn.split(new RegExp("\\."));
  38568. if (parts.length == 0) {
  38569. return null;
  38570. }
  38571. if (parts.length == 1) {
  38572. var qs = ModuleUtils.getQuerySubjectById(parts[0], module);
  38573. if (qs) {
  38574. return qs;
  38575. }
  38576. var calc = ModuleUtils.getCalculationById(parts[0], module);
  38577. if (calc) {
  38578. return calc;
  38579. }
  38580. return ModuleUtils.getFilterById(parts[0], module);
  38581. }
  38582. var qs = ModuleUtils.getQuerySubjectById(parts[0], module);
  38583. if (!qs) {
  38584. return null;
  38585. }
  38586. var items = qs.basicGetItem();
  38587. var rt;
  38588. for (var currentPos = 1; currentPos < parts.length; ++currentPos) {
  38589. rt = ModuleUtils._findObjectTypeByIdInItems(items, parts[currentPos]);
  38590. if (!rt) {
  38591. break;
  38592. }
  38593. if (rt.getObjectType() == "QueryItem") {
  38594. items = rt.basicGetItem();
  38595. } else {
  38596. items = null;
  38597. }
  38598. }
  38599. return rt;
  38600. }
  38601. }, {
  38602. key: '_findObjectTypeByIdInItems',
  38603. value: function _findObjectTypeByIdInItems(items, id) {
  38604. if (!items) {
  38605. return null;
  38606. }
  38607. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  38608. var itm = __exp_enFor0[__i_enFor0];
  38609. var qi = itm.getQueryItem();
  38610. if (qi) {
  38611. if (id == qi.getIdentifier()) {
  38612. return qi;
  38613. }
  38614. continue;
  38615. }
  38616. var flt = itm.getFilter();
  38617. if (flt) {
  38618. if (id == flt.getIdentifier()) {
  38619. return flt;
  38620. }
  38621. continue;
  38622. }
  38623. var folder = itm.getFolder();
  38624. if (folder) {
  38625. var rt = ModuleUtils._findObjectTypeByIdInItems(folder.basicGetItem(), id);
  38626. if (rt) {
  38627. return rt;
  38628. }
  38629. continue;
  38630. }
  38631. }
  38632. return null;
  38633. }
  38634. }, {
  38635. key: 'areCompatibleDataTypes',
  38636. value: function areCompatibleDataTypes(lDataType, rDataType) {
  38637. return _MoserCommonUtils2.default.areCompatibleDataTypes(lDataType, rDataType);
  38638. }
  38639. }, {
  38640. key: 'getPrecision',
  38641. value: function getPrecision(dataType) {
  38642. return _MoserCommonUtils2.default.getPrecision(dataType);
  38643. }
  38644. }, {
  38645. key: 'getScale',
  38646. value: function getScale(dataType) {
  38647. return _MoserCommonUtils2.default.getScale(dataType);
  38648. }
  38649. /**
  38650. * (item collection) itemType itemType itemType itemType itemType itemType querysubject queryitem namedset filter itemHierarchy folder calculation queryitem y y x x x ?(qs or qi) x namedset y x x x x ?(qs) x filter y y x x x ?(qs) x itemHierarchy x x x x x x x folder y y x x x y y calculation x x x x x ?(calc) y security/ embedded filer y(direct) x x x x x x in MDTV Querysubject statndalone Calculation statndalone Filter FolderType
  38651. * @return {boolean} t/f.
  38652. */
  38653. }, {
  38654. key: '_checkValidContainer',
  38655. value: function _checkValidContainer(obj, parentObj, bEmbeddedFilter) {
  38656. if (!obj || !parentObj) {
  38657. return false;
  38658. }
  38659. var objTp = obj.getObjectType();
  38660. var allowed = {};
  38661. var skipped = {};
  38662. if ("QuerySubject" == objTp) {
  38663. allowed["Module"] = 1;
  38664. allowed["FolderType"] = 1;
  38665. skipped["FolderItemType"] = 1;
  38666. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38667. }
  38668. if ("FolderType" == objTp) {
  38669. allowed["Module"] = 1;
  38670. allowed["FolderType"] = 1;
  38671. skipped["FolderItemType"] = 1;
  38672. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38673. }
  38674. if ("QueryItem" == objTp) {
  38675. allowed["QuerySubject"] = 1;
  38676. allowed["QueryItem"] = 1;
  38677. skipped["Folder"] = 1;
  38678. skipped["ItemType"] = 1;
  38679. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38680. }
  38681. if ("NamedSet" == objTp) {
  38682. allowed["QuerySubject"] = 1;
  38683. skipped["Folder"] = 1;
  38684. skipped["ItemType"] = 1;
  38685. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38686. }
  38687. if ("Filter" == objTp) {
  38688. if (bEmbeddedFilter) {
  38689. allowed["QuerySubject"] = 1;
  38690. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38691. }
  38692. var qs = ModuleUtils._getParentQuerySubject(parentObj);
  38693. if (qs) {
  38694. allowed["QuerySubject"] = 1;
  38695. allowed["QueryItem"] = 1;
  38696. skipped["Folder"] = 1;
  38697. skipped["ItemType"] = 1;
  38698. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38699. }
  38700. allowed["Module"] = 1;
  38701. allowed["FolderType"] = 1;
  38702. skipped["FolderItemType"] = 1;
  38703. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38704. }
  38705. if ("Folder" == objTp) {
  38706. allowed["QuerySubject"] = 1;
  38707. allowed["QueryItem"] = 1;
  38708. allowed["Folder"] = 1;
  38709. allowed["Calculation"] = 1;
  38710. skipped["ItemType"] = 1;
  38711. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38712. }
  38713. if ("Calculation" == objTp) {
  38714. allowed["Module"] = 1;
  38715. allowed["FolderType"] = 1;
  38716. allowed["Calculation"] = 1;
  38717. skipped["Folder"] = 1;
  38718. skipped["ItemType"] = 1;
  38719. skipped["FolderItemType"] = 1;
  38720. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38721. }
  38722. if ("SecurityFilter" == objTp) {
  38723. allowed["QuerySubject"] = 1;
  38724. return ModuleUtils._checkContainer(parentObj, allowed, skipped);
  38725. }
  38726. return false;
  38727. }
  38728. }, {
  38729. key: '_checkContainer',
  38730. value: function _checkContainer(parentObj, allowed, skipped) {
  38731. var parent = parentObj;
  38732. while (parent) {
  38733. var parentTp = parent.getObjectType();
  38734. if (allowed.hasOwnProperty(parentTp)) {
  38735. return true;
  38736. }
  38737. if (!skipped.hasOwnProperty(parentTp)) {
  38738. return false;
  38739. }
  38740. parent = parent.getParent();
  38741. }
  38742. return false;
  38743. }
  38744. /**
  38745. * add an object to the parent object. supported obj classes: QueryItem -> QuerySubject SecurityFilter -> QuerySubject Folder -> QuerySubject QuerySubject -> Module Calculation -> Module FolderType -> Module Filter -> QuerySubject or Module depending on parentObj
  38746. * @param {MoserObject} obj object to add.
  38747. * @param {MoserObject} parentObj parent object.
  38748. * @param {int} index position.
  38749. * @param {boolean} bEmbeddedFilter optional. only for filter inside query subject. If true, it is embedded filter.
  38750. * @param {ObjectFactory} objectFactory factory.
  38751. */
  38752. }, {
  38753. key: 'add',
  38754. value: function add(obj, parentObj, index, objectFactory, bEmbeddedFilter) {
  38755. if (!ModuleUtils._checkValidContainer(obj, parentObj, bEmbeddedFilter)) {
  38756. return false;
  38757. }
  38758. var objTp = obj.getObjectType();
  38759. if ("QueryItem" == objTp || "SecurityFilter" == objTp || "NamedSet" == objTp) {
  38760. return ModuleUtils._addObjectToQuerySubject(obj, parentObj, index, objectFactory, false);
  38761. }
  38762. if ("Folder" == objTp) {
  38763. var qs = ModuleUtils._getParentQuerySubject(parentObj);
  38764. if (qs) {
  38765. return ModuleUtils._addObjectToQuerySubject(obj, parentObj, index, objectFactory, false);
  38766. }
  38767. return ModuleUtils._addObjectToCalculation(obj, parentObj, index, objectFactory);
  38768. }
  38769. if ("Filter" == objTp) {
  38770. var qs = ModuleUtils._getParentQuerySubject(parentObj);
  38771. if (qs) {
  38772. return ModuleUtils._addObjectToQuerySubject(obj, parentObj, index, objectFactory, bEmbeddedFilter);
  38773. }
  38774. return ModuleUtils._addObjectToModule(obj, parentObj, index, objectFactory);
  38775. }
  38776. if ("QuerySubject" == objTp) {
  38777. return ModuleUtils._addObjectToModule(obj, parentObj, index, objectFactory);
  38778. }
  38779. if ("Calculation" == objTp) {
  38780. var c = ModuleUtils._getParentCalculation(parentObj);
  38781. if (c) {
  38782. var module = _MoserObject2.default.getModuleObject(c);
  38783. if (!module) {
  38784. return false;
  38785. }
  38786. ModuleUtils._setIdentifierInModuleScope(obj, module);
  38787. return ModuleUtils._addObjectToCalculation(obj, parentObj, index, objectFactory);
  38788. }
  38789. return ModuleUtils._addObjectToModule(obj, parentObj, index, objectFactory);
  38790. }
  38791. if ("FolderType" == objTp) {
  38792. return ModuleUtils._addFolderTypeToMDTV(obj, parentObj, index, objectFactory);
  38793. }
  38794. return false;
  38795. }
  38796. }, {
  38797. key: '_getParentCalculation',
  38798. value: function _getParentCalculation(parentObj) {
  38799. var obj = parentObj;
  38800. while (obj) {
  38801. var tp = obj.getObjectType();
  38802. if ("Calculation" == tp) {
  38803. return obj;
  38804. }
  38805. if ("Module" == tp) {
  38806. return null;
  38807. }
  38808. obj = obj.getParent();
  38809. }
  38810. return null;
  38811. }
  38812. }, {
  38813. key: '_getParentQuerySubject',
  38814. value: function _getParentQuerySubject(parentObj) {
  38815. var parentTp = parentObj.getObjectType();
  38816. if ("QuerySubject" == parentTp) {
  38817. return parentObj;
  38818. }
  38819. return _PropertySetter2.default.getParentQuerySubject(parentObj);
  38820. }
  38821. }, {
  38822. key: '_invalidIndex',
  38823. value: function _invalidIndex(list, index) {
  38824. return !list || index < 0 || index >= list.length;
  38825. }
  38826. }, {
  38827. key: '_addItemToParent',
  38828. value: function _addItemToParent(item, parentObj, index) {
  38829. var parentTp = parentObj.getObjectType();
  38830. if ("QuerySubject" == parentTp) {
  38831. if (ModuleUtils._invalidIndex(parentObj.basicGetItem(), index)) {
  38832. parentObj.addItem(item);
  38833. } else {
  38834. parentObj.addItemAt(index, item);
  38835. }
  38836. return;
  38837. }
  38838. if ("QueryItem" == parentTp) {
  38839. if (ModuleUtils._invalidIndex(parentObj.basicGetItem(), index)) {
  38840. parentObj.addItem(item);
  38841. } else {
  38842. parentObj.addItemAt(index, item);
  38843. }
  38844. return;
  38845. }
  38846. if ("Folder" == parentTp) {
  38847. if (ModuleUtils._invalidIndex(parentObj.basicGetItem(), index)) {
  38848. parentObj.addItem(item);
  38849. } else {
  38850. parentObj.addItemAt(index, item);
  38851. }
  38852. return;
  38853. }
  38854. if ("Calculation" == parentTp) {
  38855. if (ModuleUtils._invalidIndex(parentObj.basicGetItem(), index)) {
  38856. parentObj.addItem(item);
  38857. } else {
  38858. parentObj.addItemAt(index, item);
  38859. }
  38860. return;
  38861. }
  38862. }
  38863. }, {
  38864. key: '_getIdChain',
  38865. value: function _getIdChain(idChain, parentObj, anchor) {
  38866. var parent = parentObj;
  38867. while (parent) {
  38868. var objType = parent.getObjectType();
  38869. if ("QuerySubject" == objType || "QueryItem" == objType) {
  38870. idChain.push(parent.getIdentifier());
  38871. }
  38872. if (parent === anchor) {
  38873. break;
  38874. }
  38875. parent = parent.getParent();
  38876. }
  38877. }
  38878. }, {
  38879. key: '_addObjectToQuerySubject',
  38880. value: function _addObjectToQuerySubject(obj, parentObj, index, objectFactory, bEmbeddedFilter) {
  38881. var qs = ModuleUtils._getParentQuerySubject(parentObj);
  38882. if (!qs) {
  38883. return false;
  38884. }
  38885. var tp = obj.getObjectType();
  38886. if (!("Folder" == tp)) {
  38887. var label = obj.getLabel();
  38888. if (label == null || label.length === 0) {
  38889. label = "new" + tp;
  38890. }
  38891. var id = obj.getIdentifier();
  38892. if (id == null || id.length === 0) {
  38893. id = _IdGenerator2.default.makeIdentifier(parentObj, label);
  38894. obj.setIdentifier(id);
  38895. var idChain = [];
  38896. ModuleUtils._getIdChain(idChain, parentObj, qs);
  38897. var idforexpr = "";
  38898. for (var i = idChain.length - 1; i >= 0; --i) {
  38899. idforexpr = idforexpr + idChain[i] + ".";
  38900. }
  38901. idforexpr = idforexpr + id;
  38902. obj.setIdForExpression(idforexpr);
  38903. }
  38904. }
  38905. if ("QueryItem" == tp) {
  38906. obj.setHighlevelDatatype(_MoserCommonUtils2.default.generateHighlevelDatatype(obj.getDatatype()));
  38907. var item = objectFactory.createItemType();
  38908. item.setQueryItem(obj);
  38909. ModuleUtils._addItemToParent(item, parentObj, index);
  38910. _PropertySetter2.default.addQueryItemToItemNormalization(qs, obj, objectFactory);
  38911. return true;
  38912. }
  38913. if ("NamedSet" == tp) {
  38914. var item = objectFactory.createItemType();
  38915. item.setNamedSet(obj);
  38916. ModuleUtils._addItemToParent(item, parentObj, index);
  38917. return true;
  38918. }
  38919. if ("Folder" == tp) {
  38920. var item = objectFactory.createItemType();
  38921. item.setFolder(obj);
  38922. ModuleUtils._addItemToParent(item, parentObj, index);
  38923. return true;
  38924. }
  38925. if ("Filter" == tp) {
  38926. if (bEmbeddedFilter) {
  38927. if (ModuleUtils._invalidIndex(parentObj.basicGetFilter(), index)) {
  38928. parentObj.addFilter(obj);
  38929. } else {
  38930. parentObj.addFilterAt(index, obj);
  38931. }
  38932. } else {
  38933. var item = objectFactory.createItemType();
  38934. item.setFilter(obj);
  38935. ModuleUtils._addItemToParent(item, parentObj, index);
  38936. }
  38937. return true;
  38938. }
  38939. if (ModuleUtils._invalidIndex(parentObj.basicGetSecurityFilter(), index)) {
  38940. parentObj.addSecurityFilter(obj);
  38941. } else {
  38942. parentObj.addSecurityFilterAt(index, obj);
  38943. }
  38944. return true;
  38945. }
  38946. }, {
  38947. key: '_addObjectToCalculation',
  38948. value: function _addObjectToCalculation(obj, parentObj, index, objectFactory) {
  38949. var tp = obj.getObjectType();
  38950. if ("Calculation" == tp) {
  38951. var item = objectFactory.createItemType();
  38952. item.setCalculation(obj);
  38953. ModuleUtils._addItemToParent(item, parentObj, index);
  38954. return true;
  38955. }
  38956. if ("Folder" == tp) {
  38957. var item = objectFactory.createItemType();
  38958. item.setFolder(obj);
  38959. ModuleUtils._addItemToParent(item, parentObj, index);
  38960. return true;
  38961. }
  38962. return false;
  38963. }
  38964. }, {
  38965. key: '_getParentFolderType',
  38966. value: function _getParentFolderType(parentObj) {
  38967. var parent = parentObj;
  38968. while (parent) {
  38969. var parentTp = parent.getObjectType();
  38970. if ("FolderType" == parentTp) {
  38971. return parent;
  38972. }
  38973. if ("Module" == parentTp) {
  38974. var module = parent;
  38975. var mdtv = module.basicGetMetadataTreeView();
  38976. if (mdtv && !(mdtv.length == 0)) {
  38977. return mdtv[0];
  38978. }
  38979. return null;
  38980. }
  38981. parent = parent.getParent();
  38982. }
  38983. return null;
  38984. }
  38985. }, {
  38986. key: '_addFolderTypeToMDTV',
  38987. value: function _addFolderTypeToMDTV(obj, parentObj, index, objectFactory) {
  38988. var parentFolderType = ModuleUtils._getParentFolderType(parentObj);
  38989. if (!parentFolderType) {
  38990. return false;
  38991. }
  38992. var folderItem = objectFactory.createFolderItemType();
  38993. folderItem.setFolder(obj);
  38994. if (ModuleUtils._invalidIndex(parentFolderType.basicGetFolderItem(), index)) {
  38995. parentFolderType.addFolderItem(folderItem);
  38996. } else {
  38997. parentFolderType.addFolderItemAt(index, folderItem);
  38998. }
  38999. return true;
  39000. }
  39001. }, {
  39002. key: '_setIdentifierInModuleScope',
  39003. value: function _setIdentifierInModuleScope(obj, module) {
  39004. var label = obj.getLabel();
  39005. if (label == null || label.length === 0) {
  39006. label = "new" + obj.getObjectType();
  39007. }
  39008. var id = obj.getIdentifier();
  39009. if (id == null || id.length === 0) {
  39010. id = _IdGenerator2.default.makeIdentifier(module, label);
  39011. obj.setIdentifier(id);
  39012. obj.setIdForExpression(id);
  39013. }
  39014. return id;
  39015. }
  39016. }, {
  39017. key: '_addObjectToModule',
  39018. value: function _addObjectToModule(obj, parentObj, index, objectFactory) {
  39019. var parentFolderType = ModuleUtils._getParentFolderType(parentObj);
  39020. if (!parentFolderType) {
  39021. return false;
  39022. }
  39023. var module = _MoserObject2.default.getModuleObject(parentFolderType);
  39024. if (!module) {
  39025. return false;
  39026. }
  39027. var id = ModuleUtils._setIdentifierInModuleScope(obj, module);
  39028. var tp = obj.getObjectType();
  39029. var folderItem = objectFactory.createFolderItemType();
  39030. folderItem.setRef(id);
  39031. folderItem.setReferencedObject(obj);
  39032. if (ModuleUtils._invalidIndex(parentFolderType.basicGetFolderItem(), index)) {
  39033. parentFolderType.addFolderItem(folderItem);
  39034. } else {
  39035. parentFolderType.addFolderItemAt(index, folderItem);
  39036. }
  39037. if ("QuerySubject" == tp) {
  39038. module.addQuerySubject(obj);
  39039. } else if ("Calculation" == tp) {
  39040. module.addCalculation(obj);
  39041. } else {
  39042. module.addFilter(obj);
  39043. }
  39044. return true;
  39045. }
  39046. /**
  39047. * remove an object.
  39048. * @param {MoserObject} obj object to remove.
  39049. * @return {MoserObject} obj or null.
  39050. */
  39051. }, {
  39052. key: 'remove',
  39053. value: function remove(obj) {
  39054. return ModuleUtils._removeImp(obj, true);
  39055. }
  39056. }, {
  39057. key: '_removeImp',
  39058. value: function _removeImp(obj, bClean) {
  39059. if (!obj) {
  39060. return null;
  39061. }
  39062. var objTp = obj.getObjectType();
  39063. if ("QueryItem" == objTp || "SecurityFilter" == objTp || "Folder" == objTp) {
  39064. return ModuleUtils._removeObjectFromQuerySubject(obj, bClean);
  39065. }
  39066. if ("Filter" == objTp) {
  39067. var qs = ModuleUtils._getParentQuerySubject(obj);
  39068. if (qs) {
  39069. return ModuleUtils._removeObjectFromQuerySubject(obj, bClean);
  39070. }
  39071. return ModuleUtils._removeObjectFromModule(obj, bClean);
  39072. }
  39073. if ("Calculation" == objTp || "QuerySubject" == objTp) {
  39074. return ModuleUtils._removeObjectFromModule(obj, bClean);
  39075. }
  39076. if ("FolderType" == objTp) {
  39077. return ModuleUtils._removeFolderTypeFromMDTV(obj, bClean);
  39078. }
  39079. return null;
  39080. }
  39081. }, {
  39082. key: '_removeObjectFromQuerySubject',
  39083. value: function _removeObjectFromQuerySubject(obj, bClean) {
  39084. var objTp = obj.getObjectType();
  39085. if ("Folder" == objTp || "QueryItem" == objTp) {
  39086. return ModuleUtils._removeParentItem(obj, bClean);
  39087. } else if ("SecurityFilter" == objTp) {
  39088. var parentTp = ModuleUtils._getParentObjectType(obj);
  39089. if ("QuerySubject" == parentTp) {
  39090. var qs = obj.getParent();
  39091. if (bClean) {
  39092. qs.removeSecurityFilter(obj);
  39093. }
  39094. return obj;
  39095. }
  39096. return null;
  39097. } else if ("Filter" == objTp) {
  39098. var parentTp = ModuleUtils._getParentObjectType(obj);
  39099. if ("QuerySubject" == parentTp) {
  39100. var qs = obj.getParent();
  39101. if (bClean) {
  39102. qs.removeFilter(obj);
  39103. }
  39104. return obj;
  39105. }
  39106. return ModuleUtils._removeParentItem(obj, bClean);
  39107. } else {
  39108. return null;
  39109. }
  39110. }
  39111. }, {
  39112. key: '_getParentObjectType',
  39113. value: function _getParentObjectType(obj) {
  39114. var parent = obj.getParent();
  39115. if (!parent) {
  39116. return null;
  39117. }
  39118. return parent.getObjectType();
  39119. }
  39120. /**
  39121. * obj is in ItemType.
  39122. * @param {MoserObject} obj object.
  39123. * @return {MoserObject} obj or null.
  39124. */
  39125. }, {
  39126. key: '_removeParentItem',
  39127. value: function _removeParentItem(obj, bclean) {
  39128. var parentTp = ModuleUtils._getParentObjectType(obj);
  39129. if (!("ItemType" == parentTp)) {
  39130. return null;
  39131. }
  39132. var item = obj.getParent();
  39133. var parentParent = item.getParent();
  39134. if (!parentParent) {
  39135. return null;
  39136. }
  39137. var parentParentTp = parentParent.getObjectType();
  39138. var qiIds;
  39139. var qiIdForExpressions;
  39140. var qsId;
  39141. var module;
  39142. var qs;
  39143. if (bclean) {
  39144. qiIds = [];
  39145. qiIdForExpressions = [];
  39146. ModuleUtils._collectQIIdsInItem(item, qiIds, qiIdForExpressions);
  39147. if (!(qiIds.length == 0)) {
  39148. qs = ModuleUtils._getParentQuerySubject(item);
  39149. module = _MoserObject2.default.getModuleObject(qs);
  39150. if (module && qs) {
  39151. qsId = qs.getIdentifier();
  39152. }
  39153. }
  39154. if (qsId != null) {
  39155. ModuleUtils._cleanSplitDefinition(module, obj);
  39156. }
  39157. }
  39158. if ("QuerySubject" == parentParentTp) {
  39159. if (bclean) {
  39160. parentParent.removeItem(item);
  39161. }
  39162. } else if ("QueryItem" == parentParentTp) {
  39163. if (bclean) {
  39164. parentParent.removeItem(item);
  39165. }
  39166. } else if ("Folder" == parentParentTp) {
  39167. if (bclean) {
  39168. parentParent.removeItem(item);
  39169. }
  39170. } else {
  39171. return null;
  39172. }
  39173. if (qsId != null) {
  39174. for (var i = 0; i < qiIds.length; ++i) {
  39175. var qiId = qiIds[i];
  39176. _PropertySetter2.default.resetReferencedObject(module, qiId, qiIdForExpressions[i], qsId);
  39177. ModuleUtils._cleanItemNormalization(qs, qiId);
  39178. }
  39179. }
  39180. if (bclean) {
  39181. return obj;
  39182. }
  39183. return item;
  39184. }
  39185. }, {
  39186. key: '_cleanSplitDefinition',
  39187. value: function _cleanSplitDefinition(module, obj) {
  39188. if (!obj) {
  39189. return;
  39190. }
  39191. if (!("QueryItem" == obj.getObjectType())) {
  39192. return;
  39193. }
  39194. var sp = obj.basicGetSplitDefinition();
  39195. if (!sp || sp.length == 0 || _PropertySetter2.default.isEmptyRef(sp[0].getRef())) {
  39196. return;
  39197. }
  39198. var idForExpr = obj.getIdForExpression();
  39199. var qss = module.basicGetQuerySubject();
  39200. if (!qss) {
  39201. return;
  39202. }
  39203. for (var __i_enFor0 = 0, __exp_enFor0 = qss, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39204. var aQS = __exp_enFor0[__i_enFor0];
  39205. for (var __i_enFor1 = 0, __exp_enFor1 = _PropertySetter2.default.getAllQueryItemsInQuerySubject(aQS), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  39206. var aQI = __exp_enFor1[__i_enFor1];
  39207. if (aQI === obj) {
  39208. continue;
  39209. }
  39210. var sp1 = aQI.basicGetSplitDefinition();
  39211. if (!sp1 || sp1.length == 0 || !(idForExpr == sp1[0].getRef())) {
  39212. continue;
  39213. }
  39214. sp1[0].setRef("None");
  39215. }
  39216. }
  39217. }
  39218. }, {
  39219. key: '_cleanItemNormalization',
  39220. value: function _cleanItemNormalization(qs, qiId) {
  39221. var itemNorm = qs.getItemNormalization();
  39222. if (!itemNorm) {
  39223. return;
  39224. }
  39225. var grps = itemNorm.basicGetItemNormalizationGroup();
  39226. if (!grps || grps.length == 0) {
  39227. return;
  39228. }
  39229. var grpToDelete;
  39230. for (var __i_enFor0 = 0, __exp_enFor0 = grps, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39231. var g = __exp_enFor0[__i_enFor0];
  39232. var attrs = g.basicGetAttribute();
  39233. var k = g.getKey();
  39234. if (attrs && !(attrs.length == 0)) {
  39235. var sz = attrs.length;
  39236. for (var __i_enFor1 = 0, __exp_enFor1 = attrs, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  39237. var a = __exp_enFor1[__i_enFor1];
  39238. if (qiId == a.getItemRef()) {
  39239. if (sz == 1 && !k) {
  39240. grpToDelete = g;
  39241. break;
  39242. }
  39243. g.removeAttribute(a);
  39244. return;
  39245. }
  39246. }
  39247. }
  39248. if (grpToDelete) {
  39249. break;
  39250. }
  39251. if (!k) {
  39252. continue;
  39253. }
  39254. if (qiId == k.getItemRef()) {
  39255. grpToDelete = g;
  39256. break;
  39257. }
  39258. }
  39259. if (grpToDelete) {
  39260. var gpId = grpToDelete.getIdentifier();
  39261. var paranetGrps = grpToDelete.basicGetParentGroupRef();
  39262. itemNorm.removeItemNormalizationGroup(grpToDelete);
  39263. for (var __i_enFor2 = 0, __exp_enFor2 = grps, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  39264. var otherGrp = __exp_enFor2[__i_enFor2];
  39265. var otherParanetGrps = otherGrp.basicGetParentGroupRef();
  39266. if (otherParanetGrps && !(otherParanetGrps.length == 0) && otherParanetGrps.indexOf(gpId) > -1) {
  39267. otherGrp.removeParentGroupRef(gpId);
  39268. if (paranetGrps) {
  39269. for (var __i_enFor3 = 0, __exp_enFor3 = paranetGrps, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  39270. var sg = __exp_enFor3[__i_enFor3];
  39271. if (!(otherParanetGrps.indexOf(sg) > -1)) {
  39272. otherGrp.addParentGroupRef(sg);
  39273. }
  39274. }
  39275. }
  39276. }
  39277. }
  39278. }
  39279. if (grps.length == 0) {
  39280. qs.setItemNormalization(null);
  39281. }
  39282. }
  39283. }, {
  39284. key: '_collectQIIdsInItem',
  39285. value: function _collectQIIdsInItem(itm, qiIds, qiIdForExpressions) {
  39286. var qi = itm.getQueryItem();
  39287. if (qi) {
  39288. var id = qi.getIdentifier();
  39289. var qiIdForExpression = qi.getIdForExpression();
  39290. if (id != null && qiIdForExpression != null) {
  39291. qiIds.push(id);
  39292. qiIdForExpressions.push(qiIdForExpression);
  39293. }
  39294. } else {
  39295. var fld = itm.getFolder();
  39296. if (fld) {
  39297. ModuleUtils._collectQIIdsInFolder(fld, qiIds, qiIdForExpressions);
  39298. }
  39299. }
  39300. }
  39301. }, {
  39302. key: '_collectQIIdsInFolder',
  39303. value: function _collectQIIdsInFolder(theFolder, qiIds, qiIdForExpressions) {
  39304. var items = theFolder.basicGetItem();
  39305. if (!items || items.length == 0) {
  39306. return;
  39307. }
  39308. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39309. var itm = __exp_enFor0[__i_enFor0];
  39310. ModuleUtils._collectQIIdsInItem(itm, qiIds, qiIdForExpressions);
  39311. }
  39312. }
  39313. }, {
  39314. key: '_checkFolderType',
  39315. value: function _checkFolderType(obj) {
  39316. var parent = obj.getParent();
  39317. var parentTp = parent.getObjectType();
  39318. if (!("Module" == parentTp) && !("FolderItemType" == parentTp)) {
  39319. return false;
  39320. }
  39321. if ("Module" == parentTp) {
  39322. return true;
  39323. }
  39324. var folderItem = parent;
  39325. var parentParentTp = ModuleUtils._getParentObjectType(folderItem);
  39326. return "FolderType" == parentParentTp;
  39327. }
  39328. }, {
  39329. key: '_collectIdsInFolderType',
  39330. value: function _collectIdsInFolderType(obj, ids) {
  39331. if (!obj) {
  39332. return;
  39333. }
  39334. var folderItems = obj.basicGetFolderItem();
  39335. if (!folderItems) {
  39336. return;
  39337. }
  39338. for (var __i_enFor0 = 0, __exp_enFor0 = folderItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39339. var folderItem = __exp_enFor0[__i_enFor0];
  39340. var ref = folderItem.getRef();
  39341. if (ref != null) {
  39342. ids.push(ref);
  39343. }
  39344. ModuleUtils._collectIdsInFolderType(folderItem.getFolder(), ids);
  39345. }
  39346. }
  39347. }, {
  39348. key: '_removeObjectsInMDTVFolderType',
  39349. value: function _removeObjectsInMDTVFolderType(obj) {
  39350. var module = _MoserObject2.default.getModuleObject(obj);
  39351. if (!module) {
  39352. return;
  39353. }
  39354. var ids = [];
  39355. ModuleUtils._collectIdsInFolderType(obj, ids);
  39356. if (ids.length == 0) {
  39357. return;
  39358. }
  39359. var idToQS = {};
  39360. var idToCalc = {};
  39361. var idToFilter = {};
  39362. var qss = module.basicGetQuerySubject();
  39363. if (qss) {
  39364. for (var __i_enFor0 = 0, __exp_enFor0 = qss, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39365. var qs = __exp_enFor0[__i_enFor0];
  39366. idToQS[qs.getIdentifier()] = qs;
  39367. }
  39368. }
  39369. var calcs = module.basicGetCalculation();
  39370. if (calcs) {
  39371. for (var __i_enFor1 = 0, __exp_enFor1 = calcs, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  39372. var c = __exp_enFor1[__i_enFor1];
  39373. idToCalc[c.getIdentifier()] = c;
  39374. }
  39375. }
  39376. var filters = module.basicGetFilter();
  39377. if (filters) {
  39378. for (var __i_enFor2 = 0, __exp_enFor2 = filters, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  39379. var f = __exp_enFor2[__i_enFor2];
  39380. idToFilter[f.getIdentifier()] = f;
  39381. }
  39382. }
  39383. var seen = {};
  39384. for (var __i_enFor3 = 0, __exp_enFor3 = ids, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  39385. var id = __exp_enFor3[__i_enFor3];
  39386. if (seen.hasOwnProperty(id)) {
  39387. continue;
  39388. }
  39389. seen[id] = 1;
  39390. var q = idToQS[id];
  39391. if (q) {
  39392. ModuleUtils._deleteQuerySubjectRelatedObjects(module, q, id);
  39393. module.removeQuerySubject(q);
  39394. continue;
  39395. }
  39396. var c = idToCalc[id];
  39397. if (c) {
  39398. module.removeCalculation(c);
  39399. continue;
  39400. }
  39401. var f = idToFilter[id];
  39402. if (f) {
  39403. module.removeFilter(f);
  39404. continue;
  39405. }
  39406. }
  39407. }
  39408. }, {
  39409. key: '_removeFolderTypeFromMDTV',
  39410. value: function _removeFolderTypeFromMDTV(obj, bClean) {
  39411. if (!ModuleUtils._checkFolderType(obj)) {
  39412. return null;
  39413. }
  39414. var parent = obj.getParent();
  39415. var parentTp = parent.getObjectType();
  39416. if (!bClean) {
  39417. if ("FolderItemType" == parentTp) {
  39418. return parent;
  39419. }
  39420. return null;
  39421. }
  39422. ModuleUtils._removeObjectsInMDTVFolderType(obj);
  39423. if ("Module" == parentTp) {
  39424. parent.removeMetadataTreeView(obj);
  39425. return obj;
  39426. }
  39427. var folderItem = parent;
  39428. folderItem.getParent().removeFolderItem(folderItem);
  39429. return obj;
  39430. }
  39431. }, {
  39432. key: '_removeObjectFromModule',
  39433. value: function _removeObjectFromModule(obj, bClean) {
  39434. var module = _MoserObject2.default.getModuleObject(obj);
  39435. if (!module) {
  39436. return null;
  39437. }
  39438. var objectTp = obj.getObjectType();
  39439. if ("QuerySubject" == objectTp) {
  39440. return ModuleUtils._deleteQuerySubjectImp(module, obj, bClean);
  39441. }
  39442. var mdtvs = _MoserObjectUtils2.default.getList(module.basicGetMetadataTreeView());
  39443. if ("Calculation" == objectTp) {
  39444. var calc = obj;
  39445. for (var __i_enFor0 = 0, __exp_enFor0 = mdtvs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39446. var folder = __exp_enFor0[__i_enFor0];
  39447. var r = ModuleUtils._removeQuerySubjectFromMDTVFolder(calc.getIdentifier(), folder, bClean);
  39448. if (!bClean && r) {
  39449. return r;
  39450. }
  39451. }
  39452. module.removeCalculation(calc);
  39453. return obj;
  39454. } else if ("Filter" == objectTp) {
  39455. var filter = obj;
  39456. for (var __i_enFor1 = 0, __exp_enFor1 = mdtvs, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  39457. var folder = __exp_enFor1[__i_enFor1];
  39458. var r = ModuleUtils._removeQuerySubjectFromMDTVFolder(filter.getIdentifier(), folder, bClean);
  39459. if (!bClean && r) {
  39460. return r;
  39461. }
  39462. }
  39463. module.removeFilter(filter);
  39464. return obj;
  39465. } else {
  39466. return null;
  39467. }
  39468. }
  39469. }, {
  39470. key: 'move',
  39471. value: function move(obj, parentObj, index) {
  39472. var removed = ModuleUtils._removeImp(obj, false);
  39473. if (!removed) {
  39474. return null;
  39475. }
  39476. var p1 = ModuleUtils._getParentContainer(parentObj);
  39477. var p2 = ModuleUtils._getParentContainer(removed);
  39478. if (!p1 || !p2 || !(p1 === p2)) {
  39479. return null;
  39480. }
  39481. var oldParentObj = [null];
  39482. var oldIdx = ModuleUtils._detachFromParent(removed, oldParentObj);
  39483. if (oldIdx == -1) {
  39484. return null;
  39485. }
  39486. ModuleUtils._insertToParent(removed, parentObj, index, oldParentObj[0], oldIdx);
  39487. return obj;
  39488. }
  39489. }, {
  39490. key: '_getParentContainer',
  39491. value: function _getParentContainer(obj) {
  39492. if (!obj) {
  39493. return null;
  39494. }
  39495. var objType = obj.getObjectType();
  39496. if ("QueryItem" == objType || "QuerySubject" == objType || "Module" == objType) {
  39497. return obj;
  39498. }
  39499. return ModuleUtils._getParentContainer(obj.getParent());
  39500. }
  39501. }, {
  39502. key: '_detachFromParent',
  39503. value: function _detachFromParent(removed, oldParent) {
  39504. var parent = removed.getParent();
  39505. var parentObjType = parent.getObjectType();
  39506. var objType = removed.getObjectType();
  39507. var oldIdx;
  39508. if ("QuerySubject" == parentObjType) {
  39509. var qs = parent;
  39510. if ("ItemType" == objType) {
  39511. oldIdx = qs.getItem().indexOf(removed);
  39512. if (oldIdx >= 0) {
  39513. qs.removeItemAt(oldIdx);
  39514. oldParent[0] = qs;
  39515. }
  39516. } else if ("Filter" == objType) {
  39517. oldIdx = qs.getFilter().indexOf(removed);
  39518. if (oldIdx >= 0) {
  39519. qs.removeFilterAt(oldIdx);
  39520. oldParent[0] = qs;
  39521. }
  39522. } else if ("SecurityFilter" == objType) {
  39523. oldIdx = qs.getSecurityFilter().indexOf(removed);
  39524. if (oldIdx >= 0) {
  39525. qs.removeSecurityFilterAt(oldIdx);
  39526. oldParent[0] = qs;
  39527. }
  39528. } else {
  39529. return -1;
  39530. }
  39531. } else if ("Folder" == parentObjType) {
  39532. if ("ItemType" == objType) {
  39533. oldIdx = parent.getItem().indexOf(removed);
  39534. if (oldIdx >= 0) {
  39535. parent.removeItemAt(oldIdx);
  39536. oldParent[0] = parent;
  39537. }
  39538. } else {
  39539. return -1;
  39540. }
  39541. } else if ("QueryItem" == parentObjType) {
  39542. if ("ItemType" == objType) {
  39543. oldIdx = parent.getItem().indexOf(removed);
  39544. if (oldIdx >= 0) {
  39545. parent.removeItemAt(oldIdx);
  39546. oldParent[0] = parent;
  39547. }
  39548. } else {
  39549. return -1;
  39550. }
  39551. } else if ("FolderType" == parentObjType) {
  39552. if ("FolderItemType" == objType) {
  39553. oldIdx = parent.getFolderItem().indexOf(removed);
  39554. if (oldIdx >= 0) {
  39555. parent.removeFolderItemAt(oldIdx);
  39556. oldParent[0] = parent;
  39557. }
  39558. } else {
  39559. return -1;
  39560. }
  39561. } else {
  39562. return -1;
  39563. }
  39564. removed.setParent(null);
  39565. return oldIdx;
  39566. }
  39567. }, {
  39568. key: '_adjustIndex',
  39569. value: function _adjustIndex(i, parent, oldIdx, oldParent) {
  39570. var index = i;
  39571. if (oldParent && parent && parent === oldParent && index > oldIdx) {
  39572. index--;
  39573. }
  39574. return index;
  39575. }
  39576. }, {
  39577. key: '_insertToParent',
  39578. value: function _insertToParent(removed, parentObj, index, oldParent, oldIdx) {
  39579. var objType = removed.getObjectType();
  39580. if ("FolderItemType" == objType) {
  39581. var parentFolderType = ModuleUtils._getParentFolderType(parentObj);
  39582. if (!parentFolderType) {
  39583. return;
  39584. }
  39585. var idx = ModuleUtils._adjustIndex(index, parentFolderType, oldIdx, oldParent);
  39586. if (ModuleUtils._invalidIndex(parentFolderType.basicGetFolderItem(), idx)) {
  39587. parentFolderType.addFolderItem(removed);
  39588. } else {
  39589. parentFolderType.addFolderItemAt(idx, removed);
  39590. }
  39591. } else if ("ItemType" == objType) {
  39592. var idx = ModuleUtils._adjustIndex(index, parentObj, oldIdx, oldParent);
  39593. ModuleUtils._addItemToParent(removed, parentObj, idx);
  39594. } else if ("Filter" == objType) {
  39595. var idx = ModuleUtils._adjustIndex(index, parentObj, oldIdx, oldParent);
  39596. if (ModuleUtils._invalidIndex(parentObj.basicGetFilter(), idx)) {
  39597. parentObj.addFilter(removed);
  39598. } else {
  39599. parentObj.addFilterAt(idx, removed);
  39600. }
  39601. } else if ("SecurityFilter" == objType) {
  39602. var idx = ModuleUtils._adjustIndex(index, parentObj, oldIdx, oldParent);
  39603. if (ModuleUtils._invalidIndex(parentObj.basicGetSecurityFilter(), idx)) {
  39604. parentObj.addSecurityFilter(removed);
  39605. } else {
  39606. parentObj.addSecurityFilterAt(idx, removed);
  39607. }
  39608. }
  39609. }
  39610. }, {
  39611. key: 'getExtractIdentifiersSpec',
  39612. value: function getExtractIdentifiersSpec(obj, value) {
  39613. return _PropertySetter2.default.getExtractIdentifiersSpec(obj, value);
  39614. }
  39615. }, {
  39616. key: 'setIdentifier',
  39617. value: function setIdentifier(obj, value, response) {
  39618. var idforExprToNewExpr;
  39619. if (response) {
  39620. var feedBack = response["feedback"];
  39621. if (feedBack && !(feedBack.length == 0)) {
  39622. idforExprToNewExpr = {};
  39623. for (var __i_enFor0 = 0, __exp_enFor0 = feedBack, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39624. var f = __exp_enFor0[__i_enFor0];
  39625. var jobj = f;
  39626. idforExprToNewExpr[jobj["idForExpression"]] = jobj["expression"];
  39627. }
  39628. }
  39629. }
  39630. _PropertySetter2.default.setIdentifier(obj, value, idforExprToNewExpr);
  39631. }
  39632. /**
  39633. * Returns a boolean that says, is the MoserObject visible or hidden. Any object with an ancestor (folder/query subject) marked as hidden, should be returned as hidden
  39634. * @param {ObjectType} object - object in a module
  39635. * @param {Module} module - module owning the object
  39636. * @return {boolean}
  39637. */
  39638. }, {
  39639. key: 'isVisible',
  39640. value: function isVisible(object, module) {
  39641. var hidden = object.isHidden() == null ? false : object.isHidden(),
  39642. visible = !hidden;
  39643. if (hidden) {
  39644. return visible;
  39645. }
  39646. var parent = ModuleUtils.getTreeAncestor(object, null, module);
  39647. if (parent) {
  39648. return visible && ModuleUtils.isVisible(parent, module);
  39649. }
  39650. return visible;
  39651. }
  39652. /**
  39653. * find the ancestor in the tree.
  39654. * @param {MoserObject} obj
  39655. * @param {String[]} anestorType
  39656. * @param {Module} module TODO
  39657. * @return {MoserObject}
  39658. */
  39659. }, {
  39660. key: 'getTreeAncestor',
  39661. value: function getTreeAncestor(obj, anestorType, module) {
  39662. var objTp = obj.getObjectType();
  39663. if (!ModuleUtils._isMDTVObjectType(objTp, false)) {
  39664. return null;
  39665. }
  39666. if (!module) {
  39667. module = _MoserObject2.default.getModuleObject(obj);
  39668. }
  39669. var ancestorSet;
  39670. if (anestorType && anestorType.length > 0) {
  39671. ancestorSet = {};
  39672. for (var __i_enFor0 = 0, __len_enFor0 = anestorType.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39673. var element = anestorType[__i_enFor0];
  39674. ancestorSet[element] = 1;
  39675. }
  39676. }
  39677. if ("QuerySubject" == objTp || "Calculation" == objTp) {
  39678. var folderItemType = ModuleUtils._getFolderItemType(module, obj.getIdentifier());
  39679. if (!folderItemType) {
  39680. if ("Calculation" == objTp) {
  39681. return obj.getParent() && obj.getParent().getParent() ? obj.getParent().getParent() : null;
  39682. }
  39683. return null;
  39684. }
  39685. return ModuleUtils._getTreeAncestorMDTV(module, folderItemType.getParent(), ancestorSet);
  39686. }
  39687. if ("FolderType" == objTp) {
  39688. return ModuleUtils._getTreeAncestorMDTV(module, obj.getParent(), ancestorSet);
  39689. }
  39690. if ("Filter" == objTp || "NamedSet" == objTp) {
  39691. var qs = ModuleUtils._getParentQuerySubject(obj);
  39692. if (!qs) {
  39693. var folderItemType = ModuleUtils._getFolderItemType(module, obj.getIdentifier());
  39694. if (!folderItemType) {
  39695. return null;
  39696. }
  39697. return ModuleUtils._getTreeAncestorMDTV(module, folderItemType.getParent(), ancestorSet);
  39698. }
  39699. return ModuleUtils._getTreeAncestorQuerySubject(module, obj.getParent(), ancestorSet);
  39700. }
  39701. return ModuleUtils._getTreeAncestorQuerySubject(module, obj.getParent(), ancestorSet);
  39702. }
  39703. }, {
  39704. key: '_isMDTVObjectType',
  39705. value: function _isMDTVObjectType(objectType, incModule) {
  39706. if ("QueryItem" == objectType || "Folder" == objectType || "Filter" == objectType || "QuerySubject" == objectType || "Calculation" == objectType || "FolderType" == objectType || "NamedSet" == objectType || "MemberType" == objectType) {
  39707. return true;
  39708. }
  39709. return incModule && "Module" == objectType;
  39710. }
  39711. }, {
  39712. key: '_getTreeAncestorQuerySubject',
  39713. value: function _getTreeAncestorQuerySubject(module, parentObj, ancestorSet) {
  39714. if (!parentObj) {
  39715. return null;
  39716. }
  39717. var objType = parentObj.getObjectType();
  39718. if ("QuerySubject" == objType) {
  39719. if (!ancestorSet || ancestorSet.hasOwnProperty(objType)) {
  39720. return parentObj;
  39721. }
  39722. var folderItemType = ModuleUtils._getFolderItemType(module, parentObj.getIdentifier());
  39723. if (!folderItemType) {
  39724. return null;
  39725. }
  39726. return ModuleUtils._getTreeAncestorMDTV(module, folderItemType.getParent(), ancestorSet);
  39727. }
  39728. if (ModuleUtils._isMDTVObjectType(objType, false) && (!ancestorSet || ancestorSet.hasOwnProperty(objType))) {
  39729. return parentObj;
  39730. }
  39731. return ModuleUtils._getTreeAncestorQuerySubject(module, parentObj.getParent(), ancestorSet);
  39732. }
  39733. }, {
  39734. key: '_getTreeAncestorMDTV',
  39735. value: function _getTreeAncestorMDTV(module, parent, ancestorSet) {
  39736. if (!parent) {
  39737. return null;
  39738. }
  39739. var objType = parent.getObjectType();
  39740. if (ModuleUtils._isMDTVObjectType(objType, true) && (!ancestorSet || ancestorSet.hasOwnProperty(objType))) {
  39741. if (parent.getParent() == module) {
  39742. return module;
  39743. }
  39744. return parent;
  39745. }
  39746. return ModuleUtils._getTreeAncestorMDTV(module, parent.getParent(), ancestorSet);
  39747. }
  39748. }, {
  39749. key: '_getFolderItemType',
  39750. value: function _getFolderItemType(module, id) {
  39751. if (!module) {
  39752. return null;
  39753. }
  39754. var mdtvs = _MoserObjectUtils2.default.getList(module.basicGetMetadataTreeView());
  39755. for (var __i_enFor0 = 0, __exp_enFor0 = mdtvs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39756. var folder = __exp_enFor0[__i_enFor0];
  39757. var r = ModuleUtils._getFolderItemTypeInMDTVFolder(id, folder);
  39758. if (r) {
  39759. return r;
  39760. }
  39761. }
  39762. return null;
  39763. }
  39764. }, {
  39765. key: '_getFolderItemTypeInMDTVFolder',
  39766. value: function _getFolderItemTypeInMDTVFolder(id, folder) {
  39767. if (!folder) {
  39768. return null;
  39769. }
  39770. var itemList = _MoserObjectUtils2.default.getList(folder.basicGetFolderItem());
  39771. for (var j = itemList.length - 1; j >= 0; --j) {
  39772. var r = itemList[j];
  39773. if (id == r.getRef() || r.getDefLink() && id == r.getDefLink().getRef()) {
  39774. return r;
  39775. }
  39776. r = ModuleUtils._getFolderItemTypeInMDTVFolder(id, r.getFolder());
  39777. if (r) {
  39778. return r;
  39779. }
  39780. }
  39781. return null;
  39782. }
  39783. }, {
  39784. key: 'findTreeObjectByIdForExpression',
  39785. value: function findTreeObjectByIdForExpression(idForExpression, treeObject, forceMDTVSearch) {
  39786. if (idForExpression == null || idForExpression.length === 0 || !treeObject) {
  39787. return null;
  39788. }
  39789. if (!forceMDTVSearch) {
  39790. return ModuleUtils._findObjectByIdforExprInObject(treeObject, idForExpression);
  39791. }
  39792. var module = _MoserObject2.default.getModuleObject(treeObject);
  39793. if (!module) {
  39794. return null;
  39795. }
  39796. var mdtvs = _MoserObjectUtils2.default.getList(module.basicGetMetadataTreeView());
  39797. for (var __i_enFor0 = 0, __exp_enFor0 = mdtvs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39798. var folder = __exp_enFor0[__i_enFor0];
  39799. var r = ModuleUtils._findObjectByIdforExprInObject(folder, idForExpression);
  39800. if (r) {
  39801. return r;
  39802. }
  39803. }
  39804. return null;
  39805. }
  39806. }, {
  39807. key: '_findObjectByIdforExprInObject',
  39808. value: function _findObjectByIdforExprInObject(obj, idForExpression) {
  39809. if (!obj) {
  39810. return null;
  39811. }
  39812. var objType = obj.getObjectType();
  39813. if ("FolderType" == objType) {
  39814. return ModuleUtils._findObjectByIdforExprInFolderType(obj, idForExpression);
  39815. }
  39816. if ("FolderItemType" == objType) {
  39817. return ModuleUtils._findObjectByIdforExprInFolderItemType(obj, idForExpression);
  39818. }
  39819. if ("QuerySubject" == objType) {
  39820. return ModuleUtils._findObjectByIdforExprInQuerySubject(obj, idForExpression);
  39821. }
  39822. if ("ItemType" == objType) {
  39823. return ModuleUtils._findObjectByIdforExprInItemType(obj, idForExpression);
  39824. }
  39825. if ("QueryItem" == objType) {
  39826. return ModuleUtils._findObjectByIdforExprInQueryItem(obj, idForExpression);
  39827. }
  39828. if ("Folder" == objType) {
  39829. return ModuleUtils._findObjectByIdforExprInFolder(obj, idForExpression);
  39830. }
  39831. if ("Calculation" == objType || "Filter" == objType || "NamedSet" == objType) {
  39832. var idforexpr = obj.getIdForExpression();
  39833. if (idForExpression == idforexpr) {
  39834. return obj;
  39835. }
  39836. return null;
  39837. }
  39838. return null;
  39839. }
  39840. }, {
  39841. key: '_findObjectByIdforExprInFolderType',
  39842. value: function _findObjectByIdforExprInFolderType(obj, idForExpression) {
  39843. var items = _MoserObjectUtils2.default.getList(obj.basicGetFolderItem());
  39844. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39845. var itm = __exp_enFor0[__i_enFor0];
  39846. var r = ModuleUtils._findObjectByIdforExprInObject(itm, idForExpression);
  39847. if (r) {
  39848. return r;
  39849. }
  39850. }
  39851. return null;
  39852. }
  39853. }, {
  39854. key: '_findObjectByIdforExprInFolderItemType',
  39855. value: function _findObjectByIdforExprInFolderItemType(obj, idForExpression) {
  39856. var folder = obj.getFolder();
  39857. if (folder) {
  39858. return ModuleUtils._findObjectByIdforExprInObject(folder, idForExpression);
  39859. }
  39860. var ref = obj.getRef();
  39861. if (ref != null && !(ref.length === 0)) {
  39862. return ModuleUtils._findObjectByIdforExprInObject(obj.getReferencedObject(), idForExpression);
  39863. }
  39864. var dlink = obj.getDefLink();
  39865. if (dlink) {
  39866. var rf = dlink.getRef();
  39867. if (rf != null && !(rf.length === 0)) {
  39868. return ModuleUtils._findObjectByIdforExprInObject(dlink.getReferencedObject(), idForExpression);
  39869. }
  39870. }
  39871. return null;
  39872. }
  39873. }, {
  39874. key: '_findObjectByIdforExprInQuerySubject',
  39875. value: function _findObjectByIdforExprInQuerySubject(obj, idForExpression) {
  39876. var idforexpr = obj.getIdForExpression();
  39877. if (idForExpression == idforexpr) {
  39878. return obj;
  39879. }
  39880. var items = _MoserObjectUtils2.default.getList(obj.basicGetItem());
  39881. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39882. var itm = __exp_enFor0[__i_enFor0];
  39883. var r = ModuleUtils._findObjectByIdforExprInObject(itm, idForExpression);
  39884. if (r) {
  39885. return r;
  39886. }
  39887. }
  39888. return null;
  39889. }
  39890. }, {
  39891. key: '_findObjectByIdforExprInItemType',
  39892. value: function _findObjectByIdforExprInItemType(obj, idForExpression) {
  39893. var queryItem = obj.getQueryItem();
  39894. if (queryItem) {
  39895. return ModuleUtils._findObjectByIdforExprInObject(queryItem, idForExpression);
  39896. }
  39897. var nameSet = obj.getNamedSet();
  39898. if (nameSet) {
  39899. return ModuleUtils._findObjectByIdforExprInObject(nameSet, idForExpression);
  39900. }
  39901. var filter = obj.getFilter();
  39902. if (filter) {
  39903. return ModuleUtils._findObjectByIdforExprInObject(filter, idForExpression);
  39904. }
  39905. var folder = obj.getFolder();
  39906. if (folder) {
  39907. return ModuleUtils._findObjectByIdforExprInObject(folder, idForExpression);
  39908. }
  39909. return null;
  39910. }
  39911. }, {
  39912. key: '_findObjectByIdforExprInFolder',
  39913. value: function _findObjectByIdforExprInFolder(obj, idForExpression) {
  39914. var items = _MoserObjectUtils2.default.getList(obj.basicGetItem());
  39915. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39916. var itm = __exp_enFor0[__i_enFor0];
  39917. var r = ModuleUtils._findObjectByIdforExprInObject(itm, idForExpression);
  39918. if (r) {
  39919. return r;
  39920. }
  39921. }
  39922. return null;
  39923. }
  39924. }, {
  39925. key: '_findObjectByIdforExprInQueryItem',
  39926. value: function _findObjectByIdforExprInQueryItem(obj, idForExpression) {
  39927. var idforexpr = obj.getIdForExpression();
  39928. if (idForExpression == idforexpr) {
  39929. return obj;
  39930. }
  39931. var items = _MoserObjectUtils2.default.getList(obj.basicGetItem());
  39932. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39933. var itm = __exp_enFor0[__i_enFor0];
  39934. var r = ModuleUtils._findObjectByIdforExprInObject(itm, idForExpression);
  39935. if (r) {
  39936. return r;
  39937. }
  39938. }
  39939. return null;
  39940. }
  39941. }, {
  39942. key: 'getTreeChildren',
  39943. value: function getTreeChildren(obj, depth, childrenType) {
  39944. if (!obj || depth < 0) {
  39945. return null;
  39946. }
  39947. var objTp = obj.getObjectType();
  39948. if (!ModuleUtils._isMDTVObjectType(objTp, true)) {
  39949. return null;
  39950. }
  39951. var childrenSet;
  39952. if (childrenType && childrenType.length > 0) {
  39953. childrenSet = {};
  39954. for (var __i_enFor0 = 0, __len_enFor0 = childrenType.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39955. var element = childrenType[__i_enFor0];
  39956. childrenSet[element] = 1;
  39957. }
  39958. }
  39959. var rt = [];
  39960. if ("Module" == objTp) {
  39961. var mdtv = obj.basicGetMetadataTreeView();
  39962. if (!mdtv) {
  39963. return rt;
  39964. }
  39965. for (var __i_enFor1 = 0, __exp_enFor1 = mdtv, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  39966. var folder = __exp_enFor1[__i_enFor1];
  39967. ModuleUtils._getTreeChildrenObjects(folder, depth, 1, childrenSet, rt);
  39968. }
  39969. return rt;
  39970. }
  39971. ModuleUtils._getTreeChildrenObjects(obj, depth, 1, childrenSet, rt);
  39972. return rt;
  39973. }
  39974. }, {
  39975. key: '_getTreeChildrenObjects',
  39976. value: function _getTreeChildrenObjects(parent, depth, d, childrenSet, rt) {
  39977. if (depth != 0 && d > depth) {
  39978. return;
  39979. }
  39980. var children = ModuleUtils._getVisibleChildren(parent);
  39981. for (var __i_enFor0 = 0, __exp_enFor0 = children, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39982. var c = __exp_enFor0[__i_enFor0];
  39983. var cType = c.getObjectType();
  39984. if (!childrenSet || childrenSet.hasOwnProperty(cType)) {
  39985. rt.push(c);
  39986. }
  39987. ModuleUtils._getTreeChildrenObjects(c, depth, d + 1, childrenSet, rt);
  39988. }
  39989. }
  39990. }, {
  39991. key: '_getVisibleChildren',
  39992. value: function _getVisibleChildren(parent) {
  39993. var children = [];
  39994. var parentType = parent.getObjectType();
  39995. if ("FolderType" == parentType) {
  39996. var itms = parent.basicGetFolderItem();
  39997. if (itms) {
  39998. for (var __i_enFor0 = 0, __exp_enFor0 = itms, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  39999. var itm = __exp_enFor0[__i_enFor0];
  40000. var fldType = itm.getFolder();
  40001. if (fldType) {
  40002. children.push(fldType);
  40003. continue;
  40004. }
  40005. var o = itm.getReferencedObject();
  40006. if (o) {
  40007. children.push(o);
  40008. continue;
  40009. }
  40010. var dlink = itm.getDefLink();
  40011. if (dlink) {
  40012. var refobj = dlink.getReferencedObject();
  40013. if (refobj) {
  40014. children.push(refobj);
  40015. }
  40016. }
  40017. }
  40018. }
  40019. } else if ("QueryItem" == parentType || "Folder" == parentType || "QuerySubject" == parentType) {
  40020. var items = null;
  40021. var members = null;
  40022. if ("QueryItem" == parentType) {
  40023. items = parent.basicGetItem();
  40024. members = parent.basicGetMembers();
  40025. } else if ("Folder" == parentType) {
  40026. items = parent.basicGetItem();
  40027. } else {
  40028. items = parent.basicGetItem();
  40029. }
  40030. if (items) {
  40031. for (var __i_enFor1 = 0, __exp_enFor1 = items, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  40032. var item = __exp_enFor1[__i_enFor1];
  40033. var qi = item.getQueryItem();
  40034. if (qi) {
  40035. children.push(qi);
  40036. continue;
  40037. }
  40038. var fld = item.getFolder();
  40039. if (fld) {
  40040. children.push(fld);
  40041. continue;
  40042. }
  40043. var flt = item.getFilter();
  40044. if (flt) {
  40045. children.push(flt);
  40046. continue;
  40047. }
  40048. var nmSet = item.getNamedSet();
  40049. if (nmSet) {
  40050. children.push(nmSet);
  40051. }
  40052. }
  40053. }
  40054. if (members) {
  40055. Array.prototype.push.apply(children, members);
  40056. }
  40057. } else if ("MemberType" == parentType) {
  40058. var members = parent.basicGetMembers();
  40059. if (members) {
  40060. Array.prototype.push.apply(children, members);
  40061. }
  40062. }
  40063. return children;
  40064. }
  40065. }, {
  40066. key: 'copyModule',
  40067. value: function copyModule(srcModule) {
  40068. var clonedModule = srcModule.clone();
  40069. ModuleUtils._resetRefObject(clonedModule);
  40070. _ReferenceResolver2.default.resolve(clonedModule);
  40071. return clonedModule;
  40072. }
  40073. }, {
  40074. key: '_resetRefObject',
  40075. value: function _resetRefObject(module) {
  40076. if (!module) {
  40077. return;
  40078. }
  40079. var overrideMode = module.isOverrideMode();
  40080. module.setOverrideMode(false);
  40081. ModuleUtils._resetItemHierarchyLocalRef(module);
  40082. var mdtv = module.basicGetMetadataTreeView();
  40083. if (mdtv) {
  40084. for (var __i_enFor0 = 0, __exp_enFor0 = mdtv, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40085. var folderType = __exp_enFor0[__i_enFor0];
  40086. ModuleUtils._resetFolderTypeReferences(folderType);
  40087. }
  40088. }
  40089. ModuleUtils._resetSegmentReferences(module);
  40090. ModuleUtils._resetRelationships(module);
  40091. ModuleUtils._resetFacetDef(module);
  40092. module.setOverrideMode(overrideMode);
  40093. }
  40094. }, {
  40095. key: '_resetItemHierarchyLocalRef',
  40096. value: function _resetItemHierarchyLocalRef(module) {
  40097. var querySubjectList = module.basicGetQuerySubject();
  40098. if (!querySubjectList) {
  40099. return;
  40100. }
  40101. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjectList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40102. var querySubject = __exp_enFor0[__i_enFor0];
  40103. var queryItemTypeList = querySubject.basicGetItem();
  40104. if (!queryItemTypeList) {
  40105. continue;
  40106. }
  40107. for (var __i_enFor1 = 0, __exp_enFor1 = queryItemTypeList, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  40108. var queryItemType = __exp_enFor1[__i_enFor1];
  40109. var hierarchy = queryItemType.getItemHierarchy();
  40110. if (!hierarchy) {
  40111. continue;
  40112. }
  40113. var localRefList = hierarchy.basicGetLocalRef();
  40114. if (!localRefList) {
  40115. continue;
  40116. }
  40117. for (var __i_enFor2 = 0, __exp_enFor2 = localRefList, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  40118. var localRef = __exp_enFor2[__i_enFor2];
  40119. var ref = localRef.getRef();
  40120. if (ref != null) {
  40121. localRef.setReferencedObject(null);
  40122. }
  40123. }
  40124. }
  40125. }
  40126. }
  40127. }, {
  40128. key: '_resetFolderTypeReferences',
  40129. value: function _resetFolderTypeReferences(folderType) {
  40130. var folderItemTypes = folderType.basicGetFolderItem();
  40131. if (!folderItemTypes) {
  40132. return;
  40133. }
  40134. for (var __i_enFor0 = 0, __exp_enFor0 = folderItemTypes, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40135. var folderItemType = __exp_enFor0[__i_enFor0];
  40136. var ref = folderItemType.getRef();
  40137. if (ref != null) {
  40138. folderItemType.setReferencedObject(null);
  40139. } else {
  40140. var defLinkType = folderItemType.getDefLink();
  40141. if (defLinkType) {
  40142. defLinkType.setReferencedObject(null);
  40143. }
  40144. }
  40145. var nestedFolder = folderItemType.getFolder();
  40146. if (nestedFolder) {
  40147. ModuleUtils._resetFolderTypeReferences(nestedFolder);
  40148. }
  40149. }
  40150. }
  40151. }, {
  40152. key: '_resetSegmentReferences',
  40153. value: function _resetSegmentReferences(module) {
  40154. var drillGroups = module.basicGetDrillGroup();
  40155. if (!drillGroups) {
  40156. return;
  40157. }
  40158. for (var __i_enFor0 = 0, __exp_enFor0 = drillGroups, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40159. var drillGroup = __exp_enFor0[__i_enFor0];
  40160. var segments = drillGroup.basicGetSegment();
  40161. if (!segments) {
  40162. continue;
  40163. }
  40164. for (var __i_enFor1 = 0, __exp_enFor1 = segments, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  40165. var segment = __exp_enFor1[__i_enFor1];
  40166. segment.setReferencedObject(null);
  40167. }
  40168. }
  40169. }
  40170. }, {
  40171. key: '_resetRelationships',
  40172. value: function _resetRelationships(module) {
  40173. var relationships = module.basicGetRelationship();
  40174. if (!relationships) {
  40175. return;
  40176. }
  40177. for (var __i_enFor0 = 0, __exp_enFor0 = relationships, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40178. var relationship = __exp_enFor0[__i_enFor0];
  40179. var leftcard = relationship.getLeft();
  40180. if (leftcard) {
  40181. leftcard.setReferencedObject(null);
  40182. }
  40183. var rightcard = relationship.getRight();
  40184. if (rightcard) {
  40185. rightcard.setReferencedObject(null);
  40186. }
  40187. var links = relationship.basicGetLink();
  40188. if (!links) {
  40189. continue;
  40190. }
  40191. for (var __i_enFor1 = 0, __exp_enFor1 = links, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  40192. var link = __exp_enFor1[__i_enFor1];
  40193. link.setReferencedObjectLeft(null);
  40194. link.setReferencedObjectRight(null);
  40195. }
  40196. }
  40197. }
  40198. }, {
  40199. key: '_resetFacetDef',
  40200. value: function _resetFacetDef(module) {
  40201. var querySubjects = module.basicGetQuerySubject();
  40202. if (!querySubjects) {
  40203. return;
  40204. }
  40205. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40206. var querySubject = __exp_enFor0[__i_enFor0];
  40207. var itemTypeList = querySubject.basicGetItem();
  40208. ModuleUtils._resetFacetDefFromItems(itemTypeList);
  40209. }
  40210. }
  40211. }, {
  40212. key: '_resetFacetDefFromItems',
  40213. value: function _resetFacetDefFromItems(itemTypeList) {
  40214. if (!itemTypeList) {
  40215. return;
  40216. }
  40217. for (var __i_enFor0 = 0, __exp_enFor0 = itemTypeList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40218. var itemType = __exp_enFor0[__i_enFor0];
  40219. var nested = null;
  40220. var queryItem = itemType.getQueryItem();
  40221. if (queryItem) {
  40222. ModuleUtils._resetFacetDefFromQueryItem(queryItem);
  40223. nested = queryItem.basicGetItem();
  40224. } else {
  40225. var nestedFolder = itemType.getFolder();
  40226. if (nestedFolder) {
  40227. nested = nestedFolder.basicGetItem();
  40228. }
  40229. }
  40230. ModuleUtils._resetFacetDefFromItems(nested);
  40231. }
  40232. }
  40233. }, {
  40234. key: '_resetFacetDefFromQueryItem',
  40235. value: function _resetFacetDefFromQueryItem(item) {
  40236. var ft = item.getFacetDefinition();
  40237. if (!ft) {
  40238. return;
  40239. }
  40240. var sl = ft.getSortList();
  40241. if (sl) {
  40242. var sortItems = sl.basicGetSortItem();
  40243. if (sortItems) {
  40244. for (var __i_enFor0 = 0, __exp_enFor0 = sortItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40245. var sortItem = __exp_enFor0[__i_enFor0];
  40246. sortItem.setReferencedObject(null);
  40247. }
  40248. }
  40249. }
  40250. var context = ft.getContext();
  40251. if (context) {
  40252. context.setReferencedObject(null);
  40253. }
  40254. }
  40255. }, {
  40256. key: 'isForData',
  40257. value: function isForData(mo) {
  40258. return mo instanceof _MemberType2.default;
  40259. }
  40260. /**
  40261. * Sets the member to hidden. Members retrieved from expanding the members folder or from doing a member search, are both added to the same tree. When members are retrieved from search results, they are marked as hidden. They're put in the tree for the sole purpose of having them have the proper parentage so that the UI code behaves properly. Only when members are added when expanding the members folder (i.e when createMembers() is called) are they marked as not hidden. NOTE: There is a setHidden on parent class ObjectType which could've been used, but its purpose to determine if the metadata item is visible. It was decided not to overload this.
  40262. * @param {MemberType} member - Input member.
  40263. * @param {boolean} hidden - Hidden flag.
  40264. */
  40265. }, {
  40266. key: 'setMemberHidden',
  40267. value: function setMemberHidden(member, hidden) {
  40268. var prop = ModuleUtils.getMemberHiddenProperty(member);
  40269. if (!prop) {
  40270. prop = new _PropertyType2.default();
  40271. prop.setName("memberHidden");
  40272. member.addProperty(prop);
  40273. }
  40274. if (hidden) {
  40275. prop.setValue("true");
  40276. } else {
  40277. prop.setValue("false");
  40278. }
  40279. }
  40280. /**
  40281. * @param {MemberType} member
  40282. * @return {PropertyType}
  40283. */
  40284. }, {
  40285. key: 'getMemberHiddenProperty',
  40286. value: function getMemberHiddenProperty(member) {
  40287. for (var __i_enFor0 = 0, __exp_enFor0 = member.getProperty(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40288. var p = __exp_enFor0[__i_enFor0];
  40289. if ("memberHidden" == p.getName()) {
  40290. return p;
  40291. }
  40292. }
  40293. return null;
  40294. }
  40295. }, {
  40296. key: 'getMemberHidden',
  40297. value: function getMemberHidden(member) {
  40298. var p = ModuleUtils.getMemberHiddenProperty(member);
  40299. if (p) {
  40300. return "true" == p.getValue();
  40301. }
  40302. return false;
  40303. }
  40304. /**
  40305. * clean an object. this function does not allow undo.
  40306. * @param {MoserObject} obj object to clean.
  40307. * @param {Array} objTypes objects to be cleaned. If empty, to default clean.
  40308. * @return {boolean} t/f.
  40309. */
  40310. }, {
  40311. key: 'cleanObject',
  40312. value: function cleanObject(obj, objTypes) {
  40313. var objectType = obj.getObjectType();
  40314. if ("QuerySubject" == objectType) {
  40315. return ModuleUtils._cleanQuerySubject(obj, objTypes);
  40316. }
  40317. return false;
  40318. }
  40319. }, {
  40320. key: '_cleanQuerySubject',
  40321. value: function _cleanQuerySubject(qs, objTypes) {
  40322. return ModuleUtils._cleanQuerySubjectItemNormalization(qs, objTypes);
  40323. }
  40324. }, {
  40325. key: '_cleanQuerySubjectItemNormalization',
  40326. value: function _cleanQuerySubjectItemNormalization(qs, objTypes) {
  40327. var itemNorm = qs.getItemNormalization();
  40328. if (!itemNorm) {
  40329. return false;
  40330. }
  40331. var grps = itemNorm.basicGetItemNormalizationGroup();
  40332. if (!grps || grps.length == 0) {
  40333. return false;
  40334. }
  40335. if (objTypes && !(objTypes.length == 0) && !(objTypes.indexOf("ItemNormalizationType") > -1)) {
  40336. return false;
  40337. }
  40338. var existingQIs = [];
  40339. for (var __i_enFor0 = 0, __exp_enFor0 = _MoserObjectUtils2.default.getQueryItems(qs), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40340. var qi = __exp_enFor0[__i_enFor0];
  40341. existingQIs.push(qi.getIdentifier());
  40342. }
  40343. return _PropertySetter2.default.cleanQuerySubjectItemNormalization(qs, existingQIs);
  40344. }
  40345. //constructor()
  40346. }]);
  40347. return ModuleUtils;
  40348. }(_BaseMoserObject3.default);
  40349. exports.default = ModuleUtils;
  40350. /***/ },
  40351. /* 115 */
  40352. /***/ function(module, exports, __webpack_require__) {
  40353. 'use strict';
  40354. Object.defineProperty(exports, "__esModule", {
  40355. value: true
  40356. });
  40357. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  40358. var _BaseMoserObject2 = __webpack_require__(2);
  40359. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  40360. var _CaseInsensitiveMap = __webpack_require__(21);
  40361. var _CaseInsensitiveMap2 = _interopRequireDefault(_CaseInsensitiveMap);
  40362. var _QuerySubjectUtils = __webpack_require__(116);
  40363. var _QuerySubjectUtils2 = _interopRequireDefault(_QuerySubjectUtils);
  40364. var _IdentifierUtil = __webpack_require__(20);
  40365. var _IdentifierUtil2 = _interopRequireDefault(_IdentifierUtil);
  40366. var _MoserObjectUtils = __webpack_require__(27);
  40367. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  40368. var _ItemScanner = __webpack_require__(16);
  40369. var _ItemScanner2 = _interopRequireDefault(_ItemScanner);
  40370. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  40371. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  40372. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  40373. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  40374. ** IBM Confidential
  40375. **
  40376. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  40377. **
  40378. ** (C) Copyright IBM Corp. 2020
  40379. **
  40380. ** The source code for this program is not published or otherwise divested of its trade secrets,
  40381. ** irrespective of what has been deposited with the U.S. Copyright Office.
  40382. ************************************************************************/
  40383. // GENERATED
  40384. //@import BaseMoserObject (loadtime) // superclass
  40385. //@import CaseInsensitiveMap (runtime) // new
  40386. //@import com/ibm/bi/platform/moser/client/utils/QuerySubjectUtils (static) // getParentModule, getParentQuerySubject
  40387. //@import com/ibm/bi/platform/moser/common/utils/IdentifierUtil (static) // isIdValid, makeUniqueAndValidIdentifier
  40388. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // getItems, getItemNormalizationGroups, getFolderTypes
  40389. //@import com/ibm/bi/platform/moser/common/utils/ItemScanner (runtime) // collectIdentifiers
  40390. /**
  40391. * Id Generator
  40392. * @author mohamedelgemaiey
  40393. */
  40394. var IdGenerator = function (_BaseMoserObject) {
  40395. _inherits(IdGenerator, _BaseMoserObject);
  40396. /**
  40397. * Initialize the generator with a scope
  40398. * @param {ObjectType} scope
  40399. */
  40400. function IdGenerator(scope) {
  40401. _classCallCheck(this, IdGenerator);
  40402. var _this = _possibleConstructorReturn(this, (IdGenerator.__proto__ || Object.getPrototypeOf(IdGenerator)).call(this));
  40403. _this._ids = null;
  40404. _this._scopeId = null;
  40405. _this._ids = new _CaseInsensitiveMap2.default();
  40406. if (scope) {
  40407. var actualScope = IdGenerator._adjustScope(scope);
  40408. if ("QuerySubject" == actualScope.getObjectType()) {
  40409. _this._scopeId = actualScope.getIdentifier();
  40410. }
  40411. _this._collectScopeIds(actualScope);
  40412. }
  40413. return _this;
  40414. }
  40415. /**
  40416. * Adjust a scope if required.
  40417. * @param {ObjectType} scope
  40418. * @return {ObjectType}
  40419. */
  40420. _createClass(IdGenerator, [{
  40421. key: 'generateId',
  40422. /**
  40423. * Generate and id for a given object within the scope
  40424. * @param {ObjectType} obj
  40425. */
  40426. value: function generateId(obj) {
  40427. var prefix = obj.getIdentifier();
  40428. if (prefix == null || prefix.length === 0) {
  40429. prefix = obj.getLabel();
  40430. if (prefix == null || prefix.length === 0) {
  40431. prefix = "_id";
  40432. } else if ("Module" == obj.getObjectType() && obj.getContainer() != null) {
  40433. prefix = obj.getContainer() + "." + prefix;
  40434. }
  40435. }
  40436. var id = _IdentifierUtil2.default.makeUniqueAndValidIdentifier(prefix, this._ids);
  40437. obj.setIdentifier(id);
  40438. if (!("Module" == obj.getObjectType() || "QuerySubject" == obj.getObjectType() || "Folder" == obj.getObjectType() || "FolderType" == obj.getObjectType())) {
  40439. if (this._scopeId == null || this._scopeId.length === 0) {
  40440. obj.setIdForExpression(id);
  40441. } else {
  40442. obj.setIdForExpression(this._scopeId + "." + id);
  40443. }
  40444. }
  40445. this._ids.put(id, Boolean["TRUE"]);
  40446. }
  40447. /**
  40448. * Generate a new usespec id
  40449. * @param {Module} module
  40450. * @return {String} the new usespec id
  40451. */
  40452. }, {
  40453. key: '_collectScopeIds',
  40454. value: function _collectScopeIds(scope) {
  40455. if ("Module" == scope.getObjectType()) {
  40456. this._collectIds(scope.basicGetQuerySubject());
  40457. this._collectIds(scope.basicGetCalculation());
  40458. this._collectIds(scope.basicGetDrillGroup());
  40459. this._collectIds(scope.basicGetFilter());
  40460. this._collectIds(scope.basicGetParameterMap());
  40461. this._collectIds(scope.basicGetRelationship());
  40462. this._collectIds(scope.basicGetNamedSet());
  40463. this._collectIds(_MoserObjectUtils2.default.getFolderTypes(scope));
  40464. } else if ("QuerySubject" == scope.getObjectType()) {
  40465. this._collectIds(_MoserObjectUtils2.default.getItems(scope));
  40466. this._collectIds(scope.basicGetFilter());
  40467. this._collectIds(scope.basicGetSecurityFilter());
  40468. this._collectIds(_MoserObjectUtils2.default.getItemNormalizationGroups(scope));
  40469. } else if ("QueryItem" == scope.getObjectType()) {
  40470. this._collectIds(_MoserObjectUtils2.default.getItems(scope));
  40471. }
  40472. }
  40473. }, {
  40474. key: '_collectIds',
  40475. value: function _collectIds(itemList) {
  40476. if (itemList) {
  40477. for (var __i_enFor0 = 0, __exp_enFor0 = itemList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40478. var obj = __exp_enFor0[__i_enFor0];
  40479. var id = obj.getIdentifier();
  40480. if (id != null && !(id.length === 0)) {
  40481. this._ids.put(id, Boolean["TRUE"]);
  40482. }
  40483. }
  40484. }
  40485. }
  40486. }], [{
  40487. key: '_adjustScope',
  40488. value: function _adjustScope(scope) {
  40489. var objectType = scope.getObjectType();
  40490. if ("QueryItem" == objectType || "Folder" == objectType) {
  40491. return _QuerySubjectUtils2.default.getParentQuerySubject(scope);
  40492. } else if ("FolderType" == objectType) {
  40493. return _QuerySubjectUtils2.default.getParentModule(scope);
  40494. }
  40495. return scope;
  40496. }
  40497. }, {
  40498. key: 'generateNewUseSpecId',
  40499. value: function generateNewUseSpecId(module) {
  40500. return IdGenerator.generateNewUseSpecIdWithPrefix(module, "M");
  40501. }
  40502. /**
  40503. * Generate a new usespec id using a prefix (like M or __Base)
  40504. * @param {Module} module
  40505. * @param {String} prefix
  40506. * @return {String} the new usespec id
  40507. */
  40508. }, {
  40509. key: 'generateNewUseSpecIdWithPrefix',
  40510. value: function generateNewUseSpecIdWithPrefix(module, prefix) {
  40511. var useSpecList = module.basicGetUseSpec();
  40512. var nextId = 0;
  40513. if (useSpecList) {
  40514. for (var __i_enFor0 = 0, __exp_enFor0 = useSpecList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40515. var spec = __exp_enFor0[__i_enFor0];
  40516. if (spec.getIdentifier().indexOf(prefix) == 0) {
  40517. var id = parseInt(spec.getIdentifier().substring(prefix.length));
  40518. if (id > nextId) {
  40519. nextId = id;
  40520. }
  40521. }
  40522. }
  40523. }
  40524. nextId++;
  40525. return prefix + nextId;
  40526. }
  40527. }, {
  40528. key: 'idIsAllowedToBeChanged',
  40529. value: function idIsAllowedToBeChanged(obj) {
  40530. if (!obj) {
  40531. return true;
  40532. }
  40533. if ("QueryItem" == obj.getObjectType()) {
  40534. var expr = obj.getExpression();
  40535. var id = obj.getIdentifier();
  40536. if (id != null && !(id.length === 0) && expr != null && !(expr.length === 0)) {
  40537. var ids = _ItemScanner2.default.collectIdentifiers(expr);
  40538. for (var __i_enFor0 = 0, __exp_enFor0 = ids, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40539. var parts = __exp_enFor0[__i_enFor0];
  40540. if (parts.length == 1 && id == parts[0]) {
  40541. return false;
  40542. }
  40543. }
  40544. }
  40545. }
  40546. return true;
  40547. }
  40548. }, {
  40549. key: 'isIdUnique',
  40550. value: function isIdUnique(obj, idToCheck) {
  40551. if (!obj) {
  40552. return true;
  40553. }
  40554. var scopeObj;
  40555. var parent = obj.getParent();
  40556. while (parent) {
  40557. var objType = parent.getObjectType();
  40558. if ("Module" == objType || "QuerySubject" == objType) {
  40559. scopeObj = parent;
  40560. break;
  40561. }
  40562. parent = parent.getParent();
  40563. }
  40564. if (!scopeObj) {
  40565. return true;
  40566. }
  40567. var gen = new IdGenerator(null);
  40568. gen._collectScopeIds(scopeObj);
  40569. return !gen._ids.containsKey(idToCheck);
  40570. }
  40571. }, {
  40572. key: 'isIdValid',
  40573. value: function isIdValid(idToCheck) {
  40574. return _IdentifierUtil2.default.isIdValid(idToCheck);
  40575. }
  40576. }, {
  40577. key: 'makeIdentifier',
  40578. value: function makeIdentifier(parentObj, id) {
  40579. if (!parentObj) {
  40580. return null;
  40581. }
  40582. var scopeObj;
  40583. var parent = parentObj;
  40584. while (parent) {
  40585. var objType = parent.getObjectType();
  40586. if ("Module" == objType || "QuerySubject" == objType) {
  40587. scopeObj = parent;
  40588. break;
  40589. }
  40590. parent = parent.getParent();
  40591. }
  40592. if (!scopeObj) {
  40593. return null;
  40594. }
  40595. var gen = new IdGenerator(null);
  40596. gen._collectScopeIds(scopeObj);
  40597. return _IdentifierUtil2.default.makeUniqueAndValidIdentifier(id, gen._ids);
  40598. }
  40599. }]);
  40600. return IdGenerator;
  40601. }(_BaseMoserObject3.default);
  40602. exports.default = IdGenerator;
  40603. /***/ },
  40604. /* 116 */
  40605. /***/ function(module, exports, __webpack_require__) {
  40606. 'use strict';
  40607. Object.defineProperty(exports, "__esModule", {
  40608. value: true
  40609. });
  40610. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  40611. var _BaseMoserObject2 = __webpack_require__(2);
  40612. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  40613. var _InstanceType = __webpack_require__(11);
  40614. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  40615. var _QsClassifierType = __webpack_require__(33);
  40616. var _QsClassifierType2 = _interopRequireDefault(_QsClassifierType);
  40617. var _ReferenceResolver = __webpack_require__(40);
  40618. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  40619. var _IdGenerator = __webpack_require__(115);
  40620. var _IdGenerator2 = _interopRequireDefault(_IdGenerator);
  40621. var _MoserObjectUtils = __webpack_require__(27);
  40622. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  40623. var _DataModuleExtractor = __webpack_require__(117);
  40624. var _DataModuleExtractor2 = _interopRequireDefault(_DataModuleExtractor);
  40625. var _UsageType = __webpack_require__(44);
  40626. var _UsageType2 = _interopRequireDefault(_UsageType);
  40627. var _ItemScanner = __webpack_require__(16);
  40628. var _ItemScanner2 = _interopRequireDefault(_ItemScanner);
  40629. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  40630. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  40631. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  40632. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  40633. ** IBM Confidential
  40634. **
  40635. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  40636. **
  40637. ** (C) Copyright IBM Corp. 2020
  40638. **
  40639. ** The source code for this program is not published or otherwise divested of its trade secrets,
  40640. ** irrespective of what has been deposited with the U.S. Copyright Office.
  40641. ************************************************************************/
  40642. // GENERATED
  40643. //@import BaseMoserObject (loadtime) // superclass
  40644. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (static) // InstanceType
  40645. //@import com/ibm/bi/platform/moser/common/generated/metadata/QsClassifierType (static) // QsClassifierType
  40646. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (static) // getFirstPart, getQueryItemByIdAndQuerySubject, getSecondPart
  40647. //@import com/ibm/bi/platform/moser/client/utils/IdGenerator (static) // generateNewUseSpecId
  40648. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (static) // getList, getQueryItems
  40649. //@import com/ibm/bi/platform/moser/core/module/util/DataModuleExtractor (static) // getUseSpecById
  40650. //@import com/ibm/bi/platform/moser/common/generated/metadata/UsageType (static) // UsageType
  40651. //@import com/ibm/bi/platform/moser/common/utils/ItemScanner (runtime) // collectIdentifiers
  40652. /**
  40653. * Utility class. If a function is used only for traverse, don't use getXXX (it might create an empty list). use basicGetXXX.
  40654. * @author mohamedelgemaiey
  40655. */
  40656. var QuerySubjectUtils = function (_BaseMoserObject) {
  40657. _inherits(QuerySubjectUtils, _BaseMoserObject);
  40658. function QuerySubjectUtils() {
  40659. _classCallCheck(this, QuerySubjectUtils);
  40660. return _possibleConstructorReturn(this, (QuerySubjectUtils.__proto__ || Object.getPrototypeOf(QuerySubjectUtils)).apply(this, arguments));
  40661. }
  40662. _createClass(QuerySubjectUtils, null, [{
  40663. key: 'convertReferenceQuerySubjectToCopy',
  40664. /**
  40665. * Break the query subject reference and convert it to a copy. (unlink)
  40666. * @param qs: the query subject
  40667. * @param module: The module that includes the query subject
  40668. * @throws {CloneNotSupportedException} CloneNotSupportedException
  40669. */
  40670. value: function convertReferenceQuerySubjectToCopy(qs, module) {
  40671. if (qs.getInstanceType() != _InstanceType2.default.REFERENCE) {
  40672. throw new Error("The query subject instance type is not reference.");
  40673. }
  40674. var qsCls = qs.getClassifier();
  40675. if (qsCls == _QsClassifierType2.default.QUERY_SUBJECT || !qsCls) {
  40676. var qsRef = qs.getRef()[0];
  40677. var baseModuleUseSpecId = _ReferenceResolver2.default.getFirstPart(qsRef);
  40678. var baseModuleuseSpec = QuerySubjectUtils.getUseSpecById(module, baseModuleUseSpecId);
  40679. if (baseModuleuseSpec) {
  40680. var newBaseModuleId;
  40681. var newBaseModuleUseSpec = QuerySubjectUtils._getMUseSpecByStoreId(module, baseModuleuseSpec.getStoreID());
  40682. if (!newBaseModuleUseSpec) {
  40683. newBaseModuleUseSpec = baseModuleuseSpec.clone();
  40684. newBaseModuleId = _IdGenerator2.default.generateNewUseSpecId(module);
  40685. newBaseModuleUseSpec.setIdentifier(newBaseModuleId);
  40686. module.addUseSpec(newBaseModuleUseSpec);
  40687. } else {
  40688. newBaseModuleId = newBaseModuleUseSpec.getIdentifier();
  40689. }
  40690. qs.removeOriginalRefAt(0);
  40691. var origRef = newBaseModuleId + "." + _ReferenceResolver2.default.getSecondPart(qsRef);
  40692. qs.removeRefAt(0);
  40693. qs.addRefAt(0, origRef);
  40694. }
  40695. } else {
  40696. qs.getOriginalRef().length = 0;
  40697. }
  40698. qs.setInstanceType(null);
  40699. QuerySubjectUtils.clearPropertyOerride(qs);
  40700. var qsId = qs.getIdentifier();
  40701. if (qsId != null && !(qsId.length === 0)) {
  40702. for (var __i_enFor0 = 0, __exp_enFor0 = module.getRelationship(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40703. var rel = __exp_enFor0[__i_enFor0];
  40704. if (qsId == rel.getLeft().getRef() || qsId == rel.getRight().getRef()) {
  40705. rel.setInstanceType(null);
  40706. rel.setRef(null);
  40707. QuerySubjectUtils._clearPropertyOverrideList(rel);
  40708. if (qsId == rel.getLeft().getRef()) {
  40709. rel.getLeft().setReferencedObject(qs);
  40710. }
  40711. if (qsId == rel.getRight().getRef()) {
  40712. rel.getRight().setReferencedObject(qs);
  40713. }
  40714. }
  40715. }
  40716. }
  40717. }
  40718. /**
  40719. * Clear the propertyOverride list in the qs and all its items
  40720. * @param {QuerySubject} qs
  40721. */
  40722. }, {
  40723. key: 'clearPropertyOerride',
  40724. value: function clearPropertyOerride(qs) {
  40725. QuerySubjectUtils._clearPropertyOverrideList(qs);
  40726. var items = _MoserObjectUtils2.default.getList(qs.basicGetItem());
  40727. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40728. var item = __exp_enFor0[__i_enFor0];
  40729. var choice = item.getItemHierarchy();
  40730. if (choice) {
  40731. QuerySubjectUtils._clearPropertyOverrideList(choice);
  40732. }
  40733. }
  40734. for (var __i_enFor1 = 0, __exp_enFor1 = _MoserObjectUtils2.default.getQueryItems(qs), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  40735. var qi = __exp_enFor1[__i_enFor1];
  40736. QuerySubjectUtils._clearPropertyOverrideList(qi);
  40737. }
  40738. }
  40739. /**
  40740. * Clear the list using removeAt so the notification is fired
  40741. * @param {ObjectType} obj
  40742. */
  40743. }, {
  40744. key: '_clearPropertyOverrideList',
  40745. value: function _clearPropertyOverrideList(obj) {
  40746. var list = _MoserObjectUtils2.default.getList(obj.basicGetPropertyOverride());
  40747. for (var i = list.length - 1; i >= 0; --i) {
  40748. obj.removePropertyOverrideAt(i);
  40749. }
  40750. }
  40751. }, {
  40752. key: '_getMUseSpecByStoreId',
  40753. value: function _getMUseSpecByStoreId(module, storeId) {
  40754. var uSpecs = _MoserObjectUtils2.default.getList(module.basicGetUseSpec());
  40755. for (var __i_enFor0 = 0, __exp_enFor0 = uSpecs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40756. var useSpec = __exp_enFor0[__i_enFor0];
  40757. if (storeId == useSpec.getStoreID() && useSpec.getIdentifier().indexOf("M") == 0) {
  40758. return useSpec;
  40759. }
  40760. }
  40761. return null;
  40762. }
  40763. /**
  40764. * get a usespec in a module using the useSpecId
  40765. * @param {Module} module
  40766. * @param {String} useSpecId
  40767. * @return {UseSpec}
  40768. */
  40769. }, {
  40770. key: 'getUseSpecById',
  40771. value: function getUseSpecById(module, useSpecId) {
  40772. return _DataModuleExtractor2.default.getUseSpecById(module, useSpecId);
  40773. }
  40774. /**
  40775. * Retrieve <code>QueryItem</code> by identifier within a <code>QuerySubject</code>
  40776. * @param {String} id the identifier of the <code>QueryItem</code>
  40777. * @param {QuerySubject} qs the <code>QuerySubject</code> of this <code>QueryItem</code>
  40778. * @return {BaseQueryItemType} a reference of the <code>QueryItem</code>
  40779. */
  40780. }, {
  40781. key: 'getQueryItemById',
  40782. value: function getQueryItemById(id, qs) {
  40783. return _ReferenceResolver2.default.getQueryItemByIdAndQuerySubject(id, qs, false);
  40784. }
  40785. /**
  40786. * Get the parent ObjectType of an object.
  40787. * @param {String} objType
  40788. * @param {MoserObject} obj
  40789. * @return {MoserObject}
  40790. */
  40791. }, {
  40792. key: 'getParentOfType',
  40793. value: function getParentOfType(objType, obj) {
  40794. if (!obj) {
  40795. return null;
  40796. }
  40797. if (objType == obj.getObjectType()) {
  40798. return obj;
  40799. }
  40800. return QuerySubjectUtils.getParentOfType(objType, obj.getParent());
  40801. }
  40802. /**
  40803. * Get the parent QuerySubject of an object.
  40804. * @param {MoserObject} obj
  40805. * @return {QuerySubject}
  40806. */
  40807. }, {
  40808. key: 'getParentQuerySubject',
  40809. value: function getParentQuerySubject(obj) {
  40810. return QuerySubjectUtils.getParentOfType("QuerySubject", obj);
  40811. }
  40812. /**
  40813. * Get the parent Module of an object.
  40814. * @param {MoserObject} obj
  40815. * @return {Module}
  40816. */
  40817. }, {
  40818. key: 'getParentModule',
  40819. value: function getParentModule(obj) {
  40820. return QuerySubjectUtils.getParentOfType("Module", obj);
  40821. }
  40822. /**
  40823. * update the QuerySubject for typed-in SQL.
  40824. * @param {QuerySubject} qs the existing QuerySubject.
  40825. * @param {QuerySubject} newQS the QuerySubject from XQE response for describing SQL text..
  40826. * @return {boolean} t/f. t means some items are removed.
  40827. */
  40828. }, {
  40829. key: 'updateSQLQueryQuerySubject',
  40830. value: function updateSQLQueryQuerySubject(qs, newQS) {
  40831. var label = newQS.getLabel();
  40832. if (label != null) {
  40833. qs.setLabel(label);
  40834. }
  40835. var sqlQuery = qs.getSqlQuery();
  40836. var newSQLQuery = newQS.getSqlQuery();
  40837. var existingEmpty = QuerySubjectUtils._isEmptySQLQuery(sqlQuery);
  40838. var newEmpty = QuerySubjectUtils._isEmptySQLQuery(newSQLQuery);
  40839. if (existingEmpty && newEmpty) {
  40840. if (newSQLQuery) {
  40841. qs.setSqlQuery(newSQLQuery.clone());
  40842. } else {
  40843. qs.setSqlQuery(null);
  40844. }
  40845. return false;
  40846. }
  40847. var removedId;
  40848. var bDel = [false, false];
  40849. if (newEmpty) {
  40850. removedId = [];
  40851. var projItems = _MoserObjectUtils2.default.getList(sqlQuery.basicGetProjectedItem());
  40852. for (var __i_enFor0 = 0, __exp_enFor0 = projItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40853. var pItm = __exp_enFor0[__i_enFor0];
  40854. removedId.push(pItm.getIdentifier());
  40855. }
  40856. if (newSQLQuery) {
  40857. qs.setSqlQuery(newSQLQuery.clone());
  40858. } else {
  40859. qs.setSqlQuery(null);
  40860. }
  40861. QuerySubjectUtils._deleteItemsInQS(qs, removedId, bDel);
  40862. return bDel[0] && (bDel[1] || qs.basicGetFilter() && !(qs.basicGetFilter().length == 0));
  40863. }
  40864. var addedByExternalName;
  40865. var clonedSQL;
  40866. if (existingEmpty) {
  40867. clonedSQL = newSQLQuery.clone();
  40868. qs.setSqlQuery(clonedSQL);
  40869. addedByExternalName = [];
  40870. var projItems = _MoserObjectUtils2.default.getList(clonedSQL.basicGetProjectedItem());
  40871. for (var __i_enFor1 = 0, __exp_enFor1 = projItems, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  40872. var pItm = __exp_enFor1[__i_enFor1];
  40873. addedByExternalName.push(pItm.getExternalName());
  40874. }
  40875. QuerySubjectUtils._addQueryItems(qs, addedByExternalName, newQS);
  40876. return false;
  40877. }
  40878. var existingExtNames = QuerySubjectUtils._getExternalNamesFromProjItems(sqlQuery);
  40879. var newExtNames = QuerySubjectUtils._getExternalNamesFromProjItems(newSQLQuery);
  40880. var intersectExtName = QuerySubjectUtils._getIntersect(existingExtNames, newExtNames);
  40881. var delExtName = QuerySubjectUtils._getExcept(existingExtNames, intersectExtName);
  40882. addedByExternalName = QuerySubjectUtils._getExcept(newExtNames, intersectExtName);
  40883. removedId = QuerySubjectUtils._getIdByExternalName(sqlQuery, delExtName);
  40884. var updatedId = QuerySubjectUtils._getUpdateItemIds(intersectExtName, sqlQuery, newSQLQuery);
  40885. clonedSQL = newSQLQuery.clone();
  40886. qs.setSqlQuery(clonedSQL);
  40887. if (removedId && !(removedId.length == 0)) {
  40888. QuerySubjectUtils._deleteItemsInQS(qs, removedId, bDel);
  40889. }
  40890. if (updatedId) {
  40891. QuerySubjectUtils._updateItemsInQS(qs, updatedId);
  40892. }
  40893. if (addedByExternalName && !(addedByExternalName.length == 0)) {
  40894. QuerySubjectUtils._addQueryItems(qs, addedByExternalName, newQS);
  40895. }
  40896. return bDel[0] && (bDel[1] || qs.basicGetFilter() && !(qs.basicGetFilter().length == 0));
  40897. }
  40898. /**
  40899. * check if sqlQuery is empty.
  40900. * @param {SqlQueryType} sqlQuery sqlQuery.
  40901. * @return {boolean} t/f.
  40902. */
  40903. }, {
  40904. key: '_isEmptySQLQuery',
  40905. value: function _isEmptySQLQuery(sqlQuery) {
  40906. if (!sqlQuery) {
  40907. return true;
  40908. }
  40909. var projItems = sqlQuery.basicGetProjectedItem();
  40910. return !projItems || projItems.length == 0;
  40911. }
  40912. /**
  40913. * get external names.
  40914. * @param {SqlQueryType} sqlQuery sqlQuery.
  40915. * @return {Array} external names.
  40916. */
  40917. }, {
  40918. key: '_getExternalNamesFromProjItems',
  40919. value: function _getExternalNamesFromProjItems(sqlQuery) {
  40920. var r = [];
  40921. var projs = _MoserObjectUtils2.default.getList(sqlQuery.basicGetProjectedItem());
  40922. for (var __i_enFor0 = 0, __exp_enFor0 = projs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40923. var projItem = __exp_enFor0[__i_enFor0];
  40924. r.push(projItem.getExternalName());
  40925. }
  40926. return r;
  40927. }
  40928. /**
  40929. * get id from external names.
  40930. * @param {SqlQueryType} sqlQuery - sqlQuery.
  40931. * @param {Array} extName - external names.
  40932. * @return {Array} ids;
  40933. */
  40934. }, {
  40935. key: '_getIdByExternalName',
  40936. value: function _getIdByExternalName(sqlQuery, extName) {
  40937. var r = [];
  40938. if (extName.length == 0) {
  40939. return r;
  40940. }
  40941. var projs = _MoserObjectUtils2.default.getList(sqlQuery.basicGetProjectedItem());
  40942. for (var __i_enFor0 = 0, __exp_enFor0 = projs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40943. var projItem = __exp_enFor0[__i_enFor0];
  40944. var ex = projItem.getExternalName();
  40945. if (extName.indexOf(ex) > -1) {
  40946. r.push(projItem.getIdentifier());
  40947. }
  40948. }
  40949. return r;
  40950. }
  40951. /**
  40952. * get ProjectedItemType by external name.
  40953. * @param {SqlQueryType} sqlQuery - sqlQuery.
  40954. * @param {String} s - ext name.
  40955. * @return {ProjectedItemType} ProjectedItemType.
  40956. */
  40957. }, {
  40958. key: '_getProjectedItemTypeByExtName',
  40959. value: function _getProjectedItemTypeByExtName(sqlQuery, s) {
  40960. var projs = _MoserObjectUtils2.default.getList(sqlQuery.basicGetProjectedItem());
  40961. for (var __i_enFor0 = 0, __exp_enFor0 = projs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40962. var projItem = __exp_enFor0[__i_enFor0];
  40963. var ex = projItem.getExternalName();
  40964. if (s == ex) {
  40965. return projItem;
  40966. }
  40967. }
  40968. return null;
  40969. }
  40970. /**
  40971. * intersect.
  40972. * @param {Array} s1 - set 1.
  40973. * @param {Array} s2 - set 2.
  40974. * @return {Array} intersect.
  40975. */
  40976. }, {
  40977. key: '_getIntersect',
  40978. value: function _getIntersect(s1, s2) {
  40979. var r = [];
  40980. for (var __i_enFor0 = 0, __exp_enFor0 = s1, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40981. var v = __exp_enFor0[__i_enFor0];
  40982. if (s2.indexOf(v) > -1) {
  40983. r.push(v);
  40984. }
  40985. }
  40986. return r;
  40987. }
  40988. /**
  40989. * except.
  40990. * @param {Array} s1 - set 1.
  40991. * @param {Array} s2 - set 2.
  40992. * @return {Array} except.
  40993. */
  40994. }, {
  40995. key: '_getExcept',
  40996. value: function _getExcept(s1, s2) {
  40997. var r = [];
  40998. for (var __i_enFor0 = 0, __exp_enFor0 = s1, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  40999. var v = __exp_enFor0[__i_enFor0];
  41000. if (!(s2.indexOf(v) > -1)) {
  41001. r.push(v);
  41002. }
  41003. }
  41004. return r;
  41005. }
  41006. /**
  41007. * get ids for update.
  41008. * @param {Array} extName - external names.
  41009. * @param {SqlQueryType} sqlQuery - existing sqlQuery.
  41010. * @param {SqlQueryType} newSQLQuery - new SQLQuery.
  41011. * @return {Object} ids for update.
  41012. */
  41013. }, {
  41014. key: '_getUpdateItemIds',
  41015. value: function _getUpdateItemIds(extName, sqlQuery, newSQLQuery) {
  41016. if (extName.length == 0) {
  41017. return null;
  41018. }
  41019. var r;
  41020. for (var __i_enFor0 = 0, __exp_enFor0 = extName, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41021. var s = __exp_enFor0[__i_enFor0];
  41022. var proj = QuerySubjectUtils._getProjectedItemTypeByExtName(sqlQuery, s);
  41023. var newProj = QuerySubjectUtils._getProjectedItemTypeByExtName(newSQLQuery, s);
  41024. if (!r) {
  41025. r = {};
  41026. }
  41027. r[proj.getIdentifier()] = newProj;
  41028. }
  41029. return r;
  41030. }
  41031. /**
  41032. * delete items from query-subject.
  41033. * @param {QuerySubject} qs - query subject.
  41034. * @param {Array} removedId - ids to be removed.
  41035. * @param {boolean[]} bDel - returned flags.
  41036. */
  41037. }, {
  41038. key: '_deleteItemsInQS',
  41039. value: function _deleteItemsInQS(qs, removedId, bDel) {
  41040. var items = qs.basicGetItem();
  41041. if (!items || items.length == 0) {
  41042. return;
  41043. }
  41044. var delList = [];
  41045. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41046. var itm = __exp_enFor0[__i_enFor0];
  41047. QuerySubjectUtils._deleteItemType(itm, delList, removedId, bDel);
  41048. }
  41049. for (var __i_enFor1 = 0, __exp_enFor1 = delList, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  41050. var delItm = __exp_enFor1[__i_enFor1];
  41051. bDel[0] = true;
  41052. qs.removeItem(delItm);
  41053. }
  41054. }
  41055. /**
  41056. * delete item.
  41057. * @param {ItemType} itm - item.
  41058. * @param {Array} delList - returned list.
  41059. * @param {Array} removedId - id to be deleted.
  41060. * @param {boolean[]} bDel - returned flags.
  41061. */
  41062. }, {
  41063. key: '_deleteItemType',
  41064. value: function _deleteItemType(itm, delList, removedId, bDel) {
  41065. var qi = itm.getQueryItem();
  41066. if (qi) {
  41067. var id = qi.getIdentifier();
  41068. if (id == qi.getExpression()) {
  41069. if (removedId.indexOf(id) > -1) {
  41070. delList.push(itm);
  41071. }
  41072. } else {
  41073. bDel[1] = true;
  41074. }
  41075. } else {
  41076. var fld = itm.getFolder();
  41077. if (fld) {
  41078. QuerySubjectUtils._deleteItemsInFolder(fld, removedId, bDel);
  41079. }
  41080. }
  41081. }
  41082. /**
  41083. * delete items from folder.
  41084. * @param {Folder} theFolder - folder.
  41085. * @param {Array} removedId - id to be deleted.
  41086. * @param {boolean[]} bDel - returned flags.
  41087. */
  41088. }, {
  41089. key: '_deleteItemsInFolder',
  41090. value: function _deleteItemsInFolder(theFolder, removedId, bDel) {
  41091. var items = theFolder.basicGetItem();
  41092. if (!items || items.length == 0) {
  41093. return;
  41094. }
  41095. var delList = [];
  41096. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41097. var itm = __exp_enFor0[__i_enFor0];
  41098. QuerySubjectUtils._deleteItemType(itm, delList, removedId, bDel);
  41099. }
  41100. for (var __i_enFor1 = 0, __exp_enFor1 = delList, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  41101. var delItm = __exp_enFor1[__i_enFor1];
  41102. bDel[0] = true;
  41103. theFolder.removeItem(delItm);
  41104. }
  41105. }
  41106. /**
  41107. * update item in QS.
  41108. * @param {QuerySubject} qs qs.
  41109. * @param {Object} updatedId id to update.
  41110. */
  41111. }, {
  41112. key: '_updateItemsInQS',
  41113. value: function _updateItemsInQS(qs, updatedId) {
  41114. var items = qs.basicGetItem();
  41115. if (!items || items.length == 0) {
  41116. return;
  41117. }
  41118. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41119. var itm = __exp_enFor0[__i_enFor0];
  41120. QuerySubjectUtils._updateItemType(itm, updatedId);
  41121. }
  41122. }
  41123. /**
  41124. * update item.
  41125. * @param {ItemType} itm - item.
  41126. * @param {Object} updatedId id to update.
  41127. */
  41128. }, {
  41129. key: '_updateItemType',
  41130. value: function _updateItemType(itm, updatedId) {
  41131. var qi = itm.getQueryItem();
  41132. if (qi) {
  41133. var id = qi.getIdentifier();
  41134. if (id == qi.getExpression()) {
  41135. var proj = updatedId[id];
  41136. if (proj) {
  41137. qi.setNullable(proj.isNullable());
  41138. qi.setDatatype(proj.getDatatype());
  41139. qi.setHighlevelDatatype(proj.getHighlevelDatatype());
  41140. }
  41141. }
  41142. } else {
  41143. var fld = itm.getFolder();
  41144. if (fld) {
  41145. QuerySubjectUtils._updateItemsInFolder(fld, updatedId);
  41146. }
  41147. }
  41148. }
  41149. /**
  41150. * update items in folder.
  41151. * @param {Folder} theFolder - folder.
  41152. * @param {Object} updatedId id to update.
  41153. */
  41154. }, {
  41155. key: '_updateItemsInFolder',
  41156. value: function _updateItemsInFolder(theFolder, updatedId) {
  41157. var items = theFolder.basicGetItem();
  41158. if (!items || items.length == 0) {
  41159. return;
  41160. }
  41161. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41162. var itm = __exp_enFor0[__i_enFor0];
  41163. QuerySubjectUtils._updateItemType(itm, updatedId);
  41164. }
  41165. }
  41166. /**
  41167. * collect existing items.
  41168. * @param {QuerySubject} qs qs.
  41169. * @param {Object} existIds returned ids.
  41170. */
  41171. }, {
  41172. key: '_collectObjectIdsInQS',
  41173. value: function _collectObjectIdsInQS(qs, existIds) {
  41174. var items = qs.basicGetItem();
  41175. if (!items || items.length == 0) {
  41176. return;
  41177. }
  41178. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41179. var itm = __exp_enFor0[__i_enFor0];
  41180. QuerySubjectUtils._collectObjectIdsInItem(itm, existIds);
  41181. }
  41182. }
  41183. /**
  41184. * collect existing items.
  41185. * @param {ItemType} itm item.
  41186. * @param {Object} existIds returned ids.
  41187. */
  41188. }, {
  41189. key: '_collectObjectIdsInItem',
  41190. value: function _collectObjectIdsInItem(itm, existIds) {
  41191. var qi = itm.getQueryItem();
  41192. if (qi) {
  41193. var id = qi.getIdentifier();
  41194. existIds[id] = 1;
  41195. } else {
  41196. var fld = itm.getFolder();
  41197. if (fld) {
  41198. QuerySubjectUtils._collectObjectIdsInFolder(fld, existIds);
  41199. }
  41200. }
  41201. }
  41202. /**
  41203. * collect existing items.
  41204. * @param {Folder} theFolder theFolder.
  41205. * @param {Object} existIds returned ids.
  41206. */
  41207. }, {
  41208. key: '_collectObjectIdsInFolder',
  41209. value: function _collectObjectIdsInFolder(theFolder, existIds) {
  41210. var items = theFolder.basicGetItem();
  41211. if (!items || items.length == 0) {
  41212. return;
  41213. }
  41214. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41215. var itm = __exp_enFor0[__i_enFor0];
  41216. QuerySubjectUtils._collectObjectIdsInItem(itm, existIds);
  41217. }
  41218. }
  41219. /**
  41220. * add new query items.
  41221. * @param {QuerySubject} qs existing QS.
  41222. * @param {Array} addedByExternalName new to be added.
  41223. * @param {QuerySubject} newQS new QS.
  41224. */
  41225. }, {
  41226. key: '_addQueryItems',
  41227. value: function _addQueryItems(qs, addedByExternalName, newQS) {
  41228. var existIds = {};
  41229. QuerySubjectUtils._collectObjectIdsInQS(qs, existIds);
  41230. var sqlQuery = qs.getSqlQuery();
  41231. for (var __i_enFor0 = 0, __exp_enFor0 = addedByExternalName, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41232. var s = __exp_enFor0[__i_enFor0];
  41233. var proj = QuerySubjectUtils._getProjectedItemTypeByExtName(sqlQuery, s);
  41234. var id = proj.getIdentifier();
  41235. var newId = QuerySubjectUtils._makeUnique(existIds, id);
  41236. var aItem = QuerySubjectUtils.getItemTypeByIdAndQuerySubject(id, newQS);
  41237. var cloned = aItem.clone();
  41238. if (!(newId == id)) {
  41239. existIds[newId] = 1;
  41240. var qi = cloned.getQueryItem();
  41241. qi.setIdentifier(newId);
  41242. qi.setIdForExpression(qs.getIdentifier() + "." + newId);
  41243. qi.setExpression(newId);
  41244. proj.setIdentifier(newId);
  41245. proj.setIdForExpression(sqlQuery.getIdentifier() + "." + newId);
  41246. }
  41247. qs.addItem(cloned);
  41248. }
  41249. }
  41250. /**
  41251. * make it unique.
  41252. * @param {Object} existIds existing.
  41253. * @param {String} validId id.
  41254. * @return {String} new id.
  41255. */
  41256. }, {
  41257. key: '_makeUnique',
  41258. value: function _makeUnique(existIds, validId) {
  41259. var identifier = validId;
  41260. var iSuffix = 0;
  41261. while (existIds.hasOwnProperty(identifier)) {
  41262. identifier = validId + '_' + ++iSuffix;
  41263. }
  41264. return iSuffix > 0 ? validId + '_' + iSuffix : validId;
  41265. }
  41266. /**
  41267. * get the item type. there is no folder.
  41268. * @param {String} id id.
  41269. * @param {QuerySubject} qs qs.
  41270. * @return {ItemType} ItemType.
  41271. */
  41272. }, {
  41273. key: 'getItemTypeByIdAndQuerySubject',
  41274. value: function getItemTypeByIdAndQuerySubject(id, qs) {
  41275. if (!qs) {
  41276. return null;
  41277. }
  41278. var items = qs.basicGetItem();
  41279. if (!items || items.length == 0) {
  41280. return null;
  41281. }
  41282. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41283. var itm = __exp_enFor0[__i_enFor0];
  41284. var qi = itm.getQueryItem();
  41285. if (qi) {
  41286. var qiId = qi.getIdentifier();
  41287. if (id == qiId) {
  41288. return itm;
  41289. }
  41290. }
  41291. }
  41292. return null;
  41293. }
  41294. /**
  41295. * collect filters in folder.
  41296. * @param {Folder} theFolder folder.
  41297. * @param {Array} itemFilters returned filters.
  41298. */
  41299. }, {
  41300. key: '_collectFilterInFolder',
  41301. value: function _collectFilterInFolder(theFolder, itemFilters) {
  41302. var items = theFolder.basicGetItem();
  41303. if (!items || items.length == 0) {
  41304. return;
  41305. }
  41306. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41307. var itm = __exp_enFor0[__i_enFor0];
  41308. var f = itm.getFilter();
  41309. if (f) {
  41310. itemFilters.push(f);
  41311. } else {
  41312. var fld = itm.getFolder();
  41313. if (fld) {
  41314. QuerySubjectUtils._collectFilterInFolder(fld, itemFilters);
  41315. }
  41316. }
  41317. }
  41318. }
  41319. /**
  41320. * get query items with split / filter.
  41321. * @param {Module} module module.
  41322. * @param {QueryItem} exclQI query item to exclude.
  41323. * @return {Array} query items with split / filter.
  41324. */
  41325. }, {
  41326. key: 'listComparableQueryItems',
  41327. value: function listComparableQueryItems(module, exclQI) {
  41328. var rt = [];
  41329. var qsList = _MoserObjectUtils2.default.getList(module.basicGetQuerySubject());
  41330. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41331. var qs = __exp_enFor0[__i_enFor0];
  41332. for (var __i_enFor1 = 0, __exp_enFor1 = _MoserObjectUtils2.default.getQueryItems(qs), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  41333. var qi = __exp_enFor1[__i_enFor1];
  41334. if (qi == exclQI) {
  41335. continue;
  41336. }
  41337. var sp = qi.basicGetSplitDefinition();
  41338. if (!sp || sp.length == 0) {
  41339. continue;
  41340. }
  41341. var items = qi.basicGetItem();
  41342. if (!items || items.length == 0) {
  41343. continue;
  41344. }
  41345. var itemFilters = [];
  41346. for (var __i_enFor2 = 0, __exp_enFor2 = items, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  41347. var itm = __exp_enFor2[__i_enFor2];
  41348. var f = itm.getFilter();
  41349. if (f) {
  41350. itemFilters.push(f);
  41351. } else {
  41352. var fld = itm.getFolder();
  41353. if (fld) {
  41354. QuerySubjectUtils._collectFilterInFolder(fld, itemFilters);
  41355. }
  41356. }
  41357. }
  41358. if (!(itemFilters.length == 0)) {
  41359. rt.push(qi);
  41360. }
  41361. }
  41362. }
  41363. return rt;
  41364. }
  41365. }, {
  41366. key: 'queryItemAllowPostAggregate',
  41367. value: function queryItemAllowPostAggregate(qi) {
  41368. var usage = qi.getUsage();
  41369. var qs = QuerySubjectUtils.getParentQuerySubject(qi);
  41370. var expr = qi.getExpression();
  41371. return QuerySubjectUtils._allowPostAggregate(expr, qs, usage, qi);
  41372. }
  41373. }, {
  41374. key: 'expressionAllowPostAggregate',
  41375. value: function expressionAllowPostAggregate(expr, qs, usage) {
  41376. return QuerySubjectUtils._allowPostAggregate(expr, qs, usage, null);
  41377. }
  41378. }, {
  41379. key: '_allowPostAggregate',
  41380. value: function _allowPostAggregate(expr, qs, usage, qi) {
  41381. if (!(_UsageType2.default.FACT === usage)) {
  41382. return false;
  41383. }
  41384. if (!qs) {
  41385. return false;
  41386. }
  41387. var qsId = qs.getIdentifier();
  41388. var ids = _ItemScanner2.default.collectIdentifiers(expr);
  41389. if (ids.length == 0) {
  41390. return true;
  41391. }
  41392. var allQIs = {};
  41393. var qis = _MoserObjectUtils2.default.getQueryItems(qs);
  41394. for (var __i_enFor0 = 0, __exp_enFor0 = qis, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41395. var aQI = __exp_enFor0[__i_enFor0];
  41396. if (aQI === qi) {
  41397. continue;
  41398. }
  41399. allQIs[aQI.getIdForExpression()] = 1;
  41400. }
  41401. for (var __i_enFor1 = 0, __exp_enFor1 = ids, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  41402. var id = __exp_enFor1[__i_enFor1];
  41403. var fullId = QuerySubjectUtils._getNormalized(id, qsId);
  41404. if (!allQIs.hasOwnProperty(fullId)) {
  41405. return false;
  41406. }
  41407. }
  41408. return true;
  41409. }
  41410. }, {
  41411. key: '_getNormalized',
  41412. value: function _getNormalized(id, qsId) {
  41413. var bDot = false;
  41414. var p = QuerySubjectUtils._skipBracket(id[0]);
  41415. var sb = "";
  41416. if (!(qsId == p)) {
  41417. sb += qsId;
  41418. bDot = true;
  41419. }
  41420. for (var __i_enFor0 = 0, __len_enFor0 = id.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41421. var s = id[__i_enFor0];
  41422. if (bDot) {
  41423. sb += ".";
  41424. } else {
  41425. bDot = true;
  41426. }
  41427. sb += QuerySubjectUtils._skipBracket(s);
  41428. }
  41429. return sb;
  41430. }
  41431. }, {
  41432. key: '_skipBracket',
  41433. value: function _skipBracket(value) {
  41434. var s = value;
  41435. if (s.startsWith("[") && s.endsWith("]")) {
  41436. s = s.substring(1, s.length - 1);
  41437. return s.replace(new RegExp("]]", "g"), "]");
  41438. }
  41439. return s;
  41440. }
  41441. //constructor()
  41442. }]);
  41443. return QuerySubjectUtils;
  41444. }(_BaseMoserObject3.default);
  41445. exports.default = QuerySubjectUtils;
  41446. /***/ },
  41447. /* 117 */
  41448. /***/ function(module, exports, __webpack_require__) {
  41449. 'use strict';
  41450. Object.defineProperty(exports, "__esModule", {
  41451. value: true
  41452. });
  41453. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  41454. var _BaseMoserObject2 = __webpack_require__(2);
  41455. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  41456. var _InstanceType = __webpack_require__(11);
  41457. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  41458. var _MoserObjectUtils = __webpack_require__(27);
  41459. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  41460. var _ReferenceResolver = __webpack_require__(40);
  41461. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  41462. var _UseSpecType = __webpack_require__(55);
  41463. var _UseSpecType2 = _interopRequireDefault(_UseSpecType);
  41464. var _PropertyType = __webpack_require__(79);
  41465. var _PropertyType2 = _interopRequireDefault(_PropertyType);
  41466. var _CommonResolverUtil = __webpack_require__(118);
  41467. var _CommonResolverUtil2 = _interopRequireDefault(_CommonResolverUtil);
  41468. var _FolderType = __webpack_require__(106);
  41469. var _FolderType2 = _interopRequireDefault(_FolderType);
  41470. var _FolderItemType = __webpack_require__(47);
  41471. var _FolderItemType2 = _interopRequireDefault(_FolderItemType);
  41472. var _QuerySubject = __webpack_require__(25);
  41473. var _QuerySubject2 = _interopRequireDefault(_QuerySubject);
  41474. var _Relationship = __webpack_require__(37);
  41475. var _Relationship2 = _interopRequireDefault(_Relationship);
  41476. var _Filter = __webpack_require__(41);
  41477. var _Filter2 = _interopRequireDefault(_Filter);
  41478. var _Calculation = __webpack_require__(42);
  41479. var _Calculation2 = _interopRequireDefault(_Calculation);
  41480. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  41481. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  41482. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  41483. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  41484. ** IBM Confidential
  41485. **
  41486. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  41487. **
  41488. ** (C) Copyright IBM Corp. 2020
  41489. **
  41490. ** The source code for this program is not published or otherwise divested of its trade secrets,
  41491. ** irrespective of what has been deposited with the U.S. Copyright Office.
  41492. ************************************************************************/
  41493. // GENERATED
  41494. //@import BaseMoserObject (loadtime) // superclass
  41495. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (static) // InstanceType
  41496. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // getList
  41497. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (static) // getFirstPart, findRefById
  41498. //@import com/ibm/bi/platform/moser/common/generated/metadata/UseSpecType (static) // UseSpecType
  41499. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertyType (static) // new
  41500. //@import com/ibm/bi/platform/moser/core/metadata/util/CommonResolverUtil (runtime) // getFMPlaceHolderInMDTV
  41501. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderType (runtime) // new
  41502. //@import com/ibm/bi/platform/moser/common/generated/metadata/FolderItemType (runtime) // new
  41503. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubject (static) // new
  41504. //@import com/ibm/bi/platform/moser/common/generated/metadata/Relationship (static) // new
  41505. //@import com/ibm/bi/platform/moser/common/generated/metadata/Filter (static) // new
  41506. //@import com/ibm/bi/platform/moser/common/generated/metadata/Calculation (static) // new
  41507. /**
  41508. * Util class to convert resolved logical module into a module without any metadata (for saving) This class will be translated into javascript, so think twice before adding new import. All unit tests are in LogicalModuleResolverTest
  41509. * @author mohamedelgemaiey
  41510. */
  41511. var DataModuleExtractor = function (_BaseMoserObject) {
  41512. _inherits(DataModuleExtractor, _BaseMoserObject);
  41513. function DataModuleExtractor() {
  41514. _classCallCheck(this, DataModuleExtractor);
  41515. return _possibleConstructorReturn(this, (DataModuleExtractor.__proto__ || Object.getPrototypeOf(DataModuleExtractor)).apply(this, arguments));
  41516. }
  41517. _createClass(DataModuleExtractor, null, [{
  41518. key: '_removeSplitDefinitionMetadata$0',
  41519. /**
  41520. * Remove split definition metadata.
  41521. * @param {QueryItem} parentQI parent query item.
  41522. * @param split
  41523. */
  41524. value: function _removeSplitDefinitionMetadata$0(parentQI, splitDefinition) {
  41525. if (!splitDefinition) {
  41526. return;
  41527. }
  41528. for (var __i_enFor0 = 0, __exp_enFor0 = splitDefinition, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41529. var split = __exp_enFor0[__i_enFor0];
  41530. DataModuleExtractor._removeSplitDefinitionMetadata$1(parentQI, split);
  41531. }
  41532. }
  41533. /**
  41534. * Remove split definition metadata.
  41535. * @param {QueryItem} parentQI parent query item.
  41536. * @param {SplitType} split
  41537. */
  41538. }, {
  41539. key: '_removeSplitDefinitionMetadata$1',
  41540. value: function _removeSplitDefinitionMetadata$1(parentQI, split) {
  41541. if (_InstanceType2.default.REFERENCE === split.getInstanceType()) {
  41542. var items = parentQI.basicGetItem();
  41543. DataModuleExtractor._clearList(items);
  41544. }
  41545. var splitItems = _MoserObjectUtils2.default.getList(split.basicGetItem());
  41546. for (var __i_enFor0 = 0, __exp_enFor0 = splitItems, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41547. var item = __exp_enFor0[__i_enFor0];
  41548. var qi = item.getQueryItem();
  41549. if (qi) {
  41550. if (_InstanceType2.default.MISSING === qi.getInstanceType()) {
  41551. qi.setInstanceType(_InstanceType2.default.REFERENCE);
  41552. } else {
  41553. DataModuleExtractor._removeUnoverridenQueryItemProperties(qi, false);
  41554. DataModuleExtractor._removeGeneratedQueryItemProperties(qi);
  41555. qi.setFacetDefinition(null);
  41556. qi.setSourceCategory(null);
  41557. }
  41558. }
  41559. }
  41560. }
  41561. }, {
  41562. key: '_getReferencedModuleUseSpec',
  41563. value: function _getReferencedModuleUseSpec(qsRef, useSpecList) {
  41564. if (!useSpecList) {
  41565. return null;
  41566. }
  41567. var referencedModuleAlias = _ReferenceResolver2.default.getFirstPart(qsRef);
  41568. for (var __i_enFor0 = 0, __exp_enFor0 = useSpecList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41569. var useSpec = __exp_enFor0[__i_enFor0];
  41570. if (useSpec.getIdentifier() == referencedModuleAlias) {
  41571. return useSpec;
  41572. }
  41573. }
  41574. return null;
  41575. }
  41576. }, {
  41577. key: '_removeUnoverridenQuerySubjectFilters',
  41578. value: function _removeUnoverridenQuerySubjectFilters(qs) {
  41579. var filters = _MoserObjectUtils2.default.getList(qs.basicGetFilter());
  41580. for (var i = filters.length - 1; i >= 0; --i) {
  41581. var filter = filters[i];
  41582. var propertyOverride = filter.basicGetPropertyOverride();
  41583. if (!propertyOverride || !(propertyOverride.indexOf("NEW") > -1)) {
  41584. filters.splice(i, 1);
  41585. }
  41586. var propOverrides = filter.basicGetPropertyOverride();
  41587. DataModuleExtractor._clearList(propOverrides);
  41588. }
  41589. }
  41590. }, {
  41591. key: '_removeUnoverridenObjectTypeProperties',
  41592. value: function _removeUnoverridenObjectTypeProperties(obj) {
  41593. var propertyOverride = obj.basicGetPropertyOverride();
  41594. if (!propertyOverride || !(propertyOverride.indexOf("label") > -1)) {
  41595. obj.setLabel(null);
  41596. }
  41597. if (!propertyOverride || !(propertyOverride.indexOf("comment") > -1)) {
  41598. obj.setComment(null);
  41599. }
  41600. if (!propertyOverride || !(propertyOverride.indexOf("description") > -1)) {
  41601. obj.setDescription(null);
  41602. }
  41603. if (!propertyOverride || !(propertyOverride.indexOf("screenTip") > -1)) {
  41604. obj.setScreenTip(null);
  41605. }
  41606. if (!propertyOverride || !(propertyOverride.indexOf("hidden") > -1)) {
  41607. obj.setHidden(null);
  41608. }
  41609. DataModuleExtractor._removeUnoverridenProperty(obj.basicGetProperty(), obj.basicGetPropertyOverride());
  41610. }
  41611. }, {
  41612. key: 'propertyOverrideContains',
  41613. value: function propertyOverrideContains(propertyOverride, propName) {
  41614. return propertyOverride && propertyOverride.indexOf(propName) > -1;
  41615. }
  41616. /**
  41617. * Remove query item properties that was not overridden
  41618. * @param {QueryItem} queryItem
  41619. * @param {boolean} keepPropOverride
  41620. */
  41621. }, {
  41622. key: '_removeUnoverridenQueryItemProperties',
  41623. value: function _removeUnoverridenQueryItemProperties(queryItem, keepPropOverride) {
  41624. var propertyOverride = queryItem.basicGetPropertyOverride();
  41625. if (propertyOverride && propertyOverride.indexOf("NEW") > -1) {
  41626. DataModuleExtractor._removeSplitDefinitionMetadata$0(queryItem, queryItem.basicGetSplitDefinition());
  41627. } else {
  41628. DataModuleExtractor._removeUnoverridenBaseQueryItemTypeProperties(queryItem);
  41629. DataModuleExtractor._clearList(queryItem.basicGetConcepts());
  41630. queryItem.setMinimumValue(null);
  41631. queryItem.setMaximumValue(null);
  41632. queryItem.setNumberOfDistinctValues(null);
  41633. queryItem.setNumberOfNullValues(null);
  41634. DataModuleExtractor._removeUnoverridenCalculatedMember(queryItem.basicGetCalculatedMember());
  41635. }
  41636. DataModuleExtractor._removeUnoverridenPropertyOverride(queryItem, keepPropOverride);
  41637. }
  41638. /**
  41639. * Remove Calculation properties that was not overridden.
  41640. * @param {Calculation} calc Calculation.
  41641. * @param {boolean} keepPropOverride
  41642. */
  41643. }, {
  41644. key: '_removeUnoverridenCalculationProperties',
  41645. value: function _removeUnoverridenCalculationProperties(calc, keepPropOverride) {
  41646. DataModuleExtractor._removeUnoverridenBaseQueryItemTypeProperties(calc);
  41647. DataModuleExtractor._removeUnoverridenPropertyOverride(calc, keepPropOverride);
  41648. }
  41649. /**
  41650. * Remove BaseQueryItemType properties that was not overridden.
  41651. * @param {BaseQueryItemType} baseQueryItemType
  41652. */
  41653. }, {
  41654. key: '_removeUnoverridenBaseQueryItemTypeProperties',
  41655. value: function _removeUnoverridenBaseQueryItemTypeProperties(baseQueryItemType) {
  41656. var propertyOverride = baseQueryItemType.basicGetPropertyOverride();
  41657. if (!propertyOverride || !(propertyOverride.indexOf("NEW") > -1)) {
  41658. DataModuleExtractor._removeUnoverridenObjectTypeProperties(baseQueryItemType);
  41659. if (!propertyOverride || !(propertyOverride.indexOf("usage") > -1)) {
  41660. baseQueryItemType.setUsage(null);
  41661. }
  41662. if (!propertyOverride || !(propertyOverride.indexOf("regularAggregate") > -1)) {
  41663. baseQueryItemType.setRegularAggregate(null);
  41664. }
  41665. if (!propertyOverride || !(propertyOverride.indexOf("facetDefinition") > -1)) {
  41666. baseQueryItemType.setFacetDefinition(null);
  41667. }
  41668. if (!propertyOverride || !(propertyOverride.indexOf("format") > -1)) {
  41669. baseQueryItemType.setFormat(null);
  41670. }
  41671. if (!DataModuleExtractor.propertyOverrideContains(propertyOverride, "taxonomy")) {
  41672. DataModuleExtractor._clearList(baseQueryItemType.basicGetTaxonomy());
  41673. }
  41674. baseQueryItemType.setDatatype(null);
  41675. baseQueryItemType.setNullable(null);
  41676. baseQueryItemType.setExpression(null);
  41677. DataModuleExtractor._clearList(baseQueryItemType.basicGetSplitDefinition());
  41678. }
  41679. }
  41680. /**
  41681. * Remove filter properties that was not overridden.
  41682. * @param {Filter} flt Filter.
  41683. * @param {boolean} keepPropOverride
  41684. */
  41685. }, {
  41686. key: '_removeUnoverridenFilterProperties',
  41687. value: function _removeUnoverridenFilterProperties(flt, keepPropOverride) {
  41688. var propertyOverride = flt.basicGetPropertyOverride();
  41689. if (!propertyOverride || !(propertyOverride.indexOf("NEW") > -1)) {
  41690. DataModuleExtractor._removeUnoverridenObjectTypeProperties(flt);
  41691. flt.setExpression(null);
  41692. flt.setPostAutoAggregation(null);
  41693. }
  41694. DataModuleExtractor._removeUnoverridenPropertyOverride(flt, keepPropOverride);
  41695. }
  41696. /**
  41697. * Remove folder properties that was not overridden.
  41698. * @param {Folder} folder Folder.
  41699. * @param {boolean} keepPropOverride
  41700. */
  41701. }, {
  41702. key: '_removeUnoverridenFolderProperties',
  41703. value: function _removeUnoverridenFolderProperties(folder, keepPropOverride) {
  41704. var propertyOverride = folder.basicGetPropertyOverride();
  41705. if (!propertyOverride || !(propertyOverride.indexOf("NEW") > -1)) {
  41706. DataModuleExtractor._removeUnoverridenObjectTypeProperties(folder);
  41707. }
  41708. DataModuleExtractor._removeUnoverridenPropertyOverride(folder, keepPropOverride);
  41709. }
  41710. /**
  41711. * Remove namedSet properties that was not overridden.
  41712. * @param {NamedSet} ns NamedSet.
  41713. * @param {boolean} keepPropOverride
  41714. */
  41715. }, {
  41716. key: '_removeUnoverridenNamedSetProperties',
  41717. value: function _removeUnoverridenNamedSetProperties(ns, keepPropOverride) {
  41718. DataModuleExtractor._removeUnoverridenBaseQueryItemTypeProperties(ns);
  41719. DataModuleExtractor._removeUnoverridenPropertyOverride(ns, keepPropOverride);
  41720. }
  41721. /**
  41722. * @param {ObjectType} obj
  41723. * @param {boolean} keepPropOverride
  41724. */
  41725. }, {
  41726. key: '_removeUnoverridenPropertyOverride',
  41727. value: function _removeUnoverridenPropertyOverride(obj, keepPropOverride) {
  41728. var propertyOverride = obj.basicGetPropertyOverride();
  41729. if (!propertyOverride) {
  41730. return;
  41731. }
  41732. if (!keepPropOverride) {
  41733. propertyOverride.length = 0;
  41734. } else {
  41735. var ls = [];
  41736. Array.prototype.push.apply(ls, propertyOverride);
  41737. propertyOverride.length = 0;
  41738. for (var __i_enFor0 = 0, __exp_enFor0 = ls, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41739. var s = __exp_enFor0[__i_enFor0];
  41740. if (!(propertyOverride.indexOf(s) > -1)) {
  41741. propertyOverride.push(s);
  41742. }
  41743. }
  41744. }
  41745. }
  41746. }, {
  41747. key: '_removeGeneratedCalculationProperties',
  41748. value: function _removeGeneratedCalculationProperties(calc) {
  41749. calc.setIdForExpression(null);
  41750. }
  41751. }, {
  41752. key: '_removeGeneratedItemHierarchyProperties',
  41753. value: function _removeGeneratedItemHierarchyProperties(ih) {
  41754. ih.setIdForExpression(null);
  41755. }
  41756. }, {
  41757. key: '_removeGeneratedFilterProperties',
  41758. value: function _removeGeneratedFilterProperties(flt) {
  41759. flt.setIdForExpression(null);
  41760. }
  41761. }, {
  41762. key: '_removeGeneratedNamedSetProperties',
  41763. value: function _removeGeneratedNamedSetProperties(ns) {
  41764. ns.setIdForExpression(null);
  41765. }
  41766. }, {
  41767. key: '_removeGeneratedQueryItemProperties',
  41768. value: function _removeGeneratedQueryItemProperties(qi) {
  41769. qi.setIdForExpression(null);
  41770. qi.setHighlevelDatatype(null);
  41771. qi.setDatatypeCategory(null);
  41772. }
  41773. }, {
  41774. key: '_removeUnoverridenCalculatedMember',
  41775. value: function _removeUnoverridenCalculatedMember(cmList) {
  41776. if (!cmList) {
  41777. return;
  41778. }
  41779. for (var __i_enFor0 = 0, __exp_enFor0 = cmList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41780. var calMember = __exp_enFor0[__i_enFor0];
  41781. var propertyOverride = calMember.basicGetPropertyOverride();
  41782. if (!propertyOverride || !(propertyOverride.indexOf("NEW") > -1)) {
  41783. DataModuleExtractor._removeUnoverridenObjectTypeProperties(calMember);
  41784. }
  41785. DataModuleExtractor._clearList(propertyOverride);
  41786. }
  41787. }
  41788. /**
  41789. * Remove item hierarchy non overriden properties
  41790. */
  41791. }, {
  41792. key: '_removeUnoverridenItemHierarchyProperties',
  41793. value: function _removeUnoverridenItemHierarchyProperties(ih, keepPropOverride) {
  41794. var propertyOverride = ih.basicGetPropertyOverride();
  41795. if (!propertyOverride || !(propertyOverride.indexOf("NEW") > -1)) {
  41796. DataModuleExtractor._removeUnoverridenObjectTypeProperties(ih);
  41797. if (!propertyOverride || !(propertyOverride.indexOf("localRef") > -1)) {
  41798. DataModuleExtractor._clearList(ih.basicGetLocalRef());
  41799. }
  41800. DataModuleExtractor._removeUnoverridenCalculatedMember(ih.basicGetCalculatedMember());
  41801. }
  41802. DataModuleExtractor._removeUnoverridenPropertyOverride(ih, keepPropOverride);
  41803. }
  41804. }, {
  41805. key: '_clearList',
  41806. value: function _clearList(list) {
  41807. if (list) {
  41808. list.length = 0;
  41809. }
  41810. }
  41811. }, {
  41812. key: '_emptyList',
  41813. value: function _emptyList(list) {
  41814. return !list || list.length == 0;
  41815. }
  41816. }, {
  41817. key: 'notEmptyList',
  41818. value: function notEmptyList(list) {
  41819. return list && !(list.length == 0);
  41820. }
  41821. }, {
  41822. key: '_removeUnoverridenQuerySubjectProperties',
  41823. value: function _removeUnoverridenQuerySubjectProperties(qs) {
  41824. DataModuleExtractor._removeUnoverridenObjectTypeProperties(qs);
  41825. DataModuleExtractor._removeUnoverridenQuerySubjectFilters(qs);
  41826. DataModuleExtractor._clearList(qs.basicGetPropertyOverride());
  41827. DataModuleExtractor._clearList(qs.basicGetProperty());
  41828. qs.setNumberOfRows(null);
  41829. qs.setItemNormalization(null);
  41830. }
  41831. }, {
  41832. key: '_removeUnoverridenRelationshipProperties',
  41833. value: function _removeUnoverridenRelationshipProperties(relship) {
  41834. DataModuleExtractor._removeUnoverridenObjectTypeProperties(relship);
  41835. DataModuleExtractor._clearList(relship.basicGetPropertyOverride());
  41836. }
  41837. /**
  41838. * Remove filter's generated metadata
  41839. * @param {Array} filters
  41840. */
  41841. }, {
  41842. key: '_removeFilterListGeneratedMetadata',
  41843. value: function _removeFilterListGeneratedMetadata(filters) {
  41844. if (!filters) {
  41845. return;
  41846. }
  41847. for (var __i_enFor0 = 0, __exp_enFor0 = filters, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41848. var f = __exp_enFor0[__i_enFor0];
  41849. DataModuleExtractor._removeGeneratedFilterProperties(f);
  41850. }
  41851. }
  41852. }, {
  41853. key: '_isImported',
  41854. value: function _isImported(obj) {
  41855. var propOverride = obj.basicGetPropertyOverride();
  41856. return propOverride && propOverride.indexOf("Imported") > -1;
  41857. }
  41858. /**
  41859. * Remove the query subject metadata.
  41860. * @param {boolean} embed
  41861. * @param {Module} module
  41862. * @param {Array} packageModules
  41863. * @param {boolean} isEmbeddedModule
  41864. */
  41865. }, {
  41866. key: '_removeQuerySubjectMetadata',
  41867. value: function _removeQuerySubjectMetadata(embed, module, packageModules, isEmbeddedModule) {
  41868. var qsList = _MoserObjectUtils2.default.getList(module.basicGetQuerySubject());
  41869. for (var qsIndex = qsList.length - 1; qsIndex >= 0; --qsIndex) {
  41870. var qs = qsList[qsIndex];
  41871. if (_InstanceType2.default.REFERENCE === qs.getInstanceType()) {
  41872. var originalRef = qs.basicGetOriginalRef();
  41873. if (DataModuleExtractor.notEmptyList(originalRef)) {
  41874. var ref = qs.getRef();
  41875. ref.length = 0;
  41876. Array.prototype.push.apply(ref, originalRef);
  41877. originalRef.length = 0;
  41878. }
  41879. var originalOverrideSize = 0;
  41880. var originalOverride = qs.basicGetPropertyOverride();
  41881. if (originalOverride) {
  41882. originalOverrideSize = originalOverride.length;
  41883. }
  41884. var isImported = DataModuleExtractor._isImported(qs);
  41885. DataModuleExtractor._removeUnoverridenItems(qs.basicGetItem(), [], embed);
  41886. DataModuleExtractor._removeUnoverridenQuerySubjectProperties(qs);
  41887. DataModuleExtractor._removeFilterListGeneratedMetadata(qs.basicGetFilter());
  41888. if (isImported && originalOverrideSize == 1 && DataModuleExtractor._emptyList(qs.basicGetItem()) && DataModuleExtractor._emptyList(qs.basicGetFilter())) {
  41889. qsList.splice(qsIndex, 1);
  41890. } else {
  41891. qs.setIdForExpression(null);
  41892. }
  41893. } else if (_InstanceType2.default.MISSING === qs.getInstanceType()) {
  41894. qs.setInstanceType(null);
  41895. var qsRefs = _MoserObjectUtils2.default.getList(qs.basicGetRef());
  41896. for (var __i_enFor0 = 0, __exp_enFor0 = qsRefs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  41897. var ref = __exp_enFor0[__i_enFor0];
  41898. var useSpec = DataModuleExtractor._getReferencedModuleUseSpec(ref, module.basicGetUseSpec());
  41899. if (useSpec && _UseSpecType2.default.MODULE === useSpec.getType()) {
  41900. qs.setInstanceType(_InstanceType2.default.REFERENCE);
  41901. break;
  41902. }
  41903. }
  41904. var propertyOverride = qs.basicGetPropertyOverride();
  41905. if (propertyOverride && propertyOverride.indexOf("-" + "label") > -1) {
  41906. qs.setLabel(null);
  41907. }
  41908. if (DataModuleExtractor._isImported(qs)) {
  41909. qsList.splice(qsIndex, 1);
  41910. } else {
  41911. qs.setIdForExpression(null);
  41912. }
  41913. DataModuleExtractor._clearList(propertyOverride);
  41914. } else if (isEmbeddedModule || packageModules.indexOf(_ReferenceResolver2.default.getFirstPart(qs.getIdentifier())) > -1) {
  41915. qsList.splice(qsIndex, 1);
  41916. } else {
  41917. var items = qs.basicGetItem();
  41918. DataModuleExtractor._removeItemMetadata(items);
  41919. DataModuleExtractor._removeFilterListGeneratedMetadata(qs.basicGetFilter());
  41920. qs.setIdForExpression(null);
  41921. }
  41922. }
  41923. }
  41924. /**
  41925. * Walks an item list backwards and removes any item that is not overwritten.
  41926. * @param {Array} items
  41927. * @param {Array} path
  41928. * @param {boolean} embed
  41929. */
  41930. }, {
  41931. key: '_removeUnoverridenItems',
  41932. value: function _removeUnoverridenItems(items, path, embed) {
  41933. if (DataModuleExtractor._emptyList(items)) {
  41934. return;
  41935. }
  41936. for (var i = items.length - 1; i >= 0; --i) {
  41937. path.push("" + i);
  41938. var p = DataModuleExtractor._getPath(path);
  41939. var item = items[i];
  41940. if (item.getQueryItem()) {
  41941. var qi = item.getQueryItem();
  41942. DataModuleExtractor._clearList(qi.basicGetMembers());
  41943. var nestedItems = qi.basicGetItem();
  41944. DataModuleExtractor._removeUnoverridenItems(nestedItems, path, embed);
  41945. if (DataModuleExtractor._emptyList(nestedItems) && DataModuleExtractor._emptyList(qi.basicGetPropertyOverride()) && !DataModuleExtractor._isCalculatedMemberTypeChanged(qi.basicGetCalculatedMember())) {
  41946. items.splice(i, 1);
  41947. } else {
  41948. DataModuleExtractor._removeUnoverridenQueryItemProperties(qi, embed);
  41949. DataModuleExtractor._removeGeneratedQueryItemProperties(qi);
  41950. if (embed) {
  41951. DataModuleExtractor._setPathProperty(qi, p, false);
  41952. }
  41953. }
  41954. } else if (item.getNamedSet()) {
  41955. var ns = item.getNamedSet();
  41956. var nestedItems = ns.basicGetItem();
  41957. DataModuleExtractor._removeUnoverridenItems(nestedItems, path, embed);
  41958. if (DataModuleExtractor._emptyList(nestedItems) && DataModuleExtractor._emptyList(ns.basicGetPropertyOverride())) {
  41959. items.splice(i, 1);
  41960. } else {
  41961. DataModuleExtractor._removeUnoverridenNamedSetProperties(ns, embed);
  41962. DataModuleExtractor._removeGeneratedNamedSetProperties(ns);
  41963. if (embed) {
  41964. DataModuleExtractor._setPathProperty(ns, p, false);
  41965. }
  41966. }
  41967. } else if (item.getFilter()) {
  41968. var flt = item.getFilter();
  41969. if (DataModuleExtractor._emptyList(flt.basicGetPropertyOverride())) {
  41970. items.splice(i, 1);
  41971. } else {
  41972. DataModuleExtractor._removeUnoverridenFilterProperties(flt, embed);
  41973. DataModuleExtractor._removeGeneratedFilterProperties(flt);
  41974. if (embed) {
  41975. DataModuleExtractor._setPathProperty(flt, p, false);
  41976. }
  41977. }
  41978. } else if (item.getFolder()) {
  41979. var folder = item.getFolder();
  41980. var nestedItems = folder.basicGetItem();
  41981. DataModuleExtractor._removeUnoverridenItems(nestedItems, path, embed);
  41982. if (DataModuleExtractor._emptyList(nestedItems) && DataModuleExtractor._emptyList(folder.basicGetPropertyOverride())) {
  41983. items.splice(i, 1);
  41984. } else {
  41985. DataModuleExtractor._removeUnoverridenFolderProperties(folder, embed);
  41986. if (embed) {
  41987. DataModuleExtractor._setPathProperty(folder, p, false);
  41988. }
  41989. }
  41990. } else if (item.getItemHierarchy()) {
  41991. var ih = item.getItemHierarchy();
  41992. if (DataModuleExtractor._emptyList(ih.basicGetPropertyOverride()) && !DataModuleExtractor._isCalculatedMemberTypeChanged(ih.basicGetCalculatedMember())) {
  41993. items.splice(i, 1);
  41994. } else {
  41995. DataModuleExtractor._removeUnoverridenItemHierarchyProperties(ih, embed);
  41996. DataModuleExtractor._removeGeneratedItemHierarchyProperties(ih);
  41997. if (embed) {
  41998. DataModuleExtractor._setPathProperty(ih, p, false);
  41999. }
  42000. }
  42001. } else if (item.getCalculation()) {
  42002. var calc = item.getCalculation();
  42003. var nestedItems = calc.basicGetItem();
  42004. DataModuleExtractor._removeUnoverridenItems(nestedItems, path, embed);
  42005. if (DataModuleExtractor._emptyList(nestedItems) && DataModuleExtractor._emptyList(calc.basicGetPropertyOverride())) {
  42006. items.splice(i, 1);
  42007. } else {
  42008. DataModuleExtractor._removeUnoverridenCalculationProperties(calc, embed);
  42009. DataModuleExtractor._removeGeneratedCalculationProperties(calc);
  42010. if (embed) {
  42011. DataModuleExtractor._setPathProperty(calc, p, false);
  42012. }
  42013. }
  42014. }
  42015. path.splice(path.length - 1, 1);
  42016. }
  42017. }
  42018. }, {
  42019. key: '_getPath',
  42020. value: function _getPath(path) {
  42021. var sb = "";
  42022. for (var i = 0; i < path.length; ++i) {
  42023. if (i > 0) {
  42024. sb += ".";
  42025. }
  42026. sb += path[i];
  42027. }
  42028. return sb;
  42029. }
  42030. }, {
  42031. key: '_setPathProperty',
  42032. value: function _setPathProperty(obj, p, append) {
  42033. var prop;
  42034. var propList = obj.getProperty();
  42035. for (var __i_enFor0 = 0, __exp_enFor0 = propList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42036. var pp = __exp_enFor0[__i_enFor0];
  42037. if ("_path" == pp.getName()) {
  42038. prop = pp;
  42039. break;
  42040. }
  42041. }
  42042. if (!prop) {
  42043. prop = new _PropertyType2.default();
  42044. prop.setName("_path");
  42045. propList.push(prop);
  42046. }
  42047. if (!append) {
  42048. prop.setValue(p);
  42049. } else {
  42050. var old = prop.getValue();
  42051. if (old == null) {
  42052. prop.setValue(p);
  42053. } else {
  42054. prop.setValue(old + ";" + p);
  42055. }
  42056. }
  42057. }
  42058. /**
  42059. * @param {Array} items
  42060. */
  42061. }, {
  42062. key: '_removeItemMetadata',
  42063. value: function _removeItemMetadata(items) {
  42064. if (!items) {
  42065. return;
  42066. }
  42067. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42068. var item = __exp_enFor0[__i_enFor0];
  42069. var qi = item.getQueryItem();
  42070. if (qi) {
  42071. DataModuleExtractor._removeGeneratedQueryItemProperties(qi);
  42072. DataModuleExtractor._removeSplitDefinitionMetadata$0(qi, qi.basicGetSplitDefinition());
  42073. DataModuleExtractor._removeMembers(qi);
  42074. if (qi.basicGetItem()) {
  42075. DataModuleExtractor._removeItemMetadata(qi.basicGetItem());
  42076. }
  42077. }
  42078. var flt = item.getFilter();
  42079. if (flt) {
  42080. flt.setIdForExpression(null);
  42081. DataModuleExtractor._clearList(flt.basicGetPropertyOverride());
  42082. }
  42083. var folder = item.getFolder();
  42084. if (folder) {
  42085. DataModuleExtractor._removeItemMetadata(folder.basicGetItem());
  42086. }
  42087. }
  42088. }
  42089. /**
  42090. * Clears the list of members from all levels in a QueryItem
  42091. * @param {QueryItem} qi - a QueryItem object to have members removed from
  42092. */
  42093. }, {
  42094. key: '_removeMembers',
  42095. value: function _removeMembers(qi) {
  42096. DataModuleExtractor._clearList(qi.basicGetMembers());
  42097. var items = _MoserObjectUtils2.default.getList(qi.basicGetItem());
  42098. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42099. var item = __exp_enFor0[__i_enFor0];
  42100. var qi2 = item.getQueryItem();
  42101. if (qi2) {
  42102. DataModuleExtractor._removeMembers(qi2);
  42103. }
  42104. }
  42105. }
  42106. }, {
  42107. key: '_isCalculatedMemberTypeChanged',
  42108. value: function _isCalculatedMemberTypeChanged(calcMembList) {
  42109. if (DataModuleExtractor.notEmptyList(calcMembList)) {
  42110. for (var __i_enFor0 = 0, __exp_enFor0 = calcMembList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42111. var calcMember = __exp_enFor0[__i_enFor0];
  42112. if (DataModuleExtractor.notEmptyList(calcMember.basicGetPropertyOverride())) {
  42113. return true;
  42114. }
  42115. }
  42116. }
  42117. return false;
  42118. }
  42119. /**
  42120. * remove calculation metadata
  42121. * @param {Array} calcList
  42122. * @param {Array} packageModules
  42123. */
  42124. }, {
  42125. key: '_removeCalculationMetadata',
  42126. value: function _removeCalculationMetadata(calcList, packageModules) {
  42127. if (!calcList) {
  42128. return;
  42129. }
  42130. for (var i = calcList.length - 1; i >= 0; --i) {
  42131. var calc = calcList[i];
  42132. if (DataModuleExtractor._isImported(calc) || packageModules.indexOf(_ReferenceResolver2.default.getFirstPart(calc.getIdentifier())) > -1) {
  42133. calcList.splice(i, 1);
  42134. } else {
  42135. DataModuleExtractor._removeGeneratedCalculationProperties(calc);
  42136. }
  42137. }
  42138. }
  42139. /**
  42140. * remove relationship metadata
  42141. * @param {Array} relList
  42142. */
  42143. }, {
  42144. key: '_removeRelationshipMetadata',
  42145. value: function _removeRelationshipMetadata(relList) {
  42146. if (!relList) {
  42147. return;
  42148. }
  42149. for (var i = relList.length - 1; i >= 0; --i) {
  42150. var relship = relList[i];
  42151. if (_InstanceType2.default.REFERENCE === relship.getInstanceType() || _InstanceType2.default.MISSING === relship.getInstanceType()) {
  42152. if (DataModuleExtractor._isImported(relship) && DataModuleExtractor.notEmptyList(relship.basicGetPropertyOverride()) && relship.getPropertyOverride().length == 1) {
  42153. relList.splice(i, 1);
  42154. } else {
  42155. DataModuleExtractor._removeUnoverridenRelationshipProperties(relship);
  42156. relship.setLeft(null);
  42157. relship.setRight(null);
  42158. DataModuleExtractor._clearList(relship.basicGetLink());
  42159. if (_InstanceType2.default.MISSING === relship.getInstanceType()) {
  42160. relship.setInstanceType(_InstanceType2.default.REFERENCE);
  42161. }
  42162. }
  42163. } else if (DataModuleExtractor._isImported(relship)) {
  42164. relList.splice(i, 1);
  42165. }
  42166. }
  42167. }
  42168. /**
  42169. * Remove module filters' metadata
  42170. * @param {Array} filterList
  42171. * @param {Array} packageModules
  42172. */
  42173. }, {
  42174. key: '_removeGlobalFilterMetadata',
  42175. value: function _removeGlobalFilterMetadata(filterList, packageModules) {
  42176. if (!filterList) {
  42177. return;
  42178. }
  42179. for (var i = filterList.length - 1; i >= 0; --i) {
  42180. var filter = filterList[i];
  42181. if (DataModuleExtractor._isImported(filter) || packageModules.indexOf(_ReferenceResolver2.default.getFirstPart(filter.getIdentifier())) > -1) {
  42182. filterList.splice(i, 1);
  42183. }
  42184. }
  42185. }
  42186. /**
  42187. * Remove imported metadata
  42188. * @param {Array} list
  42189. */
  42190. }, {
  42191. key: '_removeListMetadata',
  42192. value: function _removeListMetadata(list, packageModules) {
  42193. if (!list) {
  42194. return;
  42195. }
  42196. for (var i = list.length - 1; i >= 0; --i) {
  42197. var obj = list[i];
  42198. if (DataModuleExtractor._isImported(obj) || packageModules.indexOf(_ReferenceResolver2.default.getFirstPart(obj.getIdentifier())) > -1) {
  42199. list.splice(i, 1);
  42200. }
  42201. }
  42202. }
  42203. /**
  42204. * Remove package's MDTV from the module
  42205. * @param {Module} module
  42206. * @param {Array} packageModules
  42207. */
  42208. }, {
  42209. key: '_removeMDTV',
  42210. value: function _removeMDTV(module, packageModules) {
  42211. if (!packageModules) {
  42212. return;
  42213. }
  42214. for (var __i_enFor0 = 0, __exp_enFor0 = packageModules, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42215. var moduleAlias = __exp_enFor0[__i_enFor0];
  42216. var placeHolder = _CommonResolverUtil2.default.getFMPlaceHolderInMDTV(module, moduleAlias);
  42217. if (!placeHolder) {
  42218. continue;
  42219. }
  42220. placeHolder.setLabel(null);
  42221. DataModuleExtractor._clearList(placeHolder.basicGetFolderItem());
  42222. var propertyOverride = placeHolder.basicGetPropertyOverride();
  42223. if (propertyOverride && DataModuleExtractor._isImported(placeHolder) && propertyOverride.indexOf("Imported") > -1) {
  42224. for (var i = propertyOverride.length - 1; i >= 0; --i) {
  42225. var prop = propertyOverride[i];
  42226. if ("Imported" == prop) {
  42227. propertyOverride.splice(i, 1);
  42228. }
  42229. }
  42230. }
  42231. if (placeHolder.getIdentifier() == null && propertyOverride && propertyOverride.indexOf(moduleAlias) > -1) {
  42232. placeHolder.setIdentifier(moduleAlias);
  42233. propertyOverride.length = 0;
  42234. }
  42235. }
  42236. }
  42237. }, {
  42238. key: '_removeImportedMDTV',
  42239. value: function _removeImportedMDTV(module, packageModules) {
  42240. var mdtv = module.basicGetMetadataTreeView();
  42241. if (DataModuleExtractor.notEmptyList(mdtv)) {
  42242. var dummyFolderForNewFolderItems = new _FolderType2.default();
  42243. var fiList = _MoserObjectUtils2.default.getList(mdtv[0].basicGetFolderItem());
  42244. for (var i = fiList.length - 1; i >= 0; --i) {
  42245. var fi = fiList[i];
  42246. var folder = fi.getFolder();
  42247. if (folder && DataModuleExtractor._isImported(folder)) {
  42248. fiList.splice(i, 1);
  42249. var path = [];
  42250. path.push("" + i);
  42251. DataModuleExtractor._collectNewFolderItems(dummyFolderForNewFolderItems, folder, path, module);
  42252. continue;
  42253. }
  42254. var ref = fi.getRef();
  42255. if (ref != null) {
  42256. var obj = _ReferenceResolver2.default.findRefById(ref, module);
  42257. if (!obj || DataModuleExtractor._isImported(obj)) {
  42258. fiList.splice(i, 1);
  42259. }
  42260. } else {
  42261. var f = fi.getFolder();
  42262. var id = f.getIdentifier();
  42263. if (id != null && id.indexOf("M") == 0 && packageModules.indexOf(id) > -1) {
  42264. fiList.splice(i, 1);
  42265. }
  42266. }
  42267. }
  42268. if (fiList.length == 0 && !dummyFolderForNewFolderItems.basicGetFolderItem()) {
  42269. module.getMetadataTreeView().splice(0, 1);
  42270. }
  42271. if (dummyFolderForNewFolderItems.basicGetFolderItem()) {
  42272. var dummyFolderItem = new _FolderItemType2.default();
  42273. dummyFolderItem.setFolder(dummyFolderForNewFolderItems);
  42274. fiList.push(dummyFolderItem);
  42275. }
  42276. }
  42277. }
  42278. /**
  42279. * collect Folder Items for the newly created objects like calculations from existing folder of data module. preserve them with position in dummyFolderForNewFolderItems.
  42280. * @param {FolderType} dummyFolderForNewFolderItems dummy folder containing Folder Items for the newly created objects from existing folder of data module.
  42281. * @param {FolderType} folder a folder in MDTV.
  42282. * @param {Array} path the chain position, e.g. 0.1
  42283. * @param {Module} module the current embed module.
  42284. */
  42285. }, {
  42286. key: '_collectNewFolderItems',
  42287. value: function _collectNewFolderItems(dummyFolderForNewFolderItems, folder, path, module) {
  42288. var fiList = folder.basicGetFolderItem();
  42289. if (!fiList) {
  42290. return;
  42291. }
  42292. for (var i = 0; i < fiList.length; ++i) {
  42293. path.push("" + i);
  42294. var fi = fiList[i];
  42295. var subFolder = fi.getFolder();
  42296. if (subFolder && DataModuleExtractor._isImported(subFolder)) {
  42297. DataModuleExtractor._collectNewFolderItems(dummyFolderForNewFolderItems, subFolder, path, module);
  42298. } else {
  42299. var ref = fi.getRef();
  42300. if (ref != null) {
  42301. var obj = _ReferenceResolver2.default.findRefById(ref, module);
  42302. if (obj && !DataModuleExtractor._isImported(obj)) {
  42303. dummyFolderForNewFolderItems.getFolderItem().push(fi);
  42304. var idOfParentFolder = folder.getIdentifier();
  42305. var p = null;
  42306. if (idOfParentFolder != null && !(idOfParentFolder.length === 0)) {
  42307. p = idOfParentFolder + "." + i;
  42308. } else {
  42309. p = DataModuleExtractor._getPath(path);
  42310. }
  42311. DataModuleExtractor._setPathProperty(dummyFolderForNewFolderItems, p, true);
  42312. }
  42313. }
  42314. }
  42315. path.splice(path.length - 1, 1);
  42316. }
  42317. }
  42318. }, {
  42319. key: '_isResolvedUseSpec',
  42320. value: function _isResolvedUseSpec(useSpec) {
  42321. return 0 == useSpec.getIdentifier().indexOf("__Base");
  42322. }
  42323. /**
  42324. * Remove all useSpec if is starts with "__Base"
  42325. * @param {Array} useSpecList
  42326. */
  42327. }, {
  42328. key: '_removeResolvedUseSpec',
  42329. value: function _removeResolvedUseSpec(module, useSpecList, isEmbeddedModule) {
  42330. if (!useSpecList) {
  42331. return;
  42332. }
  42333. for (var i = useSpecList.length - 1; i >= 0; --i) {
  42334. var useSpec = useSpecList[i];
  42335. if (DataModuleExtractor._isResolvedUseSpec(useSpec) || isEmbeddedModule && !("*" == useSpec.getImports()) && !DataModuleExtractor._isReferencedUseSpec(useSpec, module)) {
  42336. useSpecList.splice(i, 1);
  42337. }
  42338. }
  42339. }
  42340. /**
  42341. * Check if a UseSpec is referenced in the Module definition
  42342. * @param {UseSpec} useSpec
  42343. * @param {Module} module
  42344. * @return {boolean}
  42345. */
  42346. }, {
  42347. key: '_isReferencedUseSpec',
  42348. value: function _isReferencedUseSpec(useSpec, module) {
  42349. var querySubjects = module.basicGetQuerySubject();
  42350. if (querySubjects && !(querySubjects.length == 0)) {
  42351. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42352. var qs = __exp_enFor0[__i_enFor0];
  42353. var u = DataModuleExtractor.getUseSpec(qs, module, true);
  42354. if (useSpec == u) {
  42355. return true;
  42356. }
  42357. }
  42358. }
  42359. var relationships = module.basicGetRelationship();
  42360. if (relationships && !(relationships.length == 0)) {
  42361. for (var __i_enFor1 = 0, __exp_enFor1 = relationships, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  42362. var rel = __exp_enFor1[__i_enFor1];
  42363. var u = DataModuleExtractor.getUseSpec(rel, module, true);
  42364. if (useSpec == u) {
  42365. return true;
  42366. }
  42367. }
  42368. }
  42369. var calculations = module.basicGetCalculation();
  42370. if (calculations && !(calculations.length == 0)) {
  42371. for (var __i_enFor2 = 0, __exp_enFor2 = calculations, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  42372. var calc = __exp_enFor2[__i_enFor2];
  42373. var u = DataModuleExtractor.getUseSpec(calc, module, true);
  42374. if (useSpec == u) {
  42375. return true;
  42376. }
  42377. }
  42378. }
  42379. var filters = module.basicGetFilter();
  42380. if (filters && !(filters.length == 0)) {
  42381. for (var __i_enFor3 = 0, __exp_enFor3 = filters, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  42382. var filter = __exp_enFor3[__i_enFor3];
  42383. var u = DataModuleExtractor.getUseSpec(filter, module, true);
  42384. if (useSpec == u) {
  42385. return true;
  42386. }
  42387. }
  42388. }
  42389. return false;
  42390. }
  42391. /**
  42392. * @param {UseSpec} useSpec
  42393. * @param {Module} module
  42394. * @return {Array}
  42395. */
  42396. }, {
  42397. key: 'getUseSpecRefs',
  42398. value: function getUseSpecRefs(useSpec, module) {
  42399. var result = [];
  42400. var querySubjects = module.basicGetQuerySubject();
  42401. if (querySubjects && !(querySubjects.length == 0)) {
  42402. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42403. var qs = __exp_enFor0[__i_enFor0];
  42404. var u = DataModuleExtractor.getUseSpec(qs, module, true);
  42405. if (useSpec == u) {
  42406. result.push(qs);
  42407. }
  42408. }
  42409. }
  42410. var relationships = module.basicGetRelationship();
  42411. if (relationships && !(relationships.length == 0)) {
  42412. for (var __i_enFor1 = 0, __exp_enFor1 = relationships, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  42413. var rel = __exp_enFor1[__i_enFor1];
  42414. var u = DataModuleExtractor.getUseSpec(rel, module, true);
  42415. if (useSpec == u) {
  42416. result.push(rel);
  42417. }
  42418. }
  42419. }
  42420. var calculations = module.basicGetCalculation();
  42421. if (calculations && !(calculations.length == 0)) {
  42422. for (var __i_enFor2 = 0, __exp_enFor2 = calculations, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  42423. var calc = __exp_enFor2[__i_enFor2];
  42424. var u = DataModuleExtractor.getUseSpec(calc, module, true);
  42425. if (useSpec == u) {
  42426. result.push(calc);
  42427. }
  42428. }
  42429. }
  42430. var filters = module.basicGetFilter();
  42431. if (filters && !(filters.length == 0)) {
  42432. for (var __i_enFor3 = 0, __exp_enFor3 = filters, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  42433. var filter = __exp_enFor3[__i_enFor3];
  42434. var u = DataModuleExtractor.getUseSpec(filter, module, true);
  42435. if (useSpec == u) {
  42436. result.push(filter);
  42437. }
  42438. }
  42439. }
  42440. return result;
  42441. }
  42442. /**
  42443. * If you have a ObjectType, it may have a ref that point to an object in a source. This method returns the UseSpec that point to that source.
  42444. * @param {ObjectType} obj : ObjectType to find UseSpec for.
  42445. * @param {Module} m : the module that contains the object. if null, we'll try to find it using getParent()
  42446. * @param {boolean} originalRef : whether to check the original ref first
  42447. * @return {UseSpec} UseSpec of the referenced source or null if can't find it.
  42448. */
  42449. }, {
  42450. key: 'getUseSpec',
  42451. value: function getUseSpec(obj, m, originalRef) {
  42452. if (obj instanceof _QuerySubject2.default) {
  42453. return DataModuleExtractor._getQuerySubjectUseSpec(obj, m, originalRef);
  42454. }
  42455. if (obj instanceof _Relationship2.default) {
  42456. return DataModuleExtractor.getUseSpecByRef(m, obj.getRef(), true);
  42457. }
  42458. if (obj instanceof _Filter2.default) {
  42459. return DataModuleExtractor.getUseSpecByRef(m, obj.getIdentifier(), true);
  42460. }
  42461. if (obj instanceof _Calculation2.default) {
  42462. var spec = DataModuleExtractor.getUseSpecByRef(m, obj.getIdentifier(), true);
  42463. if (!spec) {
  42464. var embedded = !(m.getUseSpec().length == 0) && "*" == m.getUseSpec()[0].getImports();
  42465. if (embedded && obj.isImported()) {
  42466. return m.getUseSpec()[0];
  42467. }
  42468. }
  42469. return spec;
  42470. }
  42471. return null;
  42472. }
  42473. }, {
  42474. key: '_getUseSpecByRefs',
  42475. value: function _getUseSpecByRefs(module, refs, canBePackage) {
  42476. if (refs && !(refs.length == 0)) {
  42477. return DataModuleExtractor.getUseSpecByRef(module, refs[0], canBePackage);
  42478. }
  42479. return null;
  42480. }
  42481. /**
  42482. * If you have a QuerySubject, it may have a ref that point to an object in a source. This method returns the UseSpec that point to that source.
  42483. * @param {QuerySubject} qs : QuerySubject to find UseSpec for.
  42484. * @param m : the module that contains the object. if null, we'll try to find it using getParent()
  42485. * @param {boolean} originalRef : whether to check the original ref first
  42486. * @return {UseSpec} UseSpec of the referenced source or null if can't find it.
  42487. */
  42488. }, {
  42489. key: '_getQuerySubjectUseSpec',
  42490. value: function _getQuerySubjectUseSpec(qs, module, originalRef) {
  42491. var useSpec;
  42492. if (originalRef) {
  42493. useSpec = DataModuleExtractor._getUseSpecByRefs(module, qs.basicGetOriginalRef(), true);
  42494. if (useSpec) {
  42495. return useSpec;
  42496. }
  42497. }
  42498. useSpec = DataModuleExtractor._getUseSpecByRefs(module, qs.basicGetRef(), false);
  42499. if (useSpec) {
  42500. return useSpec;
  42501. }
  42502. if (!originalRef) {
  42503. useSpec = DataModuleExtractor._getUseSpecByRefs(module, qs.basicGetOriginalRef(), true);
  42504. if (useSpec) {
  42505. return useSpec;
  42506. }
  42507. }
  42508. return DataModuleExtractor.getUseSpecByRef(module, qs.getIdentifier(), true);
  42509. }
  42510. }, {
  42511. key: 'getUseSpecByRef',
  42512. value: function getUseSpecByRef(module, ref, canBePackage) {
  42513. var moduleAlias = _ReferenceResolver2.default.getFirstPart(ref);
  42514. if (moduleAlias != null && !(moduleAlias.length === 0)) {
  42515. var useSpec = DataModuleExtractor.getUseSpecById(module, moduleAlias);
  42516. if (!canBePackage && useSpec && _UseSpecType2.default.PACKAGE === useSpec.getType()) {
  42517. return null;
  42518. }
  42519. return useSpec;
  42520. }
  42521. return null;
  42522. }
  42523. /**
  42524. * get a usespec in a module using the useSpecId
  42525. * @param {Module} module
  42526. * @param {String} useSpecId
  42527. * @return {UseSpec}
  42528. */
  42529. }, {
  42530. key: 'getUseSpecById',
  42531. value: function getUseSpecById(module, useSpecId) {
  42532. var uSpecs = _MoserObjectUtils2.default.getList(module.basicGetUseSpec());
  42533. for (var __i_enFor0 = 0, __exp_enFor0 = uSpecs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42534. var useSpec = __exp_enFor0[__i_enFor0];
  42535. if (useSpecId == useSpec.getIdentifier()) {
  42536. return useSpec;
  42537. }
  42538. }
  42539. return null;
  42540. }
  42541. /**
  42542. * Remove all PropertyType from propertyList that are not included in the propertyOverride.
  42543. * @param {Array} propertyList
  42544. * @param {Array} propertyOverride
  42545. */
  42546. }, {
  42547. key: '_removeUnoverridenProperty',
  42548. value: function _removeUnoverridenProperty(propertyList, propertyOverride) {
  42549. if (!propertyList) {
  42550. return;
  42551. }
  42552. for (var i = propertyList.length - 1; i >= 0; --i) {
  42553. var property = propertyList[i];
  42554. if (!propertyOverride || !(propertyOverride.indexOf("property." + property.getName()) > -1)) {
  42555. propertyList.splice(i, 1);
  42556. }
  42557. }
  42558. }
  42559. /**
  42560. * Remove all metadata information from the module. i.e. unresolve the logical module
  42561. * @param {Module} module
  42562. */
  42563. }, {
  42564. key: 'removeModuleMetadata',
  42565. value: function removeModuleMetadata(module) {
  42566. var overrideMode = module.isOverrideMode();
  42567. module.setOverrideMode(false);
  42568. DataModuleExtractor._clearList(module.basicGetUse());
  42569. DataModuleExtractor._clearList(module.basicGetDataSource());
  42570. var useSpecList = _MoserObjectUtils2.default.getList(module.basicGetUseSpec());
  42571. var packageModules = [];
  42572. var isEmbeddedModule = DataModuleExtractor.isEmbeddedModule(useSpecList);
  42573. for (var __i_enFor0 = 0, __exp_enFor0 = useSpecList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42574. var useSpec = __exp_enFor0[__i_enFor0];
  42575. if (_UseSpecType2.default.PACKAGE === useSpec.getType() || _UseSpecType2.default.LW_OLAP === useSpec.getType() || _UseSpecType2.default.REPORT === useSpec.getType()) {
  42576. packageModules.push(useSpec.getIdentifier());
  42577. }
  42578. }
  42579. DataModuleExtractor._removeMDTV(module, packageModules);
  42580. if (isEmbeddedModule) {
  42581. DataModuleExtractor._removeImportedMDTV(module, packageModules);
  42582. }
  42583. DataModuleExtractor._removeQuerySubjectMetadata(isEmbeddedModule, module, packageModules, DataModuleExtractor.isEmbeddedModuleForPackage(module.basicGetUseSpec()));
  42584. DataModuleExtractor._removeCalculationMetadata(module.basicGetCalculation(), packageModules);
  42585. DataModuleExtractor._removeGlobalFilterMetadata(module.basicGetFilter(), packageModules);
  42586. DataModuleExtractor._removeRelationshipMetadata(module.basicGetRelationship());
  42587. DataModuleExtractor._removeListMetadata(module.basicGetDrillGroup(), packageModules);
  42588. DataModuleExtractor._removeListMetadata(module.basicGetParameterMap(), packageModules);
  42589. DataModuleExtractor._removeResolvedUseSpec(module, useSpecList, isEmbeddedModule);
  42590. DataModuleExtractor._removeNamedSetMetadata(module);
  42591. if (isEmbeddedModule) {
  42592. var propertyOverride = module.basicGetPropertyOverride();
  42593. DataModuleExtractor._removeUnoverridenProperty(module.basicGetProperty(), propertyOverride);
  42594. }
  42595. module.setOverrideMode(overrideMode);
  42596. }
  42597. /**
  42598. * Removes all members from all QueryItems within a given QuerySubject. This method extracts QueryItems from the items list.
  42599. * @param {QuerySubject} qs - a QuerySubject object to have members removed from
  42600. */
  42601. }, {
  42602. key: 'removeMembersFromQS',
  42603. value: function removeMembersFromQS(qs) {
  42604. var items = qs.basicGetItem();
  42605. if (items) {
  42606. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42607. var item = __exp_enFor0[__i_enFor0];
  42608. var qi = item.getQueryItem();
  42609. if (qi) {
  42610. DataModuleExtractor._removeMembers(qi);
  42611. }
  42612. }
  42613. }
  42614. }
  42615. }, {
  42616. key: '_removeNamedSetMetadata',
  42617. value: function _removeNamedSetMetadata(module) {
  42618. DataModuleExtractor._clearList(module.basicGetNamedSet());
  42619. }
  42620. /**
  42621. * if the first one imports * then it's embedded
  42622. * @param {Array} useSpecs
  42623. * @return {boolean} true if the first one imports * then it's embedded
  42624. */
  42625. }, {
  42626. key: 'isEmbeddedModule',
  42627. value: function isEmbeddedModule(useSpecs) {
  42628. return DataModuleExtractor.notEmptyList(useSpecs) && "*" == useSpecs[0].getImports();
  42629. }
  42630. /**
  42631. * This is a very narrow definition of an embedded module based on package used by dashboard. There is always only one package in the use spec, and it is always exactly one use, to a package
  42632. * @param module - Input module.
  42633. * @return {boolean}
  42634. */
  42635. }, {
  42636. key: 'isEmbeddedModuleForPackage',
  42637. value: function isEmbeddedModuleForPackage(useSpecs) {
  42638. return DataModuleExtractor.isEmbeddedModule(useSpecs) && (_UseSpecType2.default.PACKAGE === useSpecs[0].getType() || _UseSpecType2.default.REPORT === useSpecs[0].getType());
  42639. }
  42640. }, {
  42641. key: 'removeSplitDefinitionMetadata',
  42642. value: function removeSplitDefinitionMetadata(a0, a1) {
  42643. var args = arguments;
  42644. if (args.length == 2 && (a1 == null || Object.prototype.toString.call(a1) === "[object Array]")) {
  42645. return DataModuleExtractor.removeSplitDefinitionMetadata$0(a0, a1);
  42646. }
  42647. return DataModuleExtractor.removeSplitDefinitionMetadata$1(a0, a1);
  42648. }
  42649. //constructor()
  42650. }]);
  42651. return DataModuleExtractor;
  42652. }(_BaseMoserObject3.default);
  42653. exports.default = DataModuleExtractor;
  42654. /***/ },
  42655. /* 118 */
  42656. /***/ function(module, exports, __webpack_require__) {
  42657. 'use strict';
  42658. Object.defineProperty(exports, "__esModule", {
  42659. value: true
  42660. });
  42661. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  42662. var _BaseMoserObject2 = __webpack_require__(2);
  42663. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  42664. var _MoserObjectUtils = __webpack_require__(27);
  42665. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  42666. var _PropertyType = __webpack_require__(79);
  42667. var _PropertyType2 = _interopRequireDefault(_PropertyType);
  42668. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42669. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42670. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  42671. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  42672. ** IBM Confidential
  42673. **
  42674. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  42675. **
  42676. ** (C) Copyright IBM Corp. 2020
  42677. **
  42678. ** The source code for this program is not published or otherwise divested of its trade secrets,
  42679. ** irrespective of what has been deposited with the U.S. Copyright Office.
  42680. ************************************************************************/
  42681. // GENERATED
  42682. //@import BaseMoserObject (loadtime) // superclass
  42683. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (runtime) // getList
  42684. //@import com/ibm/bi/platform/moser/common/generated/metadata/PropertyType (runtime) // new
  42685. /**
  42686. * @author mohamedelgemaiey Utility class used by LogicalModuleResolver and ResolverUtil This class will be translated into javascript, so think twice before adding new import
  42687. */
  42688. var CommonResolverUtil = function (_BaseMoserObject) {
  42689. _inherits(CommonResolverUtil, _BaseMoserObject);
  42690. function CommonResolverUtil() {
  42691. _classCallCheck(this, CommonResolverUtil);
  42692. return _possibleConstructorReturn(this, (CommonResolverUtil.__proto__ || Object.getPrototypeOf(CommonResolverUtil)).apply(this, arguments));
  42693. }
  42694. _createClass(CommonResolverUtil, null, [{
  42695. key: 'getFMPlaceHolderInMDTV',
  42696. /**
  42697. * get the place holder in MDTV.
  42698. * @param {Module} m nodule.
  42699. * @param {String} moduleAlias alias.
  42700. * @return {FolderType} place holder or null.
  42701. */
  42702. value: function getFMPlaceHolderInMDTV(m, moduleAlias) {
  42703. if (!m) {
  42704. return null;
  42705. }
  42706. return CommonResolverUtil._getPlaceHolder(m.basicGetMetadataTreeView(), moduleAlias);
  42707. }
  42708. }, {
  42709. key: '_getPlaceHolder',
  42710. value: function _getPlaceHolder(lst, moduleAlias) {
  42711. if (!lst || lst.length == 0) {
  42712. return null;
  42713. }
  42714. var subList = [];
  42715. for (var __i_enFor0 = 0, __exp_enFor0 = lst, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42716. var f = __exp_enFor0[__i_enFor0];
  42717. if (moduleAlias == f.getIdentifier() || f.getIdentifier() == null && f.basicGetPropertyOverride() && f.basicGetPropertyOverride().indexOf(moduleAlias) > -1) {
  42718. return f;
  42719. }
  42720. var fItems = _MoserObjectUtils2.default.getList(f.basicGetFolderItem());
  42721. for (var __i_enFor1 = 0, __exp_enFor1 = fItems, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  42722. var itm = __exp_enFor1[__i_enFor1];
  42723. var c = itm.getFolder();
  42724. if (c) {
  42725. subList.push(c);
  42726. }
  42727. }
  42728. }
  42729. return CommonResolverUtil._getPlaceHolder(subList, moduleAlias);
  42730. }
  42731. /**
  42732. * Create a PropertyType with name/value, then add it the ObjectType, return previous property if set.
  42733. * @param {ObjectType} object
  42734. * @param {String} name
  42735. * @param {String} value
  42736. * @return {PropertyType} previous PropertyType if set
  42737. */
  42738. }, {
  42739. key: 'setProperty',
  42740. value: function setProperty(object, name, value) {
  42741. var previous = CommonResolverUtil.removeProperty(object, name);
  42742. var property = new _PropertyType2.default();
  42743. property.setName(name);
  42744. property.setValue(value);
  42745. object.addProperty(property);
  42746. return previous;
  42747. }
  42748. /**
  42749. * Remove a PropertyType with matching name.
  42750. * @param {ObjectType} object
  42751. * @param {String} name
  42752. * @return {PropertyType} previous PropertyType if set
  42753. */
  42754. }, {
  42755. key: 'removeProperty',
  42756. value: function removeProperty(object, name) {
  42757. var props = _MoserObjectUtils2.default.getList(object.basicGetProperty());
  42758. var iter = props.iterator();
  42759. while (iter.hasNext()) {
  42760. var p = iter.next();
  42761. if (p.getName() == name) {
  42762. iter.remove();
  42763. return p;
  42764. }
  42765. }
  42766. return null;
  42767. }
  42768. /**
  42769. * Get a PropertyType with name.
  42770. * @param {String} name
  42771. * @param value
  42772. * @return {String} PropertyType if set
  42773. */
  42774. }, {
  42775. key: 'getProperty',
  42776. value: function getProperty(object, name) {
  42777. var props = _MoserObjectUtils2.default.getList(object.basicGetProperty());
  42778. for (var __i_enFor0 = 0, __exp_enFor0 = props, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42779. var p = __exp_enFor0[__i_enFor0];
  42780. if (p.getName() == name) {
  42781. return p.getValue();
  42782. }
  42783. }
  42784. return null;
  42785. }
  42786. //constructor()
  42787. }]);
  42788. return CommonResolverUtil;
  42789. }(_BaseMoserObject3.default);
  42790. exports.default = CommonResolverUtil;
  42791. /***/ },
  42792. /* 119 */
  42793. /***/ function(module, exports, __webpack_require__) {
  42794. "use strict";
  42795. Object.defineProperty(exports, "__esModule", {
  42796. value: true
  42797. });
  42798. var _BaseMoserObject2 = __webpack_require__(2);
  42799. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  42800. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42801. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42802. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  42803. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  42804. ** IBM Confidential
  42805. **
  42806. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  42807. **
  42808. ** (C) Copyright IBM Corp. 2021
  42809. **
  42810. ** The source code for this program is not published or otherwise divested of its trade secrets,
  42811. ** irrespective of what has been deposited with the U.S. Copyright Office.
  42812. ************************************************************************/
  42813. // GENERATED
  42814. //@import BaseMoserObject (loadtime) // superclass
  42815. /**
  42816. * Place holder for the latest module version.
  42817. */
  42818. var ModuleVersion = function (_BaseMoserObject) {
  42819. _inherits(ModuleVersion, _BaseMoserObject);
  42820. function ModuleVersion() {
  42821. _classCallCheck(this, ModuleVersion);
  42822. return _possibleConstructorReturn(this, (ModuleVersion.__proto__ || Object.getPrototypeOf(ModuleVersion)).apply(this, arguments));
  42823. }
  42824. return ModuleVersion;
  42825. }(_BaseMoserObject3.default);
  42826. ModuleVersion.LATEST_VERSION = "11.1";
  42827. exports.default = ModuleVersion;
  42828. /***/ },
  42829. /* 120 */
  42830. /***/ function(module, exports, __webpack_require__) {
  42831. 'use strict';
  42832. Object.defineProperty(exports, "__esModule", {
  42833. value: true
  42834. });
  42835. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  42836. var _BaseMoserObject2 = __webpack_require__(2);
  42837. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  42838. var _ModuleUtils = __webpack_require__(114);
  42839. var _ModuleUtils2 = _interopRequireDefault(_ModuleUtils);
  42840. var _InstanceType = __webpack_require__(11);
  42841. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  42842. var _ReferenceResolver = __webpack_require__(40);
  42843. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  42844. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42845. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42846. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  42847. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  42848. ** IBM Confidential
  42849. **
  42850. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  42851. **
  42852. ** (C) Copyright IBM Corp. 2020
  42853. **
  42854. ** The source code for this program is not published or otherwise divested of its trade secrets,
  42855. ** irrespective of what has been deposited with the U.S. Copyright Office.
  42856. ************************************************************************/
  42857. // GENERATED
  42858. //@import BaseMoserObject (loadtime) // superclass
  42859. //@import com/ibm/bi/platform/moser/client/utils/ModuleUtils (runtime) // getUseSpecRefs
  42860. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (static) // InstanceType
  42861. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (runtime) // getSecondPart
  42862. /**
  42863. * Module relinker, used to relink a Module's UseSpec from one source to another.
  42864. * @author PASCALLacombe
  42865. */
  42866. var ModuleRelinker = function (_BaseMoserObject) {
  42867. _inherits(ModuleRelinker, _BaseMoserObject);
  42868. /**
  42869. * Constructor
  42870. * @param {Module} module
  42871. * @param {Module} newSrcModule
  42872. */
  42873. function ModuleRelinker(module, newSrcModule) {
  42874. _classCallCheck(this, ModuleRelinker);
  42875. var _this = _possibleConstructorReturn(this, (ModuleRelinker.__proto__ || Object.getPrototypeOf(ModuleRelinker)).call(this));
  42876. _this.module = null;
  42877. _this.newSrcModule = null;
  42878. _this.module = module;
  42879. _this.newSrcModule = newSrcModule;
  42880. return _this;
  42881. }
  42882. /**
  42883. * Relink a source in a module
  42884. * @param {UseSpec} useSpec : the useSpec to relink
  42885. * @param {UseSpecType} newSrcType : the new source type (package, module, file, ...etc)
  42886. * @param {String} newSrcStoreId : the new source module store id
  42887. * @param newSrcAncestors: the ancestors of the useSpec
  42888. * @param objectFactory: factory to create new module objects
  42889. * @return {UseSpec} newly created UseSpec for the relinked source
  42890. */
  42891. _createClass(ModuleRelinker, [{
  42892. key: 'relinkSource',
  42893. value: function relinkSource(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory) {
  42894. return this._doRelinkSource(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory);
  42895. }
  42896. /**
  42897. * Do the relink a source in a module, needs to be a separate call for translation
  42898. * @param {UseSpec} useSpec : the useSpec to relink
  42899. * @param {UseSpecType} newSrcType : the new source type (package, module, file, ...etc)
  42900. * @param {String} newSrcStoreId : the new source module store id
  42901. * @param newSrcAncestors: the ancestors of the useSpec
  42902. * @param objectFactory: factory to create new module objects
  42903. * @return {UseSpec} newly created UseSpec for the relinked source
  42904. */
  42905. }, {
  42906. key: '_doRelinkSource',
  42907. value: function _doRelinkSource(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory) {
  42908. var newUseSpec = objectFactory.createModuleUseSpec();
  42909. newUseSpec.setIdentifier(useSpec.getIdentifier());
  42910. newUseSpec.setType(newSrcType);
  42911. newUseSpec.setStoreID(newSrcStoreId);
  42912. newUseSpec.setSearchPath(null);
  42913. if (newSrcAncestors && !(newSrcAncestors.length == 0)) {
  42914. Array.prototype.push.apply(newUseSpec.getAncestors(), newSrcAncestors);
  42915. }
  42916. newUseSpec.setDataCacheExpiry(useSpec.getDataCacheExpiry());
  42917. var position = this.module.getUseSpec().indexOf(useSpec);
  42918. this.module.removeUseSpecAt(position);
  42919. this.module.addUseSpecAt(position, newUseSpec);
  42920. return newUseSpec;
  42921. }
  42922. /**
  42923. * Relink identifiers in a module that refer to a particular useSpec so they use identifiers from newSrcModule.
  42924. * @param {UseSpec} useSpec : the useSpec to relink identifiers for
  42925. */
  42926. }, {
  42927. key: 'relinkIdentifiers',
  42928. value: function relinkIdentifiers(useSpec) {
  42929. var refsToUseSpec = _ModuleUtils2.default.getUseSpecRefs(useSpec, this.module);
  42930. this._relinkIdentifierRefs(refsToUseSpec, useSpec);
  42931. }
  42932. /**
  42933. * This method is called after a 'source relink' to relink identifier references. The refs are objects that have a identifier references to the 'original source' and newSrcModule is the module of the relinked 'target source'. The identifier reference resolution rules follow PL284: 1. Matching identifier, no change 2. If matching historical identifier, pick it 3. No matching identifiers: i. If new source only contains 1 identifier, pick it ii. Find best matching identifier, score candidates by matching item identifiers iii. If all candidates score equally poor, replace identifiers in the order of appearance, repeating the last identifier if necessary.
  42934. * @param {Array} refs - All ObjectType's that have an identifier reference
  42935. * @param {UseSpec} newUseSpec - The new useSpec to use
  42936. */
  42937. }, {
  42938. key: '_relinkIdentifierRefs',
  42939. value: function _relinkIdentifierRefs(refs, newUseSpec) {
  42940. if (!refs || refs.length == 0) {
  42941. return;
  42942. }
  42943. var identifiers = [];
  42944. var identifierToObjectType = ModuleRelinker._identifierToObjectType(this.newSrcModule, identifiers);
  42945. for (var __i_enFor0 = 0, __exp_enFor0 = refs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42946. var obj = __exp_enFor0[__i_enFor0];
  42947. var objType = obj.getObjectType();
  42948. if ("QuerySubject" == objType) {
  42949. ModuleRelinker._relinkQuerySubject(obj, newUseSpec, identifierToObjectType, identifiers);
  42950. } else if ("Relationship" == objType) {
  42951. ModuleRelinker._relinkRelationship(obj, newUseSpec, identifierToObjectType, identifiers);
  42952. } else if ("Calculation" == objType) {
  42953. ModuleRelinker._relinkCalculation(obj, newUseSpec, identifierToObjectType, identifiers);
  42954. } else if ("Filter" == objType) {
  42955. ModuleRelinker._relinkFilter(obj, newUseSpec, identifierToObjectType, identifiers);
  42956. }
  42957. }
  42958. }
  42959. /**
  42960. * Create an identifier to ObjectType map.
  42961. * @param {Module} module
  42962. * @param {Array} identifiers
  42963. * @return {Map}
  42964. */
  42965. }], [{
  42966. key: '_identifierToObjectType',
  42967. value: function _identifierToObjectType(module, identifiers) {
  42968. var identifierToObjectType = {};
  42969. var querySubjects = module.basicGetQuerySubject();
  42970. if (querySubjects && !(querySubjects.length == 0)) {
  42971. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  42972. var qs = __exp_enFor0[__i_enFor0];
  42973. identifierToObjectType[qs.getIdentifier()] = qs;
  42974. identifiers.push(qs.getIdentifier());
  42975. }
  42976. }
  42977. var relationships = module.basicGetRelationship();
  42978. if (relationships && !(relationships.length == 0)) {
  42979. for (var __i_enFor1 = 0, __exp_enFor1 = relationships, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  42980. var rel = __exp_enFor1[__i_enFor1];
  42981. identifierToObjectType[rel.getIdentifier()] = rel;
  42982. identifiers.push(rel.getIdentifier());
  42983. }
  42984. }
  42985. var calculations = module.basicGetCalculation();
  42986. if (calculations && !(calculations.length == 0)) {
  42987. for (var __i_enFor2 = 0, __exp_enFor2 = calculations, __len_enFor2 = __exp_enFor2.length; __i_enFor2 < __len_enFor2; ++__i_enFor2) {
  42988. var calc = __exp_enFor2[__i_enFor2];
  42989. identifierToObjectType[calc.getIdentifier()] = calc;
  42990. identifiers.push(calc.getIdentifier());
  42991. }
  42992. }
  42993. var filters = module.basicGetFilter();
  42994. if (filters && !(filters.length == 0)) {
  42995. for (var __i_enFor3 = 0, __exp_enFor3 = filters, __len_enFor3 = __exp_enFor3.length; __i_enFor3 < __len_enFor3; ++__i_enFor3) {
  42996. var filter = __exp_enFor3[__i_enFor3];
  42997. identifierToObjectType[filter.getIdentifier()] = filter;
  42998. identifiers.push(filter.getIdentifier());
  42999. }
  43000. }
  43001. return identifierToObjectType;
  43002. }
  43003. /**
  43004. * This method is called after a 'source relink' to relink a QuerySubject.
  43005. * @param {QuerySubject} qs - The QuerySubject to relink
  43006. * @param {UseSpec} newUseSpec - The new useSpec to use
  43007. * @param {Map} identifierToObjectType - Map of candidates
  43008. * @param {Array} identifiers - Candidate identifiers
  43009. */
  43010. }, {
  43011. key: '_relinkQuerySubject',
  43012. value: function _relinkQuerySubject(qs, newUseSpec, identifierToObjectType, identifiers) {
  43013. var matchingObject;
  43014. var allRefs = ModuleRelinker._buildQSRefList(qs);
  43015. for (var __i_enFor0 = 0, __exp_enFor0 = allRefs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43016. var ref = __exp_enFor0[__i_enFor0];
  43017. matchingObject = identifierToObjectType[ref];
  43018. if (matchingObject) {
  43019. break;
  43020. }
  43021. matchingObject = identifierToObjectType[ref.toLowerCase()];
  43022. if (matchingObject) {
  43023. break;
  43024. }
  43025. }
  43026. if (_InstanceType2.default.MISSING === qs.getInstanceType()) {
  43027. qs.setInstanceType(null);
  43028. var props = qs.basicGetPropertyOverride();
  43029. if (props && !(props.length == 0)) {
  43030. var index = props.indexOf("instanceType");
  43031. if (index >= 0) {
  43032. props.splice(index, 1);
  43033. }
  43034. }
  43035. }
  43036. if (!matchingObject || !("QuerySubject" == matchingObject.getObjectType())) {
  43037. matchingObject = ModuleRelinker._bestMatch(qs, identifierToObjectType, identifiers);
  43038. }
  43039. if (!matchingObject) {
  43040. return;
  43041. }
  43042. while (!(qs.getRef().length == 0)) {
  43043. qs.removeRefAt(0);
  43044. }
  43045. qs.addRef(newUseSpec.getIdentifier() + "." + matchingObject.getIdentifier());
  43046. }
  43047. /**
  43048. * Build a list of QS reference identifiers.
  43049. * @param {QuerySubject} qs
  43050. * @return {Array}
  43051. */
  43052. }, {
  43053. key: '_buildQSRefList',
  43054. value: function _buildQSRefList(qs) {
  43055. var refs = qs.basicGetRef();
  43056. var originalRefs = qs.basicGetOriginalRef();
  43057. var result = [];
  43058. if (refs && !(refs.length == 0)) {
  43059. for (var __i_enFor0 = 0, __exp_enFor0 = refs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43060. var ref = __exp_enFor0[__i_enFor0];
  43061. ModuleRelinker._addSecondPartIdentifier(result, ref);
  43062. }
  43063. }
  43064. if (originalRefs && !(originalRefs.length == 0)) {
  43065. for (var __i_enFor1 = 0, __exp_enFor1 = originalRefs, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  43066. var ref = __exp_enFor1[__i_enFor1];
  43067. ModuleRelinker._addSecondPartIdentifier(result, ref);
  43068. }
  43069. }
  43070. ModuleRelinker._addSecondPartIdentifier(result, qs.getIdentifier());
  43071. return result;
  43072. }
  43073. /**
  43074. * Add an second part identifier from a ref if present.
  43075. * @param {Array} result
  43076. * @param {String} ref
  43077. */
  43078. }, {
  43079. key: '_addSecondPartIdentifier',
  43080. value: function _addSecondPartIdentifier(result, ref) {
  43081. var identifier = _ReferenceResolver2.default.getSecondPart(ref);
  43082. if (identifier != null && !(identifier.length === 0)) {
  43083. result.push(identifier);
  43084. }
  43085. }
  43086. /**
  43087. * Find the best matching object.
  43088. * @param {ObjectType} obj
  43089. * @param {Map} identifierToObjectType
  43090. * @param {Array} identifiers
  43091. * @return {ObjectType}
  43092. */
  43093. }, {
  43094. key: '_bestMatch',
  43095. value: function _bestMatch(obj, identifierToObjectType, identifiers) {
  43096. var candidates = [];
  43097. var type = obj.getObjectType();
  43098. for (var __i_enFor0 = 0, __exp_enFor0 = identifiers, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43099. var id = __exp_enFor0[__i_enFor0];
  43100. var candidate = identifierToObjectType[id];
  43101. if (type == candidate.getObjectType()) {
  43102. candidates.push(candidate);
  43103. }
  43104. }
  43105. return candidates.length == 0 ? null : candidates.length == 1 ? candidates[0] : ModuleRelinker._bestCandidate(obj, candidates);
  43106. }
  43107. /**
  43108. * Find the best candidate matching the obj.
  43109. * @param {ObjectType} obj
  43110. * @param {Array} candidates
  43111. * @return {ObjectType}
  43112. */
  43113. }, {
  43114. key: '_bestCandidate',
  43115. value: function _bestCandidate(obj, candidates) {
  43116. if (!("QuerySubject" == obj.getObjectType())) {
  43117. return null;
  43118. }
  43119. var bestScore = 1;
  43120. var querySubject = obj;
  43121. var bestCandidate;
  43122. var identifiers = ModuleRelinker._collectItemsIdentifiers(querySubject.basicGetItem());
  43123. for (var __i_enFor0 = 0, __exp_enFor0 = candidates, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43124. var c = __exp_enFor0[__i_enFor0];
  43125. var candidate = c;
  43126. var score = querySubject.getLabel() == candidate.getLabel() ? 1 : 0;
  43127. score += ModuleRelinker._scoreCandidate(identifiers, ModuleRelinker._collectItemsIdentifiers(candidate.basicGetItem()));
  43128. if (score > bestScore) {
  43129. bestCandidate = candidate;
  43130. bestScore = score;
  43131. }
  43132. }
  43133. return bestCandidate;
  43134. }
  43135. /**
  43136. * Return all identifiers in a list of ItemType.
  43137. * @param {Array} items
  43138. * @return {Array}
  43139. */
  43140. }, {
  43141. key: '_collectItemsIdentifiers',
  43142. value: function _collectItemsIdentifiers(items) {
  43143. var identifiers = [];
  43144. if (!items || items.length == 0) {
  43145. return identifiers;
  43146. }
  43147. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43148. var item = __exp_enFor0[__i_enFor0];
  43149. if (item.getQueryItem()) {
  43150. identifiers.push(item.getQueryItem().getIdentifier());
  43151. } else if (item.getFilter()) {
  43152. identifiers.push(item.getFilter().getIdentifier());
  43153. } else if (item.getItemHierarchy()) {
  43154. identifiers.push(item.getItemHierarchy().getIdentifier());
  43155. } else if (item.getNamedSet()) {
  43156. identifiers.push(item.getNamedSet().getIdentifier());
  43157. } else if (item.getFolder()) {
  43158. Array.prototype.push.apply(identifiers, ModuleRelinker._collectItemsIdentifiers(item.getFolder().basicGetItem()));
  43159. }
  43160. }
  43161. return identifiers;
  43162. }
  43163. /**
  43164. * Score the number of matching identifiers.
  43165. * @param {Array} identifiers
  43166. * @param {Array} newIdentifiers
  43167. * @return {int}
  43168. */
  43169. }, {
  43170. key: '_scoreCandidate',
  43171. value: function _scoreCandidate(identifiers, newIdentifiers) {
  43172. if (!newIdentifiers || newIdentifiers.length == 0) {
  43173. return 0;
  43174. }
  43175. var score = 0;
  43176. for (var __i_enFor0 = 0, __exp_enFor0 = identifiers, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43177. var identifier = __exp_enFor0[__i_enFor0];
  43178. score += newIdentifiers.indexOf(identifier) > -1 ? 1 : 0;
  43179. }
  43180. return score;
  43181. }
  43182. /**
  43183. * This method is called after a 'source relink' to relink a Relationship.
  43184. * @param {Relationship} rel - The Relationship to relink
  43185. * @param {UseSpec} newUseSpec - The new useSpec to use
  43186. * @param {Map} identifierToObjectType - Map of candidates
  43187. * @param {Array} identifiers - Candidate identifiers
  43188. */
  43189. }, {
  43190. key: '_relinkRelationship',
  43191. value: function _relinkRelationship(rel, newUseSpec, identifierToObjectType, identifiers) {
  43192. var originalRef = rel.getRef();
  43193. var ref = _ReferenceResolver2.default.getSecondPart(originalRef);
  43194. var matchingObject = identifierToObjectType[ref];
  43195. if (_InstanceType2.default.MISSING === rel.getInstanceType()) {
  43196. rel.setInstanceType(null);
  43197. var props = rel.basicGetPropertyOverride();
  43198. if (props && !(props.length == 0)) {
  43199. var index = props.indexOf("instanceType");
  43200. if (index >= 0) {
  43201. props.splice(index, 1);
  43202. }
  43203. }
  43204. }
  43205. if (!matchingObject || !("Relationship" == matchingObject.getObjectType())) {
  43206. matchingObject = ModuleRelinker._bestMatch(rel, identifierToObjectType, identifiers);
  43207. }
  43208. if (!matchingObject) {
  43209. return;
  43210. }
  43211. rel.setRef(newUseSpec.getIdentifier() + "." + matchingObject.getIdentifier());
  43212. }
  43213. /**
  43214. * This method is called after a 'source relink' to relink a Calculation.
  43215. * @param {Calculation} calc - The Calculation to relink
  43216. * @param {UseSpec} newUseSpec - The new useSpec to use
  43217. * @param {Map} identifierToObjectType - Map of candidates
  43218. * @param {Array} identifiers - Candidate identifiers
  43219. */
  43220. }, {
  43221. key: '_relinkCalculation',
  43222. value: function _relinkCalculation(calc, newUseSpec, identifierToObjectType, identifiers) {
  43223. var originaRef = calc.getRef();
  43224. var ref = _ReferenceResolver2.default.getSecondPart(originaRef);
  43225. var matchingObject = identifierToObjectType[ref];
  43226. if (!matchingObject || !("Calculation" == matchingObject.getObjectType())) {
  43227. matchingObject = ModuleRelinker._bestMatch(calc, identifierToObjectType, identifiers);
  43228. }
  43229. if (!matchingObject) {
  43230. return;
  43231. }
  43232. calc.setRef(newUseSpec.getIdentifier() + "." + matchingObject.getIdentifier());
  43233. }
  43234. /**
  43235. * This method is called after a 'source relink' to relink a Filter.
  43236. * @param {Filter} filter - The Filter to relink
  43237. * @param {UseSpec} newUseSpec - The new useSpec to use
  43238. * @param {Map} identifierToObjectType - Map of candidates
  43239. * @param {Array} identifiers - Candidate identifiers
  43240. */
  43241. }, {
  43242. key: '_relinkFilter',
  43243. value: function _relinkFilter(filter, newUseSpec, identifierToObjectType, identifiers) {
  43244. var originaRef = filter.getRef();
  43245. var ref = _ReferenceResolver2.default.getSecondPart(originaRef);
  43246. var matchingObject = identifierToObjectType[ref];
  43247. if (!matchingObject || !("Filter" == matchingObject.getObjectType())) {
  43248. matchingObject = ModuleRelinker._bestMatch(filter, identifierToObjectType, identifiers);
  43249. }
  43250. if (!matchingObject) {
  43251. return;
  43252. }
  43253. filter.setIdentifier(newUseSpec.getIdentifier() + "." + matchingObject.getIdentifier());
  43254. }
  43255. }]);
  43256. return ModuleRelinker;
  43257. }(_BaseMoserObject3.default);
  43258. exports.default = ModuleRelinker;
  43259. /***/ },
  43260. /* 121 */
  43261. /***/ function(module, exports, __webpack_require__) {
  43262. "use strict";
  43263. Object.defineProperty(exports, "__esModule", {
  43264. value: true
  43265. });
  43266. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43267. var _ModuleRelinker2 = __webpack_require__(120);
  43268. var _ModuleRelinker3 = _interopRequireDefault(_ModuleRelinker2);
  43269. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43270. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43271. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43272. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  43273. ** IBM Confidential
  43274. **
  43275. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  43276. **
  43277. ** (C) Copyright IBM Corp. 2020
  43278. **
  43279. ** The source code for this program is not published or otherwise divested of its trade secrets,
  43280. ** irrespective of what has been deposited with the U.S. Copyright Office.
  43281. ************************************************************************/
  43282. // GENERATED
  43283. //@import com/ibm/bi/platform/moser/client/relink/ModuleRelinker (loadtime) // collectItemsIdentifiers, superclass, scoreCandidate
  43284. /**
  43285. * Relinker for an Embedded Module.
  43286. * @author PASCALLacombe
  43287. */
  43288. var EmbeddedModuleRelinker = function (_ModuleRelinker) {
  43289. _inherits(EmbeddedModuleRelinker, _ModuleRelinker);
  43290. function EmbeddedModuleRelinker() {
  43291. var _ref;
  43292. var _temp, _this, _ret;
  43293. _classCallCheck(this, EmbeddedModuleRelinker);
  43294. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  43295. args[_key] = arguments[_key];
  43296. }
  43297. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = EmbeddedModuleRelinker.__proto__ || Object.getPrototypeOf(EmbeddedModuleRelinker)).call.apply(_ref, [this].concat(args))), _this), _this.qsIds = null, _this.newQsIds = null, _this.qsAndQiIds = null, _this.newQsAndQiIds = null, _this.qsIdRemap = null, _temp), _possibleConstructorReturn(_this, _ret);
  43298. }
  43299. _createClass(EmbeddedModuleRelinker, [{
  43300. key: "relinkSource$0",
  43301. /**
  43302. * Relink a source in a module
  43303. * @param {UseSpec} useSpec : the useSpec to relink
  43304. * @param {UseSpecType} newSrcType : the new source type (package, module, file, ...etc)
  43305. * @param {String} newSrcStoreId : the new source module store id
  43306. * @param newSrcAncestors: the ancestors of the useSpec
  43307. * @param objectFactory: factory to create new module objects
  43308. * @return {UseSpec} newly created UseSpec for the relinked source
  43309. */
  43310. value: function relinkSource$0(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory) {
  43311. var newUseSpec = this._doRelinkSource(useSpec, newSrcType, newSrcStoreId, newSrcAncestors, objectFactory);
  43312. newUseSpec.setImports("*");
  43313. return newUseSpec;
  43314. }
  43315. /**
  43316. * Relink identifiers in a module that refer to a particular useSpec so they use identifiers from newSrcModule.
  43317. * @param {UseSpec} useSpec : the useSpec to relink identifiers for
  43318. * @override
  43319. */
  43320. }, {
  43321. key: "relinkIdentifiers",
  43322. value: function relinkIdentifiers(useSpec) {
  43323. this.qsIds = [];
  43324. this.newQsIds = [];
  43325. this.qsAndQiIds = {};
  43326. this.newQsAndQiIds = {};
  43327. if (!this._containsDrillGroups()) {
  43328. return;
  43329. }
  43330. EmbeddedModuleRelinker._collectQsAndQiIds(this.module, this.qsIds, this.qsAndQiIds);
  43331. EmbeddedModuleRelinker._collectQsAndQiIds(this.newSrcModule, this.newQsIds, this.newQsAndQiIds);
  43332. if (!this._collectIdsFromDrillGroups()) {
  43333. return;
  43334. }
  43335. this._buildQsRemap();
  43336. this._relinkDrillGroups();
  43337. }
  43338. /**
  43339. * Relink a list of idForExpression's, return null of id's that cannot be remapped.
  43340. * @param {Array} expressions
  43341. * @return {Array} A list of relinked idForExpressions, in the same order as provided.
  43342. */
  43343. }, {
  43344. key: "relinkIdForExpressions",
  43345. value: function relinkIdForExpressions(expressions) {
  43346. this.qsIds = [];
  43347. this.newQsIds = [];
  43348. this.qsAndQiIds = {};
  43349. this.newQsAndQiIds = {};
  43350. if (!expressions || expressions.length == 0) {
  43351. return [];
  43352. }
  43353. EmbeddedModuleRelinker._collectQsAndQiIds(this.module, this.qsIds, this.qsAndQiIds);
  43354. EmbeddedModuleRelinker._collectQsAndQiIds(this.newSrcModule, this.newQsIds, this.newQsAndQiIds);
  43355. if (!this._collectIdsFromExpressions(expressions)) {
  43356. return expressions;
  43357. }
  43358. this._buildQsRemap();
  43359. var result = [];
  43360. for (var __i_enFor0 = 0, __exp_enFor0 = expressions, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43361. var expression = __exp_enFor0[__i_enFor0];
  43362. result.push(this._relinkExpression(expression));
  43363. }
  43364. return result;
  43365. }
  43366. /**
  43367. * Build a map of all QuerySubject identifiers and for each one build a list of all identifiers they have.
  43368. * @param {Module} m
  43369. * @param {Array} querySubjectIDs
  43370. * @param {Map} querySubjectQueryItemIDs
  43371. */
  43372. }, {
  43373. key: "_collectIdsFromExpressions",
  43374. /**
  43375. * From a list of idForExpression's, build a map of all QuerySubject identifiers and for each one build a list of all identifiers they have.
  43376. * @param {Array} expressions
  43377. * @return {boolean} True if there is an idForExpression to fix
  43378. */
  43379. value: function _collectIdsFromExpressions(expressions) {
  43380. var found = false;
  43381. for (var __i_enFor0 = 0, __exp_enFor0 = expressions, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43382. var expression = __exp_enFor0[__i_enFor0];
  43383. if (expression.charCodeAt(0) == 91) {
  43384. continue;
  43385. }
  43386. var splits = expression.split(new RegExp("\\."));
  43387. if (splits.length < 2) {
  43388. continue;
  43389. }
  43390. found = true;
  43391. var qsId = splits[0];
  43392. var qsIdLower = qsId.toLowerCase();
  43393. var qiId = splits[1];
  43394. var existingIds = this.qsAndQiIds[qsIdLower];
  43395. if (!existingIds) {
  43396. this.qsIds.push(qsId);
  43397. existingIds = [];
  43398. this.qsAndQiIds[qsIdLower] = existingIds;
  43399. }
  43400. if (!(existingIds.indexOf(qiId) > -1)) {
  43401. existingIds.push(qiId);
  43402. }
  43403. }
  43404. return found;
  43405. }
  43406. /**
  43407. * Check if any drillGroup needs upgrading.
  43408. * @return {boolean}
  43409. */
  43410. }, {
  43411. key: "_containsDrillGroups",
  43412. value: function _containsDrillGroups() {
  43413. var drillGroups = this.module.basicGetDrillGroup();
  43414. if (!drillGroups) {
  43415. return false;
  43416. }
  43417. for (var __i_enFor0 = 0, __exp_enFor0 = drillGroups, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43418. var drillGroup = __exp_enFor0[__i_enFor0];
  43419. var segments = drillGroup.basicGetSegment();
  43420. if (drillGroup.isImported() || !segments) {
  43421. continue;
  43422. }
  43423. for (var __i_enFor1 = 0, __exp_enFor1 = segments, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  43424. var segment = __exp_enFor1[__i_enFor1];
  43425. var ref = segment.getRef();
  43426. var splits = ref.split(new RegExp("\\."));
  43427. if (splits.length != 2) {
  43428. continue;
  43429. }
  43430. return true;
  43431. }
  43432. }
  43433. return false;
  43434. }
  43435. /**
  43436. * From the list of drillGroups, build a map of all QuerySubject identifiers and for each one build a list of all identifiers they have.
  43437. * @return {boolean}
  43438. */
  43439. }, {
  43440. key: "_collectIdsFromDrillGroups",
  43441. value: function _collectIdsFromDrillGroups() {
  43442. var drillGroups = this.module.basicGetDrillGroup();
  43443. if (!drillGroups) {
  43444. return false;
  43445. }
  43446. var found = false;
  43447. for (var __i_enFor0 = 0, __exp_enFor0 = drillGroups, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43448. var drillGroup = __exp_enFor0[__i_enFor0];
  43449. var segments = drillGroup.basicGetSegment();
  43450. if (drillGroup.isImported() || !segments) {
  43451. continue;
  43452. }
  43453. for (var __i_enFor1 = 0, __exp_enFor1 = segments, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  43454. var segment = __exp_enFor1[__i_enFor1];
  43455. var ref = segment.getRef();
  43456. var splits = ref.split(new RegExp("\\."));
  43457. if (splits.length != 2) {
  43458. continue;
  43459. }
  43460. found = true;
  43461. var qsId = splits[0];
  43462. var qsIdLower = qsId.toLowerCase();
  43463. var qiId = splits[1];
  43464. var existingIds = this.qsAndQiIds[qsIdLower];
  43465. if (!existingIds) {
  43466. this.qsIds.push(qsId);
  43467. existingIds = [];
  43468. this.qsAndQiIds[qsIdLower] = existingIds;
  43469. }
  43470. if (!(existingIds.indexOf(qiId) > -1)) {
  43471. existingIds.push(qiId);
  43472. }
  43473. }
  43474. }
  43475. return found;
  43476. }
  43477. /**
  43478. * Build a map of the QS id re-maps.
  43479. */
  43480. }, {
  43481. key: "_buildQsRemap",
  43482. value: function _buildQsRemap() {
  43483. this.qsIdRemap = {};
  43484. for (var __i_enFor0 = 0, __exp_enFor0 = this.qsIds, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43485. var qsId = __exp_enFor0[__i_enFor0];
  43486. this.qsIdRemap[qsId] = this._bestMatch$0(qsId);
  43487. }
  43488. }
  43489. /**
  43490. * Find the best matching QuerySubject identifier from the newSrcModule Return null is the best match cannot be found.
  43491. * @param {String} qsId
  43492. * @return {String}
  43493. */
  43494. }, {
  43495. key: "_bestMatch$0",
  43496. value: function _bestMatch$0(qsId) {
  43497. if (this.newQsIds.length == 0) {
  43498. return qsId;
  43499. }
  43500. if (this.newQsIds.length == 1) {
  43501. return this.newQsIds[0];
  43502. }
  43503. var bestScore = 0;
  43504. var bestCandidate;
  43505. var qsIdLower = qsId.toLowerCase();
  43506. var identifiers = this.qsAndQiIds[qsIdLower];
  43507. for (var __i_enFor0 = 0, __exp_enFor0 = this.newQsIds, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43508. var candidate = __exp_enFor0[__i_enFor0];
  43509. var candidateLower = candidate.toLowerCase();
  43510. if (qsIdLower == candidateLower) {
  43511. return candidate;
  43512. }
  43513. var score = _ModuleRelinker3.default._scoreCandidate(identifiers, this.newQsAndQiIds[candidateLower]);
  43514. if (score > bestScore) {
  43515. bestCandidate = candidate;
  43516. bestScore = score;
  43517. }
  43518. }
  43519. return bestCandidate;
  43520. }
  43521. /**
  43522. * Fix a 2++ part expression by replacing the QuerySubject id with the remapped one. Return null if a remapping is not possible.
  43523. * @param {String} expression - 2++ part expression to fix
  43524. * @return {String} Return the new expression if it can be relinked, otherwise return the original expression
  43525. */
  43526. }, {
  43527. key: "_relinkExpression",
  43528. value: function _relinkExpression(expression) {
  43529. if (expression == null || expression.length === 0) {
  43530. return null;
  43531. }
  43532. var splits = expression.split(new RegExp("\\."));
  43533. if (splits.length < 2) {
  43534. return null;
  43535. }
  43536. var qsId = splits[0];
  43537. var newQsId = this.qsIdRemap[qsId];
  43538. if (newQsId == null) {
  43539. return null;
  43540. }
  43541. return newQsId + expression.substring(qsId.length);
  43542. }
  43543. /**
  43544. * Relink DrillGroups in the newSrcModule.
  43545. */
  43546. }, {
  43547. key: "_relinkDrillGroups",
  43548. value: function _relinkDrillGroups() {
  43549. var drillGroups = this.module.basicGetDrillGroup();
  43550. if (!drillGroups) {
  43551. return;
  43552. }
  43553. for (var __i_enFor0 = 0, __exp_enFor0 = drillGroups, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43554. var drillGroup = __exp_enFor0[__i_enFor0];
  43555. var segments = drillGroup.basicGetSegment();
  43556. if (drillGroup.isImported() || !segments) {
  43557. continue;
  43558. }
  43559. for (var __i_enFor1 = 0, __exp_enFor1 = segments, __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  43560. var segment = __exp_enFor1[__i_enFor1];
  43561. var relinkedRef = this._relinkExpression(segment.getRef());
  43562. if (relinkedRef != null) {
  43563. segment.setRef(relinkedRef);
  43564. }
  43565. }
  43566. }
  43567. }
  43568. }, {
  43569. key: "relinkSource",
  43570. value: function relinkSource(a0, a1, a2, a3, a4) {
  43571. var args = arguments;
  43572. return this.relinkSource$0(a0, a1, a2, a3, a4);
  43573. }
  43574. }, {
  43575. key: "bestMatch",
  43576. value: function bestMatch(a0) {
  43577. var args = arguments;
  43578. if (args.length == 1 && (a0 == null || typeof a0 === "string")) {
  43579. return this.bestMatch$0(a0);
  43580. }
  43581. return _ModuleRelinker3.default.prototype.bestMatch.apply(this, args);
  43582. }
  43583. /**
  43584. * Constructor
  43585. * @param {Module} module
  43586. * @param {Module} newSrcModule
  43587. */
  43588. //constructor(module, newSrcModule)
  43589. }], [{
  43590. key: "_collectQsAndQiIds",
  43591. value: function _collectQsAndQiIds(m, querySubjectIDs, querySubjectQueryItemIDs) {
  43592. if (!m) {
  43593. return;
  43594. }
  43595. var querySubjects = m.basicGetQuerySubject();
  43596. if (querySubjects) {
  43597. for (var __i_enFor0 = 0, __exp_enFor0 = querySubjects, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43598. var qs = __exp_enFor0[__i_enFor0];
  43599. var id = qs.getIdentifier();
  43600. var idLower = id.toLowerCase();
  43601. querySubjectIDs.push(id);
  43602. var qiIds = _ModuleRelinker3.default._collectItemsIdentifiers(qs.basicGetItem());
  43603. var existingIds = querySubjectQueryItemIDs[idLower];
  43604. if (existingIds) {
  43605. Array.prototype.push.apply(existingIds, qiIds);
  43606. } else {
  43607. querySubjectQueryItemIDs[idLower] = qiIds;
  43608. }
  43609. }
  43610. }
  43611. }
  43612. }]);
  43613. return EmbeddedModuleRelinker;
  43614. }(_ModuleRelinker3.default);
  43615. exports.default = EmbeddedModuleRelinker;
  43616. /***/ },
  43617. /* 122 */
  43618. /***/ function(module, exports, __webpack_require__) {
  43619. "use strict";
  43620. Object.defineProperty(exports, "__esModule", {
  43621. value: true
  43622. });
  43623. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43624. var _Enum2 = __webpack_require__(12);
  43625. var _Enum3 = _interopRequireDefault(_Enum2);
  43626. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43627. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43628. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43629. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  43630. ** IBM Confidential
  43631. **
  43632. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  43633. **
  43634. ** (C) Copyright IBM Corp. 2020
  43635. **
  43636. ** The source code for this program is not published or otherwise divested of its trade secrets,
  43637. ** irrespective of what has been deposited with the U.S. Copyright Office.
  43638. ************************************************************************/
  43639. // GENERATED
  43640. //@import Enum (loadtime) // superclass
  43641. /**
  43642. * Copy mode when copying objects from/to a Module.
  43643. * @author PASCALLacombe
  43644. */
  43645. var CopyMode = function (_Enum) {
  43646. _inherits(CopyMode, _Enum);
  43647. /**
  43648. * Constructor
  43649. * @param {String} v
  43650. */
  43651. /**
  43652. * Copies the selected objects, as well as any common relationships that might be between them
  43653. */
  43654. /**
  43655. * The enum value.
  43656. */
  43657. function CopyMode(v) {
  43658. _classCallCheck(this, CopyMode);
  43659. var _this = _possibleConstructorReturn(this, (CopyMode.__proto__ || Object.getPrototypeOf(CopyMode)).call(this, v));
  43660. _this.value = null;
  43661. _this.value = v;
  43662. return _this;
  43663. }
  43664. /**
  43665. * Enum value
  43666. * @return {String}
  43667. */
  43668. /**
  43669. * Copies the selected object, as well as any relationships to them
  43670. */
  43671. /**
  43672. * Only copies the selected objects.
  43673. */
  43674. _createClass(CopyMode, [{
  43675. key: "value",
  43676. value: function value() {
  43677. return this.value;
  43678. }
  43679. /**
  43680. * Get a CopyMode from value.
  43681. * @param {String} v
  43682. * @return {CopyMode}
  43683. */
  43684. }, {
  43685. key: "toString",
  43686. value: function toString() {
  43687. return this.value;
  43688. }
  43689. }], [{
  43690. key: "fromValue",
  43691. value: function fromValue(v) {
  43692. for (var __i_enFor0 = 0, __exp_enFor0 = CopyMode.values(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  43693. var c = __exp_enFor0[__i_enFor0];
  43694. if (c.value == v) {
  43695. return c;
  43696. }
  43697. }
  43698. throw new Error(v);
  43699. }
  43700. }]);
  43701. return CopyMode;
  43702. }(_Enum3.default);
  43703. CopyMode.SELECTION_ONLY = CopyMode.newLiteral("selectionOnly");
  43704. CopyMode.COMMON_RELATIONSHIPS = CopyMode.newLiteral("commonRelationships");
  43705. CopyMode.ALL_RELATIONSHIPS = CopyMode.newLiteral("allRelationships");
  43706. exports.default = CopyMode;
  43707. /***/ },
  43708. /* 123 */
  43709. /***/ function(module, exports, __webpack_require__) {
  43710. 'use strict';
  43711. Object.defineProperty(exports, "__esModule", {
  43712. value: true
  43713. });
  43714. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43715. var _BaseMoserObject2 = __webpack_require__(2);
  43716. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  43717. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43718. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43719. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43720. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  43721. ** IBM Confidential
  43722. **
  43723. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  43724. **
  43725. ** (C) Copyright IBM Corp. 2020
  43726. **
  43727. ** The source code for this program is not published or otherwise divested of its trade secrets,
  43728. ** irrespective of what has been deposited with the U.S. Copyright Office.
  43729. ************************************************************************/
  43730. // GENERATED
  43731. //@import BaseMoserObject (loadtime) // superclass
  43732. var RelationshipUtils = function (_BaseMoserObject) {
  43733. _inherits(RelationshipUtils, _BaseMoserObject);
  43734. function RelationshipUtils() {
  43735. _classCallCheck(this, RelationshipUtils);
  43736. return _possibleConstructorReturn(this, (RelationshipUtils.__proto__ || Object.getPrototypeOf(RelationshipUtils)).apply(this, arguments));
  43737. }
  43738. _createClass(RelationshipUtils, null, [{
  43739. key: 'isEqual',
  43740. /**
  43741. * Return true if two relationships are the same, false otherwise
  43742. * @param {Relationship} relationship1
  43743. * @param {Relationship} relationship2
  43744. * @return {boolean} true if two relationships are the same, false otherwise
  43745. */
  43746. value: function isEqual(relationship1, relationship2) {
  43747. return RelationshipUtils._isEqualRef(relationship1.getLeft(), relationship2.getLeft()) && RelationshipUtils._isEqualRef(relationship1.getRight(), relationship2.getRight()) || RelationshipUtils._isEqualRef(relationship1.getLeft(), relationship2.getRight()) && RelationshipUtils._isEqualRef(relationship1.getRight(), relationship2.getLeft());
  43748. }
  43749. /**
  43750. * Two relationship ends are the same if their cardinality is the same and they are attached to the same table
  43751. * @return {boolean} true if two relationship ends match, false otherwise
  43752. */
  43753. }, {
  43754. key: '_isEqualCardinality',
  43755. value: function _isEqualCardinality(one, two) {
  43756. return one == two || one.getRef() == two.getRef() && one.getMaxcard() === two.getMaxcard() && one.getMincard() === two.getMincard();
  43757. }
  43758. }, {
  43759. key: '_isEqualRef',
  43760. value: function _isEqualRef(one, two) {
  43761. return one.getRef() == two.getRef();
  43762. }
  43763. /**
  43764. * Private constructor.
  43765. */
  43766. //constructor()
  43767. }]);
  43768. return RelationshipUtils;
  43769. }(_BaseMoserObject3.default);
  43770. exports.default = RelationshipUtils;
  43771. /***/ },
  43772. /* 124 */
  43773. /***/ function(module, exports, __webpack_require__) {
  43774. 'use strict';
  43775. Object.defineProperty(exports, "__esModule", {
  43776. value: true
  43777. });
  43778. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43779. var _BaseMoserObject2 = __webpack_require__(2);
  43780. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  43781. var _HighLevelDataType = __webpack_require__(15);
  43782. var _HighLevelDataType2 = _interopRequireDefault(_HighLevelDataType);
  43783. var _UsageType = __webpack_require__(44);
  43784. var _UsageType2 = _interopRequireDefault(_UsageType);
  43785. var _RegularAggregateType = __webpack_require__(22);
  43786. var _RegularAggregateType2 = _interopRequireDefault(_RegularAggregateType);
  43787. var _Module = __webpack_require__(54);
  43788. var _Module2 = _interopRequireDefault(_Module);
  43789. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43790. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43791. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43792. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  43793. ** IBM Confidential
  43794. **
  43795. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  43796. **
  43797. ** (C) Copyright IBM Corp. 2020
  43798. **
  43799. ** The source code for this program is not published or otherwise divested of its trade secrets,
  43800. ** irrespective of what has been deposited with the U.S. Copyright Office.
  43801. ************************************************************************/
  43802. // GENERATED
  43803. //@import BaseMoserObject (loadtime) // superclass
  43804. //@import com/ibm/bi/platform/moser/common/generated/metadata/HighLevelDataType (static) // HighLevelDataType
  43805. //@import com/ibm/bi/platform/moser/common/generated/metadata/UsageType (static) // UsageType
  43806. //@import com/ibm/bi/platform/moser/common/generated/metadata/RegularAggregateType (static) // RegularAggregateType
  43807. //@import com/ibm/bi/platform/moser/common/generated/metadata/Module (runtime) // new
  43808. /**
  43809. * A utility class that can be translated to Javascript Use by both Java and Javascript code.
  43810. * @author PASCALLacombe
  43811. */
  43812. var MoserCommonUtils = function (_BaseMoserObject) {
  43813. _inherits(MoserCommonUtils, _BaseMoserObject);
  43814. /**
  43815. * Private constructor.
  43816. */
  43817. /**
  43818. * Singleton static instance.
  43819. */
  43820. function MoserCommonUtils() {
  43821. _classCallCheck(this, MoserCommonUtils);
  43822. var _this = _possibleConstructorReturn(this, (MoserCommonUtils.__proto__ || Object.getPrototypeOf(MoserCommonUtils)).call(this));
  43823. _this.dataTypNameToDTC = null;
  43824. _this.dataTypNameToDTC = {};
  43825. _this.dataTypNameToDTC["BIT"] = _HighLevelDataType2.default.BOOLEAN;
  43826. _this.dataTypNameToDTC["BOOLEAN"] = _HighLevelDataType2.default.BOOLEAN;
  43827. _this.dataTypNameToDTC["CHAR"] = _HighLevelDataType2.default.STRING;
  43828. _this.dataTypNameToDTC["LONGNVARCHAR"] = _HighLevelDataType2.default.STRING;
  43829. _this.dataTypNameToDTC["LONGVARCHAR"] = _HighLevelDataType2.default.STRING;
  43830. _this.dataTypNameToDTC["NCHAR"] = _HighLevelDataType2.default.STRING;
  43831. _this.dataTypNameToDTC["NVARCHAR"] = _HighLevelDataType2.default.STRING;
  43832. _this.dataTypNameToDTC["VARCHAR"] = _HighLevelDataType2.default.STRING;
  43833. _this.dataTypNameToDTC["DATALINK"] = _HighLevelDataType2.default.STRING;
  43834. _this.dataTypNameToDTC["JSON"] = _HighLevelDataType2.default.STRING;
  43835. _this.dataTypNameToDTC["SQLXML"] = _HighLevelDataType2.default.STRING;
  43836. _this.dataTypNameToDTC["CLOB"] = _HighLevelDataType2.default.STRING;
  43837. _this.dataTypNameToDTC["NCLOB"] = _HighLevelDataType2.default.STRING;
  43838. _this.dataTypNameToDTC["BIGINT"] = _HighLevelDataType2.default.INTEGER;
  43839. _this.dataTypNameToDTC["DOUBLE"] = _HighLevelDataType2.default.DECIMAL;
  43840. _this.dataTypNameToDTC["FLOAT"] = _HighLevelDataType2.default.DECIMAL;
  43841. _this.dataTypNameToDTC["INTEGER"] = _HighLevelDataType2.default.INTEGER;
  43842. _this.dataTypNameToDTC["REAL"] = _HighLevelDataType2.default.DECIMAL;
  43843. _this.dataTypNameToDTC["SMALLINT"] = _HighLevelDataType2.default.INTEGER;
  43844. _this.dataTypNameToDTC["TINYINT"] = _HighLevelDataType2.default.INTEGER;
  43845. _this.dataTypNameToDTC["DECIMAL"] = _HighLevelDataType2.default.DECIMAL;
  43846. _this.dataTypNameToDTC["LONG"] = _HighLevelDataType2.default.INTEGER;
  43847. _this.dataTypNameToDTC["NUMERIC"] = _HighLevelDataType2.default.DECIMAL;
  43848. _this.dataTypNameToDTC["DATE"] = _HighLevelDataType2.default.DATE;
  43849. _this.dataTypNameToDTC["TIME"] = _HighLevelDataType2.default.TIME;
  43850. _this.dataTypNameToDTC["TIME_TZ"] = _HighLevelDataType2.default.TIME;
  43851. _this.dataTypNameToDTC["TIMESTAMP"] = _HighLevelDataType2.default.DATETIME;
  43852. _this.dataTypNameToDTC["TIMESTAMP_TZ"] = _HighLevelDataType2.default.DATETIME;
  43853. _this.dataTypNameToDTC["INTERVAL_YEAR"] = _HighLevelDataType2.default.INTERVAL;
  43854. _this.dataTypNameToDTC["INTERVAL_YEAR_TO_MONTH"] = _HighLevelDataType2.default.INTERVAL;
  43855. _this.dataTypNameToDTC["INTERVAL_MONTH"] = _HighLevelDataType2.default.INTERVAL;
  43856. _this.dataTypNameToDTC["INTERVAL_DAY"] = _HighLevelDataType2.default.INTERVAL;
  43857. _this.dataTypNameToDTC["INTERVAL_DAY_TO_HOUR"] = _HighLevelDataType2.default.INTERVAL;
  43858. _this.dataTypNameToDTC["INTERVAL_DAY_TO_MINUTE"] = _HighLevelDataType2.default.INTERVAL;
  43859. _this.dataTypNameToDTC["INTERVAL_DAY_TO_SECOND"] = _HighLevelDataType2.default.INTERVAL;
  43860. _this.dataTypNameToDTC["INTERVAL_HOUR"] = _HighLevelDataType2.default.INTERVAL;
  43861. _this.dataTypNameToDTC["INTERVAL_HOUR_TO_MINUTE"] = _HighLevelDataType2.default.INTERVAL;
  43862. _this.dataTypNameToDTC["INTERVAL_HOUR_TO_SECOND"] = _HighLevelDataType2.default.INTERVAL;
  43863. _this.dataTypNameToDTC["INTERVAL_MINUTE"] = _HighLevelDataType2.default.INTERVAL;
  43864. _this.dataTypNameToDTC["INTERVAL_MINUTE_TO_SECOND"] = _HighLevelDataType2.default.INTERVAL;
  43865. _this.dataTypNameToDTC["INTERVAL_SECOND"] = _HighLevelDataType2.default.INTERVAL;
  43866. _this.dataTypNameToDTC["ARRAY"] = _HighLevelDataType2.default.ARRAY;
  43867. _this.dataTypNameToDTC["ROWSET"] = _HighLevelDataType2.default.ARRAY;
  43868. _this.dataTypNameToDTC["LONGVARBINARY"] = _HighLevelDataType2.default.OBJECT;
  43869. _this.dataTypNameToDTC["BINARY"] = _HighLevelDataType2.default.OBJECT;
  43870. _this.dataTypNameToDTC["VARBINARY"] = _HighLevelDataType2.default.OBJECT;
  43871. _this.dataTypNameToDTC["BLOB"] = _HighLevelDataType2.default.OBJECT;
  43872. _this.dataTypNameToDTC["REF"] = _HighLevelDataType2.default.OBJECT;
  43873. _this.dataTypNameToDTC["DISTINCT"] = _HighLevelDataType2.default.OBJECT;
  43874. _this.dataTypNameToDTC["JAVA_OBJECT"] = _HighLevelDataType2.default.OBJECT;
  43875. _this.dataTypNameToDTC["OTHER"] = _HighLevelDataType2.default.OBJECT;
  43876. _this.dataTypNameToDTC["STRUCT"] = _HighLevelDataType2.default.OBJECT;
  43877. _this.dataTypNameToDTC["NULL"] = _HighLevelDataType2.default.OBJECT;
  43878. _this.dataTypNameToDTC["ROWID"] = _HighLevelDataType2.default.OBJECT;
  43879. _this.dataTypNameToDTC["VARIANT"] = _HighLevelDataType2.default.OBJECT;
  43880. _this.dataTypNameToDTC["PERIOD_DATE"] = _HighLevelDataType2.default.PERIOD;
  43881. _this.dataTypNameToDTC["PERIOD_TIME"] = _HighLevelDataType2.default.PERIOD;
  43882. _this.dataTypNameToDTC["PERIOD_TIME_TZ"] = _HighLevelDataType2.default.PERIOD;
  43883. _this.dataTypNameToDTC["PERIOD_TIMESTAMP"] = _HighLevelDataType2.default.PERIOD;
  43884. _this.dataTypNameToDTC["PERIOD_TIMESTAMP_TZ"] = _HighLevelDataType2.default.PERIOD;
  43885. return _this;
  43886. }
  43887. /**
  43888. * Return true if a CM object type is a first class object, meaning it is visible to users.
  43889. * @param {String} type - CM object type.
  43890. * @return {boolean}
  43891. */
  43892. /**
  43893. * data type name to data type category map.
  43894. */
  43895. _createClass(MoserCommonUtils, null, [{
  43896. key: 'isFirstClassObject',
  43897. value: function isFirstClassObject(type) {
  43898. return MoserCommonUtils.isFolderObject(type) || "package" == type || "dataSource" == type || "dataSourceConnection" == type || MoserCommonUtils.isContentObject(type);
  43899. }
  43900. /**
  43901. * Return true if a CM object type is a 'account' object.
  43902. * @param {String} type - CM object type.
  43903. * @return {boolean}
  43904. */
  43905. }, {
  43906. key: 'isAccountObject',
  43907. value: function isAccountObject(type) {
  43908. return "account" == type;
  43909. }
  43910. /**
  43911. * Return true if a CM object type is a 'folder' object.
  43912. * @param {String} type - CM object type.
  43913. * @return {boolean}
  43914. */
  43915. }, {
  43916. key: 'isFolderObject',
  43917. value: function isFolderObject(type) {
  43918. return "folder" == type;
  43919. }
  43920. /**
  43921. * Return true if a CM object type if a 'directory' object.
  43922. */
  43923. }, {
  43924. key: 'isDirectoryObject',
  43925. value: function isDirectoryObject(type) {
  43926. return "directory" == type;
  43927. }
  43928. /**
  43929. * Return true if a CM object type is a 'content' object.
  43930. * @param {String} type - CM object type.
  43931. * @return {boolean}
  43932. */
  43933. }, {
  43934. key: 'isContentObject',
  43935. value: function isContentObject(type) {
  43936. return "content" == type;
  43937. }
  43938. /**
  43939. * Generate HighLevelDatatype Category from data type.
  43940. * @param {String} dataType data type string.
  43941. * @return {HighLevelDataType} HighLevelDataType.
  43942. */
  43943. }, {
  43944. key: 'generateHighlevelDatatype',
  43945. value: function generateHighlevelDatatype(dataType) {
  43946. if (dataType == null) {
  43947. return _HighLevelDataType2.default.INTEGER;
  43948. }
  43949. var jmdDataType = MoserCommonUtils.getJMDDataTypeName(dataType);
  43950. var hld = MoserCommonUtils.instance.dataTypNameToDTC[jmdDataType];
  43951. if (_HighLevelDataType2.default.DECIMAL === hld && ("NUMERIC" == jmdDataType || "DECIMAL" == jmdDataType)) {
  43952. var scale = MoserCommonUtils.getScale(dataType);
  43953. return scale != null && scale <= 0 ? _HighLevelDataType2.default.INTEGER : hld;
  43954. }
  43955. return hld;
  43956. }
  43957. /**
  43958. * Get the precision of a data type, return null if cannot be determined.
  43959. * @param {String} dataType
  43960. * @return {Number}
  43961. */
  43962. }, {
  43963. key: 'getPrecision',
  43964. value: function getPrecision(dataType) {
  43965. var dt = dataType.trim();
  43966. var index1 = dt.indexOf("(");
  43967. var index2 = dt.indexOf(")");
  43968. if (index1 == -1 || index2 == -1) {
  43969. return null;
  43970. }
  43971. dt = dt.substring(index1 + 1, index2).replace(new RegExp(" ", "g"), "");
  43972. var index = dt.indexOf(",");
  43973. return index == -1 ? new Number(dt) : new Number(dt.substring(0, index));
  43974. }
  43975. /**
  43976. * Get the scale of a data type, return null if cannot be determined.
  43977. * @param {String} dataType
  43978. * @return {Number}
  43979. */
  43980. }, {
  43981. key: 'getScale',
  43982. value: function getScale(dataType) {
  43983. var dt = dataType.trim();
  43984. var index1 = dt.indexOf("(");
  43985. var index2 = dt.indexOf(")");
  43986. if (index1 == -1 || index2 == -1) {
  43987. var jmdDataType = MoserCommonUtils.getJMDDataTypeName(dataType);
  43988. var hld = MoserCommonUtils.instance.dataTypNameToDTC[jmdDataType];
  43989. return _HighLevelDataType2.default.INTEGER === hld ? new Number(0) : null;
  43990. }
  43991. dt = dt.substring(index1 + 1, index2).replace(new RegExp(" ", "g"), "");
  43992. var index = dt.indexOf(",");
  43993. return index == -1 ? new Number(0) : new Number(dt.substring(index + 1));
  43994. }
  43995. /**
  43996. * get JMD data type name.
  43997. * @param {String} dataType the data type.
  43998. * @return {String} JMD data type name.
  43999. */
  44000. }, {
  44001. key: 'getJMDDataTypeName',
  44002. value: function getJMDDataTypeName(dataType) {
  44003. var dt = dataType.trim();
  44004. var index = dt.indexOf("(");
  44005. if (index != -1) {
  44006. dt = dt.substring(0, index);
  44007. }
  44008. if ("TIME WITH TIME ZONE".toLowerCase() == dt.toLowerCase()) {
  44009. return "TIME_TZ";
  44010. } else if ("TIMESTAMP WITH TIME ZONE".toLowerCase() == dt.toLowerCase()) {
  44011. return "TIMESTAMP_TZ";
  44012. } else if ("STRING".toLowerCase() == dt.toLowerCase()) {
  44013. return "NVARCHAR(MAX)";
  44014. }
  44015. return dt.toUpperCase().replace(new RegExp(" ", "g"), "_");
  44016. }
  44017. /**
  44018. * get usage according to high level type (FM rule). identifier: date/time/datetime fact: numeric/interval attribute: string automatic: other
  44019. * @param {HighLevelDataType} highDT - HighLevelDataType.
  44020. * @return {UsageType} usage.
  44021. */
  44022. }, {
  44023. key: 'getUsageFromHighLevelDataType',
  44024. value: function getUsageFromHighLevelDataType(highDT) {
  44025. if (_HighLevelDataType2.default.DATE === highDT || _HighLevelDataType2.default.TIME === highDT || _HighLevelDataType2.default.DATETIME === highDT) {
  44026. return _UsageType2.default.IDENTIFIER;
  44027. }
  44028. if (_HighLevelDataType2.default.INTEGER === highDT || _HighLevelDataType2.default.DECIMAL === highDT || _HighLevelDataType2.default.INTERVAL === highDT) {
  44029. return _UsageType2.default.FACT;
  44030. }
  44031. if (_HighLevelDataType2.default.STRING === highDT) {
  44032. return _UsageType2.default.ATTRIBUTE;
  44033. }
  44034. return _UsageType2.default.AUTOMATIC;
  44035. }
  44036. /**
  44037. * get RegularAggregateType according to Usage And High Level DataType.
  44038. * @param {UsageType} usage - usage.
  44039. * @param {HighLevelDataType} highDT - HighLevelDataType.
  44040. * @return {RegularAggregateType}
  44041. */
  44042. }, {
  44043. key: 'getRegularAggregateTypeFromUsageAndHighLevelDataType',
  44044. value: function getRegularAggregateTypeFromUsageAndHighLevelDataType(usage, highDT) {
  44045. if (_UsageType2.default.AUTOMATIC === usage) {
  44046. return _RegularAggregateType2.default.NONE;
  44047. }
  44048. if (_UsageType2.default.IDENTIFIER === usage || _UsageType2.default.ATTRIBUTE === usage) {
  44049. return _RegularAggregateType2.default.COUNT_DISTINCT;
  44050. }
  44051. return MoserCommonUtils.getRegularAggregateTypeFromHighLevelDataType(highDT);
  44052. }
  44053. /**
  44054. * get RegularAggregateType according to High Level DataType.
  44055. * @param {HighLevelDataType} highDT - HighLevelDataType.
  44056. * @return {RegularAggregateType}
  44057. */
  44058. }, {
  44059. key: 'getRegularAggregateTypeFromHighLevelDataType',
  44060. value: function getRegularAggregateTypeFromHighLevelDataType(highDT) {
  44061. if (_HighLevelDataType2.default.DATE === highDT || _HighLevelDataType2.default.TIME === highDT || _HighLevelDataType2.default.DATETIME === highDT) {
  44062. return _RegularAggregateType2.default.MAXIMUM;
  44063. }
  44064. if (_HighLevelDataType2.default.INTEGER === highDT || _HighLevelDataType2.default.DECIMAL === highDT || _HighLevelDataType2.default.INTERVAL === highDT) {
  44065. return _RegularAggregateType2.default.TOTAL;
  44066. }
  44067. return _RegularAggregateType2.default.COUNT;
  44068. }
  44069. /**
  44070. * check if data types are compatible. use the rule in DataTypeComparator.areCompatibleDataTypes
  44071. * @param {String} lDataType
  44072. * @param {String} rDataType
  44073. * @return {boolean} t/f.
  44074. */
  44075. }, {
  44076. key: 'areCompatibleDataTypes',
  44077. value: function areCompatibleDataTypes(lDataType, rDataType) {
  44078. if (lDataType == null || rDataType == null) {
  44079. return false;
  44080. }
  44081. var leftDTName = MoserCommonUtils.getJMDDataTypeName(lDataType);
  44082. var rightDTName = MoserCommonUtils.getJMDDataTypeName(rDataType);
  44083. var leftHighDT = MoserCommonUtils.instance.dataTypNameToDTC[leftDTName];
  44084. var rightHighDT = MoserCommonUtils.instance.dataTypNameToDTC[rightDTName];
  44085. if (!leftHighDT || !rightHighDT) {
  44086. return false;
  44087. }
  44088. if (leftDTName == "NULL" || rightDTName == "NULL") {
  44089. return true;
  44090. }
  44091. if (leftDTName == rightDTName) {
  44092. return true;
  44093. }
  44094. if (leftDTName == "UNKNOWN" || rightDTName == "UNKNOWN") {
  44095. return false;
  44096. }
  44097. if (leftHighDT == _HighLevelDataType2.default.STRING && rightHighDT == _HighLevelDataType2.default.STRING) {
  44098. return true;
  44099. }
  44100. if ((leftHighDT == _HighLevelDataType2.default.INTEGER || leftHighDT == _HighLevelDataType2.default.DECIMAL) && (rightHighDT == _HighLevelDataType2.default.INTEGER || rightHighDT == _HighLevelDataType2.default.DECIMAL)) {
  44101. return true;
  44102. }
  44103. if (leftHighDT == _HighLevelDataType2.default.BOOLEAN && rightHighDT == _HighLevelDataType2.default.BOOLEAN) {
  44104. return true;
  44105. }
  44106. if (leftHighDT == _HighLevelDataType2.default.DATE && rightHighDT == _HighLevelDataType2.default.DATE) {
  44107. return true;
  44108. }
  44109. if (leftHighDT == _HighLevelDataType2.default.TIME && rightHighDT == _HighLevelDataType2.default.TIME) {
  44110. return true;
  44111. }
  44112. if (leftHighDT == _HighLevelDataType2.default.DATETIME && rightHighDT == _HighLevelDataType2.default.DATETIME) {
  44113. return true;
  44114. }
  44115. if (leftHighDT == _HighLevelDataType2.default.DATE) {
  44116. return rightHighDT == _HighLevelDataType2.default.DATETIME;
  44117. } else if (leftHighDT == _HighLevelDataType2.default.DATETIME) {
  44118. return rightHighDT == _HighLevelDataType2.default.DATE;
  44119. }
  44120. if (leftHighDT == _HighLevelDataType2.default.INTERVAL && rightHighDT == _HighLevelDataType2.default.INTERVAL) {
  44121. return (leftDTName == "INTERVAL_YEAR" || leftDTName == "INTERVAL_YEAR_TO_MONTH" || leftDTName == "INTERVAL_MONTH") && (rightDTName == "INTERVAL_YEAR" || rightDTName == "INTERVAL_YEAR_TO_MONTH" || rightDTName == "INTERVAL_MONTH");
  44122. }
  44123. return false;
  44124. }
  44125. /**
  44126. * Create a list of Ancestors by parsing a JSONArray that is returned with /sources calls.
  44127. * @param {Array} ancestorsResp
  44128. * @param {String} myFoldersLabel
  44129. * @param {String} teamContentLabel
  44130. * @return {Array}
  44131. */
  44132. }, {
  44133. key: 'createAncestors',
  44134. value: function createAncestors(ancestorsResp, myFoldersLabel, teamContentLabel) {
  44135. var ancestors = [];
  44136. if (!ancestorsResp || ancestorsResp.length == 0) {
  44137. return ancestors;
  44138. }
  44139. var parentType;
  44140. for (var __i_enFor0 = 0, __exp_enFor0 = ancestorsResp, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44141. var o = __exp_enFor0[__i_enFor0];
  44142. var a = o;
  44143. var type = a["type"];
  44144. if (!MoserCommonUtils.isFirstClassObject(type) && !MoserCommonUtils._isMyFolderGlass(type, parentType, a["id"])) {
  44145. parentType = type;
  44146. continue;
  44147. }
  44148. var defaultName = MoserCommonUtils._getDefaultName(type, a, parentType, myFoldersLabel, teamContentLabel);
  44149. if (defaultName == null) {
  44150. parentType = type;
  44151. continue;
  44152. }
  44153. var ancestor = new _Module2.default.UseSpec.Ancestors();
  44154. ancestor.setDefaultName(defaultName);
  44155. if (type != null && MoserCommonUtils._isMyFolder(type, parentType)) {
  44156. ancestor.setStoreID(".my_folders");
  44157. } else if (type != null && MoserCommonUtils._isTeamContent(type, parentType)) {
  44158. ancestor.setStoreID(".public_folders");
  44159. } else {
  44160. var id = a["id"];
  44161. if (id != null) {
  44162. ancestor.setStoreID(id);
  44163. }
  44164. }
  44165. parentType = type;
  44166. ancestors.push(ancestor);
  44167. }
  44168. return ancestors;
  44169. }
  44170. /**
  44171. * Identify .my_folders passed from glass
  44172. * @param {String} type passed by glass "directory"
  44173. * @param {String} parentType passed by glass null
  44174. * @param {String} id passed by glass ".my_folders"
  44175. * @return {boolean} true if all are true.
  44176. */
  44177. }, {
  44178. key: '_isMyFolderGlass',
  44179. value: function _isMyFolderGlass(type, parentType, id) {
  44180. return parentType == null && MoserCommonUtils.isDirectoryObject(type) && ".my_folders" == id;
  44181. }
  44182. /**
  44183. * Get the defaultName to use for a given ancestor.
  44184. * @param {String} type
  44185. * @param {Object} a
  44186. * @param {String} parentType
  44187. * @param {String} myFoldersLabel
  44188. * @param {String} teamContentLabel
  44189. * @return {String}
  44190. */
  44191. }, {
  44192. key: '_getDefaultName',
  44193. value: function _getDefaultName(type, a, parentType, myFoldersLabel, teamContentLabel) {
  44194. var defaultName = a["name"];
  44195. if (defaultName == null) {
  44196. defaultName = a["defaultName"];
  44197. }
  44198. if (myFoldersLabel != null && MoserCommonUtils._isMyFolder(type, parentType)) {
  44199. return myFoldersLabel;
  44200. }
  44201. if (teamContentLabel != null && MoserCommonUtils._isTeamContent(type, parentType)) {
  44202. return teamContentLabel;
  44203. }
  44204. return defaultName;
  44205. }
  44206. /**
  44207. * Determines whether the ancestor came from My Folders
  44208. * @param {String} type
  44209. * @param {String} parentType
  44210. * @return {boolean}
  44211. */
  44212. }, {
  44213. key: '_isMyFolder',
  44214. value: function _isMyFolder(type, parentType) {
  44215. return parentType == null && MoserCommonUtils.isDirectoryObject(type) || MoserCommonUtils.isAccountObject(parentType) && MoserCommonUtils.isFolderObject(type);
  44216. }
  44217. /**
  44218. * Determines whether the ancestor came from Team Content
  44219. * @param {String} type
  44220. * @param {String} parentType
  44221. * @return {boolean}
  44222. */
  44223. }, {
  44224. key: '_isTeamContent',
  44225. value: function _isTeamContent(type, parentType) {
  44226. return MoserCommonUtils.isContentObject(type) && parentType == null;
  44227. }
  44228. }]);
  44229. return MoserCommonUtils;
  44230. }(_BaseMoserObject3.default);
  44231. MoserCommonUtils.ID_KEY = "id";
  44232. MoserCommonUtils.MY_FOLDERS = ".my_folders";
  44233. MoserCommonUtils.SPACE = " ";
  44234. MoserCommonUtils.UNDERSCORE = "_";
  44235. MoserCommonUtils.XQEDT_TIME_TZ = "TIME WITH TIME ZONE";
  44236. MoserCommonUtils.XQEDT_TIMESTAMP_TZ = "TIMESTAMP WITH TIME ZONE";
  44237. MoserCommonUtils.XQEDT_STRING = "STRING";
  44238. MoserCommonUtils.DT_NVARCHAR_MAX = "NVARCHAR(MAX)";
  44239. MoserCommonUtils.DT_TIME_TZ = "TIME_TZ";
  44240. MoserCommonUtils.DT_TIMESTAMP_TZ = "TIMESTAMP_TZ";
  44241. MoserCommonUtils.DT_BIT = "BIT";
  44242. MoserCommonUtils.DT_BOOLEAN = "BOOLEAN";
  44243. MoserCommonUtils.DT_CHAR = "CHAR";
  44244. MoserCommonUtils.DT_LONGNVARCHAR = "LONGNVARCHAR";
  44245. MoserCommonUtils.DT_LONGVARCHAR = "LONGVARCHAR";
  44246. MoserCommonUtils.DT_NCHAR = "NCHAR";
  44247. MoserCommonUtils.DT_NVARCHAR = "NVARCHAR";
  44248. MoserCommonUtils.DT_VARCHAR = "VARCHAR";
  44249. MoserCommonUtils.DT_DATALINK = "DATALINK";
  44250. MoserCommonUtils.DT_JSON = "JSON";
  44251. MoserCommonUtils.DT_SQLXML = "SQLXML";
  44252. MoserCommonUtils.DT_CLOB = "CLOB";
  44253. MoserCommonUtils.DT_NCLOB = "NCLOB";
  44254. MoserCommonUtils.DT_BIGINT = "BIGINT";
  44255. MoserCommonUtils.DT_DOUBLE = "DOUBLE";
  44256. MoserCommonUtils.DT_FLOAT = "FLOAT";
  44257. MoserCommonUtils.DT_INTEGER = "INTEGER";
  44258. MoserCommonUtils.DT_REAL = "REAL";
  44259. MoserCommonUtils.DT_SMALLINT = "SMALLINT";
  44260. MoserCommonUtils.DT_TINYINT = "TINYINT";
  44261. MoserCommonUtils.DT_DECIMAL = "DECIMAL";
  44262. MoserCommonUtils.DT_LONG = "LONG";
  44263. MoserCommonUtils.DT_NUMERIC = "NUMERIC";
  44264. MoserCommonUtils.DT_DATE = "DATE";
  44265. MoserCommonUtils.DT_TIME = "TIME";
  44266. MoserCommonUtils.DT_TIMESTAMP = "TIMESTAMP";
  44267. MoserCommonUtils.DT_INTERVAL_YEAR = "INTERVAL_YEAR";
  44268. MoserCommonUtils.DT_INTERVAL_YEAR_TO_MONTH = "INTERVAL_YEAR_TO_MONTH";
  44269. MoserCommonUtils.DT_INTERVAL_MONTH = "INTERVAL_MONTH";
  44270. MoserCommonUtils.DT_INTERVAL_DAY = "INTERVAL_DAY";
  44271. MoserCommonUtils.DT_INTERVAL_DAY_TO_HOUR = "INTERVAL_DAY_TO_HOUR";
  44272. MoserCommonUtils.DT_INTERVAL_DAY_TO_MINUTE = "INTERVAL_DAY_TO_MINUTE";
  44273. MoserCommonUtils.DT_INTERVAL_DAY_TO_SECOND = "INTERVAL_DAY_TO_SECOND";
  44274. MoserCommonUtils.DT_INTERVAL_HOUR = "INTERVAL_HOUR";
  44275. MoserCommonUtils.DT_INTERVAL_HOUR_TO_MINUTE = "INTERVAL_HOUR_TO_MINUTE";
  44276. MoserCommonUtils.DT_INTERVAL_HOUR_TO_SECOND = "INTERVAL_HOUR_TO_SECOND";
  44277. MoserCommonUtils.DT_INTERVAL_MINUTE = "INTERVAL_MINUTE";
  44278. MoserCommonUtils.DT_INTERVAL_MINUTE_TO_SECOND = "INTERVAL_MINUTE_TO_SECOND";
  44279. MoserCommonUtils.DT_INTERVAL_SECOND = "INTERVAL_SECOND";
  44280. MoserCommonUtils.DT_ARRAY = "ARRAY";
  44281. MoserCommonUtils.DT_ROWSET = "ROWSET";
  44282. MoserCommonUtils.DT_LONGVARBINARY = "LONGVARBINARY";
  44283. MoserCommonUtils.DT_BINARY = "BINARY";
  44284. MoserCommonUtils.DT_VARBINARY = "VARBINARY";
  44285. MoserCommonUtils.DT_BLOB = "BLOB";
  44286. MoserCommonUtils.DT_REF = "REF";
  44287. MoserCommonUtils.DT_DISTINCT = "DISTINCT";
  44288. MoserCommonUtils.DT_JAVA_OBJECT = "JAVA_OBJECT";
  44289. MoserCommonUtils.DT_OTHER = "OTHER";
  44290. MoserCommonUtils.DT_STRUCT = "STRUCT";
  44291. MoserCommonUtils.DT_NULL = "NULL";
  44292. MoserCommonUtils.DT_ROWID = "ROWID";
  44293. MoserCommonUtils.DT_VARIANT = "VARIANT";
  44294. MoserCommonUtils.DT_PERIOD_DATE = "PERIOD_DATE";
  44295. MoserCommonUtils.DT_PERIOD_TIME = "PERIOD_TIME";
  44296. MoserCommonUtils.DT_PERIOD_TIME_TZ = "PERIOD_TIME_TZ";
  44297. MoserCommonUtils.DT_PERIOD_TIMESTAMP = "PERIOD_TIMESTAMP";
  44298. MoserCommonUtils.DT_PERIOD_TIMESTAMP_TZ = "PERIOD_TIMESTAMP_TZ";
  44299. MoserCommonUtils.DT_UNKNOWN = "UNKNOWN";
  44300. MoserCommonUtils.instance = new MoserCommonUtils();
  44301. exports.default = MoserCommonUtils;
  44302. /***/ },
  44303. /* 125 */
  44304. /***/ function(module, exports, __webpack_require__) {
  44305. 'use strict';
  44306. Object.defineProperty(exports, "__esModule", {
  44307. value: true
  44308. });
  44309. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44310. var _BaseMoserObject2 = __webpack_require__(2);
  44311. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  44312. var _QuerySubjectUtils = __webpack_require__(116);
  44313. var _QuerySubjectUtils2 = _interopRequireDefault(_QuerySubjectUtils);
  44314. var _DataModuleExtractor = __webpack_require__(117);
  44315. var _DataModuleExtractor2 = _interopRequireDefault(_DataModuleExtractor);
  44316. var _ModuleUtils = __webpack_require__(114);
  44317. var _ModuleUtils2 = _interopRequireDefault(_ModuleUtils);
  44318. var _ReferenceResolver = __webpack_require__(40);
  44319. var _ReferenceResolver2 = _interopRequireDefault(_ReferenceResolver);
  44320. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44321. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44322. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44323. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  44324. ** IBM Confidential
  44325. **
  44326. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  44327. **
  44328. ** (C) Copyright IBM Corp. 2020
  44329. **
  44330. ** The source code for this program is not published or otherwise divested of its trade secrets,
  44331. ** irrespective of what has been deposited with the U.S. Copyright Office.
  44332. ************************************************************************/
  44333. // GENERATED
  44334. //@import BaseMoserObject (loadtime) // superclass
  44335. //@import com/ibm/bi/platform/moser/client/utils/QuerySubjectUtils (runtime) // getParentOfType
  44336. //@import com/ibm/bi/platform/moser/core/module/util/DataModuleExtractor (runtime) // getUseSpec
  44337. //@import com/ibm/bi/platform/moser/client/utils/ModuleUtils (runtime) // findObjectTypeByIdForExpression
  44338. //@import com/ibm/bi/platform/moser/common/utils/ReferenceResolver (static) // getSecondPart
  44339. /**
  44340. * @author Natalia Balaba
  44341. */
  44342. var ObjectNavigator = function (_BaseMoserObject) {
  44343. _inherits(ObjectNavigator, _BaseMoserObject);
  44344. /**
  44345. * @param {Module} module
  44346. * @param {Map} catalog
  44347. */
  44348. function ObjectNavigator(module, catalog) {
  44349. _classCallCheck(this, ObjectNavigator);
  44350. var _this = _possibleConstructorReturn(this, (ObjectNavigator.__proto__ || Object.getPrototypeOf(ObjectNavigator)).call(this));
  44351. _this.module = null;
  44352. _this.catalog = null;
  44353. _this.module = module;
  44354. _this.catalog = catalog;
  44355. return _this;
  44356. }
  44357. /**
  44358. * @param {ObjectType} baseModuleObject - an object in a base module
  44359. * @param {String} baseModuleUseSpecID - id of the use spec (e.g. M1, M2) used to describe the base module containing source object
  44360. * @return {MoserObject} an object from a business module created using source object
  44361. */
  44362. _createClass(ObjectNavigator, [{
  44363. key: 'findModuleObjectUsingBaseObject',
  44364. value: function findModuleObjectUsingBaseObject(baseModuleObject, baseModuleUseSpecID) {
  44365. if (!baseModuleObject || !this.catalog.hasOwnProperty(baseModuleUseSpecID)) {
  44366. return null;
  44367. }
  44368. if ("QuerySubject" == baseModuleObject.getObjectType()) {
  44369. var ref = baseModuleUseSpecID + "." + baseModuleObject.getIdentifier();
  44370. for (var __i_enFor0 = 0, __exp_enFor0 = this.module.getQuerySubject(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44371. var qs = __exp_enFor0[__i_enFor0];
  44372. if (!(qs.getOriginalRef().length == 0)) {
  44373. if (ref == qs.getOriginalRef()[0]) {
  44374. return qs;
  44375. }
  44376. } else if (!(qs.getRef().length == 0) && ref == qs.getRef()[0]) {
  44377. return qs;
  44378. }
  44379. }
  44380. } else if ("Relationship" == baseModuleObject.getObjectType()) {
  44381. return null;
  44382. } else if ("Filter" == baseModuleObject.getObjectType() || "Calculation" == baseModuleObject.getObjectType() || "QueryItem" == baseModuleObject.getObjectType()) {
  44383. var querySubject = _QuerySubjectUtils2.default.getParentOfType("QuerySubject", baseModuleObject);
  44384. if (querySubject) {
  44385. var idForExpression = baseModuleUseSpecID + "." + querySubject.getIdentifier();
  44386. for (var __i_enFor1 = 0, __exp_enFor1 = this.module.getQuerySubject(), __len_enFor1 = __exp_enFor1.length; __i_enFor1 < __len_enFor1; ++__i_enFor1) {
  44387. var qs = __exp_enFor1[__i_enFor1];
  44388. if (!(qs.getOriginalRef().length == 0)) {
  44389. var origRef = qs.getOriginalRef()[0];
  44390. if (idForExpression == origRef) {
  44391. return this._locateModuleItemUsingBase(baseModuleObject, qs.getItem());
  44392. }
  44393. }
  44394. if (!(qs.getRef().length == 0)) {
  44395. var ref = qs.getRef()[0];
  44396. if (idForExpression == ref) {
  44397. return this._locateModuleItemUsingBase(baseModuleObject, qs.getItem());
  44398. }
  44399. }
  44400. }
  44401. }
  44402. }
  44403. return null;
  44404. }
  44405. /**
  44406. * @param {ObjectType} baseItem - item (a query subject child) from a base module
  44407. * @param {Array} items - items collection to search
  44408. * @return {MoserObject} target item in the business module using source item
  44409. */
  44410. }, {
  44411. key: '_locateModuleItemUsingBase',
  44412. value: function _locateModuleItemUsingBase(baseItem, items) {
  44413. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44414. var item = __exp_enFor0[__i_enFor0];
  44415. if (item.getFolder()) {
  44416. var object = this._locateModuleItemUsingBase(baseItem, item.getFolder().getItem());
  44417. if (object) {
  44418. return object;
  44419. }
  44420. }
  44421. if ("Filter" == baseItem.getObjectType()) {
  44422. if (item.getFilter() && item.getFilter().getIdentifier() == baseItem.getIdentifier()) {
  44423. return item.getFilter();
  44424. }
  44425. } else if ("Calculation" == baseItem.getObjectType()) {
  44426. if (item.getCalculation() && item.getCalculation().getIdentifier() == baseItem.getIdentifier()) {
  44427. return item.getCalculation();
  44428. }
  44429. } else if ("QueryItem" == baseItem.getObjectType()) {
  44430. if (item.getQueryItem() && item.getQueryItem().getIdentifier() == baseItem.getIdentifier()) {
  44431. return item.getQueryItem();
  44432. }
  44433. }
  44434. }
  44435. return null;
  44436. }
  44437. /**
  44438. * @param {ObjectType} moduleObject - an object inside business module
  44439. * @return {MoserObject} original object from a base module target object was created from
  44440. */
  44441. }, {
  44442. key: 'findBaseObjectUsingModuleObject',
  44443. value: function findBaseObjectUsingModuleObject(moduleObject) {
  44444. if (!moduleObject) {
  44445. return null;
  44446. }
  44447. if ("QuerySubject" == moduleObject.getObjectType()) {
  44448. var useSpec = _DataModuleExtractor2.default.getUseSpec(moduleObject, this.module, true);
  44449. if (!useSpec) {
  44450. return null;
  44451. }
  44452. var base = this.catalog[useSpec.getIdentifier()];
  44453. return _ModuleUtils2.default.findObjectTypeByIdForExpression(base, ObjectNavigator._getSecondPart(moduleObject));
  44454. } else if ("Relationship" == moduleObject.getObjectType()) {
  44455. return null;
  44456. } else if ("Filter" == moduleObject.getObjectType() || "Calculation" == moduleObject.getObjectType() || "QueryItem" == moduleObject.getObjectType()) {
  44457. var querySubject = _QuerySubjectUtils2.default.getParentOfType("QuerySubject", moduleObject);
  44458. if (querySubject) {
  44459. return this._locateBaseItemUsing(moduleObject, querySubject);
  44460. }
  44461. }
  44462. return null;
  44463. }
  44464. /**
  44465. * @param {ObjectType} moduleItem a child of a query subject in the business module
  44466. * @param {QuerySubject} moduleQuerySubject a parent of the moduleItem from the business module
  44467. * @return {MoserObject} a base module item from a base module used to create moduleItem
  44468. */
  44469. }, {
  44470. key: '_locateBaseItemUsing',
  44471. value: function _locateBaseItemUsing(moduleItem, moduleQuerySubject) {
  44472. var useSpec = this._getUseSpec(moduleQuerySubject);
  44473. if (!useSpec) {
  44474. return null;
  44475. }
  44476. var base = this.catalog[useSpec.getIdentifier()];
  44477. var qsRef = ObjectNavigator._getSecondPart(moduleQuerySubject);
  44478. var qiRef = _ReferenceResolver2.default.getSecondPart(moduleItem.getIdForExpression());
  44479. var idForExpression = qsRef + "." + qiRef;
  44480. return _ModuleUtils2.default.findObjectTypeByIdForExpression(base, idForExpression);
  44481. }
  44482. /**
  44483. * @param {ObjectType} object
  44484. * @return {UseSpec}
  44485. */
  44486. }, {
  44487. key: '_getUseSpec',
  44488. value: function _getUseSpec(object) {
  44489. return _DataModuleExtractor2.default.getUseSpec(object, this.module, true);
  44490. }
  44491. /**
  44492. * @param {QuerySubject} querySubject
  44493. * @return {String}
  44494. */
  44495. }], [{
  44496. key: '_getSecondPart',
  44497. value: function _getSecondPart(querySubject) {
  44498. if (!(querySubject.getOriginalRef().length == 0)) {
  44499. return _ReferenceResolver2.default.getSecondPart(querySubject.getOriginalRef()[0]);
  44500. }
  44501. return _ReferenceResolver2.default.getSecondPart(querySubject.getRef()[0]);
  44502. }
  44503. }]);
  44504. return ObjectNavigator;
  44505. }(_BaseMoserObject3.default);
  44506. exports.default = ObjectNavigator;
  44507. /***/ },
  44508. /* 126 */
  44509. /***/ function(module, exports, __webpack_require__) {
  44510. 'use strict';
  44511. Object.defineProperty(exports, "__esModule", {
  44512. value: true
  44513. });
  44514. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44515. var _BaseMoserObject2 = __webpack_require__(2);
  44516. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  44517. var _ModuleUtils = __webpack_require__(114);
  44518. var _ModuleUtils2 = _interopRequireDefault(_ModuleUtils);
  44519. var _UseSpecType = __webpack_require__(55);
  44520. var _UseSpecType2 = _interopRequireDefault(_UseSpecType);
  44521. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44522. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44523. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44524. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  44525. ** IBM Confidential
  44526. **
  44527. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  44528. **
  44529. ** (C) Copyright IBM Corp. 2020
  44530. **
  44531. ** The source code for this program is not published or otherwise divested of its trade secrets,
  44532. ** irrespective of what has been deposited with the U.S. Copyright Office.
  44533. ************************************************************************/
  44534. // GENERATED
  44535. //@import BaseMoserObject (loadtime) // superclass
  44536. //@import com/ibm/bi/platform/moser/client/utils/ModuleUtils (static) // addPlaceHolder, createModule
  44537. //@import com/ibm/bi/platform/moser/common/generated/metadata/UseSpecType (static) // UseSpecType
  44538. /**
  44539. * Utilities for creating and processing a dashboard embedded module
  44540. * @author mohamedelgemaiey
  44541. */
  44542. var EmbeddedModuleUtils = function (_BaseMoserObject) {
  44543. _inherits(EmbeddedModuleUtils, _BaseMoserObject);
  44544. function EmbeddedModuleUtils() {
  44545. _classCallCheck(this, EmbeddedModuleUtils);
  44546. return _possibleConstructorReturn(this, (EmbeddedModuleUtils.__proto__ || Object.getPrototypeOf(EmbeddedModuleUtils)).apply(this, arguments));
  44547. }
  44548. _createClass(EmbeddedModuleUtils, null, [{
  44549. key: 'createModule',
  44550. /**
  44551. * Create embedded module
  44552. * @param {ObjectFactory} objectFactory : the object factory that will be used to create the module
  44553. * @param {String} label : the module label
  44554. * @param {String} expressionLocale : the expression locale
  44555. * @return {Module}
  44556. */
  44557. value: function createModule(objectFactory, label, expressionLocale) {
  44558. var embeddedModule = _ModuleUtils2.default.createModule(objectFactory, label, expressionLocale);
  44559. embeddedModule.setOverrideMode(true);
  44560. return embeddedModule;
  44561. }
  44562. /**
  44563. * Add a source to an embedded module
  44564. * @param {Module} embdeddedModule : the embedded module
  44565. * @param {UseSpecType} srcModuleType : Source type (package, module, file, ...etc)
  44566. * @param {String} srcModuleStoreId : source module store id
  44567. * @param {String} srcModuleSearchPath : source module search path (Deprecated, ignored)
  44568. * @param objectFactory: factory to create module objects
  44569. * @param ancestors: the ancestors of the useSpec
  44570. */
  44571. }, {
  44572. key: 'addSource',
  44573. value: function addSource(embdeddedModule, srcModuleType, srcModuleStoreId, srcModuleSearchPath, objectFactory, ancestors) {
  44574. var useSpec = objectFactory.createModuleUseSpec();
  44575. useSpec.setIdentifier("ES");
  44576. useSpec.setType(srcModuleType);
  44577. useSpec.setStoreID(srcModuleStoreId);
  44578. useSpec.setImports("*");
  44579. if (ancestors && !(ancestors.length == 0)) {
  44580. Array.prototype.push.apply(useSpec.getAncestors(), ancestors);
  44581. }
  44582. embdeddedModule.addUseSpec(useSpec);
  44583. if (_UseSpecType2.default.PACKAGE === srcModuleType || _UseSpecType2.default.LW_OLAP === srcModuleType || _UseSpecType2.default.REPORT === srcModuleType) {
  44584. _ModuleUtils2.default._addPlaceHolder(embdeddedModule, useSpec.getIdentifier(), objectFactory);
  44585. }
  44586. }
  44587. //constructor()
  44588. }]);
  44589. return EmbeddedModuleUtils;
  44590. }(_BaseMoserObject3.default);
  44591. exports.default = EmbeddedModuleUtils;
  44592. /***/ },
  44593. /* 127 */
  44594. /***/ function(module, exports, __webpack_require__) {
  44595. 'use strict';
  44596. Object.defineProperty(exports, "__esModule", {
  44597. value: true
  44598. });
  44599. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44600. var _BaseMoserObject2 = __webpack_require__(2);
  44601. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  44602. var _JSONObjectFactory = __webpack_require__(111);
  44603. var _JSONObjectFactory2 = _interopRequireDefault(_JSONObjectFactory);
  44604. var _Diagnostic = __webpack_require__(128);
  44605. var _Diagnostic2 = _interopRequireDefault(_Diagnostic);
  44606. var _ValidationMessage = __webpack_require__(56);
  44607. var _ValidationMessage2 = _interopRequireDefault(_ValidationMessage);
  44608. var _MoserObject = __webpack_require__(6);
  44609. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  44610. var _BaseQueryItemType = __webpack_require__(43);
  44611. var _BaseQueryItemType2 = _interopRequireDefault(_BaseQueryItemType);
  44612. var _ObjectType = __webpack_require__(26);
  44613. var _ObjectType2 = _interopRequireDefault(_ObjectType);
  44614. var _DrillGroup = __webpack_require__(50);
  44615. var _DrillGroup2 = _interopRequireDefault(_DrillGroup);
  44616. var _Relationship = __webpack_require__(37);
  44617. var _Relationship2 = _interopRequireDefault(_Relationship);
  44618. var _MoserObjectUtils = __webpack_require__(27);
  44619. var _MoserObjectUtils2 = _interopRequireDefault(_MoserObjectUtils);
  44620. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44621. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44622. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44623. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  44624. ** IBM Confidential
  44625. **
  44626. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  44627. **
  44628. ** (C) Copyright IBM Corp. 2021
  44629. **
  44630. ** The source code for this program is not published or otherwise divested of its trade secrets,
  44631. ** irrespective of what has been deposited with the U.S. Copyright Office.
  44632. ************************************************************************/
  44633. // GENERATED
  44634. //@import BaseMoserObject (loadtime) // superclass
  44635. //@import com/ibm/bi/platform/moser/common/generated/metadata/JSONObjectFactory (runtime) // new
  44636. //@import com/ibm/bi/platform/moser/common/validation/Diagnostic (runtime) // new
  44637. //@import com/ibm/bi/platform/moser/common/generated/metadata/ValidationMessage (runtime) // new
  44638. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (static) // new
  44639. //@import com/ibm/bi/platform/moser/common/generated/metadata/BaseQueryItemType (static) // new
  44640. //@import com/ibm/bi/platform/moser/common/generated/metadata/ObjectType (static) // new
  44641. //@import com/ibm/bi/platform/moser/common/generated/metadata/DrillGroup (static) // new
  44642. //@import com/ibm/bi/platform/moser/common/generated/metadata/Relationship (static) // new
  44643. //@import com/ibm/bi/platform/moser/common/utils/MoserObjectUtils (static) // getQueryItems
  44644. /**
  44645. * A utility class to help process module validation results
  44646. */
  44647. var ValidationUtils = function (_BaseMoserObject) {
  44648. _inherits(ValidationUtils, _BaseMoserObject);
  44649. function ValidationUtils() {
  44650. _classCallCheck(this, ValidationUtils);
  44651. return _possibleConstructorReturn(this, (ValidationUtils.__proto__ || Object.getPrototypeOf(ValidationUtils)).apply(this, arguments));
  44652. }
  44653. _createClass(ValidationUtils, null, [{
  44654. key: 'validateModule',
  44655. /**
  44656. * Perform process validation results based on a given module
  44657. * @param {Object} json {@link JSONObject} Moser feedback results.
  44658. * @param {Module} module {@link Module} the data module to be validated on
  44659. * @param {ObjectFactory} objectFactory {@link ObjectFactory} an object factory created by the client so that notifications can be fired if the client chooses to add listeners onto it.
  44660. * @return {Array} a <code>Diagnostic</code> object contains the validation results
  44661. */
  44662. value: function validateModule(json, objectFactory, module) {
  44663. if (!json || !objectFactory || !module) {
  44664. return [];
  44665. }
  44666. module.removeDiagnostics();
  44667. var diagnostics = [];
  44668. var factory = new _JSONObjectFactory2.default(objectFactory);
  44669. var feedbackValue = json["feedback"];
  44670. var feedback;
  44671. if (!feedbackValue) {
  44672. feedback = factory.createFeedback(json);
  44673. } else {
  44674. feedback = factory.createFeedback(feedbackValue);
  44675. }
  44676. var data = feedback.getData();
  44677. var vMsgs;
  44678. if (data) {
  44679. vMsgs = data.getValidationMessage();
  44680. for (var __i_enFor0 = 0, __exp_enFor0 = vMsgs, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44681. var msg = __exp_enFor0[__i_enFor0];
  44682. var diagnostic = ValidationUtils._resolveByPath(ValidationUtils._convertLocationToList(msg.getLocation()), module, msg, module.getLabel());
  44683. if (diagnostic) {
  44684. diagnostics.push(diagnostic);
  44685. }
  44686. ValidationUtils._resolveAndTagRelationship(module, msg);
  44687. ValidationUtils._resolveAndTagDrillGroup(module, msg);
  44688. }
  44689. }
  44690. return diagnostics;
  44691. }
  44692. /**
  44693. * Validate the expression editor content
  44694. * @param {Object} json the json result from endpoint /feedbackCalculation
  44695. * @return {Array} A Diagnostic list.
  44696. */
  44697. }, {
  44698. key: 'validateExpression',
  44699. value: function validateExpression(json) {
  44700. var diagnosticList = [];
  44701. if (!json || json["messages"] == null) {
  44702. return diagnosticList;
  44703. }
  44704. var messages = json["messages"];
  44705. if (messages) {
  44706. for (var __i_enFor0 = 0, __exp_enFor0 = messages, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44707. var message = __exp_enFor0[__i_enFor0];
  44708. var diagnostic = new _Diagnostic2.default();
  44709. var msg = new _ValidationMessage2.default();
  44710. var child = message;
  44711. if (child) {
  44712. msg.setSeverity(child["severity"]);
  44713. msg.setMsg(child["message"]);
  44714. }
  44715. diagnostic.setValidationMessage(msg);
  44716. diagnosticList.push(diagnostic);
  44717. }
  44718. }
  44719. return diagnosticList;
  44720. }
  44721. }, {
  44722. key: '_convertLocationToList',
  44723. value: function _convertLocationToList(location) {
  44724. if (location == null || location.length === 0) {
  44725. return [];
  44726. }
  44727. var start = location.indexOf("/") + 1;
  44728. var segments = location.substring(start, location.length);
  44729. var parts = segments.split(new RegExp("/"));
  44730. var list = [];
  44731. for (var __i_enFor0 = 0, __len_enFor0 = parts.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44732. var part = parts[__i_enFor0];
  44733. if (part.length > 0) {
  44734. list.push(part);
  44735. }
  44736. }
  44737. return list;
  44738. }
  44739. }, {
  44740. key: '_resolveByPath',
  44741. value: function _resolveByPath(path, module, message, label) {
  44742. if (path.length == 0 || !module || path[0].length == 0) {
  44743. return null;
  44744. }
  44745. var node = path[0];
  44746. var featureName = node;
  44747. var arrayIdx = 0;
  44748. var idx = node.indexOf("[");
  44749. if (idx != -1) {
  44750. featureName = node.substring(0, idx);
  44751. var element = node.substring(idx + 1, node.length - 1);
  44752. arrayIdx = parseInt(element) - 1;
  44753. }
  44754. var featureId = module.getFeatureID(featureName);
  44755. var diagnostic;
  44756. if (featureId > 0) {
  44757. var moduleProperty = module.get(featureId);
  44758. var modulePropElement;
  44759. if (typeof moduleProperty === "array" || moduleProperty instanceof Array) {
  44760. modulePropElement = moduleProperty[arrayIdx];
  44761. } else {
  44762. modulePropElement = moduleProperty;
  44763. }
  44764. if (modulePropElement instanceof _MoserObject2.default) {
  44765. path.splice(0, 1);
  44766. var moserObj = modulePropElement;
  44767. var labelObjType = ValidationUtils._checkLabel(moserObj);
  44768. var newLabel = label;
  44769. if (labelObjType != null) {
  44770. newLabel = labelObjType;
  44771. }
  44772. if (!(path.length == 0) && path[0].length != 0) {
  44773. diagnostic = ValidationUtils._resolveByPath(path, moserObj, message, newLabel);
  44774. } else {
  44775. diagnostic = ValidationUtils._setDiagnoticProperties(moserObj, newLabel, message, featureId);
  44776. moserObj.addDiagnostic(diagnostic);
  44777. }
  44778. } else {
  44779. diagnostic = ValidationUtils._setDiagnoticProperties(module, label, message, featureId);
  44780. }
  44781. module.addDiagnostic(diagnostic);
  44782. } else if ("sortItem" == featureName && module instanceof _BaseQueryItemType2.default) {
  44783. var qi = module;
  44784. diagnostic = ValidationUtils._setDiagnoticProperties(qi, label, message, 249);
  44785. qi.addDiagnostic(diagnostic);
  44786. var facetDef = qi.getFacetDefinition();
  44787. if (facetDef) {
  44788. diagnostic = ValidationUtils._setDiagnoticProperties(facetDef, label, message, 18);
  44789. facetDef.addDiagnostic(diagnostic);
  44790. var sortList = facetDef.getSortList();
  44791. if (sortList) {
  44792. diagnostic = ValidationUtils._setDiagnoticProperties(sortList, label, message, 184);
  44793. sortList.addDiagnostic(diagnostic);
  44794. var sortItemList = sortList.basicGetSortItem();
  44795. if (sortItemList && !(sortItemList.length == 0)) {
  44796. var sorItem = sortItemList[0];
  44797. diagnostic = ValidationUtils._setDiagnoticProperties(sorItem, label, message, 36);
  44798. sorItem.addDiagnostic(diagnostic);
  44799. }
  44800. }
  44801. }
  44802. } else {
  44803. diagnostic = ValidationUtils._setDiagnoticProperties(module, label, message, featureId);
  44804. module.addDiagnostic(diagnostic);
  44805. }
  44806. return diagnostic;
  44807. }
  44808. }, {
  44809. key: '_setDiagnoticProperties',
  44810. value: function _setDiagnoticProperties(object, label, message, featureId) {
  44811. var diagnostic = new _Diagnostic2.default();
  44812. diagnostic.setProperties(object, label, message, featureId);
  44813. return diagnostic;
  44814. }
  44815. }, {
  44816. key: '_checkLabel',
  44817. value: function _checkLabel(obj) {
  44818. var label;
  44819. if (obj instanceof _ObjectType2.default) {
  44820. var labelObjType = obj.getLabel();
  44821. if (labelObjType != null) {
  44822. label = labelObjType;
  44823. }
  44824. }
  44825. return label;
  44826. }
  44827. }, {
  44828. key: '_getObjectByLocationPath',
  44829. value: function _getObjectByLocationPath(module, path) {
  44830. var featureName = path;
  44831. var arrayIdx = 0;
  44832. var idx = path.indexOf("[");
  44833. if (idx != -1) {
  44834. featureName = path.substring(0, idx);
  44835. var element = path.substring(idx + 1, path.length - 1);
  44836. arrayIdx = parseInt(element) - 1;
  44837. }
  44838. var featureId = module.getFeatureID(featureName);
  44839. var moduleProperty = module.get(featureId);
  44840. var modulePropElement;
  44841. if (typeof moduleProperty === "array" || moduleProperty instanceof Array) {
  44842. modulePropElement = moduleProperty[arrayIdx];
  44843. } else {
  44844. modulePropElement = moduleProperty;
  44845. }
  44846. return modulePropElement;
  44847. }
  44848. }, {
  44849. key: '_resolveAndTagDrillGroup',
  44850. value: function _resolveAndTagDrillGroup(module, message) {
  44851. var location = message.getLocation();
  44852. if (location == null || location.indexOf("/drillGroup[") == -1) {
  44853. return;
  44854. }
  44855. var locationList = ValidationUtils._convertLocationToList(location);
  44856. if (locationList.length <= 1) {
  44857. return;
  44858. }
  44859. var diagnostic;
  44860. var drillGroup = ValidationUtils._getObjectByLocationPath(module, locationList[0]);
  44861. if (drillGroup instanceof _MoserObject2.default) {
  44862. var segment = ValidationUtils._getObjectByLocationPath(drillGroup, locationList[1]);
  44863. if (segment instanceof _DrillGroup2.default.Segment) {
  44864. var seg = segment;
  44865. var identifier = seg.getRef();
  44866. var index = identifier.indexOf(".");
  44867. var qsId = identifier.substring(0, index);
  44868. var qiId = identifier.substring(index + 1, identifier.length - 1);
  44869. var querySubject = ValidationUtils._getQuerySubjectFromModuleByIdentifier(module, qsId);
  44870. if (querySubject) {
  44871. diagnostic = ValidationUtils._setDiagnoticProperties(querySubject, querySubject.getLabel(), message, 0);
  44872. querySubject.addDiagnostic(diagnostic);
  44873. var queryItem = ValidationUtils._getQueryItemFromQuerySubjectByIdentifier(querySubject, qiId);
  44874. if (queryItem) {
  44875. diagnostic = ValidationUtils._setDiagnoticProperties(queryItem, queryItem.getLabel(), message, 0);
  44876. queryItem.addDiagnostic(diagnostic);
  44877. }
  44878. }
  44879. }
  44880. }
  44881. }
  44882. }, {
  44883. key: '_resolveAndTagRelationship',
  44884. value: function _resolveAndTagRelationship(module, message) {
  44885. var location = message.getLocation();
  44886. if (location == null || location.indexOf("/relationship[") == -1) {
  44887. return;
  44888. }
  44889. var locationList = ValidationUtils._convertLocationToList(location);
  44890. var diagnostic;
  44891. var obj = ValidationUtils._getObjectByLocationPath(module, locationList[0]);
  44892. if (obj instanceof _Relationship2.default) {
  44893. var relationship = obj;
  44894. if (relationship.getLeft()) {
  44895. var querySubject = ValidationUtils._getQuerySubjectFromModuleByIdentifier(module, relationship.getLeft().getRef());
  44896. diagnostic = ValidationUtils._setDiagnoticProperties(relationship, relationship.getLabel(), message, querySubject.getFeatureID("relationship"));
  44897. querySubject.addDiagnostic(diagnostic);
  44898. }
  44899. if (relationship.getRight()) {
  44900. var querySubject = ValidationUtils._getQuerySubjectFromModuleByIdentifier(module, relationship.getRight().getRef());
  44901. diagnostic = ValidationUtils._setDiagnoticProperties(relationship, relationship.getLabel(), message, querySubject.getFeatureID("relationship"));
  44902. querySubject.addDiagnostic(diagnostic);
  44903. }
  44904. }
  44905. }
  44906. }, {
  44907. key: '_getQuerySubjectFromModuleByIdentifier',
  44908. value: function _getQuerySubjectFromModuleByIdentifier(module, identifier) {
  44909. if (!module) {
  44910. return null;
  44911. }
  44912. var qsList = module.getQuerySubject();
  44913. var querySubject;
  44914. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44915. var qs = __exp_enFor0[__i_enFor0];
  44916. if (qs.getIdentifier() == identifier) {
  44917. querySubject = qs;
  44918. break;
  44919. }
  44920. }
  44921. return querySubject;
  44922. }
  44923. }, {
  44924. key: '_getQueryItemFromQuerySubjectByIdentifier',
  44925. value: function _getQueryItemFromQuerySubjectByIdentifier(querySubject, identifier) {
  44926. if (!querySubject) {
  44927. return null;
  44928. }
  44929. for (var __i_enFor0 = 0, __exp_enFor0 = _MoserObjectUtils2.default.getQueryItems(querySubject), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  44930. var qi = __exp_enFor0[__i_enFor0];
  44931. if (qi.getIdentifier() == identifier) {
  44932. return qi;
  44933. }
  44934. }
  44935. return null;
  44936. }
  44937. //constructor()
  44938. }]);
  44939. return ValidationUtils;
  44940. }(_BaseMoserObject3.default);
  44941. ValidationUtils.OK = 0;
  44942. ValidationUtils.INFO = 1;
  44943. ValidationUtils.WARNING = 2;
  44944. ValidationUtils.ERROR = 4;
  44945. ValidationUtils.RELATIONSHIP_LOOKUP = "/relationship[";
  44946. ValidationUtils.DRILLGROUP_LOOKUP = "/drillGroup[";
  44947. exports.default = ValidationUtils;
  44948. /***/ },
  44949. /* 128 */
  44950. /***/ function(module, exports, __webpack_require__) {
  44951. "use strict";
  44952. Object.defineProperty(exports, "__esModule", {
  44953. value: true
  44954. });
  44955. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44956. var _BaseMoserObject2 = __webpack_require__(2);
  44957. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  44958. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44959. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44960. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44961. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  44962. ** IBM Confidential
  44963. **
  44964. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  44965. **
  44966. ** (C) Copyright IBM Corp. 2020
  44967. **
  44968. ** The source code for this program is not published or otherwise divested of its trade secrets,
  44969. ** irrespective of what has been deposited with the U.S. Copyright Office.
  44970. ************************************************************************/
  44971. // GENERATED
  44972. //@import BaseMoserObject (loadtime) // superclass
  44973. /**
  44974. * This object represents the module validation results. It is built in a hierarchical way so that a <code>Diagnostic</code> can have a list of <code>Diagnostic</code>s as it children recursively.
  44975. */
  44976. var Diagnostic = function (_BaseMoserObject) {
  44977. _inherits(Diagnostic, _BaseMoserObject);
  44978. function Diagnostic() {
  44979. var _ref;
  44980. var _temp, _this, _ret;
  44981. _classCallCheck(this, Diagnostic);
  44982. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  44983. args[_key] = arguments[_key];
  44984. }
  44985. return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Diagnostic.__proto__ || Object.getPrototypeOf(Diagnostic)).call.apply(_ref, [this].concat(args))), _this), _this.severity = 0, _this.label = null, _this.featureID = 0, _this.object = null, _this.validationMessage = null, _temp), _possibleConstructorReturn(_this, _ret);
  44986. }
  44987. _createClass(Diagnostic, [{
  44988. key: "getSeverity",
  44989. /**
  44990. * Retrieve the severity of this validation result
  44991. * @return {int} a {@link Integer} value of the severity
  44992. */
  44993. value: function getSeverity() {
  44994. return this.severity;
  44995. }
  44996. /**
  44997. * Set the <code>ValidationMessage</code>.
  44998. * @param {ValidationMessage} message {@link ValidationMessage}
  44999. */
  45000. }, {
  45001. key: "setValidationMessage",
  45002. value: function setValidationMessage(message) {
  45003. this.validationMessage = message;
  45004. var msgSeverity = Diagnostic._getSeverityCode(message.getSeverity());
  45005. if (this.severity < msgSeverity) {
  45006. this.severity = msgSeverity;
  45007. }
  45008. }
  45009. /**
  45010. * Get the <code>ValidationMessage</code>.
  45011. * @return {ValidationMessage} the list of messages
  45012. */
  45013. }, {
  45014. key: "getValidationMessages",
  45015. value: function getValidationMessages() {
  45016. return this.validationMessage;
  45017. }
  45018. /**
  45019. * Set the value reference of the validation message
  45020. * @param data {@link String}
  45021. */
  45022. }, {
  45023. key: "setLabel",
  45024. value: function setLabel(label) {
  45025. this.label = label;
  45026. }
  45027. /**
  45028. * Retrieve the value reference of the validation message
  45029. * @return {String}
  45030. */
  45031. }, {
  45032. key: "getLabel",
  45033. value: function getLabel() {
  45034. return this.label;
  45035. }
  45036. /**
  45037. * Set the featureID linked with the related <code>MoserObject</code>
  45038. * @param {int} featureID
  45039. */
  45040. }, {
  45041. key: "setFeatureID",
  45042. value: function setFeatureID(featureID) {
  45043. this.featureID = featureID;
  45044. }
  45045. /**
  45046. * Get the featureID linked with the related <code>MoserObject</code>
  45047. * @return {int} {@link int} featureID of the <code>MoserObject</code>
  45048. */
  45049. }, {
  45050. key: "getFeatureID",
  45051. value: function getFeatureID() {
  45052. return this.featureID;
  45053. }
  45054. /**
  45055. * Get the related moser object that associated with thie error
  45056. * @return {MoserObject} {@link Object} <code>MoserObject</code>
  45057. */
  45058. }, {
  45059. key: "getObject",
  45060. value: function getObject() {
  45061. return this.object;
  45062. }
  45063. /**
  45064. * Set the related moser object to this validation result
  45065. * @param {MoserObject} obj
  45066. */
  45067. }, {
  45068. key: "setObject",
  45069. value: function setObject(obj) {
  45070. this.object = obj;
  45071. }
  45072. /**
  45073. * Set the properties of this <code>Diagnostic</code>
  45074. * @param obj
  45075. * @param {String} data
  45076. * @param {ValidationMessage} message
  45077. * @param {int} featureId
  45078. */
  45079. }, {
  45080. key: "setProperties",
  45081. value: function setProperties(object, data, message, featureId) {
  45082. this.setValidationMessage(message);
  45083. this.setLabel(data);
  45084. this.setFeatureID(featureId);
  45085. this.setObject(object);
  45086. }
  45087. }], [{
  45088. key: "_getSeverityCode",
  45089. value: function _getSeverityCode(severity) {
  45090. if ("ok" == severity) {
  45091. return 0;
  45092. } else if ("error" == severity) {
  45093. return 4;
  45094. } else if ("warning" == severity) {
  45095. return 2;
  45096. } else if ("info" == severity) {
  45097. return 1;
  45098. }
  45099. return 0;
  45100. }
  45101. }]);
  45102. return Diagnostic;
  45103. }(_BaseMoserObject3.default);
  45104. Diagnostic.OK = 0x0;
  45105. Diagnostic.INFO = 0x1;
  45106. Diagnostic.WARNING = 0x2;
  45107. Diagnostic.ERROR = 0x4;
  45108. exports.default = Diagnostic;
  45109. /***/ },
  45110. /* 129 */
  45111. /***/ function(module, exports, __webpack_require__) {
  45112. 'use strict';
  45113. Object.defineProperty(exports, "__esModule", {
  45114. value: true
  45115. });
  45116. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45117. var _BaseMoserObject2 = __webpack_require__(2);
  45118. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  45119. var _ExpressionUtil = __webpack_require__(130);
  45120. var _ExpressionUtil2 = _interopRequireDefault(_ExpressionUtil);
  45121. var _HighLevelDataType = __webpack_require__(15);
  45122. var _HighLevelDataType2 = _interopRequireDefault(_HighLevelDataType);
  45123. var _MacroUtil = __webpack_require__(132);
  45124. var _MacroUtil2 = _interopRequireDefault(_MacroUtil);
  45125. var _FormatSymbols = __webpack_require__(131);
  45126. var _FormatSymbols2 = _interopRequireDefault(_FormatSymbols);
  45127. var _BinExpressionUtil = __webpack_require__(133);
  45128. var _BinExpressionUtil2 = _interopRequireDefault(_BinExpressionUtil);
  45129. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45130. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45131. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45132. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  45133. ** IBM Confidential
  45134. **
  45135. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  45136. **
  45137. ** (C) Copyright IBM Corp. 2020
  45138. **
  45139. ** The source code for this program is not published or otherwise divested of its trade secrets,
  45140. ** irrespective of what has been deposited with the U.S. Copyright Office.
  45141. ************************************************************************/
  45142. // GENERATED
  45143. //@import BaseMoserObject (loadtime) // superclass
  45144. //@import com/ibm/bi/platform/moser/expressions/v5/util/ExpressionUtil (static) // elseExp, cast, getLiteral, assembleCase, whenThen, isNull, ceil, nest, minimumForReport, maximumForReport, floor, inlineIfThenElse
  45145. //@import com/ibm/bi/platform/moser/common/generated/metadata/HighLevelDataType (runtime) // HighLevelDataType
  45146. //@import com/ibm/bi/platform/moser/expressions/v5/util/MacroUtil (static) // macro, macroAsString, getLiteral, injectMacro, getResourceString, substr, substitute
  45147. //@import FormatSymbols (runtime) // getListSeparator
  45148. //@import com/ibm/bi/platform/moser/expressions/v5/util/BinExpressionUtil (runtime) // formatDouble, widthBucket
  45149. /**
  45150. * Class to build binning V5 expressions, as well as values needed to populate the MUI binning wizard.
  45151. * @author PASCALLacombe
  45152. */
  45153. var BinExpression = function (_BaseMoserObject) {
  45154. _inherits(BinExpression, _BaseMoserObject);
  45155. /**
  45156. * Constructor
  45157. * @param {QuerySubject} querySubject - Optional QuerySubject to build identifiers against, when null single-part identifiers are generated
  45158. * @param {QueryItem} queryItem - QueryItem to bin
  45159. * @param {int} numberOfBins - The number of bins to create
  45160. * @param {int} maxDecimalPlaces - For QueryItem with DECIMAL HighLevelDatatype only, specifies the maximum number of digits after the decimal place.
  45161. * @param {double} minValue - The minimum value for report
  45162. * @param {double} maxValue - The maximum value f
  45163. * @param {Array} customLabels - Optional list of strings representing the custom labels, when non-null the size is expected to be equal to (numberOfBins + 1) and when a value is null the default label will be used customLabels[0] is the label for null customLabels[1] is the label for bucket #1 customLabels[N] is the label for bucket #N
  45164. * @param {Array} customRange - Optional list of strings (numeric) representing the custom ranges, when non-null the size is expected to be equal to numberOfBins and all ranges need to be populated except the first and last values, which when null means those bins are not bound to a value
  45165. * @param {Array} defaultLabels - The default bin labels, which are the resolved macros from getLabelMacros() in order of : Null, Low, Middle, High
  45166. * @param {boolean} generateNullBin - Whether we should create the null bin or not
  45167. * @param {String} expressionLocale - Optional string representation of locale. This locale will determine list separator used in expressions
  45168. */
  45169. function BinExpression(querySubject, queryItem, numberOfBins, maxDecimalPlaces, minValue, maxValue, customLabels, customRange, defaultLabels, generateNullBin, expressionLocale) {
  45170. _classCallCheck(this, BinExpression);
  45171. var _this = _possibleConstructorReturn(this, (BinExpression.__proto__ || Object.getPrototypeOf(BinExpression)).call(this));
  45172. _this.querySubject = null;
  45173. _this.queryItem = null;
  45174. _this.identifier = null;
  45175. _this.numberOfBins = 0;
  45176. _this.maxDecimalPlaces = 0;
  45177. _this.minValue = 0;
  45178. _this.maxValue = 0;
  45179. _this.customLabels = null;
  45180. _this.customRanges = null;
  45181. _this.defaultLabels = null;
  45182. _this.generateNullBin = false;
  45183. _this.expressionLocale = null;
  45184. _this.minForReport = null;
  45185. _this.maxForReport = null;
  45186. _this.binWidth = null;
  45187. _this.integerCheck = null;
  45188. _this.spillOver = null;
  45189. _this.virtualMinValue = null;
  45190. _this.virtualMaxValue = null;
  45191. _this.querySubject = querySubject;
  45192. _this.queryItem = queryItem;
  45193. _this.identifier = !querySubject ? queryItem.getIdentifier() : querySubject.getIdentifier() + "." + queryItem.getIdentifier();
  45194. _this.numberOfBins = numberOfBins;
  45195. _this.maxDecimalPlaces = maxDecimalPlaces;
  45196. _this.minValue = minValue;
  45197. _this.maxValue = maxValue;
  45198. _this.customLabels = customLabels;
  45199. _this.customRanges = customRange;
  45200. _this.defaultLabels = defaultLabels;
  45201. _this.generateNullBin = generateNullBin;
  45202. _this.expressionLocale = expressionLocale;
  45203. _this.minForReport = _ExpressionUtil2.default.minimumForReport(_this.identifier);
  45204. _this.maxForReport = _ExpressionUtil2.default.maximumForReport(_this.identifier);
  45205. _this._init();
  45206. return _this;
  45207. }
  45208. /**
  45209. * Initialize common V5 expressions
  45210. */
  45211. _createClass(BinExpression, [{
  45212. key: '_init',
  45213. value: function _init() {
  45214. this.integerCheck = this._integerCheck();
  45215. this.binWidth = this._binWidth();
  45216. this.spillOver = this._spillOver();
  45217. this.virtualMinValue = this._virtualMinValue();
  45218. this.virtualMaxValue = this._virtualMaxValue();
  45219. }
  45220. /**
  45221. * Creates a V5 expression that will check whether an integer range is less than the number of bin requested
  45222. * @return {String}
  45223. */
  45224. }, {
  45225. key: '_integerCheck',
  45226. value: function _integerCheck() {
  45227. var condition = this.maxForReport;
  45228. condition += " - ";
  45229. condition += this.minForReport;
  45230. condition += " < ";
  45231. condition += this.numberOfBins;
  45232. return condition;
  45233. }
  45234. /**
  45235. * Creates a expression that will return the width of a automatic bin.
  45236. * @return {String}
  45237. */
  45238. }, {
  45239. key: '_binWidth',
  45240. value: function _binWidth() {
  45241. var result = "( ";
  45242. result += this.maxForReport;
  45243. result += " - ";
  45244. result += this.minForReport;
  45245. result += " ) / ";
  45246. result += this.numberOfBins;
  45247. return result;
  45248. }
  45249. /**
  45250. * Create a V5 expression that calculates the new minimum when requesting a number of bins that is higher than the integer range.
  45251. * @return {String}
  45252. */
  45253. }, {
  45254. key: '_virtualMinValue',
  45255. value: function _virtualMinValue() {
  45256. var expression = this.minForReport;
  45257. expression += " - ";
  45258. expression += _ExpressionUtil2.default.floor(this.spillOver);
  45259. return expression;
  45260. }
  45261. /**
  45262. * Create a V5 expression that calculates the new maximum when requesting a number of bins that is higher than the integer range.
  45263. * @return {String}
  45264. */
  45265. }, {
  45266. key: '_virtualMaxValue',
  45267. value: function _virtualMaxValue() {
  45268. var expression = this.maxForReport;
  45269. expression += " + ";
  45270. expression += _ExpressionUtil2.default.ceil(this.spillOver);
  45271. return expression;
  45272. }
  45273. /**
  45274. * Create a V5 expression that calculates the bin spillover.
  45275. * @return {String}
  45276. */
  45277. }, {
  45278. key: '_spillOver',
  45279. value: function _spillOver() {
  45280. var expression = "( ";
  45281. expression += this.numberOfBins;
  45282. expression += " - ";
  45283. expression += this.maxForReport;
  45284. expression += " + ";
  45285. expression += this.minForReport;
  45286. expression += " ) / 2";
  45287. return expression;
  45288. }
  45289. /**
  45290. * Update the number of bins, this resets both the custom labels and custom ranges.
  45291. * @param {int} value - New number of bins
  45292. */
  45293. }, {
  45294. key: 'updateNumberOfBins',
  45295. value: function updateNumberOfBins(value) {
  45296. this.numberOfBins = value;
  45297. this.customLabels = null;
  45298. this.customRanges = null;
  45299. this._init();
  45300. }
  45301. /**
  45302. * Update the maximum number of decimal places, only honored when HighLevelDatatype of the QueryItem is DECIMAL
  45303. * @param {int} value
  45304. */
  45305. }, {
  45306. key: 'updateMaxDecimalPlaces',
  45307. value: function updateMaxDecimalPlaces(value) {
  45308. this.maxDecimalPlaces = value;
  45309. }
  45310. /**
  45311. * Update the custom labels, expects a full list of new labels.
  45312. * @param {Array} labels - New custom label strings
  45313. */
  45314. }, {
  45315. key: 'updateCustomLabels',
  45316. value: function updateCustomLabels(labels) {
  45317. this.customLabels = labels;
  45318. }
  45319. /**
  45320. * Update the custom values
  45321. * @param {Array} ranges - New custom range strings (numeric)
  45322. */
  45323. }, {
  45324. key: 'updateCustomRanges',
  45325. value: function updateCustomRanges(ranges) {
  45326. this.customRanges = ranges;
  45327. }
  45328. /**
  45329. * Update the generate null bin value
  45330. * @param {boolean} value - Whether to generate null bin
  45331. */
  45332. }, {
  45333. key: 'updateGenerateNullBin',
  45334. value: function updateGenerateNullBin(value) {
  45335. this.generateNullBin = value;
  45336. }
  45337. /**
  45338. * Returns a V5 expression to be used in the bin number QueryItem. For examples see: getBinNumberExpressionInteger(), getBinNumberExpressionDecimal() and getBinNumberExpressionCustomRanges()
  45339. * @return {String} V5 expression to calculate a bin number
  45340. */
  45341. }, {
  45342. key: 'getBinNumberExpression',
  45343. value: function getBinNumberExpression() {
  45344. if (this._isCustomRanges()) {
  45345. return this._getBinNumberExpressionCustomRanges();
  45346. }
  45347. if (_HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype()) {
  45348. return this._getBinNumberExpressionInteger();
  45349. }
  45350. return this._getBinNumberExpressionDecimal();
  45351. }
  45352. /**
  45353. * Check whether custom ranges have been supplied.
  45354. * @return {boolean}
  45355. */
  45356. }, {
  45357. key: '_isCustomRanges',
  45358. value: function _isCustomRanges() {
  45359. if (!this.customRanges) {
  45360. return false;
  45361. }
  45362. for (var __i_enFor0 = 0, __exp_enFor0 = this.customRanges, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  45363. var customRange = __exp_enFor0[__i_enFor0];
  45364. if (customRange != null) {
  45365. return true;
  45366. }
  45367. }
  45368. return false;
  45369. }
  45370. /**
  45371. * Return a V5 expression to be used in the bin label QueryItem.
  45372. * @param {String} id - The bin number queryItem identifier
  45373. * @return {String}
  45374. */
  45375. }, {
  45376. key: 'getLabelExpression',
  45377. value: function getLabelExpression(id) {
  45378. if (this._isCustomRanges()) {
  45379. return this._getLabelCustomRanges(id);
  45380. }
  45381. var numExtraCustomLabels = this._countExtraCustomLabels();
  45382. var expressions = [];
  45383. expressions.push(this._whenThenBinLow(id));
  45384. if (numExtraCustomLabels > 0) {
  45385. this._whenThenCustomBins(id, expressions);
  45386. }
  45387. if (numExtraCustomLabels < this.numberOfBins - 2) {
  45388. expressions.push(this._whenThenBinMiddle(id));
  45389. }
  45390. expressions.push(this._whenThenBinHigh(id));
  45391. expressions.push(this._whenThenBinEdge(id));
  45392. if (this.generateNullBin) {
  45393. var nullLabel = this.customLabels && this.customLabels[0] != null ? this.customLabels[0] : null;
  45394. nullLabel = nullLabel == null ? _MacroUtil2.default.macro(_MacroUtil2.default.macroAsString(BinExpression._binNull(this.expressionLocale))) : _ExpressionUtil2.default.getLiteral(nullLabel);
  45395. expressions.push(_ExpressionUtil2.default.elseExp(nullLabel));
  45396. }
  45397. return _ExpressionUtil2.default.assembleCase(BinExpression._toArray(expressions));
  45398. }
  45399. /**
  45400. * Return a V5 expression to be used in the bin label QueryItem when custom ranges are specified.
  45401. * @param {String} binIdentifier
  45402. * @return {String}
  45403. */
  45404. }, {
  45405. key: '_getLabelCustomRanges',
  45406. value: function _getLabelCustomRanges(binIdentifier) {
  45407. var expressions = [];
  45408. expressions.push(this._whenThenBinLow(binIdentifier));
  45409. for (var i = 2; i < this.numberOfBins; ++i) {
  45410. expressions.push(this._whenThenBinMiddleCustomRanges(binIdentifier, i));
  45411. }
  45412. expressions.push(this._whenThenBinHigh(binIdentifier));
  45413. expressions.push(this._whenThenBinEdge(binIdentifier));
  45414. if (this.generateNullBin) {
  45415. var nullLabel = this.customLabels && this.customLabels[0] != null ? this.customLabels[0] : null;
  45416. nullLabel = nullLabel == null ? _MacroUtil2.default.macro(_MacroUtil2.default.macroAsString(BinExpression._binNull(this.expressionLocale))) : _ExpressionUtil2.default.getLiteral(nullLabel);
  45417. expressions.push(_ExpressionUtil2.default.elseExp(nullLabel));
  45418. }
  45419. return _ExpressionUtil2.default.assembleCase(BinExpression._toArray(expressions));
  45420. }
  45421. /**
  45422. * Count the number of custom labels the user entered that are not the null, first or last bin labels.
  45423. * @return {int}
  45424. */
  45425. }, {
  45426. key: '_countExtraCustomLabels',
  45427. value: function _countExtraCustomLabels() {
  45428. if (!this.customLabels) {
  45429. return 0;
  45430. }
  45431. var count = 0;
  45432. for (var i = 2; i < this.numberOfBins; ++i) {
  45433. if (this.customLabels[i] != null) {
  45434. ++count;
  45435. }
  45436. }
  45437. return count;
  45438. }
  45439. /**
  45440. * Creates the when() expressions for custom bins.
  45441. * @param {String} binIdentifier
  45442. * @param {Array} expressions
  45443. */
  45444. }, {
  45445. key: '_whenThenCustomBins',
  45446. value: function _whenThenCustomBins(binIdentifier, expressions) {
  45447. for (var binNumber = 2; binNumber < this.numberOfBins; ++binNumber) {
  45448. var customLabel = this.customLabels[binNumber];
  45449. if (customLabel == null) {
  45450. continue;
  45451. }
  45452. expressions.push(BinExpression._whenThenBinCustom(binIdentifier, binNumber, customLabel));
  45453. }
  45454. }
  45455. /**
  45456. * Creates the when() expression for a custom bin.
  45457. * @param {String} binIdentifier
  45458. * @param {int} binNumber
  45459. * @param {String} customLabel
  45460. * @return {String}
  45461. */
  45462. }, {
  45463. key: '_whenThenBinMiddle',
  45464. /**
  45465. * Creates the when() then() expression for the middle bin.
  45466. * @param {String} binIdentifier - The bin identifier
  45467. * @return {String}
  45468. */
  45469. value: function _whenThenBinMiddle(binIdentifier) {
  45470. var condition = binIdentifier;
  45471. condition += " > 1 and ";
  45472. condition += binIdentifier;
  45473. condition += " < ";
  45474. condition += this.numberOfBins;
  45475. var binLow = _MacroUtil2.default.injectMacro(this._binMiddleLowCalc(binIdentifier));
  45476. var binHigh = _MacroUtil2.default.injectMacro(this._binMiddleHighCalc(binIdentifier));
  45477. return _ExpressionUtil2.default.whenThen(condition, this._thenBinMiddle(binLow, binHigh));
  45478. }
  45479. /**
  45480. * Creates the when() then() expression for the middle bin when custom ranges have been specified.
  45481. * @param {String} binIdentifier - The bin identifier
  45482. * @param {int} binNumber - The bin number
  45483. * @return {String}
  45484. */
  45485. }, {
  45486. key: '_whenThenBinMiddleCustomRanges',
  45487. value: function _whenThenBinMiddleCustomRanges(binIdentifier, binNumber) {
  45488. var condition = binIdentifier;
  45489. condition += " = ";
  45490. condition += binNumber;
  45491. var thenValue;
  45492. if (this.customLabels && this.customLabels[binNumber] != null) {
  45493. thenValue = _ExpressionUtil2.default.getLiteral(this.customLabels[binNumber]);
  45494. } else {
  45495. var binLow = this.customRanges[binNumber - 1];
  45496. var binHigh = this.customRanges[binNumber];
  45497. thenValue = this._thenBinMiddle(binLow, binHigh);
  45498. }
  45499. return _ExpressionUtil2.default.whenThen(condition, thenValue);
  45500. }
  45501. /**
  45502. * Create the expression for the middle bin.
  45503. * @param {String} binLow
  45504. * @param {String} binHigh
  45505. * @return {String}
  45506. */
  45507. }, {
  45508. key: '_thenBinMiddle',
  45509. value: function _thenBinMiddle(binLow, binHigh) {
  45510. if (binLow == null) {
  45511. var thenValue = _MacroUtil2.default.substitute(_ExpressionUtil2.default.getLiteral("%1"), _ExpressionUtil2.default.getLiteral(binHigh), BinExpression._binLow(this.expressionLocale), this.expressionLocale);
  45512. thenValue = _MacroUtil2.default.macroAsString(thenValue);
  45513. return _MacroUtil2.default.macro(thenValue);
  45514. }
  45515. if (binHigh == null) {
  45516. var thenValue = _MacroUtil2.default.substitute(_ExpressionUtil2.default.getLiteral("%1"), _ExpressionUtil2.default.getLiteral(binLow), BinExpression._binHigh(this.expressionLocale), this.expressionLocale);
  45517. thenValue = _MacroUtil2.default.macroAsString(thenValue);
  45518. return _MacroUtil2.default.macro(thenValue);
  45519. }
  45520. var thenValue = _MacroUtil2.default.substitute(_ExpressionUtil2.default.getLiteral("%1"), _ExpressionUtil2.default.getLiteral(binLow), BinExpression._binMiddle(this.expressionLocale), this.expressionLocale);
  45521. thenValue = _MacroUtil2.default.substitute(_ExpressionUtil2.default.getLiteral("%2"), _ExpressionUtil2.default.getLiteral(binHigh), thenValue, this.expressionLocale);
  45522. thenValue = _MacroUtil2.default.macroAsString(thenValue);
  45523. return _MacroUtil2.default.macro(thenValue);
  45524. }
  45525. /**
  45526. * Expression to calculate a middle bin's low value
  45527. * @param {String} binIdentifier
  45528. * @return {String}
  45529. */
  45530. }, {
  45531. key: '_binMiddleLowCalc',
  45532. value: function _binMiddleLowCalc(binIdentifier) {
  45533. if (_HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype()) {
  45534. return this._binMiddleLowCalcInteger(binIdentifier);
  45535. }
  45536. var bucketStart = this.minForReport;
  45537. bucketStart += " + ( ";
  45538. bucketStart += binIdentifier;
  45539. bucketStart += " - 1 ) * ";
  45540. bucketStart += this.binWidth;
  45541. return this._castToDecimalThenVarchar$0(bucketStart);
  45542. }
  45543. /**
  45544. * Expression to calculate a middle bin's low value for an INTEGER
  45545. * @param {String} binIdentifier
  45546. * @return {String}
  45547. */
  45548. }, {
  45549. key: '_binMiddleLowCalcInteger',
  45550. value: function _binMiddleLowCalcInteger(binIdentifier) {
  45551. var bucketStartInteger = binIdentifier;
  45552. bucketStartInteger += " + ";
  45553. bucketStartInteger += this.virtualMinValue;
  45554. bucketStartInteger += " - 1";
  45555. var bucketStart = this.minForReport;
  45556. bucketStart += " + ( ";
  45557. bucketStart += binIdentifier;
  45558. bucketStart += " - 1 ) * ";
  45559. bucketStart += this.binWidth;
  45560. return this._castToDecimalThenVarchar$0(_ExpressionUtil2.default.inlineIfThenElse(this.integerCheck, bucketStartInteger, bucketStart));
  45561. }
  45562. /**
  45563. * Expression to calculate a middle bin's high value
  45564. * @param {String} binIdentifier
  45565. * @return {String}
  45566. */
  45567. }, {
  45568. key: '_binMiddleHighCalc',
  45569. value: function _binMiddleHighCalc(binIdentifier) {
  45570. if (_HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype()) {
  45571. return this._binMiddleHighCalcInteger(binIdentifier);
  45572. }
  45573. var bucketEnd = this.minForReport;
  45574. bucketEnd += " + ";
  45575. bucketEnd += binIdentifier;
  45576. bucketEnd += " * ";
  45577. bucketEnd += this.binWidth;
  45578. return this._castToDecimalThenVarchar$0(bucketEnd);
  45579. }
  45580. /**
  45581. * Expression to calculate a middle bin's high value for an INTEGER
  45582. * @param {String} binIdentifier
  45583. * @return {String}
  45584. */
  45585. }, {
  45586. key: '_binMiddleHighCalcInteger',
  45587. value: function _binMiddleHighCalcInteger(binIdentifier) {
  45588. var bucketEndInteger = binIdentifier;
  45589. bucketEndInteger += " + ";
  45590. bucketEndInteger += this.virtualMinValue;
  45591. var bucketEnd = this.minForReport;
  45592. bucketEnd += " + ";
  45593. bucketEnd += binIdentifier;
  45594. bucketEnd += " * ";
  45595. bucketEnd += this.binWidth;
  45596. return this._castToDecimalThenVarchar$0(_ExpressionUtil2.default.inlineIfThenElse(this.integerCheck, bucketEndInteger, bucketEnd));
  45597. }
  45598. /**
  45599. * Creates the when() expression for the lowest bin.
  45600. * @param {String} binIdentifier - The bin identifier
  45601. * @return {String}
  45602. */
  45603. }, {
  45604. key: '_whenThenBinLow',
  45605. value: function _whenThenBinLow(binIdentifier) {
  45606. var condition = binIdentifier;
  45607. condition += " = 1";
  45608. var thenValue;
  45609. if (this.customLabels && this.customLabels[1] != null) {
  45610. thenValue = _ExpressionUtil2.default.getLiteral(this.customLabels[1]);
  45611. } else if (this._isCustomRanges()) {
  45612. thenValue = this._thenBinMiddle(this.customRanges[0], this.customRanges[1]);
  45613. } else {
  45614. var binLow = _MacroUtil2.default.injectMacro(this._binLowCalc());
  45615. thenValue = _MacroUtil2.default.substitute(_ExpressionUtil2.default.getLiteral("%1"), _ExpressionUtil2.default.getLiteral(binLow), BinExpression._binLow(this.expressionLocale), this.expressionLocale);
  45616. thenValue = _MacroUtil2.default.macroAsString(thenValue);
  45617. thenValue = _MacroUtil2.default.macro(thenValue);
  45618. }
  45619. return _ExpressionUtil2.default.whenThen(condition, thenValue);
  45620. }
  45621. /**
  45622. * Calculation that generates the number to put in the binLow label
  45623. * @return {String}
  45624. */
  45625. }, {
  45626. key: '_binLowCalc',
  45627. value: function _binLowCalc() {
  45628. if (_HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype()) {
  45629. return this._binLowCalcInteger();
  45630. }
  45631. var binLow = this.minForReport;
  45632. binLow += " + ";
  45633. binLow += this.binWidth;
  45634. return this._castToDecimalThenVarchar$0(binLow);
  45635. }
  45636. /**
  45637. * Calculation that generates the number to put in the binLow label for an INTEGER
  45638. * @return {String}
  45639. */
  45640. }, {
  45641. key: '_binLowCalcInteger',
  45642. value: function _binLowCalcInteger() {
  45643. var binLowInteger = this.virtualMinValue;
  45644. binLowInteger += " + 1";
  45645. var binLow = this.minForReport;
  45646. binLow += " + ";
  45647. binLow += this.binWidth;
  45648. return this._castToDecimalThenVarchar$0(_ExpressionUtil2.default.inlineIfThenElse(this.integerCheck, binLowInteger, binLow));
  45649. }
  45650. /**
  45651. * Creates the when() expression for the highest bin.
  45652. * @param {String} binIdentifier - The bin identifier
  45653. * @return {String}
  45654. */
  45655. }, {
  45656. key: '_whenThenBinHigh',
  45657. value: function _whenThenBinHigh(binIdentifier) {
  45658. var condition = binIdentifier;
  45659. condition += " = ";
  45660. condition += this.numberOfBins;
  45661. var thenValue;
  45662. if (this.customLabels && this.customLabels[this.numberOfBins] != null) {
  45663. thenValue = _ExpressionUtil2.default.getLiteral(this.customLabels[this.numberOfBins]);
  45664. } else if (this._isCustomRanges()) {
  45665. thenValue = this._thenBinMiddle(this.customRanges[this.numberOfBins - 1], this.customRanges[this.numberOfBins]);
  45666. } else {
  45667. var binHigh = _MacroUtil2.default.injectMacro(this._binHighCalc());
  45668. thenValue = _MacroUtil2.default.substitute(_ExpressionUtil2.default.getLiteral("%1"), _ExpressionUtil2.default.getLiteral(binHigh), BinExpression._binHigh(this.expressionLocale), this.expressionLocale);
  45669. thenValue = _MacroUtil2.default.macroAsString(thenValue);
  45670. thenValue = _MacroUtil2.default.macro(thenValue);
  45671. }
  45672. return _ExpressionUtil2.default.whenThen(condition, thenValue);
  45673. }
  45674. /**
  45675. * Calculation that generates the number to put in the binHigh label
  45676. * @return {String}
  45677. */
  45678. }, {
  45679. key: '_binHighCalc',
  45680. value: function _binHighCalc() {
  45681. if (_HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype()) {
  45682. return this._binHighCalcInteger();
  45683. }
  45684. var binHigh = this.minForReport;
  45685. binHigh += " + ";
  45686. binHigh += this.numberOfBins - 1;
  45687. binHigh += " * ";
  45688. binHigh += this.binWidth;
  45689. return this._castToDecimalThenVarchar$0(binHigh);
  45690. }
  45691. /**
  45692. * Calculation that generates the number to put in the binHigh label for an INTEGER
  45693. * @return {String}
  45694. */
  45695. }, {
  45696. key: '_binHighCalcInteger',
  45697. value: function _binHighCalcInteger() {
  45698. var binHighInteger = this.virtualMaxValue;
  45699. binHighInteger += " - 1";
  45700. var binHigh = this.minForReport;
  45701. binHigh += " + ";
  45702. binHigh += this.numberOfBins - 1;
  45703. binHigh += " * ";
  45704. binHigh += this.binWidth;
  45705. return this._castToDecimalThenVarchar$0(_ExpressionUtil2.default.inlineIfThenElse(this.integerCheck, binHighInteger, binHigh));
  45706. }
  45707. /**
  45708. * Creates the when() expression for case when minimum and maximum are the same value. Will generate (pseudo-syntax): - when ( binNumberIdentifier == -1 ) then ( cast ( cast ( id, decimal ) VARCHAR_20 ) )
  45709. * @param {String} binIdentifier - The bin number QueryItem identifier
  45710. * @return {String}
  45711. */
  45712. }, {
  45713. key: '_whenThenBinEdge',
  45714. value: function _whenThenBinEdge(binIdentifier) {
  45715. var condition = binIdentifier;
  45716. condition += " = -1";
  45717. return _ExpressionUtil2.default.whenThen(condition, this._castToDecimalThenVarchar$1(this.identifier, false));
  45718. }
  45719. /**
  45720. * Cast an expression to decimal then varchar, if the QueryItem is an integer ceil() is also applied
  45721. * @param {String} expr - The expression to wrap
  45722. * @return {String}
  45723. */
  45724. }, {
  45725. key: '_castToDecimalThenVarchar$0',
  45726. value: function _castToDecimalThenVarchar$0(expr) {
  45727. return this._castToDecimalThenVarchar$1(expr, true);
  45728. }
  45729. /**
  45730. * Cast an expression to decimal then varchar, if the QueryItem is an integer ceil() is also applied
  45731. * @param {String} expr - The expression to wrap
  45732. * @return {String}
  45733. */
  45734. }, {
  45735. key: '_castToDecimalThenVarchar$1',
  45736. value: function _castToDecimalThenVarchar$1(expr, ceil) {
  45737. var result = expr;
  45738. if (ceil && _HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype()) {
  45739. result = _ExpressionUtil2.default.ceil(result);
  45740. }
  45741. var decimalPlaces = _HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype() ? 0 : this.maxDecimalPlaces;
  45742. var decimal = "decimal(18" + _FormatSymbols2.default.getListSeparator(this.expressionLocale) + " " + decimalPlaces + ")";
  45743. return _ExpressionUtil2.default.cast(_ExpressionUtil2.default.cast(result, decimal, this.expressionLocale), "varchar(20)", this.expressionLocale);
  45744. }
  45745. /**
  45746. * Return a list of numbers to be used as the bin ranges of the MUI wizard. Values are calculated based on min and max values found in the data, and whether the QueryItem being binned has its HighLevelDataType as INTEGER. When custom ranges are specified, the upper and lower bounds are calculated based on steps between the bin ranges unless they were specified as well. Examples: (Integer) [1, 15, 30, 44, 58, 72, 86, 100] (Decimal) [1.000, 15.143, 29.286, 43.429, 57.571, 71.714, 85.857, 100.000]
  45747. * @return {Array} A list of (numberOfBins + 1) strings representing numbers to display
  45748. */
  45749. }, {
  45750. key: 'getRanges',
  45751. value: function getRanges() {
  45752. var isInteger = _HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype();
  45753. if (this._isCustomRanges()) {
  45754. return this._getCustomRanges(isInteger);
  45755. }
  45756. var ranges = [];
  45757. for (var __i_enFor0 = 0, __exp_enFor0 = isInteger ? this._rawIntegerBinLimits() : this._rawBinLimits(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  45758. var value = __exp_enFor0[__i_enFor0];
  45759. ranges.push(_BinExpressionUtil2.default.formatDouble(value, isInteger ? 0 : this.maxDecimalPlaces));
  45760. }
  45761. return ranges;
  45762. }
  45763. /**
  45764. * Return ranges when custom ranges are specified, the upper and lower bounds are calculated based on steps between the bin ranges unless they were specified as well. Return a list of number
  45765. * @param {boolean} isInteger
  45766. * @return {Array}
  45767. */
  45768. }, {
  45769. key: '_getCustomRanges',
  45770. value: function _getCustomRanges(isInteger) {
  45771. var ranges = [];
  45772. Array.prototype.push.apply(ranges, this.customRanges);
  45773. if (ranges[0] == null) {
  45774. ranges[0] = this._getCustomLowRange(isInteger);
  45775. }
  45776. if (ranges[this.numberOfBins] == null) {
  45777. ranges[this.numberOfBins] = this._getCustomHighRange(isInteger);
  45778. }
  45779. return ranges;
  45780. }
  45781. /**
  45782. * Get a custom range for the lowest number, this means the user did not specify a low bound. This generated number will be the default shown by MUI if the user ever clicks on the low bound. The logic is: - If next range is greater than the data's min value, return the min value - If next range is less than the data's min value, return the next range minus the delta to the next value
  45783. * @param {boolean} isInteger
  45784. * @return {String}
  45785. */
  45786. }, {
  45787. key: '_getCustomLowRange',
  45788. value: function _getCustomLowRange(isInteger) {
  45789. var highValue = this.customRanges[2];
  45790. var low = parseFloat(this.customRanges[1]);
  45791. var high = highValue == null ? this.maxValue : parseFloat(highValue);
  45792. var newMin = low > this.minValue ? this.minValue : low - high + low;
  45793. return _BinExpressionUtil2.default.formatDouble(newMin, isInteger ? 0 : this.maxDecimalPlaces);
  45794. }
  45795. /**
  45796. * Get a custom range for the highest number, this means the user did not specify a high bound. This generated number will be the default shown by MUI if the user ever clicks on the high bound. The logic is: - If previous range was less than the data's max value, return the max value - If previous range was greater than the data's max value, return the previous range plus the delta to the previous value
  45797. * @param {boolean} isInteger
  45798. * @return {String}
  45799. */
  45800. }, {
  45801. key: '_getCustomHighRange',
  45802. value: function _getCustomHighRange(isInteger) {
  45803. var lowValue = this.customRanges[this.numberOfBins - 2];
  45804. var low = lowValue == null ? this.minValue : parseFloat(lowValue);
  45805. var high = parseFloat(this.customRanges[this.numberOfBins - 1]);
  45806. var newHigh = high < this.maxValue ? this.maxValue : high + high - low;
  45807. return _BinExpressionUtil2.default.formatDouble(newHigh, isInteger ? 0 : this.maxDecimalPlaces);
  45808. }
  45809. /**
  45810. * Return a list of labels to be used as the bin labels of the MUI wizard. Values are calculated based on whether custom labels are provided, min and max values found in the data, and whether the QueryItem being binned has HighLevelDataType = INTEGER. Examples: (Custom ranges unbound) [Null, less than 30, 30 to 45, 45 to 60, 60 to 75, 75 and above] (Custom ranges bound) [Null, 15 to 30, 30 to 45, 45 to 60, 60 to 75, 75 to 90] (Equal distribution bins, integer) [Null, less than 21, 21 to 41, 41 to 61, 61 to 81, 81 and above] (Equal distribution bins, decimal) [Null, less than 20.8000, 20.8000 to 40.6000, 40.6000 to 60.4000, 60.4000 to 80.2000, 80.2000 and above]
  45811. * @return {Array} A list of numberOfBins strings representing numbers to display
  45812. */
  45813. }, {
  45814. key: 'getLabels',
  45815. value: function getLabels() {
  45816. var isInteger = _HighLevelDataType2.default.INTEGER === this.queryItem.getHighlevelDatatype();
  45817. var labels = [];
  45818. labels.push(this._createBinNullLabel());
  45819. if (!this._isCustomRanges() && this.minValue == this.maxValue) {
  45820. var label = _BinExpressionUtil2.default.formatDouble(this.minValue, isInteger ? 0 : this.maxDecimalPlaces);
  45821. for (var i = 1; i <= this.numberOfBins; ++i) {
  45822. labels.push(this.customLabels && this.customLabels[i] != null ? this.customLabels[i] : label);
  45823. }
  45824. } else {
  45825. var ranges = this.getRanges();
  45826. for (var i = 1; i <= this.numberOfBins; ++i) {
  45827. if (i == 1) {
  45828. labels.push(this._createBinLowLabel(ranges));
  45829. } else if (i == this.numberOfBins) {
  45830. labels.push(this._createBinHighLabel(ranges));
  45831. } else {
  45832. labels.push(this._createBinMiddleLabel(ranges, i));
  45833. }
  45834. }
  45835. }
  45836. return labels;
  45837. }
  45838. /**
  45839. * Create the null bin label, default is: Null
  45840. * @return {String}
  45841. */
  45842. }, {
  45843. key: '_createBinNullLabel',
  45844. value: function _createBinNullLabel() {
  45845. return this.customLabels && this.customLabels[0] != null ? this.customLabels[0] : this.defaultLabels[0];
  45846. }
  45847. /**
  45848. * Create the low bin label, default is: less than 2.5
  45849. * @param {Array} ranges - All value ranges
  45850. */
  45851. }, {
  45852. key: '_createBinLowLabel',
  45853. value: function _createBinLowLabel(ranges) {
  45854. if (this.customLabels && this.customLabels[1] != null) {
  45855. return this.customLabels[1];
  45856. }
  45857. if (this.customRanges && this.customRanges[0] != null) {
  45858. return this._createBinMiddleLabel(ranges, 1);
  45859. }
  45860. var label = this.defaultLabels[1];
  45861. return label.replace("%1", ranges[1]);
  45862. }
  45863. /**
  45864. * Create the high bin label, default is: 7.5 and above
  45865. * @param {Array} ranges - All value ranges
  45866. */
  45867. }, {
  45868. key: '_createBinHighLabel',
  45869. value: function _createBinHighLabel(ranges) {
  45870. if (this.customLabels && this.customLabels[this.numberOfBins] != null) {
  45871. return this.customLabels[this.numberOfBins];
  45872. }
  45873. if (this.customRanges && this.customRanges[this.numberOfBins] != null) {
  45874. return this._createBinMiddleLabel(ranges, this.numberOfBins);
  45875. }
  45876. var label = this.defaultLabels[3];
  45877. return label.replace("%1", ranges[this.numberOfBins - 1]);
  45878. }
  45879. /**
  45880. * Create the middle bin label, default is: 2.5 to 7.5
  45881. * @param {Array} ranges - All value ranges
  45882. * @param {int} binNumber - The bin number
  45883. */
  45884. }, {
  45885. key: '_createBinMiddleLabel',
  45886. value: function _createBinMiddleLabel(ranges, binNumber) {
  45887. if (this.customLabels && this.customLabels[binNumber] != null) {
  45888. return this.customLabels[binNumber];
  45889. }
  45890. var label = this.defaultLabels[2];
  45891. label = label.replace("%1", ranges[binNumber - 1]);
  45892. return label.replace("%2", ranges[binNumber]);
  45893. }
  45894. /**
  45895. * Return a list of four XQE resource names to pass to Query-Service in order to get the translated strings to display in the MUI wizard. The resources in order of : Null, Low, Middle, High Example: [XQE_BIN_binNull, XQE_BIN_binLow, XQE_BIN_binMiddle, XQE_BIN_binHigh]
  45896. * @return {Array} A list of four XQE resources
  45897. */
  45898. }, {
  45899. key: '_getBinNumberExpressionInteger',
  45900. /**
  45901. * Create V5 expression that calculates a bin number for a QueryItem with HighLevelDataType = INTEGER. Example: case when ( qiId is null ) then ( null ) when ( minimum ( qiId for report ) = maximum ( qiId for report ) ) then ( -1 ) when ( maximum ( qiId for report ) - minimum ( qiId for report ) < 7 ) then ( case when ( qiId >= maximum ( qiId for report ) + ceil ( ( 7 - maximum ( qiId for report ) + minimum ( qiId for report ) ) / 2 ) ) then ( 7 ) else ( width-bucket ( qiId, minimum ( qiId for report ) - floor ( ( 7 - maximum ( qiId for report ) + minimum ( qiId for report ) ) / 2 ), maximum ( qiId for report ) + ceil ( ( 7 - maximum ( qiId for report ) + minimum ( qiId for report ) ) / 2 ), 7 ) ) end ) when ( qiId >= maximum ( qiId for report ) ) then ( 7 ) else ( width-bucket ( qiId, minimum ( qiId for report ), maximum ( qiId for report ), 7 ) ) end
  45902. * @return {String} V5 expression to calculate a bin number
  45903. */
  45904. value: function _getBinNumberExpressionInteger() {
  45905. var expressions = [];
  45906. expressions[0] = this._whenNull();
  45907. expressions[1] = this._whenMinEqualMax();
  45908. expressions[2] = this._whenIntegerRangeTooSmall();
  45909. expressions[3] = this._whenValueEqualMax();
  45910. expressions[4] = this._elseWidthBucket();
  45911. return _ExpressionUtil2.default.assembleCase(expressions);
  45912. }
  45913. /**
  45914. * Create V5 expression to handle the special case when only null's are in the data, XQE has issues otherwise.
  45915. * @return {String}
  45916. */
  45917. }, {
  45918. key: '_whenNull',
  45919. value: function _whenNull() {
  45920. return _ExpressionUtil2.default.whenThen(_ExpressionUtil2.default.isNull(this.identifier), "null");
  45921. }
  45922. /**
  45923. * Create V5 expression that calculates a bin number when requesting a number of bins that is higher than the integer data range.
  45924. * @return {String}
  45925. */
  45926. }, {
  45927. key: '_whenIntegerRangeTooSmall',
  45928. value: function _whenIntegerRangeTooSmall() {
  45929. return _ExpressionUtil2.default.whenThen(this.integerCheck, this._binNumberThen());
  45930. }
  45931. /**
  45932. * Create the then() V5 expression that calculates a bin number when requesting a number of bins that is higher than the integer data range.
  45933. * @return {String} The then() V5 expression when binning an INTEGER QueryItem
  45934. */
  45935. }, {
  45936. key: '_binNumberThen',
  45937. value: function _binNumberThen() {
  45938. var expressions = [];
  45939. var condition = this.identifier;
  45940. condition += " >= ";
  45941. condition += this.virtualMaxValue;
  45942. expressions[0] = _ExpressionUtil2.default.whenThen(condition, _ExpressionUtil2.default.getLiteral(this.numberOfBins));
  45943. expressions[1] = _ExpressionUtil2.default.elseExp(_BinExpressionUtil2.default.widthBucket(this.identifier, this.virtualMinValue, this.virtualMaxValue, this.numberOfBins, this.expressionLocale));
  45944. return _ExpressionUtil2.default.nest(_ExpressionUtil2.default.assembleCase(expressions));
  45945. }
  45946. /**
  45947. * Create V5 expression that calculates a bin number for a QueryItem with HighLevelDataType = DECIMAL. Example: case when ( qsId.qiId is null ) then ( null ) when ( minimum ( qsId.qiId for report ) = maximum ( qsId.qiId for report ) ) then ( -1 ) when ( qsId.qiId >= maximum ( qsId.qiId for report ) ) then ( 7 ) else ( width-bucket ( qsId.qiId, minimum ( qsId.qiId for report ), maximum ( qsId.qiId for report ), 7 ) ) end
  45948. * @return {String} V5 expression to calculate a bin number
  45949. */
  45950. }, {
  45951. key: '_getBinNumberExpressionDecimal',
  45952. value: function _getBinNumberExpressionDecimal() {
  45953. var expressions = [];
  45954. expressions[0] = this._whenNull();
  45955. expressions[1] = this._whenMinEqualMax();
  45956. expressions[2] = this._whenValueEqualMax();
  45957. expressions[3] = this._elseWidthBucket();
  45958. return _ExpressionUtil2.default.assembleCase(expressions);
  45959. }
  45960. /**
  45961. * Create a when/then V5 expression for edge case when minimum and maximum values are equal.
  45962. * @return {String}
  45963. */
  45964. }, {
  45965. key: '_whenMinEqualMax',
  45966. value: function _whenMinEqualMax() {
  45967. var condition = this.minForReport;
  45968. condition += " = ";
  45969. condition += this.maxForReport;
  45970. return _ExpressionUtil2.default.whenThen(condition, _ExpressionUtil2.default.getLiteral(-1));
  45971. }
  45972. /**
  45973. * Create a when/then V5 expression for when the value is the maximum, this value should fall in the last bin.
  45974. * @return {String}
  45975. */
  45976. }, {
  45977. key: '_whenValueEqualMax',
  45978. value: function _whenValueEqualMax() {
  45979. var condition = this.identifier;
  45980. condition += " >= ";
  45981. condition += this.maxForReport;
  45982. return _ExpressionUtil2.default.whenThen(condition, _ExpressionUtil2.default.getLiteral(this.numberOfBins));
  45983. }
  45984. /**
  45985. * Create an else V5 expression that uses width bucket to generate the bin numbers.
  45986. * @return {String}
  45987. */
  45988. }, {
  45989. key: '_elseWidthBucket',
  45990. value: function _elseWidthBucket() {
  45991. return _ExpressionUtil2.default.elseExp(_BinExpressionUtil2.default.widthBucket(this.identifier, this.minForReport, this.maxForReport, this.numberOfBins, this.expressionLocale));
  45992. }
  45993. /**
  45994. * Create V5 expression that calculates a bin number for a QueryItem when custom ranges are specified. Examples: (No boundaries): case when ( qiId is null ) then ( null ) when ( qiId < 15 ) then ( 1 ) when ( qiId < 30 ) then ( 2 ) when ( qiId < 45 ) then ( 3 ) when ( qiId < 60 ) then ( 4 ) when ( qiId < 75 ) then ( 5 ) when ( qiId < 85 ) then ( 6 ) else ( 7 ) end (Low and High bounds) case when ( qiId is null ) then ( null ) when ( qiId >= 1 and qiId < 15 ) then ( 1 ) when ( qiId < 30 ) then ( 2 ) when ( qiId < 45 ) then ( 3 ) when ( qiId < 60 ) then ( 4 ) when ( qiId < 75 ) then ( 5 ) when ( qiId < 85 ) then ( 6 ) when ( qiId < 100 ) then ( 7 ) else ( -1 ) end (Low bound only) case when ( qiId is null ) then ( null ) when ( qiId >= 1 and qiId < 15 ) then ( 1 ) when ( qiId < 30 ) then ( 2 ) when ( qiId < 45 ) then ( 3 ) when ( qiId < 60 ) then ( 4 ) when ( qiId < 75 ) then ( 5 ) when ( qiId < 85 ) then ( 6 ) when ( qiId >= 85 ) then ( 7 ) else ( -1 ) end (High bound only) case when ( qiId is null ) then ( null ) when ( qiId < 15 ) then ( 1 ) when ( qiId < 30 ) then ( 2 ) when ( qiId < 45 ) then ( 3 ) when ( qiId < 60 ) then ( 4 ) when ( qiId < 75 ) then ( 5 ) when ( qiId < 85 ) then ( 6 ) when ( qiId < 100 ) then ( 7 ) else ( -1 ) end
  45995. * @return {String} V5 expression to calculate a bin number
  45996. */
  45997. }, {
  45998. key: '_getBinNumberExpressionCustomRanges',
  45999. value: function _getBinNumberExpressionCustomRanges() {
  46000. var highBound = this.customRanges[this.numberOfBins] != null;
  46001. var expressions = [];
  46002. expressions.push(this._whenNull());
  46003. for (var i = 0; i < this.numberOfBins + 1; ++i) {
  46004. var to = this.customRanges[i];
  46005. if (to == null) {
  46006. continue;
  46007. }
  46008. var binNumber = i == 0 ? -1 : i;
  46009. expressions.push(BinExpression._rangeNumberExpression(this.identifier, to, binNumber));
  46010. }
  46011. if (highBound) {
  46012. expressions.push(_ExpressionUtil2.default.elseExp("-1"));
  46013. } else {
  46014. expressions.push(_ExpressionUtil2.default.elseExp(_ExpressionUtil2.default.getLiteral(this.numberOfBins)));
  46015. }
  46016. return _ExpressionUtil2.default.assembleCase(BinExpression._toArray(expressions));
  46017. }
  46018. /**
  46019. * A JS compatible way to translate a String list into a String array.
  46020. * @param {Array} value
  46021. * @return {String[]}
  46022. */
  46023. }, {
  46024. key: '_rawIntegerBinLimits',
  46025. /**
  46026. * Generates the integer bin limits as double values.
  46027. * @return {Array} List of bin limits as double values
  46028. */
  46029. value: function _rawIntegerBinLimits() {
  46030. var min = Math.round(this.minValue);
  46031. var max = Math.round(this.maxValue);
  46032. if (max - min < this.numberOfBins) {
  46033. min = min - Math.floor((this.numberOfBins - this.maxValue + this.minValue) / 2.0);
  46034. max = max + Math.ceil((this.numberOfBins - this.maxValue + this.minValue) / 2.0);
  46035. }
  46036. var increment = (max - min) / this.numberOfBins;
  46037. var limits = [];
  46038. limits.push(min);
  46039. for (var i = 1; i < this.numberOfBins; ++i) {
  46040. limits.push(Math.ceil(min + i * increment));
  46041. }
  46042. limits.push(max);
  46043. return limits;
  46044. }
  46045. /**
  46046. * Generates the bin limits.
  46047. * @return {Array} List of bin limits as double values
  46048. */
  46049. }, {
  46050. key: '_rawBinLimits',
  46051. value: function _rawBinLimits() {
  46052. var increment = (this.maxValue - this.minValue) / this.numberOfBins;
  46053. var limits = [];
  46054. limits.push(this.minValue);
  46055. for (var i = 1; i < this.numberOfBins; ++i) {
  46056. limits.push(this.minValue + increment * i);
  46057. }
  46058. limits.push(this.maxValue);
  46059. return limits;
  46060. }
  46061. /**
  46062. * Return the null bin label macro.
  46063. * @param {String} expressionLocale
  46064. * @return {String} Null bin macro
  46065. */
  46066. }, {
  46067. key: 'castToDecimalThenVarchar',
  46068. value: function castToDecimalThenVarchar(a0, a1) {
  46069. var args = arguments;
  46070. if (args.length == 1) {
  46071. return this.castToDecimalThenVarchar$0(a0);
  46072. }
  46073. return this.castToDecimalThenVarchar$1(a0, a1);
  46074. }
  46075. }], [{
  46076. key: '_whenThenBinCustom',
  46077. value: function _whenThenBinCustom(binIdentifier, binNumber, customLabel) {
  46078. var condition = binIdentifier;
  46079. condition += " = ";
  46080. condition += binNumber;
  46081. return _ExpressionUtil2.default.whenThen(condition, _ExpressionUtil2.default.getLiteral(customLabel));
  46082. }
  46083. }, {
  46084. key: 'getResources',
  46085. value: function getResources() {
  46086. var resources = [];
  46087. resources.push(BinExpression._resourceBinNull());
  46088. resources.push(BinExpression._resourceBinLow());
  46089. resources.push(BinExpression._resourceBinMiddle());
  46090. resources.push(BinExpression._resourceBinHigh());
  46091. return resources;
  46092. }
  46093. }, {
  46094. key: '_toArray',
  46095. value: function _toArray(value) {
  46096. var size = value.length;
  46097. var result = [];
  46098. for (var i = 0; i < size; ++i) {
  46099. result[i] = value[i];
  46100. }
  46101. return result;
  46102. }
  46103. /**
  46104. * Create range bin number as a V5 expression. Examples: when ( identifier < to ) then ( binNumber )
  46105. * @param {String} identifier - Identifier to build around
  46106. * @param {String} to - The to value
  46107. * @param {int} binNumber - The bin number for this expression
  46108. * @return {String}
  46109. */
  46110. }, {
  46111. key: '_rangeNumberExpression',
  46112. value: function _rangeNumberExpression(identifier, to, binNumber) {
  46113. var condition = identifier;
  46114. condition += " < ";
  46115. condition += to;
  46116. return _ExpressionUtil2.default.whenThen(condition, _ExpressionUtil2.default.getLiteral(binNumber));
  46117. }
  46118. }, {
  46119. key: '_binNull',
  46120. value: function _binNull(expressionLocale) {
  46121. var binNull = _MacroUtil2.default.getResourceString(_MacroUtil2.default.getLiteral(BinExpression._resourceBinNull()));
  46122. return _MacroUtil2.default.substr(binNull, 13, expressionLocale);
  46123. }
  46124. /**
  46125. * Return the lowest bin label macro.
  46126. * @param {String} expressionLocale
  46127. * @return {String} Low bin macro
  46128. */
  46129. }, {
  46130. key: '_binLow',
  46131. value: function _binLow(expressionLocale) {
  46132. var binLow = _MacroUtil2.default.getResourceString(_MacroUtil2.default.getLiteral(BinExpression._resourceBinLow()));
  46133. return _MacroUtil2.default.substr(binLow, 13, expressionLocale);
  46134. }
  46135. /**
  46136. * Return the middle bin label macro.
  46137. * @param {String} expressionLocale
  46138. * @return {String} Middle bin macro
  46139. */
  46140. }, {
  46141. key: '_binMiddle',
  46142. value: function _binMiddle(expressionLocale) {
  46143. var binMiddle = _MacroUtil2.default.getResourceString(_MacroUtil2.default.getLiteral(BinExpression._resourceBinMiddle()));
  46144. return _MacroUtil2.default.substr(binMiddle, 13, expressionLocale);
  46145. }
  46146. /**
  46147. * Return the highest bin label macro.
  46148. * @param {String} expressionLocale
  46149. * @return {String} High bin macro
  46150. */
  46151. }, {
  46152. key: '_binHigh',
  46153. value: function _binHigh(expressionLocale) {
  46154. var binHigh = _MacroUtil2.default.getResourceString(_MacroUtil2.default.getLiteral(BinExpression._resourceBinHigh()));
  46155. return _MacroUtil2.default.substr(binHigh, 13, expressionLocale);
  46156. }
  46157. /**
  46158. * Return the resource for binNull
  46159. * @return {String}
  46160. */
  46161. }, {
  46162. key: '_resourceBinNull',
  46163. value: function _resourceBinNull() {
  46164. return "XQE_BIN_binNull";
  46165. }
  46166. /**
  46167. * Return the resource for binLow
  46168. * @return {String}
  46169. */
  46170. }, {
  46171. key: '_resourceBinLow',
  46172. value: function _resourceBinLow() {
  46173. return "XQE_BIN_binLow";
  46174. }
  46175. /**
  46176. * Return the resource for binMiddle
  46177. * @return {String}
  46178. */
  46179. }, {
  46180. key: '_resourceBinMiddle',
  46181. value: function _resourceBinMiddle() {
  46182. return "XQE_BIN_binMiddle";
  46183. }
  46184. /**
  46185. * Return the resource for binHigh
  46186. * @return {String}
  46187. */
  46188. }, {
  46189. key: '_resourceBinHigh',
  46190. value: function _resourceBinHigh() {
  46191. return "XQE_BIN_binHigh";
  46192. }
  46193. }]);
  46194. return BinExpression;
  46195. }(_BaseMoserObject3.default);
  46196. exports.default = BinExpression;
  46197. /***/ },
  46198. /* 130 */
  46199. /***/ function(module, exports, __webpack_require__) {
  46200. 'use strict';
  46201. Object.defineProperty(exports, "__esModule", {
  46202. value: true
  46203. });
  46204. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46205. var _BaseMoserObject2 = __webpack_require__(2);
  46206. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  46207. var _FormatSymbols = __webpack_require__(131);
  46208. var _FormatSymbols2 = _interopRequireDefault(_FormatSymbols);
  46209. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46210. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46211. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46212. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  46213. ** IBM Confidential
  46214. **
  46215. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  46216. **
  46217. ** (C) Copyright IBM Corp. 2020
  46218. **
  46219. ** The source code for this program is not published or otherwise divested of its trade secrets,
  46220. ** irrespective of what has been deposited with the U.S. Copyright Office.
  46221. ************************************************************************/
  46222. // GENERATED
  46223. //@import BaseMoserObject (loadtime) // superclass
  46224. //@import FormatSymbols (static) // getListSeparator
  46225. /**
  46226. * Util class to build simple V5 expressions.
  46227. * @author PASCALLacombe
  46228. */
  46229. var ExpressionUtil = function (_BaseMoserObject) {
  46230. _inherits(ExpressionUtil, _BaseMoserObject);
  46231. function ExpressionUtil() {
  46232. _classCallCheck(this, ExpressionUtil);
  46233. return _possibleConstructorReturn(this, (ExpressionUtil.__proto__ || Object.getPrototypeOf(ExpressionUtil)).apply(this, arguments));
  46234. }
  46235. _createClass(ExpressionUtil, null, [{
  46236. key: 'coalesce',
  46237. /**
  46238. * Create 'coalesce' V5 expression, wrapping defaultValue if a String
  46239. * @param {String} value
  46240. * @param {String} defaultValue
  46241. * @return {String}
  46242. */
  46243. value: function coalesce(value, defaultValue, expressionLocale) {
  46244. var result = "coalesce ( ";
  46245. result += value;
  46246. result += _FormatSymbols2.default.getListSeparator(expressionLocale);
  46247. result += " ";
  46248. result += defaultValue;
  46249. result += " )";
  46250. return result;
  46251. }
  46252. /**
  46253. * Create a 'negate' V5 expression
  46254. * @param {String} value
  46255. * @return {String}
  46256. */
  46257. }, {
  46258. key: 'negate',
  46259. value: function negate(value) {
  46260. var result = "- ";
  46261. result += value;
  46262. return result;
  46263. }
  46264. /**
  46265. * Create a 'not' V5 expression
  46266. * @param {String} value
  46267. * @return {String}
  46268. */
  46269. }, {
  46270. key: 'not',
  46271. value: function not(value) {
  46272. var result = "not ";
  46273. result += value;
  46274. return result;
  46275. }
  46276. /**
  46277. * Create a 'is null' V5 expressions
  46278. * @param {String} identifier
  46279. * @return {String}
  46280. */
  46281. }, {
  46282. key: 'isNull',
  46283. value: function isNull(identifier) {
  46284. var result = identifier;
  46285. result += " is null";
  46286. return result;
  46287. }
  46288. /**
  46289. * Create a 'is not null' V5 expressions
  46290. * @param {String} identifier
  46291. * @return {String}
  46292. */
  46293. }, {
  46294. key: 'isNotNull',
  46295. value: function isNotNull(identifier) {
  46296. var result = identifier;
  46297. result += " is not null";
  46298. return result;
  46299. }
  46300. /**
  46301. * Create 'when/then' V5 expression
  46302. * @param {String} condition
  46303. * @param value
  46304. * @return {String}
  46305. */
  46306. }, {
  46307. key: 'whenThen',
  46308. value: function whenThen(condition, thenValue) {
  46309. var result = ExpressionUtil._whenExp(condition);
  46310. result += " ";
  46311. result += ExpressionUtil._thenExp(thenValue);
  46312. return result;
  46313. }
  46314. /**
  46315. * Create 'case/when/then' V5 expression
  46316. * @param condition
  46317. * @param value
  46318. * @return {String}
  46319. */
  46320. }, {
  46321. key: 'caseWhenThen',
  46322. value: function caseWhenThen(conditions, thenValues) {
  46323. var expressions = [];
  46324. for (var i = 0; i < conditions.length; ++i) {
  46325. expressions[i] = ExpressionUtil.whenThen(conditions[i], thenValues[i]);
  46326. }
  46327. return ExpressionUtil.assembleCase(expressions);
  46328. }
  46329. /**
  46330. * Create a search 'case/when/then' V5 expression
  46331. * @param condition
  46332. * @param value
  46333. * @return {String}
  46334. */
  46335. }, {
  46336. key: 'searchCase',
  46337. value: function searchCase(identifier, conditions, thenValues) {
  46338. var result = "case";
  46339. result += " ( ";
  46340. result += identifier;
  46341. result += " ) ";
  46342. result += "\r\n";
  46343. for (var i = 0; i < conditions.length; ++i) {
  46344. result += " ";
  46345. result += ExpressionUtil.whenThen(conditions[i], thenValues[i]);
  46346. result += "\r\n";
  46347. }
  46348. result += "end";
  46349. return result;
  46350. }
  46351. /**
  46352. * Create 'cast' V5 expression
  46353. * @param {String} value
  46354. * @param {String} dataType
  46355. * @param {String} expressionLocale
  46356. * @return {String}
  46357. */
  46358. }, {
  46359. key: 'cast',
  46360. value: function cast(value, dataType, expressionLocale) {
  46361. var result = "cast ( ";
  46362. result += value;
  46363. result += _FormatSymbols2.default.getListSeparator(expressionLocale);
  46364. result += " ";
  46365. result += dataType;
  46366. result += " )";
  46367. return result;
  46368. }
  46369. /**
  46370. * Create 'ceil' V5 expression
  46371. * @param {String} value
  46372. * @param dataType
  46373. * @return {String}
  46374. */
  46375. }, {
  46376. key: 'ceil',
  46377. value: function ceil(value) {
  46378. var result = "ceil ( ";
  46379. result += value;
  46380. result += " )";
  46381. return result;
  46382. }
  46383. /**
  46384. * Create 'floor' V5 expression
  46385. * @param {String} value
  46386. * @param dataType
  46387. * @return {String}
  46388. */
  46389. }, {
  46390. key: 'floor',
  46391. value: function floor(value) {
  46392. var result = "floor ( ";
  46393. result += value;
  46394. result += " )";
  46395. return result;
  46396. }
  46397. /**
  46398. * Create 'if/then/else' V5 expression, wrapping both values if Strings
  46399. * @param {String} condition
  46400. * @param {String} thenValue
  46401. * @param {String} elseValue
  46402. * @return {String}
  46403. */
  46404. }, {
  46405. key: 'ifThenElse',
  46406. value: function ifThenElse(condition, thenValue, elseValue) {
  46407. var result = ExpressionUtil._ifExp(condition);
  46408. result += "\r\n";
  46409. result += ExpressionUtil._thenExp(thenValue);
  46410. result += "\r\n";
  46411. result += ExpressionUtil.elseExp(elseValue);
  46412. return result;
  46413. }
  46414. /**
  46415. * Create 'if/then/else' V5 expression, wrapping both values if Strings
  46416. * @param {String} condition
  46417. * @param {String} thenValue
  46418. * @param {String} elseValue
  46419. * @return {String}
  46420. */
  46421. }, {
  46422. key: 'inlineIfThenElse',
  46423. value: function inlineIfThenElse(condition, thenValue, elseValue) {
  46424. var result = ExpressionUtil._ifExp(condition);
  46425. result += " ";
  46426. result += ExpressionUtil._thenExp(thenValue);
  46427. result += " ";
  46428. result += ExpressionUtil.elseExp(elseValue);
  46429. return result;
  46430. }
  46431. /**
  46432. * Create 'else' V5 expression: else ( value )
  46433. * @param {String} value
  46434. * @return {String}
  46435. */
  46436. }, {
  46437. key: 'elseExp',
  46438. value: function elseExp(value) {
  46439. var result = "else ( ";
  46440. result += value;
  46441. result += " )";
  46442. return result;
  46443. }
  46444. /**
  46445. * Create 'in' V5 expression: identifier is null or identifier in ( 1, 2 ) or identifier in ( 1, 2 ) or identifier is null or identifier in ( 'abc', 'def' ) or identifier is null
  46446. * @param {String} expressionLocale expression locale
  46447. * @param {String} identifier - identifier to build expression for
  46448. * @param {String[]} inValues - literal values to include in IN
  46449. * @return {String}
  46450. */
  46451. }, {
  46452. key: 'in',
  46453. value: function _in(identifier, inValues, expressionLocale) {
  46454. return ExpressionUtil._assembleSelection(_FormatSymbols2.default.getListSeparator(expressionLocale), identifier, inValues, "in", "or", ExpressionUtil.isNull(identifier));
  46455. }
  46456. /**
  46457. * @param {String} identifier
  46458. * @param {String[]} values
  46459. * @param {String} condition
  46460. * @param {String} booleanCondition
  46461. * @return {String}
  46462. */
  46463. }, {
  46464. key: '_assembleSelection',
  46465. value: function _assembleSelection(listSeparator, identifier, values, condition, booleanCondition, nullIdentifier) {
  46466. var first = true;
  46467. var hasNullLiteral = false;
  46468. var result = "";
  46469. for (var __i_enFor0 = 0, __len_enFor0 = values.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  46470. var inValue = values[__i_enFor0];
  46471. if (ExpressionUtil._isNullLiteral(inValue)) {
  46472. hasNullLiteral = true;
  46473. continue;
  46474. }
  46475. if (first) {
  46476. result += identifier;
  46477. result += " ";
  46478. result += condition;
  46479. result += " ( ";
  46480. first = false;
  46481. } else {
  46482. result += listSeparator;
  46483. result += " ";
  46484. }
  46485. result += inValue;
  46486. }
  46487. if (!first) {
  46488. result += " )";
  46489. }
  46490. if (hasNullLiteral) {
  46491. if (!first) {
  46492. result += " ";
  46493. result += booleanCondition;
  46494. result += " ";
  46495. }
  46496. result += nullIdentifier;
  46497. }
  46498. return result;
  46499. }
  46500. /**
  46501. * Create 'not in' V5 expression: identifier is not null or identifier not in ( 1, 2 ) or identifier not in ( 1, 2 ) and identifier is not null or identifier not in ( 'abc', 'def' ) and identifier is not null
  46502. * @param {String} identifier - identifier to build expression for
  46503. * @param {String[]} notInValues - literal values to include in 'not in'
  46504. * @return {String}
  46505. */
  46506. }, {
  46507. key: 'notIn',
  46508. value: function notIn(identifier, notInValues, expressionLocale) {
  46509. return ExpressionUtil._assembleSelection(_FormatSymbols2.default.getListSeparator(expressionLocale), identifier, notInValues, "not in", "and", ExpressionUtil.isNotNull(identifier));
  46510. }
  46511. /**
  46512. * Create a 'when' V5 expression for range values: when ( rangeExpression ) then ( value )
  46513. * @param {String} identifier - to create expression for
  46514. * @param {String} from - can be null if 'to' is non-null
  46515. * @param {String} to - can be null if 'from' is non-null
  46516. * @param {String} thenValue - for: then
  46517. * @param {boolean} inclusive - when true the expression will include the 'to' value
  46518. * @return {String}
  46519. */
  46520. }, {
  46521. key: 'whenRangeThen',
  46522. value: function whenRangeThen(identifier, from, to, thenValue, inclusive) {
  46523. return ExpressionUtil.whenThen(ExpressionUtil.range(identifier, from, to, inclusive), thenValue);
  46524. }
  46525. /**
  46526. * Create a range V5 expression: identifier >= from and identifier < to or identifier >= from and identifier <= to or identifier >= from or identifier < to or identifier <= to
  46527. * @param {String} identifier - to create expression for
  46528. * @param {String} from - can be null if 'to' is non-null
  46529. * @param {String} to - can be null if 'from' is non-null
  46530. * @param {boolean} inclusive - when true the expression will include the 'to' value
  46531. * @return {String}
  46532. */
  46533. }, {
  46534. key: 'range',
  46535. value: function range(identifier, from, to, inclusive) {
  46536. var result = identifier;
  46537. if (from != null) {
  46538. result += " >= ";
  46539. result += from;
  46540. if (to != null) {
  46541. result += " and ";
  46542. result += identifier;
  46543. }
  46544. }
  46545. if (to != null) {
  46546. if (inclusive) {
  46547. result += " <= ";
  46548. } else {
  46549. result += " < ";
  46550. }
  46551. result += to;
  46552. }
  46553. return result;
  46554. }
  46555. /**
  46556. * Assemble a case/when/then expression, meaning wrap all expressions with: case ... end
  46557. * @param {String[]} expressions
  46558. * @return {String}
  46559. */
  46560. }, {
  46561. key: 'assembleCase',
  46562. value: function assembleCase(expressions) {
  46563. var result = "case";
  46564. result += "\r\n";
  46565. for (var __i_enFor0 = 0, __len_enFor0 = expressions.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  46566. var expression = expressions[__i_enFor0];
  46567. result += " ";
  46568. result += expression;
  46569. result += "\r\n";
  46570. }
  46571. result += "end";
  46572. return result;
  46573. }
  46574. /**
  46575. * Creates minimum for report V5 expression:
  46576. * @param {String} value
  46577. * @return {String}
  46578. */
  46579. }, {
  46580. key: 'minimumForReport',
  46581. value: function minimumForReport(value) {
  46582. var result = "minimum ( ";
  46583. result += value;
  46584. result += " for report )";
  46585. return result;
  46586. }
  46587. /**
  46588. * Creates maximum for report V5 expression:
  46589. * @param {String} value
  46590. * @return {String}
  46591. */
  46592. }, {
  46593. key: 'maximumForReport',
  46594. value: function maximumForReport(value) {
  46595. var result = "maximum ( ";
  46596. result += value;
  46597. result += " for report )";
  46598. return result;
  46599. }
  46600. /**
  46601. * Creates ( aggregate( value for scope) ) V5 expression:
  46602. * @param {String} value
  46603. * @param {Array} scope
  46604. * @param {String} aggregate
  46605. * @return {String}
  46606. */
  46607. }, {
  46608. key: 'minimumForScope',
  46609. value: function minimumForScope(value, scope, aggregate, locale) {
  46610. var listSeparator = _FormatSymbols2.default.getListSeparator(locale);
  46611. var result = "minimum ( ";
  46612. result += aggregate;
  46613. result += " ( ";
  46614. result += value;
  46615. result += " for ";
  46616. for (var i = 0; i < scope.length; ++i) {
  46617. if (i > 0) {
  46618. result += listSeparator;
  46619. result += " ";
  46620. }
  46621. result += scope[i];
  46622. }
  46623. result += " )";
  46624. result += " )";
  46625. return result;
  46626. }
  46627. /**
  46628. * Creates maximum( aggregate( value for scope) ) V5 expression:
  46629. * @param {String} value
  46630. * @param {Array} scope
  46631. * @param {String} aggregate
  46632. * @return {String}
  46633. */
  46634. }, {
  46635. key: 'maximumForScope',
  46636. value: function maximumForScope(value, scope, aggregate, locale) {
  46637. var listSeparator = _FormatSymbols2.default.getListSeparator(locale);
  46638. var result = "maximum ( ";
  46639. result += aggregate;
  46640. result += " ( ";
  46641. result += value;
  46642. result += " for ";
  46643. for (var i = 0; i < scope.length; ++i) {
  46644. if (i > 0) {
  46645. result += listSeparator;
  46646. result += " ";
  46647. }
  46648. result += scope[i];
  46649. }
  46650. result += " )";
  46651. result += " )";
  46652. return result;
  46653. }
  46654. /**
  46655. * Replace illegal characters in a String literal
  46656. * @param {BaseMoserObject} value
  46657. * @return {String}
  46658. */
  46659. }, {
  46660. key: 'escapeStringLiteral',
  46661. value: function escapeStringLiteral(value) {
  46662. return value.toString().replace(new RegExp("\\'", "g"), "''");
  46663. }
  46664. /**
  46665. * Wraps and escapes a literal value if its a String.
  46666. * @param {BaseMoserObject} value
  46667. */
  46668. }, {
  46669. key: 'getLiteral',
  46670. value: function getLiteral(value) {
  46671. if (value == null) {
  46672. return null;
  46673. } else if (typeof value === "string" || value instanceof String) {
  46674. var result = "'";
  46675. result += value;
  46676. result += "'";
  46677. return result;
  46678. }
  46679. return value.toString();
  46680. }
  46681. /**
  46682. * Add indentation to an expression.
  46683. * @param {String} exp
  46684. * @return {String}
  46685. */
  46686. }, {
  46687. key: 'nest',
  46688. value: function nest(exp) {
  46689. var result = "\r\n ";
  46690. result += exp.replace(new RegExp("\r\n", "g"), "\r\n ");
  46691. result += "\r\n";
  46692. return result;
  46693. }
  46694. /**
  46695. * Return true if obj represents a NULL value.
  46696. * @param {BaseMoserObject} obj - obj to check
  46697. * @return {boolean}
  46698. */
  46699. }, {
  46700. key: '_isNullLiteral',
  46701. value: function _isNullLiteral(obj) {
  46702. return obj == null || "__NULL_NAME__" == obj;
  46703. }
  46704. /**
  46705. * Create 'if' V5 expression: if ( condition )
  46706. * @param {String} condition
  46707. * @return {String}
  46708. */
  46709. }, {
  46710. key: '_ifExp',
  46711. value: function _ifExp(condition) {
  46712. var result = "if ( ";
  46713. result += condition;
  46714. result += " )";
  46715. return result;
  46716. }
  46717. /**
  46718. * Create 'when' V5 expression: when ( condition )
  46719. * @param {String} condition
  46720. * @return {String}
  46721. */
  46722. }, {
  46723. key: '_whenExp',
  46724. value: function _whenExp(condition) {
  46725. var result = "when ( ";
  46726. result += condition;
  46727. result += " )";
  46728. return result;
  46729. }
  46730. /**
  46731. * Create 'then' V5 expression: then ( value )
  46732. * @param {String} value
  46733. * @return {String}
  46734. */
  46735. }, {
  46736. key: '_thenExp',
  46737. value: function _thenExp(value) {
  46738. var result = "then ( ";
  46739. result += value;
  46740. result += " )";
  46741. return result;
  46742. }
  46743. /**
  46744. * Create selection bin as a V5 expressions: when ( identifier in ( inValues ) ) then ( value )
  46745. * @param {String} identifier - to create expression for
  46746. * @param {String[]} inValues - values to include in IN
  46747. * @param {String} thenValue - for: then
  46748. * @return {String}
  46749. */
  46750. }, {
  46751. key: 'whenInThen',
  46752. value: function whenInThen(identifier, inValues, thenValue, locale) {
  46753. return ExpressionUtil.whenThen(ExpressionUtil.in(identifier, inValues, locale), thenValue);
  46754. }
  46755. /**
  46756. * This is a util class.
  46757. */
  46758. //constructor()
  46759. }]);
  46760. return ExpressionUtil;
  46761. }(_BaseMoserObject3.default);
  46762. ExpressionUtil.INDENT = " ";
  46763. ExpressionUtil.NEWLINE = "\r\n";
  46764. ExpressionUtil.NEWLINE_INDENT = "\r\n" + " ";
  46765. exports.default = ExpressionUtil;
  46766. /***/ },
  46767. /* 131 */
  46768. /***/ function(module, exports) {
  46769. 'use strict';
  46770. Object.defineProperty(exports, "__esModule", {
  46771. value: true
  46772. });
  46773. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46774. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46775. /************************************************************************
  46776. ** IBM Confidential
  46777. **
  46778. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  46779. **
  46780. ** (C) Copyright IBM Corp. 2018, 2019
  46781. **
  46782. ** The source code for this program is not published or otherwise divested of its trade secrets,
  46783. ** irrespective of what has been deposited with the U.S. Copyright Office.
  46784. ************************************************************************/
  46785. var FormatSymbols = function () {
  46786. function FormatSymbols() {
  46787. _classCallCheck(this, FormatSymbols);
  46788. }
  46789. _createClass(FormatSymbols, null, [{
  46790. key: 'getDefaultLocale',
  46791. value: function getDefaultLocale() {
  46792. return navigator.language;
  46793. }
  46794. // used by junits
  46795. }, {
  46796. key: 'getListSeparator',
  46797. value: function getListSeparator(locale) {
  46798. var lang = locale == null ? FormatSymbols.getDefaultLocale() : locale;
  46799. lang = lang.split("-").join("_");
  46800. var separator = FormatSymbols.CA_SUPPORTED[lang.toLowerCase()];
  46801. return 'undefined' == typeof separator ? "," : ";";
  46802. }
  46803. }]);
  46804. return FormatSymbols;
  46805. }();
  46806. FormatSymbols.GERMAN = 'de-DE';
  46807. FormatSymbols.ENGLISH = 'en-US';
  46808. FormatSymbols.CA_SUPPORTED = {
  46809. "ar": ";",
  46810. "ar_ae": ";",
  46811. "ar_bh": ";",
  46812. "ar_dz": ";",
  46813. "ar_eg": ";",
  46814. "ar_iq": ";",
  46815. "ar_jo": ";",
  46816. "ar_kw": ";",
  46817. "ar_lb": ";",
  46818. "ar_ly": ";",
  46819. "ar_ma": ";",
  46820. "ar_om": ";",
  46821. "ar_qa": ";",
  46822. "ar_sa": ";",
  46823. "ar_sd": ";",
  46824. "ar_sy": ";",
  46825. "ar_tn": ";",
  46826. "ar_ye": ";",
  46827. "be": ";",
  46828. "be_by": ";",
  46829. "bg": ";",
  46830. "bg_bg": ";",
  46831. "bn_in": ";",
  46832. "ca": ";",
  46833. "ca_es": ";",
  46834. "ca_es_preeuro": ";",
  46835. "cs": ";",
  46836. "cs_cz": ";",
  46837. "cs_cz_preeuro": ";",
  46838. "da": ";",
  46839. "da_dk": ";",
  46840. "de": ";",
  46841. "de_at": ";",
  46842. "de_at_preeuro": ";",
  46843. "de_ch": ";",
  46844. "de_de": ";",
  46845. "de_de_preeuro": ";",
  46846. "de_gr": ";",
  46847. "de_lu": ";",
  46848. "de_lu_preeuro": ";",
  46849. "el": ";",
  46850. "el_cy": ";",
  46851. "el_cy_preeuro": ";",
  46852. "el_gr": ";",
  46853. "el_gr_preeuro": ";",
  46854. "en_be": ";",
  46855. "en_be_preeuro": ";",
  46856. "en_hk": ";",
  46857. "en_in": ";",
  46858. "en_mt": ";",
  46859. "en_ph": ";",
  46860. "en_sg": ";",
  46861. "en_za": ";",
  46862. "es": ";",
  46863. "es_ar": ";",
  46864. "es_bo": ";",
  46865. "es_cl": ";",
  46866. "es_co": ";",
  46867. "es_cr": ";",
  46868. "es_cu": ";",
  46869. "es_ec": ";",
  46870. "es_es": ";",
  46871. "es_es_preeuro": ";",
  46872. "es_gt": ";",
  46873. "es_hn": ";",
  46874. "es_ni": ";",
  46875. "es_pe": ";",
  46876. "es_pr": ";",
  46877. "es_py": ";",
  46878. "es_sv": ";",
  46879. "es_us": ";",
  46880. "es_uy": ";",
  46881. "es_ve": ";",
  46882. "et": ";",
  46883. "et_ee": ";",
  46884. "et_ee_preeuro": ";",
  46885. "fi": ";",
  46886. "fi_fi": ";",
  46887. "fi_fi_preeuro": ";",
  46888. "fr": ";",
  46889. "fr_be": ";",
  46890. "fr_be_preeuro": ";",
  46891. "fr_ca": ";",
  46892. "fr_ch": ";",
  46893. "fr_fr": ";",
  46894. "fr_fr_preeuro": ";",
  46895. "fr_lu": ";",
  46896. "fr_lu_preeuro": ";",
  46897. "ga": ";",
  46898. "ga_ie": ";",
  46899. "gu": ";",
  46900. "gu_in": ";",
  46901. "hr": ";",
  46902. "hr_hr": ";",
  46903. "hu": ";",
  46904. "hu_hu": ";",
  46905. "hu_hu_preeuro": ";",
  46906. "in": ";",
  46907. "in_id": ";",
  46908. "is": ";",
  46909. "is_is": ";",
  46910. "it": ";",
  46911. "it_ch": ";",
  46912. "it_it": ";",
  46913. "it_it_preeuro": ";",
  46914. "kk": ";",
  46915. "kk_kz": ";",
  46916. "kn": ";",
  46917. "kn_in": ";",
  46918. "lt": ";",
  46919. "lt_lt": ";",
  46920. "lt_lt_preeuro": ";",
  46921. "lv": ";",
  46922. "lv_lv": ";",
  46923. "lv_lv_preeuro": ";",
  46924. "mk": ";",
  46925. "mk_mk": ";",
  46926. "ml_in": ";",
  46927. "mr": ";",
  46928. "mr_in": ";",
  46929. "ms": ";",
  46930. "ms_my": ";",
  46931. "mt": ";",
  46932. "mt_mt": ";",
  46933. "mt_mt_preeuro": ";",
  46934. "nb_no": ";",
  46935. "nl": ";",
  46936. "nl_be": ";",
  46937. "nl_be_preeuro": ";",
  46938. "nl_nl": ";",
  46939. "nl_nl_preeuro": ";",
  46940. "no": ";",
  46941. "no_no": ";",
  46942. "no_no_ny": ";",
  46943. "or_in": ";",
  46944. "pa": ";",
  46945. "pa_in": ";",
  46946. "pl": ";",
  46947. "pl_pl": ";",
  46948. "pl_pl_preeuro": ";",
  46949. "pt": ";",
  46950. "pt_br": ";",
  46951. "pt_pt": ";",
  46952. "pt_pt_preeuro": ";",
  46953. "ro": ";",
  46954. "ro_ro": ";",
  46955. "ru": ";",
  46956. "ru_ru": ";",
  46957. "sh": ";",
  46958. "sh_cs": ";",
  46959. "sk": ";",
  46960. "sk_sk": ";",
  46961. "sk_sk_preeuro": ";",
  46962. "sl": ";",
  46963. "sl_si": ";",
  46964. "sl_si_preeuro": ";",
  46965. "sq": ";",
  46966. "sq_al": ";",
  46967. "sr": ";",
  46968. "sr_ba": ";",
  46969. "sr_ba_#latn": ";",
  46970. "sr_cs": ";",
  46971. "sr_me": ";",
  46972. "sr_me_#latn": ";",
  46973. "sr_rs": ";",
  46974. "sr_rs_#latn": ";",
  46975. "sr__#latn": ";",
  46976. "sv": ";",
  46977. "sv_se": ";",
  46978. "sv_se_preeuro": ";",
  46979. "ta": ";",
  46980. "ta_in": ";",
  46981. "te": ";",
  46982. "te_in": ";",
  46983. "th": ";",
  46984. "th_th": ";",
  46985. "th_th_th_#u-nu-thai": ";",
  46986. "tr": ";",
  46987. "tr_tr": ";",
  46988. "uk": ";",
  46989. "uk_ua": ";",
  46990. "vi": ";",
  46991. "vi_vn": ";"
  46992. };
  46993. exports.default = FormatSymbols;
  46994. /***/ },
  46995. /* 132 */
  46996. /***/ function(module, exports, __webpack_require__) {
  46997. 'use strict';
  46998. Object.defineProperty(exports, "__esModule", {
  46999. value: true
  47000. });
  47001. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47002. var _BaseMoserObject2 = __webpack_require__(2);
  47003. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  47004. var _FormatSymbols = __webpack_require__(131);
  47005. var _FormatSymbols2 = _interopRequireDefault(_FormatSymbols);
  47006. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47007. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47008. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47009. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  47010. ** IBM Confidential
  47011. **
  47012. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  47013. **
  47014. ** (C) Copyright IBM Corp. 2020
  47015. **
  47016. ** The source code for this program is not published or otherwise divested of its trade secrets,
  47017. ** irrespective of what has been deposited with the U.S. Copyright Office.
  47018. ************************************************************************/
  47019. // GENERATED
  47020. //@import BaseMoserObject (loadtime) // superclass
  47021. //@import FormatSymbols (runtime) // getListSeparator
  47022. /**
  47023. * Util class to build simple V5 macros.
  47024. * @author PASCALLacombe
  47025. */
  47026. var MacroUtil = function (_BaseMoserObject) {
  47027. _inherits(MacroUtil, _BaseMoserObject);
  47028. function MacroUtil() {
  47029. _classCallCheck(this, MacroUtil);
  47030. return _possibleConstructorReturn(this, (MacroUtil.__proto__ || Object.getPrototypeOf(MacroUtil)).apply(this, arguments));
  47031. }
  47032. _createClass(MacroUtil, null, [{
  47033. key: 'getLiteral',
  47034. /**
  47035. * Wraps and escapes a literal value if its a String.
  47036. * @param {BaseMoserObject} value
  47037. */
  47038. value: function getLiteral(value) {
  47039. if (value == null) {
  47040. return null;
  47041. } else if (typeof value === "string" || value instanceof String) {
  47042. var result = "'";
  47043. result += value;
  47044. result += "'";
  47045. return result;
  47046. }
  47047. return value.toString();
  47048. }
  47049. /**
  47050. * Create a GetResourceString macro function
  47051. * @param {String} value
  47052. * @return {String}
  47053. */
  47054. }, {
  47055. key: 'getResourceString',
  47056. value: function getResourceString(value) {
  47057. var result = "GetResourceString( ";
  47058. result += value;
  47059. result += " )";
  47060. return result;
  47061. }
  47062. /**
  47063. * Injects another macro inside a string by escaping the string on each end
  47064. * @param {String} value
  47065. * @return {String}
  47066. */
  47067. }, {
  47068. key: 'injectMacro',
  47069. value: function injectMacro(value) {
  47070. var expression = "'' + ";
  47071. expression += value;
  47072. expression += " + ''";
  47073. return expression;
  47074. }
  47075. /**
  47076. * Wrap an expression as a macro.
  47077. * @param {String} expression
  47078. * @return {String}
  47079. */
  47080. }, {
  47081. key: 'macro',
  47082. value: function macro(expression) {
  47083. var result = "#";
  47084. result += expression;
  47085. result += "#";
  47086. return result;
  47087. }
  47088. /**
  47089. * Wrap a nested V5 expression as a macro string.
  47090. * @param {String} expression
  47091. * @return {String}
  47092. */
  47093. }, {
  47094. key: 'macroAsString',
  47095. value: function macroAsString(expression) {
  47096. var result = "\"'\" + ";
  47097. result += expression;
  47098. result += " + \"'\"";
  47099. return result;
  47100. }
  47101. /**
  47102. * Create a sq macro function
  47103. * @param {String} value
  47104. * @return {String}
  47105. */
  47106. }, {
  47107. key: 'sq',
  47108. value: function sq(value) {
  47109. var result = "sq( ";
  47110. result += value;
  47111. result += " )";
  47112. return result;
  47113. }
  47114. /**
  47115. * Create a substitute macro function
  47116. * @param {String} oldValue
  47117. * @param {String} newValue
  47118. * @param {String} value
  47119. * @param {String} expressionLocale
  47120. * @return {String}
  47121. */
  47122. }, {
  47123. key: 'substitute',
  47124. value: function substitute(oldValue, newValue, value, expressionLocale) {
  47125. var listSeparator = _FormatSymbols2.default.getListSeparator(expressionLocale);
  47126. var result = "substitute( ";
  47127. result += oldValue;
  47128. result += listSeparator;
  47129. result += " ";
  47130. result += newValue;
  47131. result += listSeparator;
  47132. result += " ";
  47133. result += value;
  47134. result += " )";
  47135. return result;
  47136. }
  47137. /**
  47138. * Create a substr macro function
  47139. * @param {String} value
  47140. * @param {int} offset
  47141. * @param {String} expressionLocale
  47142. * @return {String}
  47143. */
  47144. }, {
  47145. key: 'substr',
  47146. value: function substr(value, offset, expressionLocale) {
  47147. var listSeparator = _FormatSymbols2.default.getListSeparator(expressionLocale);
  47148. var result = "substr( ";
  47149. result += value;
  47150. result += listSeparator;
  47151. result += " ";
  47152. result += offset;
  47153. result += " )";
  47154. return result;
  47155. }
  47156. /**
  47157. * Constructor
  47158. */
  47159. //constructor()
  47160. }]);
  47161. return MacroUtil;
  47162. }(_BaseMoserObject3.default);
  47163. exports.default = MacroUtil;
  47164. /***/ },
  47165. /* 133 */
  47166. /***/ function(module, exports, __webpack_require__) {
  47167. 'use strict';
  47168. Object.defineProperty(exports, "__esModule", {
  47169. value: true
  47170. });
  47171. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47172. var _BaseMoserObject2 = __webpack_require__(2);
  47173. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  47174. var _ExpressionUtil = __webpack_require__(130);
  47175. var _ExpressionUtil2 = _interopRequireDefault(_ExpressionUtil);
  47176. var _FormatSymbols = __webpack_require__(131);
  47177. var _FormatSymbols2 = _interopRequireDefault(_FormatSymbols);
  47178. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47179. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47180. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47181. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  47182. ** IBM Confidential
  47183. **
  47184. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  47185. **
  47186. ** (C) Copyright IBM Corp. 2020
  47187. **
  47188. ** The source code for this program is not published or otherwise divested of its trade secrets,
  47189. ** irrespective of what has been deposited with the U.S. Copyright Office.
  47190. ************************************************************************/
  47191. // GENERATED
  47192. //@import BaseMoserObject (loadtime) // superclass
  47193. //@import com/ibm/bi/platform/moser/expressions/v5/util/ExpressionUtil (static) // assembleCase, getLiteral, whenThen, escapeStringLiteral
  47194. //@import FormatSymbols (runtime) // getListSeparator
  47195. /**
  47196. * Utility class for common binning methods.
  47197. * @author PASCALLacombe
  47198. */
  47199. var BinExpressionUtil = function (_BaseMoserObject) {
  47200. _inherits(BinExpressionUtil, _BaseMoserObject);
  47201. function BinExpressionUtil() {
  47202. _classCallCheck(this, BinExpressionUtil);
  47203. return _possibleConstructorReturn(this, (BinExpressionUtil.__proto__ || Object.getPrototypeOf(BinExpressionUtil)).apply(this, arguments));
  47204. }
  47205. _createClass(BinExpressionUtil, null, [{
  47206. key: 'binLabel',
  47207. /**
  47208. * Generates the bin label expression.
  47209. * @param {String[][]} bins
  47210. * @param {String} binIdentifier
  47211. * @return {String}
  47212. */
  47213. value: function binLabel(bins, binIdentifier) {
  47214. var expressions = [];
  47215. for (var i = 0; i < bins.length; ++i) {
  47216. expressions[i] = BinExpressionUtil.binLabelExpression(binIdentifier, i + 1, bins[i][0]);
  47217. }
  47218. return _ExpressionUtil2.default.assembleCase(expressions);
  47219. }
  47220. /**
  47221. * Create range bin label as a V5 expression: when ( binIdentifier = binNumber ) then ( thenValue )
  47222. * @param {String} binIdentifier
  47223. * @param {int} binNumber
  47224. * @param {String} thenValue
  47225. * @return {String}
  47226. */
  47227. }, {
  47228. key: 'binLabelExpression',
  47229. value: function binLabelExpression(binIdentifier, binNumber, thenValue) {
  47230. var condition = binIdentifier;
  47231. condition += " = ";
  47232. condition += _ExpressionUtil2.default.getLiteral(binNumber);
  47233. return _ExpressionUtil2.default.whenThen(condition, _ExpressionUtil2.default.getLiteral(_ExpressionUtil2.default.escapeStringLiteral(thenValue)));
  47234. }
  47235. /**
  47236. * Format a double value to a number of decimal places, this is needed to fix diffs between Java and JS
  47237. * @param {Number} x
  47238. * @param decimalPlaces
  47239. * @return {String}
  47240. */
  47241. }, {
  47242. key: 'formatDouble',
  47243. value: function formatDouble(x, maxDecimalPlaces) {
  47244. if (maxDecimalPlaces <= 0) {
  47245. var intPart = Math.round(x);
  47246. var value = "";
  47247. value += intPart;
  47248. return value;
  47249. }
  47250. var intPart = Math.floor(x);
  47251. var value = "";
  47252. value += intPart;
  47253. value += ".";
  47254. var decimalPart = Math.round((x - intPart) * Math.pow(10, maxDecimalPlaces));
  47255. var decimalPartSize = BinExpressionUtil._longToString(decimalPart).length;
  47256. var padding = maxDecimalPlaces - decimalPartSize;
  47257. for (var i = 0; i < padding; ++i) {
  47258. value += "0";
  47259. }
  47260. value += decimalPart;
  47261. return value;
  47262. }
  47263. }, {
  47264. key: '_longToString',
  47265. value: function _longToString(v) {
  47266. var value = "";
  47267. value += v;
  47268. return value;
  47269. }
  47270. /**
  47271. * Create width-bucket V5 expression.
  47272. * @param {String} identifier
  47273. * @param {String} minimum
  47274. * @param {String} maximum
  47275. * @param {int} numberOfBins
  47276. * @return {String}
  47277. */
  47278. }, {
  47279. key: 'widthBucket',
  47280. value: function widthBucket(identifier, minimum, maximum, numberOfBins, locale) {
  47281. var listSeparator = _FormatSymbols2.default.getListSeparator(locale);
  47282. var expression = "width-bucket ( ";
  47283. expression += identifier;
  47284. expression += listSeparator;
  47285. expression += " ";
  47286. expression += minimum;
  47287. expression += listSeparator;
  47288. expression += " ";
  47289. expression += maximum;
  47290. expression += listSeparator;
  47291. expression += " ";
  47292. expression += numberOfBins;
  47293. expression += " )";
  47294. return expression;
  47295. }
  47296. /**
  47297. * This is a util class.
  47298. */
  47299. //constructor()
  47300. }]);
  47301. return BinExpressionUtil;
  47302. }(_BaseMoserObject3.default);
  47303. exports.default = BinExpressionUtil;
  47304. /***/ },
  47305. /* 134 */
  47306. /***/ function(module, exports, __webpack_require__) {
  47307. 'use strict';
  47308. Object.defineProperty(exports, "__esModule", {
  47309. value: true
  47310. });
  47311. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47312. var _BaseMoserObject2 = __webpack_require__(2);
  47313. var _BaseMoserObject3 = _interopRequireDefault(_BaseMoserObject2);
  47314. var _QsClassifierType = __webpack_require__(33);
  47315. var _QsClassifierType2 = _interopRequireDefault(_QsClassifierType);
  47316. var _Operator = __webpack_require__(135);
  47317. var _Operator2 = _interopRequireDefault(_Operator);
  47318. var _QuerySubjectUsage = __webpack_require__(30);
  47319. var _QuerySubjectUsage2 = _interopRequireDefault(_QuerySubjectUsage);
  47320. var _MoserObject = __webpack_require__(6);
  47321. var _MoserObject2 = _interopRequireDefault(_MoserObject);
  47322. var _InstanceType = __webpack_require__(11);
  47323. var _InstanceType2 = _interopRequireDefault(_InstanceType);
  47324. var _QuerySubject = __webpack_require__(25);
  47325. var _QuerySubject2 = _interopRequireDefault(_QuerySubject);
  47326. var _SetOperation = __webpack_require__(34);
  47327. var _SetOperation2 = _interopRequireDefault(_SetOperation);
  47328. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47329. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47330. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47331. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  47332. ** IBM Confidential
  47333. **
  47334. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  47335. **
  47336. ** (C) Copyright IBM Corp. 2020
  47337. **
  47338. ** The source code for this program is not published or otherwise divested of its trade secrets,
  47339. ** irrespective of what has been deposited with the U.S. Copyright Office.
  47340. ************************************************************************/
  47341. // GENERATED
  47342. //@import BaseMoserObject (loadtime) // superclass
  47343. //@import com/ibm/bi/platform/moser/common/generated/metadata/QsClassifierType (runtime) // QsClassifierType
  47344. //@import com/ibm/bi/platform/moser/client/queryFlow/Operator (runtime) // Operator
  47345. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubjectUsage (runtime) // QuerySubjectUsage
  47346. //@import com/ibm/bi/platform/moser/common/generated/metadata/MoserObject (runtime) // getModuleObject
  47347. //@import com/ibm/bi/platform/moser/common/generated/metadata/InstanceType (runtime) // InstanceType
  47348. //@import com/ibm/bi/platform/moser/common/generated/metadata/QuerySubject (runtime) // new
  47349. /**
  47350. * @author NataliaBalaba
  47351. */
  47352. var QueryFlowUtil = function (_BaseMoserObject) {
  47353. _inherits(QueryFlowUtil, _BaseMoserObject);
  47354. function QueryFlowUtil() {
  47355. _classCallCheck(this, QueryFlowUtil);
  47356. return _possibleConstructorReturn(this, (QueryFlowUtil.__proto__ || Object.getPrototypeOf(QueryFlowUtil)).apply(this, arguments));
  47357. }
  47358. _createClass(QueryFlowUtil, [{
  47359. key: '_getClassifier',
  47360. /**
  47361. * This method is helping to clean up a mess MUI created depicted in 293282
  47362. * @param {QuerySubject} querysubject
  47363. * @return {QsClassifierType}
  47364. */
  47365. value: function _getClassifier(querysubject) {
  47366. if (querysubject.getClassifier()) {
  47367. return querysubject.getClassifier();
  47368. }
  47369. return _QsClassifierType2.default.QUERY_SUBJECT;
  47370. }
  47371. /**
  47372. * Return type of query subject
  47373. * @param {QuerySubject} querysubject - query subject
  47374. * @return {Operator} type of query subject
  47375. */
  47376. }, {
  47377. key: 'getQuerySubjectType',
  47378. value: function getQuerySubjectType(querysubject) {
  47379. if (!querysubject) {
  47380. return null;
  47381. }
  47382. switch (this._getClassifier(querysubject)) {
  47383. case _QsClassifierType2.default.JOIN_QUERY_SUBJECT:
  47384. return _Operator2.default.JOIN;
  47385. case _QsClassifierType2.default.OPERATION_QUERY_SUBJECT:
  47386. var operation = querysubject.getQueryOperation().getSetOperation();
  47387. switch (operation) {
  47388. case _SetOperation2.default.EXCEPT:
  47389. return _Operator2.default.EXCEPT;
  47390. case _SetOperation2.default.INTERSECT:
  47391. return _Operator2.default.INTERSECT;
  47392. case _SetOperation2.default.UNION:
  47393. return _Operator2.default.UNION;
  47394. default:
  47395. }
  47396. case _QsClassifierType2.default.SQL_QUERY_SUBJECT:
  47397. return _Operator2.default.SQL;
  47398. default:
  47399. return this.getPrecursors(querysubject).length == 0 ? _Operator2.default.PLAIN : _Operator2.default.VIEW;
  47400. }
  47401. }
  47402. /**
  47403. * Returns collection of selectable filters (if any) for the query subject
  47404. * @param {QuerySubject} querysubject - a query subject to compute selectable filters
  47405. * @return {Array} collection of selectable filters (if any) for the query subject
  47406. */
  47407. }, {
  47408. key: 'getSelectableFilters',
  47409. value: function getSelectableFilters(querysubject) {
  47410. var filters = [];
  47411. this._appendFilters(querysubject.getItem(), filters);
  47412. return filters;
  47413. }
  47414. }, {
  47415. key: '_appendFilters',
  47416. value: function _appendFilters(items, filters) {
  47417. for (var __i_enFor0 = 0, __exp_enFor0 = items, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  47418. var item = __exp_enFor0[__i_enFor0];
  47419. if (item.getFilter()) {
  47420. filters.push(item.getFilter());
  47421. } else if (item.getFolder()) {
  47422. this._appendFilters(item.getFolder().getItem(), filters);
  47423. }
  47424. }
  47425. }
  47426. /**
  47427. * Extract pre and post aggregate filters and place them in the respective collections
  47428. * @param {QuerySubject} querysubject - a query subject with the filters
  47429. * @param preAggregate - empty list of pre aggregate filters to be filled with filters
  47430. * @param postAggregate - empty list of post aggregate filters to be filled with filters
  47431. */
  47432. }, {
  47433. key: 'extractFilters',
  47434. value: function extractFilters(querysubject) {
  47435. var preAggregate = [],
  47436. postAggregate = [];
  47437. if (querysubject.basicGetFilter()) {
  47438. for (var __i_enFor0 = 0, __exp_enFor0 = querysubject.getFilter(), __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  47439. var filter = __exp_enFor0[__i_enFor0];
  47440. if (filter.isPostAutoAggregation() != null && filter.isPostAutoAggregation() == true) {
  47441. postAggregate.push(filter);
  47442. } else {
  47443. preAggregate.push(filter);
  47444. }
  47445. }
  47446. }
  47447. var result = [];
  47448. result[0] = preAggregate;
  47449. result[1] = postAggregate;
  47450. return result;
  47451. }
  47452. /**
  47453. * @param {QuerySubject} querysubject
  47454. * @return {boolean}
  47455. */
  47456. }, {
  47457. key: 'hasAggregate',
  47458. value: function hasAggregate(querysubject) {
  47459. return querysubject.getQuerySubjectUsage() == _QuerySubjectUsage2.default.SUMMARY_QUERY;
  47460. }
  47461. /**
  47462. * Return query subjects the query subject is based on - e.g. union legs, join participants, etc.
  47463. * @param {QuerySubject} querysubject
  47464. * @return {Array}
  47465. */
  47466. }, {
  47467. key: 'getPrecursors',
  47468. value: function getPrecursors(querysubject) {
  47469. var module = _MoserObject2.default.getModuleObject(querysubject);
  47470. if (!module) {
  47471. return [];
  47472. }
  47473. switch (this._getClassifier(querysubject)) {
  47474. case _QsClassifierType2.default.JOIN_QUERY_SUBJECT:
  47475. return this._fromReference(querysubject.getJoinOperation().getQueryRef(), module);
  47476. case _QsClassifierType2.default.OPERATION_QUERY_SUBJECT:
  47477. return this._fromReference(querysubject.getQueryOperation().getQueryRef(), module);
  47478. default:
  47479. var instanceType = this._getInstanceType(querysubject);
  47480. switch (instanceType) {
  47481. case _InstanceType2.default.MISSING:
  47482. case _InstanceType2.default.REFERENCE:
  47483. return [];
  47484. default:
  47485. return this._fromReference(querysubject.getRef(), module);
  47486. }
  47487. }
  47488. }
  47489. }, {
  47490. key: '_getInstanceType',
  47491. value: function _getInstanceType(querysubject) {
  47492. if (!querysubject.getInstanceType()) {
  47493. return _InstanceType2.default.COPY;
  47494. }
  47495. return querysubject.getInstanceType();
  47496. }
  47497. }, {
  47498. key: '_fromReference',
  47499. value: function _fromReference(references, module) {
  47500. var tables = [];
  47501. for (var __i_enFor0 = 0, __exp_enFor0 = references, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  47502. var ref = __exp_enFor0[__i_enFor0];
  47503. if (ref.split(new RegExp("\\.")).length == 1) {
  47504. var qs = this._getQuerySubjectById(ref, module);
  47505. if (!qs) {
  47506. qs = new _QuerySubject2.default();
  47507. qs.setInstanceType(_InstanceType2.default.MISSING);
  47508. qs.setIdentifier(ref);
  47509. }
  47510. tables.push(qs);
  47511. }
  47512. }
  47513. return tables;
  47514. }
  47515. }, {
  47516. key: '_getQuerySubjectById',
  47517. value: function _getQuerySubjectById(id, module) {
  47518. var querySubject;
  47519. var qsList = module.basicGetQuerySubject();
  47520. if (qsList) {
  47521. for (var __i_enFor0 = 0, __exp_enFor0 = qsList, __len_enFor0 = __exp_enFor0.length; __i_enFor0 < __len_enFor0; ++__i_enFor0) {
  47522. var qs = __exp_enFor0[__i_enFor0];
  47523. if (qs.getIdentifier() == id) {
  47524. querySubject = qs;
  47525. break;
  47526. }
  47527. }
  47528. }
  47529. return querySubject;
  47530. }
  47531. }]);
  47532. return QueryFlowUtil;
  47533. }(_BaseMoserObject3.default);
  47534. exports.default = QueryFlowUtil;
  47535. /***/ },
  47536. /* 135 */
  47537. /***/ function(module, exports, __webpack_require__) {
  47538. "use strict";
  47539. Object.defineProperty(exports, "__esModule", {
  47540. value: true
  47541. });
  47542. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47543. var _Enum2 = __webpack_require__(12);
  47544. var _Enum3 = _interopRequireDefault(_Enum2);
  47545. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47546. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47547. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47548. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /************************************************************************
  47549. ** IBM Confidential
  47550. **
  47551. ** IBM Business Analytics: Rapidly Adaptive Visualization Engine
  47552. **
  47553. ** (C) Copyright IBM Corp. 2020
  47554. **
  47555. ** The source code for this program is not published or otherwise divested of its trade secrets,
  47556. ** irrespective of what has been deposited with the U.S. Copyright Office.
  47557. ************************************************************************/
  47558. // GENERATED
  47559. //@import Enum (loadtime) // superclass
  47560. /**
  47561. * @author NataliaBalaba
  47562. */
  47563. var Operator = function (_Enum) {
  47564. _inherits(Operator, _Enum);
  47565. function Operator() {
  47566. _classCallCheck(this, Operator);
  47567. return _possibleConstructorReturn(this, (Operator.__proto__ || Object.getPrototypeOf(Operator)).apply(this, arguments));
  47568. }
  47569. _createClass(Operator, [{
  47570. key: "value",
  47571. value: function value() {
  47572. return this.name();
  47573. }
  47574. }]);
  47575. return Operator;
  47576. }(_Enum3.default);
  47577. Operator.UNION = Operator.newLiteral("UNION");
  47578. Operator.EXCEPT = Operator.newLiteral("EXCEPT");
  47579. Operator.INTERSECT = Operator.newLiteral("INTERSECT");
  47580. Operator.JOIN = Operator.newLiteral("JOIN");
  47581. Operator.SQL = Operator.newLiteral("SQL");
  47582. Operator.PLAIN = Operator.newLiteral("PLAIN");
  47583. Operator.VIEW = Operator.newLiteral("VIEW");
  47584. exports.default = Operator;
  47585. /***/ }
  47586. /******/ ])
  47587. });
  47588. ;
  47589. //# sourceMappingURL=moser.js.map