BNote.html 155 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: BNote</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: BNote</h1>
  17. <section>
  18. <header>
  19. <h2><span class="attribs"><span class="type-signature"></span></span>BNote<span class="signature">()</span><span class="type-signature"></span></h2>
  20. <div class="class-description">Trilium's main entity, which can represent text note, image, code note, file attachment etc.</div>
  21. </header>
  22. <article>
  23. <div class="container-overview">
  24. <h2>Constructor</h2>
  25. <h4 class="name" id="BNote"><span class="type-signature"></span>new BNote<span class="signature">()</span><span class="type-signature"></span></h4>
  26. <dl class="details">
  27. <dt class="tag-source">Source:</dt>
  28. <dd class="tag-source"><ul class="dummy"><li>
  29. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line40">line 40</a>
  30. </li></ul></dd>
  31. </dl>
  32. </div>
  33. <h3 class="subsection-title">Extends</h3>
  34. <ul>
  35. <li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li>
  36. </ul>
  37. <h3 class="subsection-title">Members</h3>
  38. <h4 class="name" id="__flatTextCache"><span class="type-signature"></span>__flatTextCache<span class="type-signature"> :string|null</span></h4>
  39. <h5>Type:</h5>
  40. <ul>
  41. <li>
  42. <span class="param-type">string</span>
  43. |
  44. <span class="param-type">null</span>
  45. </li>
  46. </ul>
  47. <dl class="details">
  48. <dt class="tag-source">Source:</dt>
  49. <dd class="tag-source"><ul class="dummy"><li>
  50. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line108">line 108</a>
  51. </li></ul></dd>
  52. </dl>
  53. <h4 class="name" id="becca"><span class="type-signature">(protected) </span>becca<span class="type-signature"></span></h4>
  54. <dl class="details">
  55. <dt class="tag-overrides">Overrides:</dt>
  56. <dd class="tag-overrides"><ul class="dummy"><li>
  57. <a href="AbstractBeccaEntity.html#becca">AbstractBeccaEntity#becca</a>
  58. </li></ul></dd>
  59. <dt class="tag-source">Source:</dt>
  60. <dd class="tag-source"><ul class="dummy"><li>
  61. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line35">line 35</a>
  62. </li></ul></dd>
  63. </dl>
  64. <h4 class="name" id="blobId"><span class="type-signature"></span>blobId<span class="type-signature"> :string</span></h4>
  65. <h5>Type:</h5>
  66. <ul>
  67. <li>
  68. <span class="param-type">string</span>
  69. </li>
  70. </ul>
  71. <dl class="details">
  72. <dt class="tag-source">Source:</dt>
  73. <dd class="tag-source"><ul class="dummy"><li>
  74. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line85">line 85</a>
  75. </li></ul></dd>
  76. </dl>
  77. <h4 class="name" id="dateCreated"><span class="type-signature"></span>dateCreated<span class="type-signature"> :string</span></h4>
  78. <h5>Type:</h5>
  79. <ul>
  80. <li>
  81. <span class="param-type">string</span>
  82. </li>
  83. </ul>
  84. <dl class="details">
  85. <dt class="tag-source">Source:</dt>
  86. <dd class="tag-source"><ul class="dummy"><li>
  87. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line87">line 87</a>
  88. </li></ul></dd>
  89. </dl>
  90. <h4 class="name" id="dateModified"><span class="type-signature"></span>dateModified<span class="type-signature"> :string</span></h4>
  91. <h5>Type:</h5>
  92. <ul>
  93. <li>
  94. <span class="param-type">string</span>
  95. </li>
  96. </ul>
  97. <dl class="details">
  98. <dt class="tag-source">Source:</dt>
  99. <dd class="tag-source"><ul class="dummy"><li>
  100. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line89">line 89</a>
  101. </li></ul></dd>
  102. </dl>
  103. <h4 class="name" id="isBeingDeleted"><span class="type-signature"></span>isBeingDeleted<span class="type-signature"> :boolean</span></h4>
  104. <div class="description">
  105. set during the deletion operation, before it is completed (removed from becca completely)
  106. </div>
  107. <h5>Type:</h5>
  108. <ul>
  109. <li>
  110. <span class="param-type">boolean</span>
  111. </li>
  112. </ul>
  113. <dl class="details">
  114. <dt class="tag-source">Source:</dt>
  115. <dd class="tag-source"><ul class="dummy"><li>
  116. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line98">line 98</a>
  117. </li></ul></dd>
  118. </dl>
  119. <h4 class="name" id="isDecrypted"><span class="type-signature"></span>isDecrypted<span class="type-signature"> :boolean</span></h4>
  120. <h5>Type:</h5>
  121. <ul>
  122. <li>
  123. <span class="param-type">boolean</span>
  124. </li>
  125. </ul>
  126. <dl class="details">
  127. <dt class="tag-source">Source:</dt>
  128. <dd class="tag-source"><ul class="dummy"><li>
  129. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line103">line 103</a>
  130. </li></ul></dd>
  131. </dl>
  132. <h4 class="name" id="isProtected"><span class="type-signature"></span>isProtected<span class="type-signature"> :boolean</span></h4>
  133. <h5>Type:</h5>
  134. <ul>
  135. <li>
  136. <span class="param-type">boolean</span>
  137. </li>
  138. </ul>
  139. <dl class="details">
  140. <dt class="tag-source">Source:</dt>
  141. <dd class="tag-source"><ul class="dummy"><li>
  142. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line83">line 83</a>
  143. </li></ul></dd>
  144. </dl>
  145. <h4 class="name" id="mime"><span class="type-signature"></span>mime<span class="type-signature"> :string</span></h4>
  146. <h5>Type:</h5>
  147. <ul>
  148. <li>
  149. <span class="param-type">string</span>
  150. </li>
  151. </ul>
  152. <dl class="details">
  153. <dt class="tag-source">Source:</dt>
  154. <dd class="tag-source"><ul class="dummy"><li>
  155. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line81">line 81</a>
  156. </li></ul></dd>
  157. </dl>
  158. <h4 class="name" id="noteId"><span class="type-signature"></span>noteId<span class="type-signature"> :string</span></h4>
  159. <h5>Type:</h5>
  160. <ul>
  161. <li>
  162. <span class="param-type">string</span>
  163. </li>
  164. </ul>
  165. <dl class="details">
  166. <dt class="tag-source">Source:</dt>
  167. <dd class="tag-source"><ul class="dummy"><li>
  168. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line75">line 75</a>
  169. </li></ul></dd>
  170. </dl>
  171. <h4 class="name" id="title"><span class="type-signature"></span>title<span class="type-signature"> :string</span></h4>
  172. <h5>Type:</h5>
  173. <ul>
  174. <li>
  175. <span class="param-type">string</span>
  176. </li>
  177. </ul>
  178. <dl class="details">
  179. <dt class="tag-source">Source:</dt>
  180. <dd class="tag-source"><ul class="dummy"><li>
  181. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line77">line 77</a>
  182. </li></ul></dd>
  183. </dl>
  184. <h4 class="name" id="type"><span class="type-signature"></span>type<span class="type-signature"> :<a href="global.html#NoteType">NoteType</a></span></h4>
  185. <h5>Type:</h5>
  186. <ul>
  187. <li>
  188. <span class="param-type"><a href="global.html#NoteType">NoteType</a></span>
  189. </li>
  190. </ul>
  191. <dl class="details">
  192. <dt class="tag-source">Source:</dt>
  193. <dd class="tag-source"><ul class="dummy"><li>
  194. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line79">line 79</a>
  195. </li></ul></dd>
  196. </dl>
  197. <h4 class="name" id="utcDateCreated"><span class="type-signature"></span>utcDateCreated<span class="type-signature"> :string</span></h4>
  198. <h5>Type:</h5>
  199. <ul>
  200. <li>
  201. <span class="param-type">string</span>
  202. </li>
  203. </ul>
  204. <dl class="details">
  205. <dt class="tag-source">Source:</dt>
  206. <dd class="tag-source"><ul class="dummy"><li>
  207. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line91">line 91</a>
  208. </li></ul></dd>
  209. </dl>
  210. <h4 class="name" id="utcDateModified"><span class="type-signature"></span>utcDateModified<span class="type-signature"> :string</span></h4>
  211. <h5>Type:</h5>
  212. <ul>
  213. <li>
  214. <span class="param-type">string</span>
  215. </li>
  216. </ul>
  217. <dl class="details">
  218. <dt class="tag-source">Source:</dt>
  219. <dd class="tag-source"><ul class="dummy"><li>
  220. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line93">line 93</a>
  221. </li></ul></dd>
  222. </dl>
  223. <h3 class="subsection-title">Methods</h3>
  224. <h4 class="name" id="_getContent"><span class="type-signature">(protected) </span>_getContent<span class="signature">()</span><span class="type-signature"> &rarr; {string|Buffer}</span></h4>
  225. <dl class="details">
  226. <dt class="tag-overrides">Overrides:</dt>
  227. <dd class="tag-overrides"><ul class="dummy"><li>
  228. <a href="AbstractBeccaEntity.html#_getContent">AbstractBeccaEntity#_getContent</a>
  229. </li></ul></dd>
  230. <dt class="tag-source">Source:</dt>
  231. <dd class="tag-source"><ul class="dummy"><li>
  232. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line250">line 250</a>
  233. </li></ul></dd>
  234. </dl>
  235. <h5>Returns:</h5>
  236. <dl>
  237. <dt>
  238. Type
  239. </dt>
  240. <dd>
  241. <span class="param-type">string</span>
  242. |
  243. <span class="param-type">Buffer</span>
  244. </dd>
  245. </dl>
  246. <h4 class="name" id="_setContent"><span class="type-signature">(protected) </span>_setContent<span class="signature">()</span><span class="type-signature"></span></h4>
  247. <dl class="details">
  248. <dt class="tag-overrides">Overrides:</dt>
  249. <dd class="tag-overrides"><ul class="dummy"><li>
  250. <a href="AbstractBeccaEntity.html#_setContent">AbstractBeccaEntity#_setContent</a>
  251. </li></ul></dd>
  252. <dt class="tag-source">Source:</dt>
  253. <dd class="tag-source"><ul class="dummy"><li>
  254. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line128">line 128</a>
  255. </li></ul></dd>
  256. </dl>
  257. <h4 class="name" id="addAttribute"><span class="type-signature"></span>addAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>, isInheritable<span class="signature-attributes">opt</span>, position<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>}</span></h4>
  258. <div class="description">
  259. Adds a new attribute to this note. The attribute is saved and returned.
  260. See addLabel, addRelation for more specific methods.
  261. </div>
  262. <h5>Parameters:</h5>
  263. <table class="params">
  264. <thead>
  265. <tr>
  266. <th>Name</th>
  267. <th>Type</th>
  268. <th>Attributes</th>
  269. <th>Default</th>
  270. <th class="last">Description</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. <tr>
  275. <td class="name"><code>type</code></td>
  276. <td class="type">
  277. <span class="param-type">string</span>
  278. </td>
  279. <td class="attributes">
  280. </td>
  281. <td class="default">
  282. </td>
  283. <td class="description last">attribute type (label / relation)</td>
  284. </tr>
  285. <tr>
  286. <td class="name"><code>name</code></td>
  287. <td class="type">
  288. <span class="param-type">string</span>
  289. </td>
  290. <td class="attributes">
  291. </td>
  292. <td class="default">
  293. </td>
  294. <td class="description last">name of the attribute, not including the leading ~/#</td>
  295. </tr>
  296. <tr>
  297. <td class="name"><code>value</code></td>
  298. <td class="type">
  299. <span class="param-type">string</span>
  300. </td>
  301. <td class="attributes">
  302. &lt;optional><br>
  303. </td>
  304. <td class="default">
  305. </td>
  306. <td class="description last">value of the attribute - text for labels, target note ID for relations; optional.</td>
  307. </tr>
  308. <tr>
  309. <td class="name"><code>isInheritable</code></td>
  310. <td class="type">
  311. <span class="param-type">boolean</span>
  312. </td>
  313. <td class="attributes">
  314. &lt;optional><br>
  315. </td>
  316. <td class="default">
  317. false
  318. </td>
  319. <td class="description last"></td>
  320. </tr>
  321. <tr>
  322. <td class="name"><code>position</code></td>
  323. <td class="type">
  324. <span class="param-type"><a href="global.html#int">int</a></span>
  325. |
  326. <span class="param-type">null</span>
  327. </td>
  328. <td class="attributes">
  329. &lt;optional><br>
  330. </td>
  331. <td class="default">
  332. null
  333. </td>
  334. <td class="description last"></td>
  335. </tr>
  336. </tbody>
  337. </table>
  338. <dl class="details">
  339. <dt class="tag-source">Source:</dt>
  340. <dd class="tag-source"><ul class="dummy"><li>
  341. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1345">line 1345</a>
  342. </li></ul></dd>
  343. </dl>
  344. <h5>Returns:</h5>
  345. <dl>
  346. <dt>
  347. Type
  348. </dt>
  349. <dd>
  350. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  351. </dd>
  352. </dl>
  353. <h4 class="name" id="addLabel"><span class="type-signature"></span>addLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>, isInheritable<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>}</span></h4>
  354. <div class="description">
  355. Adds a new label to this note. The label attribute is saved and returned.
  356. </div>
  357. <h5>Parameters:</h5>
  358. <table class="params">
  359. <thead>
  360. <tr>
  361. <th>Name</th>
  362. <th>Type</th>
  363. <th>Attributes</th>
  364. <th>Default</th>
  365. <th class="last">Description</th>
  366. </tr>
  367. </thead>
  368. <tbody>
  369. <tr>
  370. <td class="name"><code>name</code></td>
  371. <td class="type">
  372. <span class="param-type">string</span>
  373. </td>
  374. <td class="attributes">
  375. </td>
  376. <td class="default">
  377. </td>
  378. <td class="description last">name of the label, not including the leading #</td>
  379. </tr>
  380. <tr>
  381. <td class="name"><code>value</code></td>
  382. <td class="type">
  383. <span class="param-type">string</span>
  384. </td>
  385. <td class="attributes">
  386. &lt;optional><br>
  387. </td>
  388. <td class="default">
  389. </td>
  390. <td class="description last">text value of the label; optional</td>
  391. </tr>
  392. <tr>
  393. <td class="name"><code>isInheritable</code></td>
  394. <td class="type">
  395. <span class="param-type">boolean</span>
  396. </td>
  397. <td class="attributes">
  398. &lt;optional><br>
  399. </td>
  400. <td class="default">
  401. false
  402. </td>
  403. <td class="description last"></td>
  404. </tr>
  405. </tbody>
  406. </table>
  407. <dl class="details">
  408. <dt class="tag-source">Source:</dt>
  409. <dd class="tag-source"><ul class="dummy"><li>
  410. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1366">line 1366</a>
  411. </li></ul></dd>
  412. </dl>
  413. <h5>Returns:</h5>
  414. <dl>
  415. <dt>
  416. Type
  417. </dt>
  418. <dd>
  419. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  420. </dd>
  421. </dl>
  422. <h4 class="name" id="addRelation"><span class="type-signature"></span>addRelation<span class="signature">(name, targetNoteId, isInheritable<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>}</span></h4>
  423. <div class="description">
  424. Adds a new relation to this note. The relation attribute is saved and
  425. returned.
  426. </div>
  427. <h5>Parameters:</h5>
  428. <table class="params">
  429. <thead>
  430. <tr>
  431. <th>Name</th>
  432. <th>Type</th>
  433. <th>Attributes</th>
  434. <th>Default</th>
  435. <th class="last">Description</th>
  436. </tr>
  437. </thead>
  438. <tbody>
  439. <tr>
  440. <td class="name"><code>name</code></td>
  441. <td class="type">
  442. <span class="param-type">string</span>
  443. </td>
  444. <td class="attributes">
  445. </td>
  446. <td class="default">
  447. </td>
  448. <td class="description last">name of the relation, not including the leading ~</td>
  449. </tr>
  450. <tr>
  451. <td class="name"><code>targetNoteId</code></td>
  452. <td class="type">
  453. <span class="param-type">string</span>
  454. </td>
  455. <td class="attributes">
  456. </td>
  457. <td class="default">
  458. </td>
  459. <td class="description last"></td>
  460. </tr>
  461. <tr>
  462. <td class="name"><code>isInheritable</code></td>
  463. <td class="type">
  464. <span class="param-type">boolean</span>
  465. </td>
  466. <td class="attributes">
  467. &lt;optional><br>
  468. </td>
  469. <td class="default">
  470. false
  471. </td>
  472. <td class="description last"></td>
  473. </tr>
  474. </tbody>
  475. </table>
  476. <dl class="details">
  477. <dt class="tag-source">Source:</dt>
  478. <dd class="tag-source"><ul class="dummy"><li>
  479. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1379">line 1379</a>
  480. </li></ul></dd>
  481. </dl>
  482. <h5>Returns:</h5>
  483. <dl>
  484. <dt>
  485. Type
  486. </dt>
  487. <dd>
  488. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  489. </dd>
  490. </dl>
  491. <h4 class="name" id="beforeSaving"><span class="type-signature">(protected) </span>beforeSaving<span class="signature">()</span><span class="type-signature"></span></h4>
  492. <dl class="details">
  493. <dt class="tag-overrides">Overrides:</dt>
  494. <dd class="tag-overrides"><ul class="dummy"><li>
  495. <a href="AbstractBeccaEntity.html#beforeSaving">AbstractBeccaEntity#beforeSaving</a>
  496. </li></ul></dd>
  497. <dt class="tag-source">Source:</dt>
  498. <dd class="tag-source"><ul class="dummy"><li>
  499. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line20">line 20</a>
  500. </li></ul></dd>
  501. </dl>
  502. <h4 class="name" id="cloneTo"><span class="type-signature"></span>cloneTo<span class="signature">(parentNoteId)</span><span class="type-signature"> &rarr; {Object}</span></h4>
  503. <h5>Parameters:</h5>
  504. <table class="params">
  505. <thead>
  506. <tr>
  507. <th>Name</th>
  508. <th>Type</th>
  509. <th class="last">Description</th>
  510. </tr>
  511. </thead>
  512. <tbody>
  513. <tr>
  514. <td class="name"><code>parentNoteId</code></td>
  515. <td class="type">
  516. </td>
  517. <td class="description last"></td>
  518. </tr>
  519. </tbody>
  520. </table>
  521. <dl class="details">
  522. <dt class="tag-source">Source:</dt>
  523. <dd class="tag-source"><ul class="dummy"><li>
  524. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1464">line 1464</a>
  525. </li></ul></dd>
  526. </dl>
  527. <h5>Returns:</h5>
  528. <dl>
  529. <dt>
  530. Type
  531. </dt>
  532. <dd>
  533. <span class="param-type">Object</span>
  534. </dd>
  535. </dl>
  536. <h4 class="name" id="convertToParentAttachment"><span class="type-signature"></span>convertToParentAttachment<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="BAttachment.html">BAttachment</a>|null}</span></h4>
  537. <div class="description">
  538. Some notes are eligible for conversion into an attachment of its parent, note must have these properties:
  539. - it has exactly one target relation
  540. - it has a relation from its parent note
  541. - it has no children
  542. - it has no clones
  543. - the parent is of type text
  544. - both notes are either unprotected or user is in protected session
  545. Currently, works only for image notes.
  546. In the future, this functionality might get more generic and some of the requirements relaxed.
  547. </div>
  548. <dl class="details">
  549. <dt class="tag-source">Source:</dt>
  550. <dd class="tag-source"><ul class="dummy"><li>
  551. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1516">line 1516</a>
  552. </li></ul></dd>
  553. </dl>
  554. <h5>Returns:</h5>
  555. <div class="param-desc">
  556. - null if note is not eligible for conversion
  557. </div>
  558. <dl>
  559. <dt>
  560. Type
  561. </dt>
  562. <dd>
  563. <span class="param-type"><a href="BAttachment.html">BAttachment</a></span>
  564. |
  565. <span class="param-type">null</span>
  566. </dd>
  567. </dl>
  568. <h4 class="name" id="deleteNote"><span class="type-signature"></span>deleteNote<span class="signature">(deleteId<span class="signature-attributes">opt</span>, taskContext<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  569. <div class="description">
  570. (Soft) delete a note and all its descendants.
  571. </div>
  572. <h5>Parameters:</h5>
  573. <table class="params">
  574. <thead>
  575. <tr>
  576. <th>Name</th>
  577. <th>Type</th>
  578. <th>Attributes</th>
  579. <th>Default</th>
  580. <th class="last">Description</th>
  581. </tr>
  582. </thead>
  583. <tbody>
  584. <tr>
  585. <td class="name"><code>deleteId</code></td>
  586. <td class="type">
  587. <span class="param-type">string</span>
  588. </td>
  589. <td class="attributes">
  590. &lt;optional><br>
  591. </td>
  592. <td class="default">
  593. null
  594. </td>
  595. <td class="description last">optional delete identified</td>
  596. </tr>
  597. <tr>
  598. <td class="name"><code>taskContext</code></td>
  599. <td class="type">
  600. <span class="param-type">TaskContext</span>
  601. </td>
  602. <td class="attributes">
  603. &lt;optional><br>
  604. </td>
  605. <td class="default">
  606. null
  607. </td>
  608. <td class="description last"></td>
  609. </tr>
  610. </tbody>
  611. </table>
  612. <dl class="details">
  613. <dt class="tag-source">Source:</dt>
  614. <dd class="tag-source"><ul class="dummy"><li>
  615. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1554">line 1554</a>
  616. </li></ul></dd>
  617. </dl>
  618. <h4 class="name" id="generateHash"><span class="type-signature">(protected) </span>generateHash<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
  619. <dl class="details">
  620. <dt class="tag-overrides">Overrides:</dt>
  621. <dd class="tag-overrides"><ul class="dummy"><li>
  622. <a href="AbstractBeccaEntity.html#generateHash">AbstractBeccaEntity#generateHash</a>
  623. </li></ul></dd>
  624. <dt class="tag-source">Source:</dt>
  625. <dd class="tag-source"><ul class="dummy"><li>
  626. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line59">line 59</a>
  627. </li></ul></dd>
  628. </dl>
  629. <h5>Returns:</h5>
  630. <dl>
  631. <dt>
  632. Type
  633. </dt>
  634. <dd>
  635. <span class="param-type">string</span>
  636. </dd>
  637. </dl>
  638. <h4 class="name" id="getAllNotePaths"><span class="type-signature"></span>getAllNotePaths<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;Array.&lt;string>>}</span></h4>
  639. <div class="description">
  640. Gives all possible note paths leading to this note. Paths containing search note are ignored (could form cycles)
  641. </div>
  642. <dl class="details">
  643. <dt class="tag-source">Source:</dt>
  644. <dd class="tag-source"><ul class="dummy"><li>
  645. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1186">line 1186</a>
  646. </li></ul></dd>
  647. </dl>
  648. <h5>Returns:</h5>
  649. <div class="param-desc">
  650. - array of notePaths (each represented by array of noteIds constituting the particular note path)
  651. </div>
  652. <dl>
  653. <dt>
  654. Type
  655. </dt>
  656. <dd>
  657. <span class="param-type">Array.&lt;Array.&lt;string>></span>
  658. </dd>
  659. </dl>
  660. <h4 class="name" id="getAncestorNoteIds"><span class="type-signature"></span>getAncestorNoteIds<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span></h4>
  661. <dl class="details">
  662. <dt class="tag-source">Source:</dt>
  663. <dd class="tag-source"><ul class="dummy"><li>
  664. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1068">line 1068</a>
  665. </li></ul></dd>
  666. </dl>
  667. <h5>Returns:</h5>
  668. <dl>
  669. <dt>
  670. Type
  671. </dt>
  672. <dd>
  673. <span class="param-type">Array.&lt;string></span>
  674. </dd>
  675. </dl>
  676. <h4 class="name" id="getAncestors"><span class="type-signature"></span>getAncestors<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BNote.html">BNote</a>>}</span></h4>
  677. <dl class="details">
  678. <dt class="tag-source">Source:</dt>
  679. <dd class="tag-source"><ul class="dummy"><li>
  680. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1042">line 1042</a>
  681. </li></ul></dd>
  682. </dl>
  683. <h5>Returns:</h5>
  684. <dl>
  685. <dt>
  686. Type
  687. </dt>
  688. <dd>
  689. <span class="param-type">Array.&lt;<a href="BNote.html">BNote</a>></span>
  690. </dd>
  691. </dl>
  692. <h4 class="name" id="getAttachmentById"><span class="type-signature"></span>getAttachmentById<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="BAttachment.html">BAttachment</a>|null}</span></h4>
  693. <dl class="details">
  694. <dt class="tag-source">Source:</dt>
  695. <dd class="tag-source"><ul class="dummy"><li>
  696. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1149">line 1149</a>
  697. </li></ul></dd>
  698. </dl>
  699. <h5>Returns:</h5>
  700. <dl>
  701. <dt>
  702. Type
  703. </dt>
  704. <dd>
  705. <span class="param-type"><a href="BAttachment.html">BAttachment</a></span>
  706. |
  707. <span class="param-type">null</span>
  708. </dd>
  709. </dl>
  710. <h4 class="name" id="getAttachmentByTitle"><span class="type-signature"></span>getAttachmentByTitle<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="BAttachment.html">BAttachment</a>}</span></h4>
  711. <dl class="details">
  712. <dt class="tag-source">Source:</dt>
  713. <dd class="tag-source"><ul class="dummy"><li>
  714. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1176">line 1176</a>
  715. </li></ul></dd>
  716. </dl>
  717. <h5>Returns:</h5>
  718. <dl>
  719. <dt>
  720. Type
  721. </dt>
  722. <dd>
  723. <span class="param-type"><a href="BAttachment.html">BAttachment</a></span>
  724. </dd>
  725. </dl>
  726. <h4 class="name" id="getAttachments"><span class="type-signature"></span>getAttachments<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttachment.html">BAttachment</a>>}</span></h4>
  727. <dl class="details">
  728. <dt class="tag-source">Source:</dt>
  729. <dd class="tag-source"><ul class="dummy"><li>
  730. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1131">line 1131</a>
  731. </li></ul></dd>
  732. </dl>
  733. <h5>Returns:</h5>
  734. <dl>
  735. <dt>
  736. Type
  737. </dt>
  738. <dd>
  739. <span class="param-type">Array.&lt;<a href="BAttachment.html">BAttachment</a>></span>
  740. </dd>
  741. </dl>
  742. <h4 class="name" id="getAttachmentsByRole"><span class="type-signature"></span>getAttachmentsByRole<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttachment.html">BAttachment</a>>}</span></h4>
  743. <dl class="details">
  744. <dt class="tag-source">Source:</dt>
  745. <dd class="tag-source"><ul class="dummy"><li>
  746. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1164">line 1164</a>
  747. </li></ul></dd>
  748. </dl>
  749. <h5>Returns:</h5>
  750. <dl>
  751. <dt>
  752. Type
  753. </dt>
  754. <dd>
  755. <span class="param-type">Array.&lt;<a href="BAttachment.html">BAttachment</a>></span>
  756. </dd>
  757. </dl>
  758. <h4 class="name" id="getAttribute"><span class="type-signature"></span>getAttribute<span class="signature">(type, name)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>}</span></h4>
  759. <h5>Parameters:</h5>
  760. <table class="params">
  761. <thead>
  762. <tr>
  763. <th>Name</th>
  764. <th>Type</th>
  765. <th class="last">Description</th>
  766. </tr>
  767. </thead>
  768. <tbody>
  769. <tr>
  770. <td class="name"><code>type</code></td>
  771. <td class="type">
  772. <span class="param-type">string</span>
  773. </td>
  774. <td class="description last">attribute type (label, relation, etc.)</td>
  775. </tr>
  776. <tr>
  777. <td class="name"><code>name</code></td>
  778. <td class="type">
  779. <span class="param-type">string</span>
  780. </td>
  781. <td class="description last">attribute name</td>
  782. </tr>
  783. </tbody>
  784. </table>
  785. <dl class="details">
  786. <dt class="tag-source">Source:</dt>
  787. <dd class="tag-source"><ul class="dummy"><li>
  788. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line605">line 605</a>
  789. </li></ul></dd>
  790. </dl>
  791. <h5>Returns:</h5>
  792. <div class="param-desc">
  793. attribute of the given type and name. If there are more such attributes, first is returned.
  794. Returns null if there's no such attribute belonging to this note.
  795. </div>
  796. <dl>
  797. <dt>
  798. Type
  799. </dt>
  800. <dd>
  801. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  802. </dd>
  803. </dl>
  804. <h4 class="name" id="getAttributeValue"><span class="type-signature"></span>getAttributeValue<span class="signature">(type, name)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  805. <h5>Parameters:</h5>
  806. <table class="params">
  807. <thead>
  808. <tr>
  809. <th>Name</th>
  810. <th>Type</th>
  811. <th class="last">Description</th>
  812. </tr>
  813. </thead>
  814. <tbody>
  815. <tr>
  816. <td class="name"><code>type</code></td>
  817. <td class="type">
  818. <span class="param-type">string</span>
  819. </td>
  820. <td class="description last">attribute type (label, relation, etc.)</td>
  821. </tr>
  822. <tr>
  823. <td class="name"><code>name</code></td>
  824. <td class="type">
  825. <span class="param-type">string</span>
  826. </td>
  827. <td class="description last">attribute name</td>
  828. </tr>
  829. </tbody>
  830. </table>
  831. <dl class="details">
  832. <dt class="tag-source">Source:</dt>
  833. <dd class="tag-source"><ul class="dummy"><li>
  834. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line616">line 616</a>
  835. </li></ul></dd>
  836. </dl>
  837. <h5>Returns:</h5>
  838. <div class="param-desc">
  839. attribute value of given type and name or null if no such attribute exists.
  840. </div>
  841. <dl>
  842. <dt>
  843. Type
  844. </dt>
  845. <dd>
  846. <span class="param-type">string</span>
  847. |
  848. <span class="param-type">null</span>
  849. </dd>
  850. </dl>
  851. <h4 class="name" id="getAttributes"><span class="type-signature"></span>getAttributes<span class="signature">(type<span class="signature-attributes">opt</span>, name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  852. <div class="description">
  853. Beware that the method must not create a copy of the array, but actually returns its internal array
  854. (for performance reasons)
  855. </div>
  856. <h5>Parameters:</h5>
  857. <table class="params">
  858. <thead>
  859. <tr>
  860. <th>Name</th>
  861. <th>Type</th>
  862. <th>Attributes</th>
  863. <th class="last">Description</th>
  864. </tr>
  865. </thead>
  866. <tbody>
  867. <tr>
  868. <td class="name"><code>type</code></td>
  869. <td class="type">
  870. <span class="param-type">string</span>
  871. </td>
  872. <td class="attributes">
  873. &lt;optional><br>
  874. </td>
  875. <td class="description last">(optional) attribute type to filter</td>
  876. </tr>
  877. <tr>
  878. <td class="name"><code>name</code></td>
  879. <td class="type">
  880. <span class="param-type">string</span>
  881. </td>
  882. <td class="attributes">
  883. &lt;optional><br>
  884. </td>
  885. <td class="description last">(optional) attribute name to filter</td>
  886. </tr>
  887. </tbody>
  888. </table>
  889. <dl class="details">
  890. <dt class="tag-source">Source:</dt>
  891. <dd class="tag-source"><ul class="dummy"><li>
  892. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line358">line 358</a>
  893. </li></ul></dd>
  894. </dl>
  895. <h5>Returns:</h5>
  896. <div class="param-desc">
  897. all note's attributes, including inherited ones
  898. </div>
  899. <dl>
  900. <dt>
  901. Type
  902. </dt>
  903. <dd>
  904. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  905. </dd>
  906. </dl>
  907. <h4 class="name" id="getBestNotePath"><span class="type-signature"></span>getBestNotePath<span class="signature">(hoistedNoteId<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span></h4>
  908. <div class="description">
  909. Returns a note path considered to be the "best"
  910. </div>
  911. <h5>Parameters:</h5>
  912. <table class="params">
  913. <thead>
  914. <tr>
  915. <th>Name</th>
  916. <th>Type</th>
  917. <th>Attributes</th>
  918. <th>Default</th>
  919. <th class="last">Description</th>
  920. </tr>
  921. </thead>
  922. <tbody>
  923. <tr>
  924. <td class="name"><code>hoistedNoteId</code></td>
  925. <td class="type">
  926. <span class="param-type">string</span>
  927. </td>
  928. <td class="attributes">
  929. &lt;optional><br>
  930. </td>
  931. <td class="default">
  932. 'root'
  933. </td>
  934. <td class="description last"></td>
  935. </tr>
  936. </tbody>
  937. </table>
  938. <dl class="details">
  939. <dt class="tag-source">Source:</dt>
  940. <dd class="tag-source"><ul class="dummy"><li>
  941. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1239">line 1239</a>
  942. </li></ul></dd>
  943. </dl>
  944. <h5>Returns:</h5>
  945. <div class="param-desc">
  946. array of noteIds constituting the particular note path
  947. </div>
  948. <dl>
  949. <dt>
  950. Type
  951. </dt>
  952. <dd>
  953. <span class="param-type">Array.&lt;string></span>
  954. </dd>
  955. </dl>
  956. <h4 class="name" id="getBestNotePathString"><span class="type-signature"></span>getBestNotePathString<span class="signature">(hoistedNoteId<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {string}</span></h4>
  957. <div class="description">
  958. Returns a note path considered to be the "best"
  959. </div>
  960. <h5>Parameters:</h5>
  961. <table class="params">
  962. <thead>
  963. <tr>
  964. <th>Name</th>
  965. <th>Type</th>
  966. <th>Attributes</th>
  967. <th>Default</th>
  968. <th class="last">Description</th>
  969. </tr>
  970. </thead>
  971. <tbody>
  972. <tr>
  973. <td class="name"><code>hoistedNoteId</code></td>
  974. <td class="type">
  975. <span class="param-type">string</span>
  976. </td>
  977. <td class="attributes">
  978. &lt;optional><br>
  979. </td>
  980. <td class="default">
  981. 'root'
  982. </td>
  983. <td class="description last"></td>
  984. </tr>
  985. </tbody>
  986. </table>
  987. <dl class="details">
  988. <dt class="tag-source">Source:</dt>
  989. <dd class="tag-source"><ul class="dummy"><li>
  990. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1249">line 1249</a>
  991. </li></ul></dd>
  992. </dl>
  993. <h5>Returns:</h5>
  994. <div class="param-desc">
  995. serialized note path (e.g. 'root/a1h315/js725h')
  996. </div>
  997. <dl>
  998. <dt>
  999. Type
  1000. </dt>
  1001. <dd>
  1002. <span class="param-type">string</span>
  1003. </dd>
  1004. </dl>
  1005. <h4 class="name" id="getBranches"><span class="type-signature"></span>getBranches<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BBranch.html">BBranch</a>>}</span></h4>
  1006. <dl class="details">
  1007. <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getParentBranches() instead</li></ul></dd>
  1008. <dt class="tag-source">Source:</dt>
  1009. <dd class="tag-source"><ul class="dummy"><li>
  1010. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line200">line 200</a>
  1011. </li></ul></dd>
  1012. </dl>
  1013. <h5>Returns:</h5>
  1014. <dl>
  1015. <dt>
  1016. Type
  1017. </dt>
  1018. <dd>
  1019. <span class="param-type">Array.&lt;<a href="BBranch.html">BBranch</a>></span>
  1020. </dd>
  1021. </dl>
  1022. <h4 class="name" id="getChildBranches"><span class="type-signature"></span>getChildBranches<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BBranch.html">BBranch</a>>}</span></h4>
  1023. <dl class="details">
  1024. <dt class="tag-source">Source:</dt>
  1025. <dd class="tag-source"><ul class="dummy"><li>
  1026. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line220">line 220</a>
  1027. </li></ul></dd>
  1028. </dl>
  1029. <h5>Returns:</h5>
  1030. <dl>
  1031. <dt>
  1032. Type
  1033. </dt>
  1034. <dd>
  1035. <span class="param-type">Array.&lt;<a href="BBranch.html">BBranch</a>></span>
  1036. </dd>
  1037. </dl>
  1038. <h4 class="name" id="getChildNotes"><span class="type-signature"></span>getChildNotes<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BNote.html">BNote</a>>}</span></h4>
  1039. <dl class="details">
  1040. <dt class="tag-source">Source:</dt>
  1041. <dd class="tag-source"><ul class="dummy"><li>
  1042. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line210">line 210</a>
  1043. </li></ul></dd>
  1044. </dl>
  1045. <h5>Returns:</h5>
  1046. <dl>
  1047. <dt>
  1048. Type
  1049. </dt>
  1050. <dd>
  1051. <span class="param-type">Array.&lt;<a href="BNote.html">BNote</a>></span>
  1052. </dd>
  1053. </dl>
  1054. <h4 class="name" id="getContent"><span class="type-signature"></span>getContent<span class="signature">()</span><span class="type-signature"> &rarr; {string|Buffer}</span></h4>
  1055. <dl class="details">
  1056. <dt class="tag-source">Source:</dt>
  1057. <dd class="tag-source"><ul class="dummy"><li>
  1058. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line234">line 234</a>
  1059. </li></ul></dd>
  1060. </dl>
  1061. <h5>Returns:</h5>
  1062. <dl>
  1063. <dt>
  1064. Type
  1065. </dt>
  1066. <dd>
  1067. <span class="param-type">string</span>
  1068. |
  1069. <span class="param-type">Buffer</span>
  1070. </dd>
  1071. </dl>
  1072. <h4 class="name" id="getDescendantNoteIds"><span class="type-signature"></span>getDescendantNoteIds<span class="signature">()</span><span class="type-signature"></span></h4>
  1073. <dl class="details">
  1074. <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use getSubtreeNoteIds() instead</li></ul></dd>
  1075. <dt class="tag-source">Source:</dt>
  1076. <dd class="tag-source"><ul class="dummy"><li>
  1077. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line989">line 989</a>
  1078. </li></ul></dd>
  1079. </dl>
  1080. <h4 class="name" id="getFlatText"><span class="type-signature"></span>getFlatText<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
  1081. <div class="description">
  1082. This is used for:
  1083. - fast searching
  1084. - note similarity evaluation
  1085. </div>
  1086. <dl class="details">
  1087. <dt class="tag-source">Source:</dt>
  1088. <dd class="tag-source"><ul class="dummy"><li>
  1089. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line790">line 790</a>
  1090. </li></ul></dd>
  1091. </dl>
  1092. <h5>Returns:</h5>
  1093. <div class="param-desc">
  1094. - returns flattened textual representation of note, prefixes and attributes
  1095. </div>
  1096. <dl>
  1097. <dt>
  1098. Type
  1099. </dt>
  1100. <dd>
  1101. <span class="param-type">string</span>
  1102. </dd>
  1103. </dl>
  1104. <h4 class="name" id="getInheritingNotes"><span class="type-signature"></span>getInheritingNotes<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BNote.html">BNote</a>>}</span></h4>
  1105. <dl class="details">
  1106. <dt class="tag-source">Source:</dt>
  1107. <dd class="tag-source"><ul class="dummy"><li>
  1108. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1094">line 1094</a>
  1109. </li></ul></dd>
  1110. </dl>
  1111. <h5>Returns:</h5>
  1112. <div class="param-desc">
  1113. - returns only notes which are templated, does not include their subtrees
  1114. in effect returns notes which are influenced by note's non-inheritable attributes
  1115. </div>
  1116. <dl>
  1117. <dt>
  1118. Type
  1119. </dt>
  1120. <dd>
  1121. <span class="param-type">Array.&lt;<a href="BNote.html">BNote</a>></span>
  1122. </dd>
  1123. </dl>
  1124. <h4 class="name" id="getJsonContent"><span class="type-signature"></span>getJsonContent<span class="signature">()</span><span class="type-signature"> &rarr; {*}</span></h4>
  1125. <dl class="details">
  1126. <dt class="tag-source">Source:</dt>
  1127. <dd class="tag-source"><ul class="dummy"><li>
  1128. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line241">line 241</a>
  1129. </li></ul></dd>
  1130. </dl>
  1131. <h5>Throws:</h5>
  1132. <div class="param-desc">
  1133. Error in case of invalid JSON
  1134. </div>
  1135. <h5>Returns:</h5>
  1136. <dl>
  1137. <dt>
  1138. Type
  1139. </dt>
  1140. <dd>
  1141. <span class="param-type">*</span>
  1142. </dd>
  1143. </dl>
  1144. <h4 class="name" id="getJsonContentSafely"><span class="type-signature"></span>getJsonContentSafely<span class="signature">()</span><span class="type-signature"> &rarr; {*|null}</span></h4>
  1145. <dl class="details">
  1146. <dt class="tag-source">Source:</dt>
  1147. <dd class="tag-source"><ul class="dummy"><li>
  1148. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line252">line 252</a>
  1149. </li></ul></dd>
  1150. </dl>
  1151. <h5>Returns:</h5>
  1152. <div class="param-desc">
  1153. valid object or null if the content cannot be parsed as JSON
  1154. </div>
  1155. <dl>
  1156. <dt>
  1157. Type
  1158. </dt>
  1159. <dd>
  1160. <span class="param-type">*</span>
  1161. |
  1162. <span class="param-type">null</span>
  1163. </dd>
  1164. </dl>
  1165. <h4 class="name" id="getLabel"><span class="type-signature"></span>getLabel<span class="signature">(name)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>|null}</span></h4>
  1166. <h5>Parameters:</h5>
  1167. <table class="params">
  1168. <thead>
  1169. <tr>
  1170. <th>Name</th>
  1171. <th>Type</th>
  1172. <th class="last">Description</th>
  1173. </tr>
  1174. </thead>
  1175. <tbody>
  1176. <tr>
  1177. <td class="name"><code>name</code></td>
  1178. <td class="type">
  1179. <span class="param-type">string</span>
  1180. </td>
  1181. <td class="description last">label name</td>
  1182. </tr>
  1183. </tbody>
  1184. </table>
  1185. <dl class="details">
  1186. <dt class="tag-source">Source:</dt>
  1187. <dd class="tag-source"><ul class="dummy"><li>
  1188. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line545">line 545</a>
  1189. </li></ul></dd>
  1190. </dl>
  1191. <h5>Returns:</h5>
  1192. <div class="param-desc">
  1193. label if it exists, null otherwise
  1194. </div>
  1195. <dl>
  1196. <dt>
  1197. Type
  1198. </dt>
  1199. <dd>
  1200. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  1201. |
  1202. <span class="param-type">null</span>
  1203. </dd>
  1204. </dl>
  1205. <h4 class="name" id="getLabelValue"><span class="type-signature"></span>getLabelValue<span class="signature">(name)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  1206. <h5>Parameters:</h5>
  1207. <table class="params">
  1208. <thead>
  1209. <tr>
  1210. <th>Name</th>
  1211. <th>Type</th>
  1212. <th class="last">Description</th>
  1213. </tr>
  1214. </thead>
  1215. <tbody>
  1216. <tr>
  1217. <td class="name"><code>name</code></td>
  1218. <td class="type">
  1219. <span class="param-type">string</span>
  1220. </td>
  1221. <td class="description last">label name</td>
  1222. </tr>
  1223. </tbody>
  1224. </table>
  1225. <dl class="details">
  1226. <dt class="tag-source">Source:</dt>
  1227. <dd class="tag-source"><ul class="dummy"><li>
  1228. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line569">line 569</a>
  1229. </li></ul></dd>
  1230. </dl>
  1231. <h5>Returns:</h5>
  1232. <div class="param-desc">
  1233. label value if label exists, null otherwise
  1234. </div>
  1235. <dl>
  1236. <dt>
  1237. Type
  1238. </dt>
  1239. <dd>
  1240. <span class="param-type">string</span>
  1241. |
  1242. <span class="param-type">null</span>
  1243. </dd>
  1244. </dl>
  1245. <h4 class="name" id="getLabelValues"><span class="type-signature"></span>getLabelValues<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span></h4>
  1246. <h5>Parameters:</h5>
  1247. <table class="params">
  1248. <thead>
  1249. <tr>
  1250. <th>Name</th>
  1251. <th>Type</th>
  1252. <th>Attributes</th>
  1253. <th class="last">Description</th>
  1254. </tr>
  1255. </thead>
  1256. <tbody>
  1257. <tr>
  1258. <td class="name"><code>name</code></td>
  1259. <td class="type">
  1260. <span class="param-type">string</span>
  1261. </td>
  1262. <td class="attributes">
  1263. &lt;optional><br>
  1264. </td>
  1265. <td class="description last">label name to filter</td>
  1266. </tr>
  1267. </tbody>
  1268. </table>
  1269. <dl class="details">
  1270. <dt class="tag-source">Source:</dt>
  1271. <dd class="tag-source"><ul class="dummy"><li>
  1272. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line645">line 645</a>
  1273. </li></ul></dd>
  1274. </dl>
  1275. <h5>Returns:</h5>
  1276. <div class="param-desc">
  1277. all note's label values, including inherited ones
  1278. </div>
  1279. <dl>
  1280. <dt>
  1281. Type
  1282. </dt>
  1283. <dd>
  1284. <span class="param-type">Array.&lt;string></span>
  1285. </dd>
  1286. </dl>
  1287. <h4 class="name" id="getLabels"><span class="type-signature"></span>getLabels<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  1288. <h5>Parameters:</h5>
  1289. <table class="params">
  1290. <thead>
  1291. <tr>
  1292. <th>Name</th>
  1293. <th>Type</th>
  1294. <th>Attributes</th>
  1295. <th class="last">Description</th>
  1296. </tr>
  1297. </thead>
  1298. <tbody>
  1299. <tr>
  1300. <td class="name"><code>name</code></td>
  1301. <td class="type">
  1302. <span class="param-type">string</span>
  1303. </td>
  1304. <td class="attributes">
  1305. &lt;optional><br>
  1306. </td>
  1307. <td class="description last">label name to filter</td>
  1308. </tr>
  1309. </tbody>
  1310. </table>
  1311. <dl class="details">
  1312. <dt class="tag-source">Source:</dt>
  1313. <dd class="tag-source"><ul class="dummy"><li>
  1314. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line637">line 637</a>
  1315. </li></ul></dd>
  1316. </dl>
  1317. <h5>Returns:</h5>
  1318. <div class="param-desc">
  1319. all note's labels (attributes with type label), including inherited ones
  1320. </div>
  1321. <dl>
  1322. <dt>
  1323. Type
  1324. </dt>
  1325. <dd>
  1326. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  1327. </dd>
  1328. </dl>
  1329. <h4 class="name" id="getOwnedAttribute"><span class="type-signature"></span>getOwnedAttribute<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>}</span></h4>
  1330. <dl class="details">
  1331. <dt class="tag-source">Source:</dt>
  1332. <dd class="tag-source"><ul class="dummy"><li>
  1333. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line715">line 715</a>
  1334. </li></ul></dd>
  1335. </dl>
  1336. <h5>Returns:</h5>
  1337. <div class="param-desc">
  1338. attribute belonging to this specific note (excludes inherited attributes)
  1339. This method can be significantly faster than the getAttribute()
  1340. </div>
  1341. <dl>
  1342. <dt>
  1343. Type
  1344. </dt>
  1345. <dd>
  1346. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  1347. </dd>
  1348. </dl>
  1349. <h4 class="name" id="getOwnedAttributeValue"><span class="type-signature"></span>getOwnedAttributeValue<span class="signature">(type, name)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  1350. <h5>Parameters:</h5>
  1351. <table class="params">
  1352. <thead>
  1353. <tr>
  1354. <th>Name</th>
  1355. <th>Type</th>
  1356. <th class="last">Description</th>
  1357. </tr>
  1358. </thead>
  1359. <tbody>
  1360. <tr>
  1361. <td class="name"><code>type</code></td>
  1362. <td class="type">
  1363. <span class="param-type">string</span>
  1364. </td>
  1365. <td class="description last">attribute type (label, relation, etc.)</td>
  1366. </tr>
  1367. <tr>
  1368. <td class="name"><code>name</code></td>
  1369. <td class="type">
  1370. <span class="param-type">string</span>
  1371. </td>
  1372. <td class="description last">attribute name</td>
  1373. </tr>
  1374. </tbody>
  1375. </table>
  1376. <dl class="details">
  1377. <dt class="tag-source">Source:</dt>
  1378. <dd class="tag-source"><ul class="dummy"><li>
  1379. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line627">line 627</a>
  1380. </li></ul></dd>
  1381. </dl>
  1382. <h5>Returns:</h5>
  1383. <div class="param-desc">
  1384. attribute value of given type and name or null if no such attribute exists.
  1385. </div>
  1386. <dl>
  1387. <dt>
  1388. Type
  1389. </dt>
  1390. <dd>
  1391. <span class="param-type">string</span>
  1392. |
  1393. <span class="param-type">null</span>
  1394. </dd>
  1395. </dl>
  1396. <h4 class="name" id="getOwnedAttributes"><span class="type-signature"></span>getOwnedAttributes<span class="signature">(type<span class="signature-attributes">opt</span>, name<span class="signature-attributes">opt</span>, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  1397. <div class="description">
  1398. Beware that the method must not create a copy of the array, but actually returns its internal array
  1399. (for performance reasons)
  1400. </div>
  1401. <h5>Parameters:</h5>
  1402. <table class="params">
  1403. <thead>
  1404. <tr>
  1405. <th>Name</th>
  1406. <th>Type</th>
  1407. <th>Attributes</th>
  1408. <th>Default</th>
  1409. <th class="last">Description</th>
  1410. </tr>
  1411. </thead>
  1412. <tbody>
  1413. <tr>
  1414. <td class="name"><code>type</code></td>
  1415. <td class="type">
  1416. <span class="param-type">string</span>
  1417. |
  1418. <span class="param-type">null</span>
  1419. </td>
  1420. <td class="attributes">
  1421. &lt;optional><br>
  1422. </td>
  1423. <td class="default">
  1424. null
  1425. </td>
  1426. <td class="description last">(optional) attribute type to filter</td>
  1427. </tr>
  1428. <tr>
  1429. <td class="name"><code>name</code></td>
  1430. <td class="type">
  1431. <span class="param-type">string</span>
  1432. |
  1433. <span class="param-type">null</span>
  1434. </td>
  1435. <td class="attributes">
  1436. &lt;optional><br>
  1437. </td>
  1438. <td class="default">
  1439. null
  1440. </td>
  1441. <td class="description last">(optional) attribute name to filter</td>
  1442. </tr>
  1443. <tr>
  1444. <td class="name"><code>value</code></td>
  1445. <td class="type">
  1446. <span class="param-type">string</span>
  1447. |
  1448. <span class="param-type">null</span>
  1449. </td>
  1450. <td class="attributes">
  1451. &lt;optional><br>
  1452. </td>
  1453. <td class="default">
  1454. null
  1455. </td>
  1456. <td class="description last">(optional) attribute value to filter</td>
  1457. </tr>
  1458. </tbody>
  1459. </table>
  1460. <dl class="details">
  1461. <dt class="tag-source">Source:</dt>
  1462. <dd class="tag-source"><ul class="dummy"><li>
  1463. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line690">line 690</a>
  1464. </li></ul></dd>
  1465. </dl>
  1466. <h5>Returns:</h5>
  1467. <div class="param-desc">
  1468. note's "owned" attributes - excluding inherited ones
  1469. </div>
  1470. <dl>
  1471. <dt>
  1472. Type
  1473. </dt>
  1474. <dd>
  1475. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  1476. </dd>
  1477. </dl>
  1478. <h4 class="name" id="getOwnedLabel"><span class="type-signature"></span>getOwnedLabel<span class="signature">(name)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>|null}</span></h4>
  1479. <h5>Parameters:</h5>
  1480. <table class="params">
  1481. <thead>
  1482. <tr>
  1483. <th>Name</th>
  1484. <th>Type</th>
  1485. <th class="last">Description</th>
  1486. </tr>
  1487. </thead>
  1488. <tbody>
  1489. <tr>
  1490. <td class="name"><code>name</code></td>
  1491. <td class="type">
  1492. <span class="param-type">string</span>
  1493. </td>
  1494. <td class="description last">label name</td>
  1495. </tr>
  1496. </tbody>
  1497. </table>
  1498. <dl class="details">
  1499. <dt class="tag-source">Source:</dt>
  1500. <dd class="tag-source"><ul class="dummy"><li>
  1501. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line551">line 551</a>
  1502. </li></ul></dd>
  1503. </dl>
  1504. <h5>Returns:</h5>
  1505. <div class="param-desc">
  1506. label if it exists, null otherwise
  1507. </div>
  1508. <dl>
  1509. <dt>
  1510. Type
  1511. </dt>
  1512. <dd>
  1513. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  1514. |
  1515. <span class="param-type">null</span>
  1516. </dd>
  1517. </dl>
  1518. <h4 class="name" id="getOwnedLabelValue"><span class="type-signature"></span>getOwnedLabelValue<span class="signature">(name)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  1519. <h5>Parameters:</h5>
  1520. <table class="params">
  1521. <thead>
  1522. <tr>
  1523. <th>Name</th>
  1524. <th>Type</th>
  1525. <th class="last">Description</th>
  1526. </tr>
  1527. </thead>
  1528. <tbody>
  1529. <tr>
  1530. <td class="name"><code>name</code></td>
  1531. <td class="type">
  1532. <span class="param-type">string</span>
  1533. </td>
  1534. <td class="description last">label name</td>
  1535. </tr>
  1536. </tbody>
  1537. </table>
  1538. <dl class="details">
  1539. <dt class="tag-source">Source:</dt>
  1540. <dd class="tag-source"><ul class="dummy"><li>
  1541. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line575">line 575</a>
  1542. </li></ul></dd>
  1543. </dl>
  1544. <h5>Returns:</h5>
  1545. <div class="param-desc">
  1546. label value if label exists, null otherwise
  1547. </div>
  1548. <dl>
  1549. <dt>
  1550. Type
  1551. </dt>
  1552. <dd>
  1553. <span class="param-type">string</span>
  1554. |
  1555. <span class="param-type">null</span>
  1556. </dd>
  1557. </dl>
  1558. <h4 class="name" id="getOwnedLabelValues"><span class="type-signature"></span>getOwnedLabelValues<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span></h4>
  1559. <h5>Parameters:</h5>
  1560. <table class="params">
  1561. <thead>
  1562. <tr>
  1563. <th>Name</th>
  1564. <th>Type</th>
  1565. <th>Attributes</th>
  1566. <th class="last">Description</th>
  1567. </tr>
  1568. </thead>
  1569. <tbody>
  1570. <tr>
  1571. <td class="name"><code>name</code></td>
  1572. <td class="type">
  1573. <span class="param-type">string</span>
  1574. </td>
  1575. <td class="attributes">
  1576. &lt;optional><br>
  1577. </td>
  1578. <td class="description last">label name to filter</td>
  1579. </tr>
  1580. </tbody>
  1581. </table>
  1582. <dl class="details">
  1583. <dt class="tag-source">Source:</dt>
  1584. <dd class="tag-source"><ul class="dummy"><li>
  1585. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line661">line 661</a>
  1586. </li></ul></dd>
  1587. </dl>
  1588. <h5>Returns:</h5>
  1589. <div class="param-desc">
  1590. all note's label values, excluding inherited ones
  1591. </div>
  1592. <dl>
  1593. <dt>
  1594. Type
  1595. </dt>
  1596. <dd>
  1597. <span class="param-type">Array.&lt;string></span>
  1598. </dd>
  1599. </dl>
  1600. <h4 class="name" id="getOwnedLabels"><span class="type-signature"></span>getOwnedLabels<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  1601. <h5>Parameters:</h5>
  1602. <table class="params">
  1603. <thead>
  1604. <tr>
  1605. <th>Name</th>
  1606. <th>Type</th>
  1607. <th>Attributes</th>
  1608. <th class="last">Description</th>
  1609. </tr>
  1610. </thead>
  1611. <tbody>
  1612. <tr>
  1613. <td class="name"><code>name</code></td>
  1614. <td class="type">
  1615. <span class="param-type">string</span>
  1616. </td>
  1617. <td class="attributes">
  1618. &lt;optional><br>
  1619. </td>
  1620. <td class="description last">label name to filter</td>
  1621. </tr>
  1622. </tbody>
  1623. </table>
  1624. <dl class="details">
  1625. <dt class="tag-source">Source:</dt>
  1626. <dd class="tag-source"><ul class="dummy"><li>
  1627. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line653">line 653</a>
  1628. </li></ul></dd>
  1629. </dl>
  1630. <h5>Returns:</h5>
  1631. <div class="param-desc">
  1632. all note's labels (attributes with type label), excluding inherited ones
  1633. </div>
  1634. <dl>
  1635. <dt>
  1636. Type
  1637. </dt>
  1638. <dd>
  1639. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  1640. </dd>
  1641. </dl>
  1642. <h4 class="name" id="getOwnedRelation"><span class="type-signature"></span>getOwnedRelation<span class="signature">(name)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>|null}</span></h4>
  1643. <h5>Parameters:</h5>
  1644. <table class="params">
  1645. <thead>
  1646. <tr>
  1647. <th>Name</th>
  1648. <th>Type</th>
  1649. <th class="last">Description</th>
  1650. </tr>
  1651. </thead>
  1652. <tbody>
  1653. <tr>
  1654. <td class="name"><code>name</code></td>
  1655. <td class="type">
  1656. <span class="param-type">string</span>
  1657. </td>
  1658. <td class="description last">relation name</td>
  1659. </tr>
  1660. </tbody>
  1661. </table>
  1662. <dl class="details">
  1663. <dt class="tag-source">Source:</dt>
  1664. <dd class="tag-source"><ul class="dummy"><li>
  1665. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line563">line 563</a>
  1666. </li></ul></dd>
  1667. </dl>
  1668. <h5>Returns:</h5>
  1669. <div class="param-desc">
  1670. relation if it exists, null otherwise
  1671. </div>
  1672. <dl>
  1673. <dt>
  1674. Type
  1675. </dt>
  1676. <dd>
  1677. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  1678. |
  1679. <span class="param-type">null</span>
  1680. </dd>
  1681. </dl>
  1682. <h4 class="name" id="getOwnedRelationValue"><span class="type-signature"></span>getOwnedRelationValue<span class="signature">(name)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  1683. <h5>Parameters:</h5>
  1684. <table class="params">
  1685. <thead>
  1686. <tr>
  1687. <th>Name</th>
  1688. <th>Type</th>
  1689. <th class="last">Description</th>
  1690. </tr>
  1691. </thead>
  1692. <tbody>
  1693. <tr>
  1694. <td class="name"><code>name</code></td>
  1695. <td class="type">
  1696. <span class="param-type">string</span>
  1697. </td>
  1698. <td class="description last">relation name</td>
  1699. </tr>
  1700. </tbody>
  1701. </table>
  1702. <dl class="details">
  1703. <dt class="tag-source">Source:</dt>
  1704. <dd class="tag-source"><ul class="dummy"><li>
  1705. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line587">line 587</a>
  1706. </li></ul></dd>
  1707. </dl>
  1708. <h5>Returns:</h5>
  1709. <div class="param-desc">
  1710. relation value if relation exists, null otherwise
  1711. </div>
  1712. <dl>
  1713. <dt>
  1714. Type
  1715. </dt>
  1716. <dd>
  1717. <span class="param-type">string</span>
  1718. |
  1719. <span class="param-type">null</span>
  1720. </dd>
  1721. </dl>
  1722. <h4 class="name" id="getOwnedRelations"><span class="type-signature"></span>getOwnedRelations<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  1723. <h5>Parameters:</h5>
  1724. <table class="params">
  1725. <thead>
  1726. <tr>
  1727. <th>Name</th>
  1728. <th>Type</th>
  1729. <th>Attributes</th>
  1730. <th class="last">Description</th>
  1731. </tr>
  1732. </thead>
  1733. <tbody>
  1734. <tr>
  1735. <td class="name"><code>name</code></td>
  1736. <td class="type">
  1737. <span class="param-type">string</span>
  1738. </td>
  1739. <td class="attributes">
  1740. &lt;optional><br>
  1741. </td>
  1742. <td class="description last">relation name to filter</td>
  1743. </tr>
  1744. </tbody>
  1745. </table>
  1746. <dl class="details">
  1747. <dt class="tag-source">Source:</dt>
  1748. <dd class="tag-source"><ul class="dummy"><li>
  1749. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line677">line 677</a>
  1750. </li></ul></dd>
  1751. </dl>
  1752. <h5>Returns:</h5>
  1753. <div class="param-desc">
  1754. all note's relations (attributes with type relation), excluding inherited ones
  1755. </div>
  1756. <dl>
  1757. <dt>
  1758. Type
  1759. </dt>
  1760. <dd>
  1761. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  1762. </dd>
  1763. </dl>
  1764. <h4 class="name" id="getParentBranches"><span class="type-signature"></span>getParentBranches<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BBranch.html">BBranch</a>>}</span></h4>
  1765. <dl class="details">
  1766. <dt class="tag-source">Source:</dt>
  1767. <dd class="tag-source"><ul class="dummy"><li>
  1768. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line183">line 183</a>
  1769. </li></ul></dd>
  1770. </dl>
  1771. <h5>Returns:</h5>
  1772. <dl>
  1773. <dt>
  1774. Type
  1775. </dt>
  1776. <dd>
  1777. <span class="param-type">Array.&lt;<a href="BBranch.html">BBranch</a>></span>
  1778. </dd>
  1779. </dl>
  1780. <h4 class="name" id="getParentNotes"><span class="type-signature"></span>getParentNotes<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BNote.html">BNote</a>>}</span></h4>
  1781. <dl class="details">
  1782. <dt class="tag-source">Source:</dt>
  1783. <dd class="tag-source"><ul class="dummy"><li>
  1784. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line205">line 205</a>
  1785. </li></ul></dd>
  1786. </dl>
  1787. <h5>Returns:</h5>
  1788. <dl>
  1789. <dt>
  1790. Type
  1791. </dt>
  1792. <dd>
  1793. <span class="param-type">Array.&lt;<a href="BNote.html">BNote</a>></span>
  1794. </dd>
  1795. </dl>
  1796. <h4 class="name" id="getPojo"><span class="type-signature">(abstract, protected) </span>getPojo<span class="signature">()</span><span class="type-signature"></span></h4>
  1797. <dl class="details">
  1798. <dt class="tag-overrides">Overrides:</dt>
  1799. <dd class="tag-overrides"><ul class="dummy"><li>
  1800. <a href="AbstractBeccaEntity.html#getPojo">AbstractBeccaEntity#getPojo</a>
  1801. </li></ul></dd>
  1802. <dt class="tag-source">Source:</dt>
  1803. <dd class="tag-source"><ul class="dummy"><li>
  1804. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line82">line 82</a>
  1805. </li></ul></dd>
  1806. </dl>
  1807. <h4 class="name" id="getPojoToSave"><span class="type-signature">(protected) </span>getPojoToSave<span class="signature">()</span><span class="type-signature"></span></h4>
  1808. <dl class="details">
  1809. <dt class="tag-overrides">Overrides:</dt>
  1810. <dd class="tag-overrides"><ul class="dummy"><li>
  1811. <a href="AbstractBeccaEntity.html#getPojoToSave">AbstractBeccaEntity#getPojoToSave</a>
  1812. </li></ul></dd>
  1813. <dt class="tag-source">Source:</dt>
  1814. <dd class="tag-source"><ul class="dummy"><li>
  1815. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line74">line 74</a>
  1816. </li></ul></dd>
  1817. </dl>
  1818. <h4 class="name" id="getRelation"><span class="type-signature"></span>getRelation<span class="signature">(name)</span><span class="type-signature"> &rarr; {<a href="BAttribute.html">BAttribute</a>|null}</span></h4>
  1819. <h5>Parameters:</h5>
  1820. <table class="params">
  1821. <thead>
  1822. <tr>
  1823. <th>Name</th>
  1824. <th>Type</th>
  1825. <th class="last">Description</th>
  1826. </tr>
  1827. </thead>
  1828. <tbody>
  1829. <tr>
  1830. <td class="name"><code>name</code></td>
  1831. <td class="type">
  1832. <span class="param-type">string</span>
  1833. </td>
  1834. <td class="description last">relation name</td>
  1835. </tr>
  1836. </tbody>
  1837. </table>
  1838. <dl class="details">
  1839. <dt class="tag-source">Source:</dt>
  1840. <dd class="tag-source"><ul class="dummy"><li>
  1841. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line557">line 557</a>
  1842. </li></ul></dd>
  1843. </dl>
  1844. <h5>Returns:</h5>
  1845. <div class="param-desc">
  1846. relation if it exists, null otherwise
  1847. </div>
  1848. <dl>
  1849. <dt>
  1850. Type
  1851. </dt>
  1852. <dd>
  1853. <span class="param-type"><a href="BAttribute.html">BAttribute</a></span>
  1854. |
  1855. <span class="param-type">null</span>
  1856. </dd>
  1857. </dl>
  1858. <h4 class="name" id="getRelationValue"><span class="type-signature"></span>getRelationValue<span class="signature">(name)</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  1859. <h5>Parameters:</h5>
  1860. <table class="params">
  1861. <thead>
  1862. <tr>
  1863. <th>Name</th>
  1864. <th>Type</th>
  1865. <th class="last">Description</th>
  1866. </tr>
  1867. </thead>
  1868. <tbody>
  1869. <tr>
  1870. <td class="name"><code>name</code></td>
  1871. <td class="type">
  1872. <span class="param-type">string</span>
  1873. </td>
  1874. <td class="description last">relation name</td>
  1875. </tr>
  1876. </tbody>
  1877. </table>
  1878. <dl class="details">
  1879. <dt class="tag-source">Source:</dt>
  1880. <dd class="tag-source"><ul class="dummy"><li>
  1881. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line581">line 581</a>
  1882. </li></ul></dd>
  1883. </dl>
  1884. <h5>Returns:</h5>
  1885. <div class="param-desc">
  1886. relation value if relation exists, null otherwise
  1887. </div>
  1888. <dl>
  1889. <dt>
  1890. Type
  1891. </dt>
  1892. <dd>
  1893. <span class="param-type">string</span>
  1894. |
  1895. <span class="param-type">null</span>
  1896. </dd>
  1897. </dl>
  1898. <h4 class="name" id="getRelations"><span class="type-signature"></span>getRelations<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  1899. <h5>Parameters:</h5>
  1900. <table class="params">
  1901. <thead>
  1902. <tr>
  1903. <th>Name</th>
  1904. <th>Type</th>
  1905. <th>Attributes</th>
  1906. <th class="last">Description</th>
  1907. </tr>
  1908. </thead>
  1909. <tbody>
  1910. <tr>
  1911. <td class="name"><code>name</code></td>
  1912. <td class="type">
  1913. <span class="param-type">string</span>
  1914. </td>
  1915. <td class="attributes">
  1916. &lt;optional><br>
  1917. </td>
  1918. <td class="description last">relation name to filter</td>
  1919. </tr>
  1920. </tbody>
  1921. </table>
  1922. <dl class="details">
  1923. <dt class="tag-source">Source:</dt>
  1924. <dd class="tag-source"><ul class="dummy"><li>
  1925. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line669">line 669</a>
  1926. </li></ul></dd>
  1927. </dl>
  1928. <h5>Returns:</h5>
  1929. <div class="param-desc">
  1930. all note's relations (attributes with type relation), including inherited ones
  1931. </div>
  1932. <dl>
  1933. <dt>
  1934. Type
  1935. </dt>
  1936. <dd>
  1937. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  1938. </dd>
  1939. </dl>
  1940. <h4 class="name" id="getRevisions"><span class="type-signature"></span>getRevisions<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BRevision.html">BRevision</a>>}</span></h4>
  1941. <dl class="details">
  1942. <dt class="tag-source">Source:</dt>
  1943. <dd class="tag-source"><ul class="dummy"><li>
  1944. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1125">line 1125</a>
  1945. </li></ul></dd>
  1946. </dl>
  1947. <h5>Returns:</h5>
  1948. <dl>
  1949. <dt>
  1950. Type
  1951. </dt>
  1952. <dd>
  1953. <span class="param-type">Array.&lt;<a href="BRevision.html">BRevision</a>></span>
  1954. </dd>
  1955. </dl>
  1956. <h4 class="name" id="getScriptEnv"><span class="type-signature"></span>getScriptEnv<span class="signature">()</span><span class="type-signature"> &rarr; {string|null}</span></h4>
  1957. <dl class="details">
  1958. <dt class="tag-source">Source:</dt>
  1959. <dd class="tag-source"><ul class="dummy"><li>
  1960. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line334">line 334</a>
  1961. </li></ul></dd>
  1962. </dl>
  1963. <h5>Returns:</h5>
  1964. <div class="param-desc">
  1965. JS script environment - either "frontend" or "backend"
  1966. </div>
  1967. <dl>
  1968. <dt>
  1969. Type
  1970. </dt>
  1971. <dd>
  1972. <span class="param-type">string</span>
  1973. |
  1974. <span class="param-type">null</span>
  1975. </dd>
  1976. </dl>
  1977. <h4 class="name" id="getSearchResultNotes"><span class="type-signature"></span>getSearchResultNotes<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BNote.html">BNote</a>>}</span></h4>
  1978. <dl class="details">
  1979. <dt class="tag-source">Source:</dt>
  1980. <dd class="tag-source"><ul class="dummy"><li>
  1981. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line900">line 900</a>
  1982. </li></ul></dd>
  1983. </dl>
  1984. <h5>Returns:</h5>
  1985. <dl>
  1986. <dt>
  1987. Type
  1988. </dt>
  1989. <dd>
  1990. <span class="param-type">Array.&lt;<a href="BNote.html">BNote</a>></span>
  1991. </dd>
  1992. </dl>
  1993. <h4 class="name" id="getSortedNotePathRecords"><span class="type-signature"></span>getSortedNotePathRecords<span class="signature">(hoistedNoteId<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="global.html#NotePathRecord">NotePathRecord</a>>}</span></h4>
  1994. <h5>Parameters:</h5>
  1995. <table class="params">
  1996. <thead>
  1997. <tr>
  1998. <th>Name</th>
  1999. <th>Type</th>
  2000. <th>Attributes</th>
  2001. <th>Default</th>
  2002. <th class="last">Description</th>
  2003. </tr>
  2004. </thead>
  2005. <tbody>
  2006. <tr>
  2007. <td class="name"><code>hoistedNoteId</code></td>
  2008. <td class="type">
  2009. <span class="param-type">string</span>
  2010. </td>
  2011. <td class="attributes">
  2012. &lt;optional><br>
  2013. </td>
  2014. <td class="default">
  2015. 'root'
  2016. </td>
  2017. <td class="description last"></td>
  2018. </tr>
  2019. </tbody>
  2020. </table>
  2021. <dl class="details">
  2022. <dt class="tag-source">Source:</dt>
  2023. <dd class="tag-source"><ul class="dummy"><li>
  2024. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1208">line 1208</a>
  2025. </li></ul></dd>
  2026. </dl>
  2027. <h5>Returns:</h5>
  2028. <dl>
  2029. <dt>
  2030. Type
  2031. </dt>
  2032. <dd>
  2033. <span class="param-type">Array.&lt;<a href="global.html#NotePathRecord">NotePathRecord</a>></span>
  2034. </dd>
  2035. </dl>
  2036. <h4 class="name" id="getStrongParentBranches"><span class="type-signature"></span>getStrongParentBranches<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BBranch.html">BBranch</a>>}</span></h4>
  2037. <div class="description">
  2038. Returns <i>strong</i> (as opposed to <i>weak</i>) parent branches. See isWeak for details.
  2039. </div>
  2040. <dl class="details">
  2041. <dt class="tag-source">Source:</dt>
  2042. <dd class="tag-source"><ul class="dummy"><li>
  2043. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line192">line 192</a>
  2044. </li></ul></dd>
  2045. </dl>
  2046. <h5>Returns:</h5>
  2047. <dl>
  2048. <dt>
  2049. Type
  2050. </dt>
  2051. <dd>
  2052. <span class="param-type">Array.&lt;<a href="BBranch.html">BBranch</a>></span>
  2053. </dd>
  2054. </dl>
  2055. <h4 class="name" id="getSubtree"><span class="type-signature"></span>getSubtree<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
  2056. <dl class="details">
  2057. <dt class="tag-source">Source:</dt>
  2058. <dd class="tag-source"><ul class="dummy"><li>
  2059. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line923">line 923</a>
  2060. </li></ul></dd>
  2061. </dl>
  2062. <h5>Returns:</h5>
  2063. <dl>
  2064. <dt>
  2065. Type
  2066. </dt>
  2067. <dd>
  2068. <span class="param-type">Object</span>
  2069. </dd>
  2070. </dl>
  2071. <h4 class="name" id="getSubtreeNoteIds"><span class="type-signature"></span>getSubtreeNoteIds<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span></h4>
  2072. <dl class="details">
  2073. <dt class="tag-source">Source:</dt>
  2074. <dd class="tag-source"><ul class="dummy"><li>
  2075. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line982">line 982</a>
  2076. </li></ul></dd>
  2077. </dl>
  2078. <h5>Returns:</h5>
  2079. <div class="param-desc">
  2080. - includes the subtree root note as well
  2081. </div>
  2082. <dl>
  2083. <dt>
  2084. Type
  2085. </dt>
  2086. <dd>
  2087. <span class="param-type">Array.&lt;string></span>
  2088. </dd>
  2089. </dl>
  2090. <h4 class="name" id="getSubtreeNotesIncludingTemplated"><span class="type-signature"></span>getSubtreeNotesIncludingTemplated<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BNote.html">BNote</a>>}</span></h4>
  2091. <dl class="details">
  2092. <dt class="tag-source">Source:</dt>
  2093. <dd class="tag-source"><ul class="dummy"><li>
  2094. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line868">line 868</a>
  2095. </li></ul></dd>
  2096. </dl>
  2097. <h5>Returns:</h5>
  2098. <dl>
  2099. <dt>
  2100. Type
  2101. </dt>
  2102. <dd>
  2103. <span class="param-type">Array.&lt;<a href="BNote.html">BNote</a>></span>
  2104. </dd>
  2105. </dl>
  2106. <h4 class="name" id="getTargetRelations"><span class="type-signature"></span>getTargetRelations<span class="signature">()</span><span class="type-signature"> &rarr; {Array.&lt;<a href="BAttribute.html">BAttribute</a>>}</span></h4>
  2107. <dl class="details">
  2108. <dt class="tag-source">Source:</dt>
  2109. <dd class="tag-source"><ul class="dummy"><li>
  2110. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1088">line 1088</a>
  2111. </li></ul></dd>
  2112. </dl>
  2113. <h5>Returns:</h5>
  2114. <dl>
  2115. <dt>
  2116. Type
  2117. </dt>
  2118. <dd>
  2119. <span class="param-type">Array.&lt;<a href="BAttribute.html">BAttribute</a>></span>
  2120. </dd>
  2121. </dl>
  2122. <h4 class="name" id="getUtcDateChanged"><span class="type-signature">(protected) </span>getUtcDateChanged<span class="signature">()</span><span class="type-signature"></span></h4>
  2123. <dl class="details">
  2124. <dt class="tag-overrides">Overrides:</dt>
  2125. <dd class="tag-overrides"><ul class="dummy"><li>
  2126. <a href="AbstractBeccaEntity.html#getUtcDateChanged">AbstractBeccaEntity#getUtcDateChanged</a>
  2127. </li></ul></dd>
  2128. <dt class="tag-source">Source:</dt>
  2129. <dd class="tag-source"><ul class="dummy"><li>
  2130. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line27">line 27</a>
  2131. </li></ul></dd>
  2132. </dl>
  2133. <h4 class="name" id="hasAncestor"><span class="type-signature"></span>hasAncestor<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2134. <dl class="details">
  2135. <dt class="tag-source">Source:</dt>
  2136. <dd class="tag-source"><ul class="dummy"><li>
  2137. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1073">line 1073</a>
  2138. </li></ul></dd>
  2139. </dl>
  2140. <h5>Returns:</h5>
  2141. <dl>
  2142. <dt>
  2143. Type
  2144. </dt>
  2145. <dd>
  2146. <span class="param-type">boolean</span>
  2147. </dd>
  2148. </dl>
  2149. <h4 class="name" id="hasAttribute"><span class="type-signature"></span>hasAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2150. <h5>Parameters:</h5>
  2151. <table class="params">
  2152. <thead>
  2153. <tr>
  2154. <th>Name</th>
  2155. <th>Type</th>
  2156. <th>Attributes</th>
  2157. <th>Default</th>
  2158. <th class="last">Description</th>
  2159. </tr>
  2160. </thead>
  2161. <tbody>
  2162. <tr>
  2163. <td class="name"><code>type</code></td>
  2164. <td class="type">
  2165. </td>
  2166. <td class="attributes">
  2167. </td>
  2168. <td class="default">
  2169. </td>
  2170. <td class="description last"></td>
  2171. </tr>
  2172. <tr>
  2173. <td class="name"><code>name</code></td>
  2174. <td class="type">
  2175. </td>
  2176. <td class="attributes">
  2177. </td>
  2178. <td class="default">
  2179. </td>
  2180. <td class="description last"></td>
  2181. </tr>
  2182. <tr>
  2183. <td class="name"><code>value</code></td>
  2184. <td class="type">
  2185. </td>
  2186. <td class="attributes">
  2187. &lt;optional><br>
  2188. </td>
  2189. <td class="default">
  2190. null
  2191. </td>
  2192. <td class="description last"></td>
  2193. </tr>
  2194. </tbody>
  2195. </table>
  2196. <dl class="details">
  2197. <dt class="tag-source">Source:</dt>
  2198. <dd class="tag-source"><ul class="dummy"><li>
  2199. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line475">line 475</a>
  2200. </li></ul></dd>
  2201. </dl>
  2202. <h5>Returns:</h5>
  2203. <dl>
  2204. <dt>
  2205. Type
  2206. </dt>
  2207. <dd>
  2208. <span class="param-type">boolean</span>
  2209. </dd>
  2210. </dl>
  2211. <h4 class="name" id="hasChildren"><span class="type-signature"></span>hasChildren<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2212. <dl class="details">
  2213. <dt class="tag-source">Source:</dt>
  2214. <dd class="tag-source"><ul class="dummy"><li>
  2215. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line215">line 215</a>
  2216. </li></ul></dd>
  2217. </dl>
  2218. <h5>Returns:</h5>
  2219. <dl>
  2220. <dt>
  2221. Type
  2222. </dt>
  2223. <dd>
  2224. <span class="param-type">boolean</span>
  2225. </dd>
  2226. </dl>
  2227. <h4 class="name" id="hasLabel"><span class="type-signature"></span>hasLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2228. <h5>Parameters:</h5>
  2229. <table class="params">
  2230. <thead>
  2231. <tr>
  2232. <th>Name</th>
  2233. <th>Type</th>
  2234. <th>Attributes</th>
  2235. <th class="last">Description</th>
  2236. </tr>
  2237. </thead>
  2238. <tbody>
  2239. <tr>
  2240. <td class="name"><code>name</code></td>
  2241. <td class="type">
  2242. <span class="param-type">string</span>
  2243. </td>
  2244. <td class="attributes">
  2245. </td>
  2246. <td class="description last">label name</td>
  2247. </tr>
  2248. <tr>
  2249. <td class="name"><code>value</code></td>
  2250. <td class="type">
  2251. <span class="param-type">string</span>
  2252. </td>
  2253. <td class="attributes">
  2254. &lt;optional><br>
  2255. </td>
  2256. <td class="description last">label value</td>
  2257. </tr>
  2258. </tbody>
  2259. </table>
  2260. <dl class="details">
  2261. <dt class="tag-source">Source:</dt>
  2262. <dd class="tag-source"><ul class="dummy"><li>
  2263. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line504">line 504</a>
  2264. </li></ul></dd>
  2265. </dl>
  2266. <h5>Returns:</h5>
  2267. <div class="param-desc">
  2268. true if label exists (including inherited)
  2269. </div>
  2270. <dl>
  2271. <dt>
  2272. Type
  2273. </dt>
  2274. <dd>
  2275. <span class="param-type">boolean</span>
  2276. </dd>
  2277. </dl>
  2278. <h4 class="name" id="hasOwnedAttribute"><span class="type-signature"></span>hasOwnedAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2279. <h5>Parameters:</h5>
  2280. <table class="params">
  2281. <thead>
  2282. <tr>
  2283. <th>Name</th>
  2284. <th>Type</th>
  2285. <th>Attributes</th>
  2286. <th class="last">Description</th>
  2287. </tr>
  2288. </thead>
  2289. <tbody>
  2290. <tr>
  2291. <td class="name"><code>type</code></td>
  2292. <td class="type">
  2293. <span class="param-type">string</span>
  2294. </td>
  2295. <td class="attributes">
  2296. </td>
  2297. <td class="description last">attribute type (label, relation, etc.)</td>
  2298. </tr>
  2299. <tr>
  2300. <td class="name"><code>name</code></td>
  2301. <td class="type">
  2302. <span class="param-type">string</span>
  2303. </td>
  2304. <td class="attributes">
  2305. </td>
  2306. <td class="description last">attribute name</td>
  2307. </tr>
  2308. <tr>
  2309. <td class="name"><code>value</code></td>
  2310. <td class="type">
  2311. <span class="param-type">string</span>
  2312. </td>
  2313. <td class="attributes">
  2314. &lt;optional><br>
  2315. </td>
  2316. <td class="description last">attribute value</td>
  2317. </tr>
  2318. </tbody>
  2319. </table>
  2320. <dl class="details">
  2321. <dt class="tag-source">Source:</dt>
  2322. <dd class="tag-source"><ul class="dummy"><li>
  2323. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line595">line 595</a>
  2324. </li></ul></dd>
  2325. </dl>
  2326. <h5>Returns:</h5>
  2327. <div class="param-desc">
  2328. true if note has an attribute with given type and name (excluding inherited)
  2329. </div>
  2330. <dl>
  2331. <dt>
  2332. Type
  2333. </dt>
  2334. <dd>
  2335. <span class="param-type">boolean</span>
  2336. </dd>
  2337. </dl>
  2338. <h4 class="name" id="hasOwnedLabel"><span class="type-signature"></span>hasOwnedLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2339. <h5>Parameters:</h5>
  2340. <table class="params">
  2341. <thead>
  2342. <tr>
  2343. <th>Name</th>
  2344. <th>Type</th>
  2345. <th>Attributes</th>
  2346. <th class="last">Description</th>
  2347. </tr>
  2348. </thead>
  2349. <tbody>
  2350. <tr>
  2351. <td class="name"><code>name</code></td>
  2352. <td class="type">
  2353. <span class="param-type">string</span>
  2354. </td>
  2355. <td class="attributes">
  2356. </td>
  2357. <td class="description last">label name</td>
  2358. </tr>
  2359. <tr>
  2360. <td class="name"><code>value</code></td>
  2361. <td class="type">
  2362. <span class="param-type">string</span>
  2363. </td>
  2364. <td class="attributes">
  2365. &lt;optional><br>
  2366. </td>
  2367. <td class="description last">label value</td>
  2368. </tr>
  2369. </tbody>
  2370. </table>
  2371. <dl class="details">
  2372. <dt class="tag-source">Source:</dt>
  2373. <dd class="tag-source"><ul class="dummy"><li>
  2374. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line525">line 525</a>
  2375. </li></ul></dd>
  2376. </dl>
  2377. <h5>Returns:</h5>
  2378. <div class="param-desc">
  2379. true if label exists (excluding inherited)
  2380. </div>
  2381. <dl>
  2382. <dt>
  2383. Type
  2384. </dt>
  2385. <dd>
  2386. <span class="param-type">boolean</span>
  2387. </dd>
  2388. </dl>
  2389. <h4 class="name" id="hasOwnedRelation"><span class="type-signature"></span>hasOwnedRelation<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2390. <h5>Parameters:</h5>
  2391. <table class="params">
  2392. <thead>
  2393. <tr>
  2394. <th>Name</th>
  2395. <th>Type</th>
  2396. <th>Attributes</th>
  2397. <th class="last">Description</th>
  2398. </tr>
  2399. </thead>
  2400. <tbody>
  2401. <tr>
  2402. <td class="name"><code>name</code></td>
  2403. <td class="type">
  2404. <span class="param-type">string</span>
  2405. </td>
  2406. <td class="attributes">
  2407. </td>
  2408. <td class="description last">relation name</td>
  2409. </tr>
  2410. <tr>
  2411. <td class="name"><code>value</code></td>
  2412. <td class="type">
  2413. <span class="param-type">string</span>
  2414. </td>
  2415. <td class="attributes">
  2416. &lt;optional><br>
  2417. </td>
  2418. <td class="description last">relation value</td>
  2419. </tr>
  2420. </tbody>
  2421. </table>
  2422. <dl class="details">
  2423. <dt class="tag-source">Source:</dt>
  2424. <dd class="tag-source"><ul class="dummy"><li>
  2425. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line539">line 539</a>
  2426. </li></ul></dd>
  2427. </dl>
  2428. <h5>Returns:</h5>
  2429. <div class="param-desc">
  2430. true if relation exists (excluding inherited)
  2431. </div>
  2432. <dl>
  2433. <dt>
  2434. Type
  2435. </dt>
  2436. <dd>
  2437. <span class="param-type">boolean</span>
  2438. </dd>
  2439. </dl>
  2440. <h4 class="name" id="hasRelation"><span class="type-signature"></span>hasRelation<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2441. <h5>Parameters:</h5>
  2442. <table class="params">
  2443. <thead>
  2444. <tr>
  2445. <th>Name</th>
  2446. <th>Type</th>
  2447. <th>Attributes</th>
  2448. <th class="last">Description</th>
  2449. </tr>
  2450. </thead>
  2451. <tbody>
  2452. <tr>
  2453. <td class="name"><code>name</code></td>
  2454. <td class="type">
  2455. <span class="param-type">string</span>
  2456. </td>
  2457. <td class="attributes">
  2458. </td>
  2459. <td class="description last">relation name</td>
  2460. </tr>
  2461. <tr>
  2462. <td class="name"><code>value</code></td>
  2463. <td class="type">
  2464. <span class="param-type">string</span>
  2465. </td>
  2466. <td class="attributes">
  2467. &lt;optional><br>
  2468. </td>
  2469. <td class="description last">relation value</td>
  2470. </tr>
  2471. </tbody>
  2472. </table>
  2473. <dl class="details">
  2474. <dt class="tag-source">Source:</dt>
  2475. <dd class="tag-source"><ul class="dummy"><li>
  2476. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line532">line 532</a>
  2477. </li></ul></dd>
  2478. </dl>
  2479. <h5>Returns:</h5>
  2480. <div class="param-desc">
  2481. true if relation exists (including inherited)
  2482. </div>
  2483. <dl>
  2484. <dt>
  2485. Type
  2486. </dt>
  2487. <dd>
  2488. <span class="param-type">boolean</span>
  2489. </dd>
  2490. </dl>
  2491. <h4 class="name" id="hasStringContent"><span class="type-signature"></span>hasStringContent<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2492. <dl class="details">
  2493. <dt class="tag-source">Source:</dt>
  2494. <dd class="tag-source"><ul class="dummy"><li>
  2495. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line329">line 329</a>
  2496. </li></ul></dd>
  2497. </dl>
  2498. <h5>Returns:</h5>
  2499. <div class="param-desc">
  2500. true if the note has string content (not binary)
  2501. </div>
  2502. <dl>
  2503. <dt>
  2504. Type
  2505. </dt>
  2506. <dd>
  2507. <span class="param-type">boolean</span>
  2508. </dd>
  2509. </dl>
  2510. <h4 class="name" id="isDescendantOfNote"><span class="type-signature"></span>isDescendantOfNote<span class="signature">(ancestorNoteId)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2511. <h5>Parameters:</h5>
  2512. <table class="params">
  2513. <thead>
  2514. <tr>
  2515. <th>Name</th>
  2516. <th>Type</th>
  2517. <th class="last">Description</th>
  2518. </tr>
  2519. </thead>
  2520. <tbody>
  2521. <tr>
  2522. <td class="name"><code>ancestorNoteId</code></td>
  2523. <td class="type">
  2524. </td>
  2525. <td class="description last"></td>
  2526. </tr>
  2527. </tbody>
  2528. </table>
  2529. <dl class="details">
  2530. <dt class="tag-source">Source:</dt>
  2531. <dd class="tag-source"><ul class="dummy"><li>
  2532. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1280">line 1280</a>
  2533. </li></ul></dd>
  2534. </dl>
  2535. <h5>Returns:</h5>
  2536. <div class="param-desc">
  2537. - true if ancestorNoteId occurs in at least one of the note's paths
  2538. </div>
  2539. <dl>
  2540. <dt>
  2541. Type
  2542. </dt>
  2543. <dd>
  2544. <span class="param-type">boolean</span>
  2545. </dd>
  2546. </dl>
  2547. <h4 class="name" id="isHiddenCompletely"><span class="type-signature"></span>isHiddenCompletely<span class="signature">()</span><span class="type-signature"></span></h4>
  2548. <dl class="details">
  2549. <dt class="tag-source">Source:</dt>
  2550. <dd class="tag-source"><ul class="dummy"><li>
  2551. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1258">line 1258</a>
  2552. </li></ul></dd>
  2553. </dl>
  2554. <h5>Returns:</h5>
  2555. <div class="param-desc">
  2556. boolean - true if there's no non-hidden path, note is not cloned to the visible tree
  2557. </div>
  2558. <h4 class="name" id="isHtml"><span class="type-signature"></span>isHtml<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2559. <dl class="details">
  2560. <dt class="tag-source">Source:</dt>
  2561. <dd class="tag-source"><ul class="dummy"><li>
  2562. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line312">line 312</a>
  2563. </li></ul></dd>
  2564. </dl>
  2565. <h5>Returns:</h5>
  2566. <div class="param-desc">
  2567. true if this note is HTML
  2568. </div>
  2569. <dl>
  2570. <dt>
  2571. Type
  2572. </dt>
  2573. <dd>
  2574. <span class="param-type">boolean</span>
  2575. </dd>
  2576. </dl>
  2577. <h4 class="name" id="isImage"><span class="type-signature"></span>isImage<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2578. <dl class="details">
  2579. <dt class="tag-source">Source:</dt>
  2580. <dd class="tag-source"><ul class="dummy"><li>
  2581. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line318">line 318</a>
  2582. </li></ul></dd>
  2583. </dl>
  2584. <h5>Returns:</h5>
  2585. <div class="param-desc">
  2586. true if this note is an image
  2587. </div>
  2588. <dl>
  2589. <dt>
  2590. Type
  2591. </dt>
  2592. <dd>
  2593. <span class="param-type">boolean</span>
  2594. </dd>
  2595. </dl>
  2596. <h4 class="name" id="isJavaScript"><span class="type-signature"></span>isJavaScript<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2597. <dl class="details">
  2598. <dt class="tag-source">Source:</dt>
  2599. <dd class="tag-source"><ul class="dummy"><li>
  2600. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line304">line 304</a>
  2601. </li></ul></dd>
  2602. </dl>
  2603. <h5>Returns:</h5>
  2604. <div class="param-desc">
  2605. true if this note is JavaScript (code or attachment)
  2606. </div>
  2607. <dl>
  2608. <dt>
  2609. Type
  2610. </dt>
  2611. <dd>
  2612. <span class="param-type">boolean</span>
  2613. </dd>
  2614. </dl>
  2615. <h4 class="name" id="isJson"><span class="type-signature"></span>isJson<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2616. <dl class="details">
  2617. <dt class="tag-source">Source:</dt>
  2618. <dd class="tag-source"><ul class="dummy"><li>
  2619. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line299">line 299</a>
  2620. </li></ul></dd>
  2621. </dl>
  2622. <h5>Returns:</h5>
  2623. <div class="param-desc">
  2624. true if this note is of application/json content type
  2625. </div>
  2626. <dl>
  2627. <dt>
  2628. Type
  2629. </dt>
  2630. <dd>
  2631. <span class="param-type">boolean</span>
  2632. </dd>
  2633. </dl>
  2634. <h4 class="name" id="isLabelTruthy"><span class="type-signature"></span>isLabelTruthy<span class="signature">(name)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2635. <h5>Parameters:</h5>
  2636. <table class="params">
  2637. <thead>
  2638. <tr>
  2639. <th>Name</th>
  2640. <th>Type</th>
  2641. <th class="last">Description</th>
  2642. </tr>
  2643. </thead>
  2644. <tbody>
  2645. <tr>
  2646. <td class="name"><code>name</code></td>
  2647. <td class="type">
  2648. <span class="param-type">string</span>
  2649. </td>
  2650. <td class="description last">label name</td>
  2651. </tr>
  2652. </tbody>
  2653. </table>
  2654. <dl class="details">
  2655. <dt class="tag-source">Source:</dt>
  2656. <dd class="tag-source"><ul class="dummy"><li>
  2657. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line510">line 510</a>
  2658. </li></ul></dd>
  2659. </dl>
  2660. <h5>Returns:</h5>
  2661. <div class="param-desc">
  2662. true if label exists (including inherited) and does not have "false" value.
  2663. </div>
  2664. <dl>
  2665. <dt>
  2666. Type
  2667. </dt>
  2668. <dd>
  2669. <span class="param-type">boolean</span>
  2670. </dd>
  2671. </dl>
  2672. <h4 class="name" id="isRoot"><span class="type-signature"></span>isRoot<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
  2673. <dl class="details">
  2674. <dt class="tag-source">Source:</dt>
  2675. <dd class="tag-source"><ul class="dummy"><li>
  2676. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line294">line 294</a>
  2677. </li></ul></dd>
  2678. </dl>
  2679. <h5>Returns:</h5>
  2680. <div class="param-desc">
  2681. true if this note is the root of the note tree. Root note has "root" noteId
  2682. </div>
  2683. <dl>
  2684. <dt>
  2685. Type
  2686. </dt>
  2687. <dd>
  2688. <span class="param-type">boolean</span>
  2689. </dd>
  2690. </dl>
  2691. <h4 class="name" id="isStringNote"><span class="type-signature"></span>isStringNote<span class="signature">()</span><span class="type-signature"></span></h4>
  2692. <dl class="details">
  2693. <dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>use hasStringContent() instead</li></ul></dd>
  2694. <dt class="tag-source">Source:</dt>
  2695. <dd class="tag-source"><ul class="dummy"><li>
  2696. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line324">line 324</a>
  2697. </li></ul></dd>
  2698. </dl>
  2699. <h4 class="name" id="markAsDeleted"><span class="type-signature"></span>markAsDeleted<span class="signature">(deleteId<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  2700. <div class="description">
  2701. Mark the entity as (soft) deleted. It will be completely erased later.
  2702. This is a low-level method, for notes and branches use `note.deleteNote()` and 'branch.deleteBranch()` instead.
  2703. </div>
  2704. <h5>Parameters:</h5>
  2705. <table class="params">
  2706. <thead>
  2707. <tr>
  2708. <th>Name</th>
  2709. <th>Type</th>
  2710. <th>Attributes</th>
  2711. <th>Default</th>
  2712. <th class="last">Description</th>
  2713. </tr>
  2714. </thead>
  2715. <tbody>
  2716. <tr>
  2717. <td class="name"><code>deleteId</code></td>
  2718. <td class="type">
  2719. </td>
  2720. <td class="attributes">
  2721. &lt;optional><br>
  2722. </td>
  2723. <td class="default">
  2724. null
  2725. </td>
  2726. <td class="description last"></td>
  2727. </tr>
  2728. </tbody>
  2729. </table>
  2730. <dl class="details">
  2731. <dt class="tag-overrides">Overrides:</dt>
  2732. <dd class="tag-overrides"><ul class="dummy"><li>
  2733. <a href="AbstractBeccaEntity.html#markAsDeleted">AbstractBeccaEntity#markAsDeleted</a>
  2734. </li></ul></dd>
  2735. <dt class="tag-source">Source:</dt>
  2736. <dd class="tag-source"><ul class="dummy"><li>
  2737. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line267">line 267</a>
  2738. </li></ul></dd>
  2739. </dl>
  2740. <h4 class="name" id="putEntityChange"><span class="type-signature">(protected) </span>putEntityChange<span class="signature">()</span><span class="type-signature"></span></h4>
  2741. <dl class="details">
  2742. <dt class="tag-overrides">Overrides:</dt>
  2743. <dd class="tag-overrides"><ul class="dummy"><li>
  2744. <a href="AbstractBeccaEntity.html#putEntityChange">AbstractBeccaEntity#putEntityChange</a>
  2745. </li></ul></dd>
  2746. <dt class="tag-source">Source:</dt>
  2747. <dd class="tag-source"><ul class="dummy"><li>
  2748. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line44">line 44</a>
  2749. </li></ul></dd>
  2750. </dl>
  2751. <h4 class="name" id="removeAttribute"><span class="type-signature"></span>removeAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  2752. <div class="description">
  2753. Removes given attribute name-value pair if it exists.
  2754. </div>
  2755. <h5>Parameters:</h5>
  2756. <table class="params">
  2757. <thead>
  2758. <tr>
  2759. <th>Name</th>
  2760. <th>Type</th>
  2761. <th>Attributes</th>
  2762. <th class="last">Description</th>
  2763. </tr>
  2764. </thead>
  2765. <tbody>
  2766. <tr>
  2767. <td class="name"><code>type</code></td>
  2768. <td class="type">
  2769. <span class="param-type">string</span>
  2770. </td>
  2771. <td class="attributes">
  2772. </td>
  2773. <td class="description last">attribute type (label, relation, etc.)</td>
  2774. </tr>
  2775. <tr>
  2776. <td class="name"><code>name</code></td>
  2777. <td class="type">
  2778. <span class="param-type">string</span>
  2779. </td>
  2780. <td class="attributes">
  2781. </td>
  2782. <td class="description last">attribute name</td>
  2783. </tr>
  2784. <tr>
  2785. <td class="name"><code>value</code></td>
  2786. <td class="type">
  2787. <span class="param-type">string</span>
  2788. </td>
  2789. <td class="attributes">
  2790. &lt;optional><br>
  2791. </td>
  2792. <td class="description last">attribute value (optional)</td>
  2793. </tr>
  2794. </tbody>
  2795. </table>
  2796. <dl class="details">
  2797. <dt class="tag-source">Source:</dt>
  2798. <dd class="tag-source"><ul class="dummy"><li>
  2799. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1324">line 1324</a>
  2800. </li></ul></dd>
  2801. </dl>
  2802. <h4 class="name" id="removeLabel"><span class="type-signature"></span>removeLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  2803. <div class="description">
  2804. Remove label name-value pair, if it exists.
  2805. </div>
  2806. <h5>Parameters:</h5>
  2807. <table class="params">
  2808. <thead>
  2809. <tr>
  2810. <th>Name</th>
  2811. <th>Type</th>
  2812. <th>Attributes</th>
  2813. <th class="last">Description</th>
  2814. </tr>
  2815. </thead>
  2816. <tbody>
  2817. <tr>
  2818. <td class="name"><code>name</code></td>
  2819. <td class="type">
  2820. <span class="param-type">string</span>
  2821. </td>
  2822. <td class="attributes">
  2823. </td>
  2824. <td class="description last">label name</td>
  2825. </tr>
  2826. <tr>
  2827. <td class="name"><code>value</code></td>
  2828. <td class="type">
  2829. <span class="param-type">string</span>
  2830. </td>
  2831. <td class="attributes">
  2832. &lt;optional><br>
  2833. </td>
  2834. <td class="description last">label value</td>
  2835. </tr>
  2836. </tbody>
  2837. </table>
  2838. <dl class="details">
  2839. <dt class="tag-source">Source:</dt>
  2840. <dd class="tag-source"><ul class="dummy"><li>
  2841. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1440">line 1440</a>
  2842. </li></ul></dd>
  2843. </dl>
  2844. <h4 class="name" id="removeRelation"><span class="type-signature"></span>removeRelation<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  2845. <div class="description">
  2846. Remove the relation name-value pair, if it exists.
  2847. </div>
  2848. <h5>Parameters:</h5>
  2849. <table class="params">
  2850. <thead>
  2851. <tr>
  2852. <th>Name</th>
  2853. <th>Type</th>
  2854. <th>Attributes</th>
  2855. <th class="last">Description</th>
  2856. </tr>
  2857. </thead>
  2858. <tbody>
  2859. <tr>
  2860. <td class="name"><code>name</code></td>
  2861. <td class="type">
  2862. <span class="param-type">string</span>
  2863. </td>
  2864. <td class="attributes">
  2865. </td>
  2866. <td class="description last">relation name</td>
  2867. </tr>
  2868. <tr>
  2869. <td class="name"><code>value</code></td>
  2870. <td class="type">
  2871. <span class="param-type">string</span>
  2872. </td>
  2873. <td class="attributes">
  2874. &lt;optional><br>
  2875. </td>
  2876. <td class="description last">relation value (noteId)</td>
  2877. </tr>
  2878. </tbody>
  2879. </table>
  2880. <dl class="details">
  2881. <dt class="tag-source">Source:</dt>
  2882. <dd class="tag-source"><ul class="dummy"><li>
  2883. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1448">line 1448</a>
  2884. </li></ul></dd>
  2885. </dl>
  2886. <h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">()</span><span class="type-signature"> &rarr; {this}</span></h4>
  2887. <div class="description">
  2888. Saves entity - executes SQL, but doesn't commit the transaction on its own
  2889. </div>
  2890. <dl class="details">
  2891. <dt class="tag-overrides">Overrides:</dt>
  2892. <dd class="tag-overrides"><ul class="dummy"><li>
  2893. <a href="AbstractBeccaEntity.html#save">AbstractBeccaEntity#save</a>
  2894. </li></ul></dd>
  2895. <dt class="tag-source">Source:</dt>
  2896. <dd class="tag-source"><ul class="dummy"><li>
  2897. <a href="becca_entities_abstract_becca_entity.js.html">becca/entities/abstract_becca_entity.js</a>, <a href="becca_entities_abstract_becca_entity.js.html#line91">line 91</a>
  2898. </li></ul></dd>
  2899. </dl>
  2900. <h5>Returns:</h5>
  2901. <dl>
  2902. <dt>
  2903. Type
  2904. </dt>
  2905. <dd>
  2906. <span class="param-type">this</span>
  2907. </dd>
  2908. </dl>
  2909. <h4 class="name" id="saveAttachment"><span class="type-signature"></span>saveAttachment<span class="signature">(matchBy)</span><span class="type-signature"> &rarr; {<a href="BAttachment.html">BAttachment</a>}</span></h4>
  2910. <h5>Parameters:</h5>
  2911. <table class="params">
  2912. <thead>
  2913. <tr>
  2914. <th>Name</th>
  2915. <th>Type</th>
  2916. <th>Default</th>
  2917. <th class="last">Description</th>
  2918. </tr>
  2919. </thead>
  2920. <tbody>
  2921. <tr>
  2922. <td class="name"><code>matchBy</code></td>
  2923. <td class="type">
  2924. <span class="param-type">string</span>
  2925. </td>
  2926. <td class="default">
  2927. attachmentId
  2928. </td>
  2929. <td class="description last">choose by which property we detect if to update an existing attachment.
  2930. Supported values are either 'attachmentId' (default) or 'title'</td>
  2931. </tr>
  2932. </tbody>
  2933. </table>
  2934. <dl class="details">
  2935. <dt class="tag-source">Source:</dt>
  2936. <dd class="tag-source"><ul class="dummy"><li>
  2937. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1654">line 1654</a>
  2938. </li></ul></dd>
  2939. </dl>
  2940. <h5>Returns:</h5>
  2941. <dl>
  2942. <dt>
  2943. Type
  2944. </dt>
  2945. <dd>
  2946. <span class="param-type"><a href="BAttachment.html">BAttachment</a></span>
  2947. </dd>
  2948. </dl>
  2949. <h4 class="name" id="saveRevision"><span class="type-signature"></span>saveRevision<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="BRevision.html">BRevision</a>|null}</span></h4>
  2950. <dl class="details">
  2951. <dt class="tag-source">Source:</dt>
  2952. <dd class="tag-source"><ul class="dummy"><li>
  2953. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1608">line 1608</a>
  2954. </li></ul></dd>
  2955. </dl>
  2956. <h5>Returns:</h5>
  2957. <dl>
  2958. <dt>
  2959. Type
  2960. </dt>
  2961. <dd>
  2962. <span class="param-type"><a href="BRevision.html">BRevision</a></span>
  2963. |
  2964. <span class="param-type">null</span>
  2965. </dd>
  2966. </dl>
  2967. <h4 class="name" id="setAttribute"><span class="type-signature"></span>setAttribute<span class="signature">(type, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  2968. <div class="description">
  2969. Update's given attribute's value or creates it if it doesn't exist
  2970. </div>
  2971. <h5>Parameters:</h5>
  2972. <table class="params">
  2973. <thead>
  2974. <tr>
  2975. <th>Name</th>
  2976. <th>Type</th>
  2977. <th>Attributes</th>
  2978. <th class="last">Description</th>
  2979. </tr>
  2980. </thead>
  2981. <tbody>
  2982. <tr>
  2983. <td class="name"><code>type</code></td>
  2984. <td class="type">
  2985. <span class="param-type">string</span>
  2986. </td>
  2987. <td class="attributes">
  2988. </td>
  2989. <td class="description last">attribute type (label, relation, etc.)</td>
  2990. </tr>
  2991. <tr>
  2992. <td class="name"><code>name</code></td>
  2993. <td class="type">
  2994. <span class="param-type">string</span>
  2995. </td>
  2996. <td class="attributes">
  2997. </td>
  2998. <td class="description last">attribute name</td>
  2999. </tr>
  3000. <tr>
  3001. <td class="name"><code>value</code></td>
  3002. <td class="type">
  3003. <span class="param-type">string</span>
  3004. </td>
  3005. <td class="attributes">
  3006. &lt;optional><br>
  3007. </td>
  3008. <td class="description last">attribute value (optional)</td>
  3009. </tr>
  3010. </tbody>
  3011. </table>
  3012. <dl class="details">
  3013. <dt class="tag-source">Source:</dt>
  3014. <dd class="tag-source"><ul class="dummy"><li>
  3015. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1293">line 1293</a>
  3016. </li></ul></dd>
  3017. </dl>
  3018. <h4 class="name" id="setContent"><span class="type-signature"></span>setContent<span class="signature">(content, opts<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  3019. <h5>Parameters:</h5>
  3020. <table class="params">
  3021. <thead>
  3022. <tr>
  3023. <th>Name</th>
  3024. <th>Type</th>
  3025. <th>Attributes</th>
  3026. <th class="last">Description</th>
  3027. </tr>
  3028. </thead>
  3029. <tbody>
  3030. <tr>
  3031. <td class="name"><code>content</code></td>
  3032. <td class="type">
  3033. </td>
  3034. <td class="attributes">
  3035. </td>
  3036. <td class="description last"></td>
  3037. </tr>
  3038. <tr>
  3039. <td class="name"><code>opts</code></td>
  3040. <td class="type">
  3041. <span class="param-type">object</span>
  3042. </td>
  3043. <td class="attributes">
  3044. &lt;optional><br>
  3045. </td>
  3046. <td class="description last">
  3047. <h6>Properties</h6>
  3048. <table class="params">
  3049. <thead>
  3050. <tr>
  3051. <th>Name</th>
  3052. <th>Type</th>
  3053. <th>Attributes</th>
  3054. <th>Default</th>
  3055. <th class="last">Description</th>
  3056. </tr>
  3057. </thead>
  3058. <tbody>
  3059. <tr>
  3060. <td class="name"><code>forceSave</code></td>
  3061. <td class="type">
  3062. <span class="param-type">object</span>
  3063. </td>
  3064. <td class="attributes">
  3065. &lt;optional><br>
  3066. </td>
  3067. <td class="default">
  3068. false
  3069. </td>
  3070. <td class="description last">will also save this BNote entity</td>
  3071. </tr>
  3072. <tr>
  3073. <td class="name"><code>forceFrontendReload</code></td>
  3074. <td class="type">
  3075. <span class="param-type">object</span>
  3076. </td>
  3077. <td class="attributes">
  3078. &lt;optional><br>
  3079. </td>
  3080. <td class="default">
  3081. false
  3082. </td>
  3083. <td class="description last">override frontend heuristics on when to reload, instruct to reload</td>
  3084. </tr>
  3085. </tbody>
  3086. </table>
  3087. </td>
  3088. </tr>
  3089. </tbody>
  3090. </table>
  3091. <dl class="details">
  3092. <dt class="tag-source">Source:</dt>
  3093. <dd class="tag-source"><ul class="dummy"><li>
  3094. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line267">line 267</a>
  3095. </li></ul></dd>
  3096. </dl>
  3097. <h4 class="name" id="setLabel"><span class="type-signature"></span>setLabel<span class="signature">(name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  3098. <div class="description">
  3099. Update's given label's value or creates it if it doesn't exist
  3100. </div>
  3101. <h5>Parameters:</h5>
  3102. <table class="params">
  3103. <thead>
  3104. <tr>
  3105. <th>Name</th>
  3106. <th>Type</th>
  3107. <th>Attributes</th>
  3108. <th class="last">Description</th>
  3109. </tr>
  3110. </thead>
  3111. <tbody>
  3112. <tr>
  3113. <td class="name"><code>name</code></td>
  3114. <td class="type">
  3115. <span class="param-type">string</span>
  3116. </td>
  3117. <td class="attributes">
  3118. </td>
  3119. <td class="description last">label name</td>
  3120. </tr>
  3121. <tr>
  3122. <td class="name"><code>value</code></td>
  3123. <td class="type">
  3124. <span class="param-type">string</span>
  3125. </td>
  3126. <td class="attributes">
  3127. &lt;optional><br>
  3128. </td>
  3129. <td class="description last">label value</td>
  3130. </tr>
  3131. </tbody>
  3132. </table>
  3133. <dl class="details">
  3134. <dt class="tag-source">Source:</dt>
  3135. <dd class="tag-source"><ul class="dummy"><li>
  3136. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1424">line 1424</a>
  3137. </li></ul></dd>
  3138. </dl>
  3139. <h4 class="name" id="setRelation"><span class="type-signature"></span>setRelation<span class="signature">(name, value)</span><span class="type-signature"></span></h4>
  3140. <div class="description">
  3141. Update's given relation's value or creates it if it doesn't exist
  3142. </div>
  3143. <h5>Parameters:</h5>
  3144. <table class="params">
  3145. <thead>
  3146. <tr>
  3147. <th>Name</th>
  3148. <th>Type</th>
  3149. <th class="last">Description</th>
  3150. </tr>
  3151. </thead>
  3152. <tbody>
  3153. <tr>
  3154. <td class="name"><code>name</code></td>
  3155. <td class="type">
  3156. <span class="param-type">string</span>
  3157. </td>
  3158. <td class="description last">relation name</td>
  3159. </tr>
  3160. <tr>
  3161. <td class="name"><code>value</code></td>
  3162. <td class="type">
  3163. <span class="param-type">string</span>
  3164. </td>
  3165. <td class="description last">relation value (noteId)</td>
  3166. </tr>
  3167. </tbody>
  3168. </table>
  3169. <dl class="details">
  3170. <dt class="tag-source">Source:</dt>
  3171. <dd class="tag-source"><ul class="dummy"><li>
  3172. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1432">line 1432</a>
  3173. </li></ul></dd>
  3174. </dl>
  3175. <h4 class="name" id="toggleAttribute"><span class="type-signature"></span>toggleAttribute<span class="signature">(type, enabled, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  3176. <div class="description">
  3177. Based on enabled, the attribute is either set or removed.
  3178. </div>
  3179. <h5>Parameters:</h5>
  3180. <table class="params">
  3181. <thead>
  3182. <tr>
  3183. <th>Name</th>
  3184. <th>Type</th>
  3185. <th>Attributes</th>
  3186. <th class="last">Description</th>
  3187. </tr>
  3188. </thead>
  3189. <tbody>
  3190. <tr>
  3191. <td class="name"><code>type</code></td>
  3192. <td class="type">
  3193. <span class="param-type">string</span>
  3194. </td>
  3195. <td class="attributes">
  3196. </td>
  3197. <td class="description last">attribute type ('relation', 'label' etc.)</td>
  3198. </tr>
  3199. <tr>
  3200. <td class="name"><code>enabled</code></td>
  3201. <td class="type">
  3202. <span class="param-type">boolean</span>
  3203. </td>
  3204. <td class="attributes">
  3205. </td>
  3206. <td class="description last">toggle On or Off</td>
  3207. </tr>
  3208. <tr>
  3209. <td class="name"><code>name</code></td>
  3210. <td class="type">
  3211. <span class="param-type">string</span>
  3212. </td>
  3213. <td class="attributes">
  3214. </td>
  3215. <td class="description last">attribute name</td>
  3216. </tr>
  3217. <tr>
  3218. <td class="name"><code>value</code></td>
  3219. <td class="type">
  3220. <span class="param-type">string</span>
  3221. </td>
  3222. <td class="attributes">
  3223. &lt;optional><br>
  3224. </td>
  3225. <td class="description last">attribute value (optional)</td>
  3226. </tr>
  3227. </tbody>
  3228. </table>
  3229. <dl class="details">
  3230. <dt class="tag-source">Source:</dt>
  3231. <dd class="tag-source"><ul class="dummy"><li>
  3232. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1391">line 1391</a>
  3233. </li></ul></dd>
  3234. </dl>
  3235. <h4 class="name" id="toggleLabel"><span class="type-signature"></span>toggleLabel<span class="signature">(enabled, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  3236. <div class="description">
  3237. Based on enabled, label is either set or removed.
  3238. </div>
  3239. <h5>Parameters:</h5>
  3240. <table class="params">
  3241. <thead>
  3242. <tr>
  3243. <th>Name</th>
  3244. <th>Type</th>
  3245. <th>Attributes</th>
  3246. <th class="last">Description</th>
  3247. </tr>
  3248. </thead>
  3249. <tbody>
  3250. <tr>
  3251. <td class="name"><code>enabled</code></td>
  3252. <td class="type">
  3253. <span class="param-type">boolean</span>
  3254. </td>
  3255. <td class="attributes">
  3256. </td>
  3257. <td class="description last">toggle On or Off</td>
  3258. </tr>
  3259. <tr>
  3260. <td class="name"><code>name</code></td>
  3261. <td class="type">
  3262. <span class="param-type">string</span>
  3263. </td>
  3264. <td class="attributes">
  3265. </td>
  3266. <td class="description last">label name</td>
  3267. </tr>
  3268. <tr>
  3269. <td class="name"><code>value</code></td>
  3270. <td class="type">
  3271. <span class="param-type">string</span>
  3272. </td>
  3273. <td class="attributes">
  3274. &lt;optional><br>
  3275. </td>
  3276. <td class="description last">label value (optional)</td>
  3277. </tr>
  3278. </tbody>
  3279. </table>
  3280. <dl class="details">
  3281. <dt class="tag-source">Source:</dt>
  3282. <dd class="tag-source"><ul class="dummy"><li>
  3283. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1407">line 1407</a>
  3284. </li></ul></dd>
  3285. </dl>
  3286. <h4 class="name" id="toggleRelation"><span class="type-signature"></span>toggleRelation<span class="signature">(enabled, name, value<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
  3287. <div class="description">
  3288. Based on enabled, relation is either set or removed.
  3289. </div>
  3290. <h5>Parameters:</h5>
  3291. <table class="params">
  3292. <thead>
  3293. <tr>
  3294. <th>Name</th>
  3295. <th>Type</th>
  3296. <th>Attributes</th>
  3297. <th class="last">Description</th>
  3298. </tr>
  3299. </thead>
  3300. <tbody>
  3301. <tr>
  3302. <td class="name"><code>enabled</code></td>
  3303. <td class="type">
  3304. <span class="param-type">boolean</span>
  3305. </td>
  3306. <td class="attributes">
  3307. </td>
  3308. <td class="description last">toggle On or Off</td>
  3309. </tr>
  3310. <tr>
  3311. <td class="name"><code>name</code></td>
  3312. <td class="type">
  3313. <span class="param-type">string</span>
  3314. </td>
  3315. <td class="attributes">
  3316. </td>
  3317. <td class="description last">relation name</td>
  3318. </tr>
  3319. <tr>
  3320. <td class="name"><code>value</code></td>
  3321. <td class="type">
  3322. <span class="param-type">string</span>
  3323. </td>
  3324. <td class="attributes">
  3325. &lt;optional><br>
  3326. </td>
  3327. <td class="description last">relation value (noteId)</td>
  3328. </tr>
  3329. </tbody>
  3330. </table>
  3331. <dl class="details">
  3332. <dt class="tag-source">Source:</dt>
  3333. <dd class="tag-source"><ul class="dummy"><li>
  3334. <a href="becca_entities_bnote.js.html">becca/entities/bnote.js</a>, <a href="becca_entities_bnote.js.html#line1416">line 1416</a>
  3335. </li></ul></dd>
  3336. </dl>
  3337. </article>
  3338. </section>
  3339. </div>
  3340. <nav>
  3341. <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-sql.html">sql</a></li></ul><h3>Classes</h3><ul><li><a href="AbstractBeccaEntity.html">AbstractBeccaEntity</a></li><li><a href="BAttachment.html">BAttachment</a></li><li><a href="BAttribute.html">BAttribute</a></li><li><a href="BBranch.html">BBranch</a></li><li><a href="BEtapiToken.html">BEtapiToken</a></li><li><a href="BNote.html">BNote</a></li><li><a href="BOption.html">BOption</a></li><li><a href="BRecentNote.html">BRecentNote</a></li><li><a href="BRevision.html">BRevision</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li></ul><h3>Global</h3><ul><li><a href="global.html#api">api</a></li></ul>
  3342. </nav>
  3343. <br class="clear">
  3344. <footer>
  3345. Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a>
  3346. </footer>
  3347. <script> prettyPrint(); </script>
  3348. <script src="scripts/linenumber.js"> </script>
  3349. </body>
  3350. </html>