1// 2package vocab 3 4import ( 5 "net/url" 6 "time" 7) 8 9// OrderedCollectionPageType is an interface for accepting types that extend from 'OrderedCollectionPage'. 10type OrderedCollectionPageType interface { 11 Serializer 12 Deserializer 13 IsStartIndex() (ok bool) 14 GetStartIndex() (v int64) 15 SetStartIndex(v int64) 16 IsStartIndexIRI() (ok bool) 17 GetStartIndexIRI() (v *url.URL) 18 SetStartIndexIRI(v *url.URL) 19 IsNextOrderedCollectionPage() (ok bool) 20 GetNextOrderedCollectionPage() (v OrderedCollectionPageType) 21 SetNextOrderedCollectionPage(v OrderedCollectionPageType) 22 IsNextLink() (ok bool) 23 GetNextLink() (v LinkType) 24 SetNextLink(v LinkType) 25 IsNextIRI() (ok bool) 26 GetNextIRI() (v *url.URL) 27 SetNextIRI(v *url.URL) 28 IsPrevOrderedCollectionPage() (ok bool) 29 GetPrevOrderedCollectionPage() (v OrderedCollectionPageType) 30 SetPrevOrderedCollectionPage(v OrderedCollectionPageType) 31 IsPrevLink() (ok bool) 32 GetPrevLink() (v LinkType) 33 SetPrevLink(v LinkType) 34 IsPrevIRI() (ok bool) 35 GetPrevIRI() (v *url.URL) 36 SetPrevIRI(v *url.URL) 37 OrderedItemsLen() (l int) 38 IsOrderedItemsObject(index int) (ok bool) 39 GetOrderedItemsObject(index int) (v ObjectType) 40 AppendOrderedItemsObject(v ObjectType) 41 PrependOrderedItemsObject(v ObjectType) 42 RemoveOrderedItemsObject(index int) 43 IsOrderedItemsLink(index int) (ok bool) 44 GetOrderedItemsLink(index int) (v LinkType) 45 AppendOrderedItemsLink(v LinkType) 46 PrependOrderedItemsLink(v LinkType) 47 RemoveOrderedItemsLink(index int) 48 IsOrderedItemsIRI(index int) (ok bool) 49 GetOrderedItemsIRI(index int) (v *url.URL) 50 AppendOrderedItemsIRI(v *url.URL) 51 PrependOrderedItemsIRI(v *url.URL) 52 RemoveOrderedItemsIRI(index int) 53 IsCurrentOrderedCollectionPage() (ok bool) 54 GetCurrentOrderedCollectionPage() (v OrderedCollectionPageType) 55 SetCurrentOrderedCollectionPage(v OrderedCollectionPageType) 56 IsCurrentLink() (ok bool) 57 GetCurrentLink() (v LinkType) 58 SetCurrentLink(v LinkType) 59 IsCurrentIRI() (ok bool) 60 GetCurrentIRI() (v *url.URL) 61 SetCurrentIRI(v *url.URL) 62 IsFirstOrderedCollectionPage() (ok bool) 63 GetFirstOrderedCollectionPage() (v OrderedCollectionPageType) 64 SetFirstOrderedCollectionPage(v OrderedCollectionPageType) 65 IsFirstLink() (ok bool) 66 GetFirstLink() (v LinkType) 67 SetFirstLink(v LinkType) 68 IsFirstIRI() (ok bool) 69 GetFirstIRI() (v *url.URL) 70 SetFirstIRI(v *url.URL) 71 IsLastOrderedCollectionPage() (ok bool) 72 GetLastOrderedCollectionPage() (v OrderedCollectionPageType) 73 SetLastOrderedCollectionPage(v OrderedCollectionPageType) 74 IsLastLink() (ok bool) 75 GetLastLink() (v LinkType) 76 SetLastLink(v LinkType) 77 IsLastIRI() (ok bool) 78 GetLastIRI() (v *url.URL) 79 SetLastIRI(v *url.URL) 80 IsTotalItems() (ok bool) 81 GetTotalItems() (v int64) 82 SetTotalItems(v int64) 83 IsTotalItemsIRI() (ok bool) 84 GetTotalItemsIRI() (v *url.URL) 85 SetTotalItemsIRI(v *url.URL) 86 IsAltitude() (ok bool) 87 GetAltitude() (v float64) 88 SetAltitude(v float64) 89 IsAltitudeIRI() (ok bool) 90 GetAltitudeIRI() (v *url.URL) 91 SetAltitudeIRI(v *url.URL) 92 AttachmentLen() (l int) 93 IsAttachmentObject(index int) (ok bool) 94 GetAttachmentObject(index int) (v ObjectType) 95 AppendAttachmentObject(v ObjectType) 96 PrependAttachmentObject(v ObjectType) 97 RemoveAttachmentObject(index int) 98 IsAttachmentLink(index int) (ok bool) 99 GetAttachmentLink(index int) (v LinkType) 100 AppendAttachmentLink(v LinkType) 101 PrependAttachmentLink(v LinkType) 102 RemoveAttachmentLink(index int) 103 IsAttachmentIRI(index int) (ok bool) 104 GetAttachmentIRI(index int) (v *url.URL) 105 AppendAttachmentIRI(v *url.URL) 106 PrependAttachmentIRI(v *url.URL) 107 RemoveAttachmentIRI(index int) 108 AttributedToLen() (l int) 109 IsAttributedToObject(index int) (ok bool) 110 GetAttributedToObject(index int) (v ObjectType) 111 AppendAttributedToObject(v ObjectType) 112 PrependAttributedToObject(v ObjectType) 113 RemoveAttributedToObject(index int) 114 IsAttributedToLink(index int) (ok bool) 115 GetAttributedToLink(index int) (v LinkType) 116 AppendAttributedToLink(v LinkType) 117 PrependAttributedToLink(v LinkType) 118 RemoveAttributedToLink(index int) 119 IsAttributedToIRI(index int) (ok bool) 120 GetAttributedToIRI(index int) (v *url.URL) 121 AppendAttributedToIRI(v *url.URL) 122 PrependAttributedToIRI(v *url.URL) 123 RemoveAttributedToIRI(index int) 124 AudienceLen() (l int) 125 IsAudienceObject(index int) (ok bool) 126 GetAudienceObject(index int) (v ObjectType) 127 AppendAudienceObject(v ObjectType) 128 PrependAudienceObject(v ObjectType) 129 RemoveAudienceObject(index int) 130 IsAudienceLink(index int) (ok bool) 131 GetAudienceLink(index int) (v LinkType) 132 AppendAudienceLink(v LinkType) 133 PrependAudienceLink(v LinkType) 134 RemoveAudienceLink(index int) 135 IsAudienceIRI(index int) (ok bool) 136 GetAudienceIRI(index int) (v *url.URL) 137 AppendAudienceIRI(v *url.URL) 138 PrependAudienceIRI(v *url.URL) 139 RemoveAudienceIRI(index int) 140 ContentLen() (l int) 141 IsContentString(index int) (ok bool) 142 GetContentString(index int) (v string) 143 AppendContentString(v string) 144 PrependContentString(v string) 145 RemoveContentString(index int) 146 IsContentLangString(index int) (ok bool) 147 GetContentLangString(index int) (v string) 148 AppendContentLangString(v string) 149 PrependContentLangString(v string) 150 RemoveContentLangString(index int) 151 IsContentIRI(index int) (ok bool) 152 GetContentIRI(index int) (v *url.URL) 153 AppendContentIRI(v *url.URL) 154 PrependContentIRI(v *url.URL) 155 RemoveContentIRI(index int) 156 ContentMapLanguages() (l []string) 157 GetContentMap(l string) (v string) 158 SetContentMap(l string, v string) 159 ContextLen() (l int) 160 IsContextObject(index int) (ok bool) 161 GetContextObject(index int) (v ObjectType) 162 AppendContextObject(v ObjectType) 163 PrependContextObject(v ObjectType) 164 RemoveContextObject(index int) 165 IsContextLink(index int) (ok bool) 166 GetContextLink(index int) (v LinkType) 167 AppendContextLink(v LinkType) 168 PrependContextLink(v LinkType) 169 RemoveContextLink(index int) 170 IsContextIRI(index int) (ok bool) 171 GetContextIRI(index int) (v *url.URL) 172 AppendContextIRI(v *url.URL) 173 PrependContextIRI(v *url.URL) 174 RemoveContextIRI(index int) 175 NameLen() (l int) 176 IsNameString(index int) (ok bool) 177 GetNameString(index int) (v string) 178 AppendNameString(v string) 179 PrependNameString(v string) 180 RemoveNameString(index int) 181 IsNameLangString(index int) (ok bool) 182 GetNameLangString(index int) (v string) 183 AppendNameLangString(v string) 184 PrependNameLangString(v string) 185 RemoveNameLangString(index int) 186 IsNameIRI(index int) (ok bool) 187 GetNameIRI(index int) (v *url.URL) 188 AppendNameIRI(v *url.URL) 189 PrependNameIRI(v *url.URL) 190 RemoveNameIRI(index int) 191 NameMapLanguages() (l []string) 192 GetNameMap(l string) (v string) 193 SetNameMap(l string, v string) 194 IsEndTime() (ok bool) 195 GetEndTime() (v time.Time) 196 SetEndTime(v time.Time) 197 IsEndTimeIRI() (ok bool) 198 GetEndTimeIRI() (v *url.URL) 199 SetEndTimeIRI(v *url.URL) 200 GeneratorLen() (l int) 201 IsGeneratorObject(index int) (ok bool) 202 GetGeneratorObject(index int) (v ObjectType) 203 AppendGeneratorObject(v ObjectType) 204 PrependGeneratorObject(v ObjectType) 205 RemoveGeneratorObject(index int) 206 IsGeneratorLink(index int) (ok bool) 207 GetGeneratorLink(index int) (v LinkType) 208 AppendGeneratorLink(v LinkType) 209 PrependGeneratorLink(v LinkType) 210 RemoveGeneratorLink(index int) 211 IsGeneratorIRI(index int) (ok bool) 212 GetGeneratorIRI(index int) (v *url.URL) 213 AppendGeneratorIRI(v *url.URL) 214 PrependGeneratorIRI(v *url.URL) 215 RemoveGeneratorIRI(index int) 216 IconLen() (l int) 217 IsIconImage(index int) (ok bool) 218 GetIconImage(index int) (v ImageType) 219 AppendIconImage(v ImageType) 220 PrependIconImage(v ImageType) 221 RemoveIconImage(index int) 222 IsIconLink(index int) (ok bool) 223 GetIconLink(index int) (v LinkType) 224 AppendIconLink(v LinkType) 225 PrependIconLink(v LinkType) 226 RemoveIconLink(index int) 227 IsIconIRI(index int) (ok bool) 228 GetIconIRI(index int) (v *url.URL) 229 AppendIconIRI(v *url.URL) 230 PrependIconIRI(v *url.URL) 231 RemoveIconIRI(index int) 232 HasId() (ok bool) 233 GetId() (v *url.URL) 234 SetId(v *url.URL) 235 HasUnknownId() (ok bool) 236 GetUnknownId() (v interface{}) 237 SetUnknownId(i interface{}) 238 ImageLen() (l int) 239 IsImageImage(index int) (ok bool) 240 GetImageImage(index int) (v ImageType) 241 AppendImageImage(v ImageType) 242 PrependImageImage(v ImageType) 243 RemoveImageImage(index int) 244 IsImageLink(index int) (ok bool) 245 GetImageLink(index int) (v LinkType) 246 AppendImageLink(v LinkType) 247 PrependImageLink(v LinkType) 248 RemoveImageLink(index int) 249 IsImageIRI(index int) (ok bool) 250 GetImageIRI(index int) (v *url.URL) 251 AppendImageIRI(v *url.URL) 252 PrependImageIRI(v *url.URL) 253 RemoveImageIRI(index int) 254 InReplyToLen() (l int) 255 IsInReplyToObject(index int) (ok bool) 256 GetInReplyToObject(index int) (v ObjectType) 257 AppendInReplyToObject(v ObjectType) 258 PrependInReplyToObject(v ObjectType) 259 RemoveInReplyToObject(index int) 260 IsInReplyToLink(index int) (ok bool) 261 GetInReplyToLink(index int) (v LinkType) 262 AppendInReplyToLink(v LinkType) 263 PrependInReplyToLink(v LinkType) 264 RemoveInReplyToLink(index int) 265 IsInReplyToIRI(index int) (ok bool) 266 GetInReplyToIRI(index int) (v *url.URL) 267 AppendInReplyToIRI(v *url.URL) 268 PrependInReplyToIRI(v *url.URL) 269 RemoveInReplyToIRI(index int) 270 LocationLen() (l int) 271 IsLocationObject(index int) (ok bool) 272 GetLocationObject(index int) (v ObjectType) 273 AppendLocationObject(v ObjectType) 274 PrependLocationObject(v ObjectType) 275 RemoveLocationObject(index int) 276 IsLocationLink(index int) (ok bool) 277 GetLocationLink(index int) (v LinkType) 278 AppendLocationLink(v LinkType) 279 PrependLocationLink(v LinkType) 280 RemoveLocationLink(index int) 281 IsLocationIRI(index int) (ok bool) 282 GetLocationIRI(index int) (v *url.URL) 283 AppendLocationIRI(v *url.URL) 284 PrependLocationIRI(v *url.URL) 285 RemoveLocationIRI(index int) 286 PreviewLen() (l int) 287 IsPreviewObject(index int) (ok bool) 288 GetPreviewObject(index int) (v ObjectType) 289 AppendPreviewObject(v ObjectType) 290 PrependPreviewObject(v ObjectType) 291 RemovePreviewObject(index int) 292 IsPreviewLink(index int) (ok bool) 293 GetPreviewLink(index int) (v LinkType) 294 AppendPreviewLink(v LinkType) 295 PrependPreviewLink(v LinkType) 296 RemovePreviewLink(index int) 297 IsPreviewIRI(index int) (ok bool) 298 GetPreviewIRI(index int) (v *url.URL) 299 AppendPreviewIRI(v *url.URL) 300 PrependPreviewIRI(v *url.URL) 301 RemovePreviewIRI(index int) 302 IsPublished() (ok bool) 303 GetPublished() (v time.Time) 304 SetPublished(v time.Time) 305 IsPublishedIRI() (ok bool) 306 GetPublishedIRI() (v *url.URL) 307 SetPublishedIRI(v *url.URL) 308 IsReplies() (ok bool) 309 GetReplies() (v CollectionType) 310 SetReplies(v CollectionType) 311 IsRepliesIRI() (ok bool) 312 GetRepliesIRI() (v *url.URL) 313 SetRepliesIRI(v *url.URL) 314 IsStartTime() (ok bool) 315 GetStartTime() (v time.Time) 316 SetStartTime(v time.Time) 317 IsStartTimeIRI() (ok bool) 318 GetStartTimeIRI() (v *url.URL) 319 SetStartTimeIRI(v *url.URL) 320 SummaryLen() (l int) 321 IsSummaryString(index int) (ok bool) 322 GetSummaryString(index int) (v string) 323 AppendSummaryString(v string) 324 PrependSummaryString(v string) 325 RemoveSummaryString(index int) 326 IsSummaryLangString(index int) (ok bool) 327 GetSummaryLangString(index int) (v string) 328 AppendSummaryLangString(v string) 329 PrependSummaryLangString(v string) 330 RemoveSummaryLangString(index int) 331 IsSummaryIRI(index int) (ok bool) 332 GetSummaryIRI(index int) (v *url.URL) 333 AppendSummaryIRI(v *url.URL) 334 PrependSummaryIRI(v *url.URL) 335 RemoveSummaryIRI(index int) 336 SummaryMapLanguages() (l []string) 337 GetSummaryMap(l string) (v string) 338 SetSummaryMap(l string, v string) 339 TagLen() (l int) 340 IsTagObject(index int) (ok bool) 341 GetTagObject(index int) (v ObjectType) 342 AppendTagObject(v ObjectType) 343 PrependTagObject(v ObjectType) 344 RemoveTagObject(index int) 345 IsTagLink(index int) (ok bool) 346 GetTagLink(index int) (v LinkType) 347 AppendTagLink(v LinkType) 348 PrependTagLink(v LinkType) 349 RemoveTagLink(index int) 350 IsTagIRI(index int) (ok bool) 351 GetTagIRI(index int) (v *url.URL) 352 AppendTagIRI(v *url.URL) 353 PrependTagIRI(v *url.URL) 354 RemoveTagIRI(index int) 355 TypeLen() (l int) 356 GetType(index int) (v interface{}) 357 AppendType(v interface{}) 358 PrependType(v interface{}) 359 RemoveType(index int) 360 IsUpdated() (ok bool) 361 GetUpdated() (v time.Time) 362 SetUpdated(v time.Time) 363 IsUpdatedIRI() (ok bool) 364 GetUpdatedIRI() (v *url.URL) 365 SetUpdatedIRI(v *url.URL) 366 UrlLen() (l int) 367 IsUrlAnyURI(index int) (ok bool) 368 GetUrlAnyURI(index int) (v *url.URL) 369 AppendUrlAnyURI(v *url.URL) 370 PrependUrlAnyURI(v *url.URL) 371 RemoveUrlAnyURI(index int) 372 IsUrlLink(index int) (ok bool) 373 GetUrlLink(index int) (v LinkType) 374 AppendUrlLink(v LinkType) 375 PrependUrlLink(v LinkType) 376 RemoveUrlLink(index int) 377 ToLen() (l int) 378 IsToObject(index int) (ok bool) 379 GetToObject(index int) (v ObjectType) 380 AppendToObject(v ObjectType) 381 PrependToObject(v ObjectType) 382 RemoveToObject(index int) 383 IsToLink(index int) (ok bool) 384 GetToLink(index int) (v LinkType) 385 AppendToLink(v LinkType) 386 PrependToLink(v LinkType) 387 RemoveToLink(index int) 388 IsToIRI(index int) (ok bool) 389 GetToIRI(index int) (v *url.URL) 390 AppendToIRI(v *url.URL) 391 PrependToIRI(v *url.URL) 392 RemoveToIRI(index int) 393 BtoLen() (l int) 394 IsBtoObject(index int) (ok bool) 395 GetBtoObject(index int) (v ObjectType) 396 AppendBtoObject(v ObjectType) 397 PrependBtoObject(v ObjectType) 398 RemoveBtoObject(index int) 399 IsBtoLink(index int) (ok bool) 400 GetBtoLink(index int) (v LinkType) 401 AppendBtoLink(v LinkType) 402 PrependBtoLink(v LinkType) 403 RemoveBtoLink(index int) 404 IsBtoIRI(index int) (ok bool) 405 GetBtoIRI(index int) (v *url.URL) 406 AppendBtoIRI(v *url.URL) 407 PrependBtoIRI(v *url.URL) 408 RemoveBtoIRI(index int) 409 CcLen() (l int) 410 IsCcObject(index int) (ok bool) 411 GetCcObject(index int) (v ObjectType) 412 AppendCcObject(v ObjectType) 413 PrependCcObject(v ObjectType) 414 RemoveCcObject(index int) 415 IsCcLink(index int) (ok bool) 416 GetCcLink(index int) (v LinkType) 417 AppendCcLink(v LinkType) 418 PrependCcLink(v LinkType) 419 RemoveCcLink(index int) 420 IsCcIRI(index int) (ok bool) 421 GetCcIRI(index int) (v *url.URL) 422 AppendCcIRI(v *url.URL) 423 PrependCcIRI(v *url.URL) 424 RemoveCcIRI(index int) 425 BccLen() (l int) 426 IsBccObject(index int) (ok bool) 427 GetBccObject(index int) (v ObjectType) 428 AppendBccObject(v ObjectType) 429 PrependBccObject(v ObjectType) 430 RemoveBccObject(index int) 431 IsBccLink(index int) (ok bool) 432 GetBccLink(index int) (v LinkType) 433 AppendBccLink(v LinkType) 434 PrependBccLink(v LinkType) 435 RemoveBccLink(index int) 436 IsBccIRI(index int) (ok bool) 437 GetBccIRI(index int) (v *url.URL) 438 AppendBccIRI(v *url.URL) 439 PrependBccIRI(v *url.URL) 440 RemoveBccIRI(index int) 441 IsMediaType() (ok bool) 442 GetMediaType() (v string) 443 SetMediaType(v string) 444 IsMediaTypeIRI() (ok bool) 445 GetMediaTypeIRI() (v *url.URL) 446 SetMediaTypeIRI(v *url.URL) 447 IsDuration() (ok bool) 448 GetDuration() (v time.Duration) 449 SetDuration(v time.Duration) 450 IsDurationIRI() (ok bool) 451 GetDurationIRI() (v *url.URL) 452 SetDurationIRI(v *url.URL) 453 IsSource() (ok bool) 454 GetSource() (v ObjectType) 455 SetSource(v ObjectType) 456 IsSourceIRI() (ok bool) 457 GetSourceIRI() (v *url.URL) 458 SetSourceIRI(v *url.URL) 459 IsInboxOrderedCollection() (ok bool) 460 GetInboxOrderedCollection() (v OrderedCollectionType) 461 SetInboxOrderedCollection(v OrderedCollectionType) 462 IsInboxAnyURI() (ok bool) 463 GetInboxAnyURI() (v *url.URL) 464 SetInboxAnyURI(v *url.URL) 465 IsOutboxOrderedCollection() (ok bool) 466 GetOutboxOrderedCollection() (v OrderedCollectionType) 467 SetOutboxOrderedCollection(v OrderedCollectionType) 468 IsOutboxAnyURI() (ok bool) 469 GetOutboxAnyURI() (v *url.URL) 470 SetOutboxAnyURI(v *url.URL) 471 IsFollowingCollection() (ok bool) 472 GetFollowingCollection() (v CollectionType) 473 SetFollowingCollection(v CollectionType) 474 IsFollowingOrderedCollection() (ok bool) 475 GetFollowingOrderedCollection() (v OrderedCollectionType) 476 SetFollowingOrderedCollection(v OrderedCollectionType) 477 IsFollowingAnyURI() (ok bool) 478 GetFollowingAnyURI() (v *url.URL) 479 SetFollowingAnyURI(v *url.URL) 480 IsFollowersCollection() (ok bool) 481 GetFollowersCollection() (v CollectionType) 482 SetFollowersCollection(v CollectionType) 483 IsFollowersOrderedCollection() (ok bool) 484 GetFollowersOrderedCollection() (v OrderedCollectionType) 485 SetFollowersOrderedCollection(v OrderedCollectionType) 486 IsFollowersAnyURI() (ok bool) 487 GetFollowersAnyURI() (v *url.URL) 488 SetFollowersAnyURI(v *url.URL) 489 IsLikedCollection() (ok bool) 490 GetLikedCollection() (v CollectionType) 491 SetLikedCollection(v CollectionType) 492 IsLikedOrderedCollection() (ok bool) 493 GetLikedOrderedCollection() (v OrderedCollectionType) 494 SetLikedOrderedCollection(v OrderedCollectionType) 495 IsLikedAnyURI() (ok bool) 496 GetLikedAnyURI() (v *url.URL) 497 SetLikedAnyURI(v *url.URL) 498 IsLikesCollection() (ok bool) 499 GetLikesCollection() (v CollectionType) 500 SetLikesCollection(v CollectionType) 501 IsLikesOrderedCollection() (ok bool) 502 GetLikesOrderedCollection() (v OrderedCollectionType) 503 SetLikesOrderedCollection(v OrderedCollectionType) 504 IsLikesAnyURI() (ok bool) 505 GetLikesAnyURI() (v *url.URL) 506 SetLikesAnyURI(v *url.URL) 507 StreamsLen() (l int) 508 GetStreams(index int) (v *url.URL) 509 AppendStreams(v *url.URL) 510 PrependStreams(v *url.URL) 511 RemoveStreams(index int) 512 HasUnknownStreams() (ok bool) 513 GetUnknownStreams() (v interface{}) 514 SetUnknownStreams(i interface{}) 515 IsPreferredUsername() (ok bool) 516 GetPreferredUsername() (v string) 517 SetPreferredUsername(v string) 518 IsPreferredUsernameIRI() (ok bool) 519 GetPreferredUsernameIRI() (v *url.URL) 520 SetPreferredUsernameIRI(v *url.URL) 521 PreferredUsernameMapLanguages() (l []string) 522 GetPreferredUsernameMap(l string) (v string) 523 SetPreferredUsernameMap(l string, v string) 524 IsEndpoints() (ok bool) 525 GetEndpoints() (v ObjectType) 526 SetEndpoints(v ObjectType) 527 IsEndpointsIRI() (ok bool) 528 GetEndpointsIRI() (v *url.URL) 529 SetEndpointsIRI(v *url.URL) 530 HasProxyUrl() (ok bool) 531 GetProxyUrl() (v *url.URL) 532 SetProxyUrl(v *url.URL) 533 HasUnknownProxyUrl() (ok bool) 534 GetUnknownProxyUrl() (v interface{}) 535 SetUnknownProxyUrl(i interface{}) 536 HasOauthAuthorizationEndpoint() (ok bool) 537 GetOauthAuthorizationEndpoint() (v *url.URL) 538 SetOauthAuthorizationEndpoint(v *url.URL) 539 HasUnknownOauthAuthorizationEndpoint() (ok bool) 540 GetUnknownOauthAuthorizationEndpoint() (v interface{}) 541 SetUnknownOauthAuthorizationEndpoint(i interface{}) 542 HasOauthTokenEndpoint() (ok bool) 543 GetOauthTokenEndpoint() (v *url.URL) 544 SetOauthTokenEndpoint(v *url.URL) 545 HasUnknownOauthTokenEndpoint() (ok bool) 546 GetUnknownOauthTokenEndpoint() (v interface{}) 547 SetUnknownOauthTokenEndpoint(i interface{}) 548 HasProvideClientKey() (ok bool) 549 GetProvideClientKey() (v *url.URL) 550 SetProvideClientKey(v *url.URL) 551 HasUnknownProvideClientKey() (ok bool) 552 GetUnknownProvideClientKey() (v interface{}) 553 SetUnknownProvideClientKey(i interface{}) 554 HasSignClientKey() (ok bool) 555 GetSignClientKey() (v *url.URL) 556 SetSignClientKey(v *url.URL) 557 HasUnknownSignClientKey() (ok bool) 558 GetUnknownSignClientKey() (v interface{}) 559 SetUnknownSignClientKey(i interface{}) 560 HasSharedInbox() (ok bool) 561 GetSharedInbox() (v *url.URL) 562 SetSharedInbox(v *url.URL) 563 HasUnknownSharedInbox() (ok bool) 564 GetUnknownSharedInbox() (v interface{}) 565 SetUnknownSharedInbox(i interface{}) 566 IsPartOfLink() (ok bool) 567 GetPartOfLink() (v LinkType) 568 SetPartOfLink(v LinkType) 569 IsPartOfCollection() (ok bool) 570 GetPartOfCollection() (v CollectionType) 571 SetPartOfCollection(v CollectionType) 572 IsPartOfIRI() (ok bool) 573 GetPartOfIRI() (v *url.URL) 574 SetPartOfIRI(v *url.URL) 575 ItemsLen() (l int) 576 IsItemsObject(index int) (ok bool) 577 GetItemsObject(index int) (v ObjectType) 578 AppendItemsObject(v ObjectType) 579 PrependItemsObject(v ObjectType) 580 RemoveItemsObject(index int) 581 IsItemsLink(index int) (ok bool) 582 GetItemsLink(index int) (v LinkType) 583 AppendItemsLink(v LinkType) 584 PrependItemsLink(v LinkType) 585 RemoveItemsLink(index int) 586 IsItemsIRI(index int) (ok bool) 587 GetItemsIRI(index int) (v *url.URL) 588 AppendItemsIRI(v *url.URL) 589 PrependItemsIRI(v *url.URL) 590 RemoveItemsIRI(index int) 591} 592 593// Used to represent ordered subsets of items from an OrderedCollection. Refer to the Activity Streams 2.0 Core for a complete description of the OrderedCollectionPage object. 594type OrderedCollectionPage struct { 595 // An unknown value. 596 unknown_ map[string]interface{} 597 // The functional 'startIndex' value could have multiple types, but only a single value 598 startIndex *startIndexIntermediateType 599 // The functional 'next' value could have multiple types, but only a single value 600 next *nextIntermediateType 601 // The functional 'prev' value could have multiple types, but only a single value 602 prev *prevIntermediateType 603 // The 'orderedItems' value could have multiple types and values 604 orderedItems []*orderedItemsIntermediateType 605 // The functional 'current' value could have multiple types, but only a single value 606 current *currentIntermediateType 607 // The functional 'first' value could have multiple types, but only a single value 608 first *firstIntermediateType 609 // The functional 'last' value could have multiple types, but only a single value 610 last *lastIntermediateType 611 // The functional 'totalItems' value could have multiple types, but only a single value 612 totalItems *totalItemsIntermediateType 613 // The functional 'altitude' value could have multiple types, but only a single value 614 altitude *altitudeIntermediateType 615 // The 'attachment' value could have multiple types and values 616 attachment []*attachmentIntermediateType 617 // The 'attributedTo' value could have multiple types and values 618 attributedTo []*attributedToIntermediateType 619 // The 'audience' value could have multiple types and values 620 audience []*audienceIntermediateType 621 // The 'content' value could have multiple types and values 622 content []*contentIntermediateType 623 // The 'contentMap' value holds language-specific values for property 'content' 624 contentMap map[string]string 625 // The 'context' value could have multiple types and values 626 context []*contextIntermediateType 627 // The 'name' value could have multiple types and values 628 name []*nameIntermediateType 629 // The 'nameMap' value holds language-specific values for property 'name' 630 nameMap map[string]string 631 // The functional 'endTime' value could have multiple types, but only a single value 632 endTime *endTimeIntermediateType 633 // The 'generator' value could have multiple types and values 634 generator []*generatorIntermediateType 635 // The 'icon' value could have multiple types and values 636 icon []*iconIntermediateType 637 // The functional 'id' value holds a single type and a single value 638 id *url.URL 639 // The 'image' value could have multiple types and values 640 image []*imageIntermediateType 641 // The 'inReplyTo' value could have multiple types and values 642 inReplyTo []*inReplyToIntermediateType 643 // The 'location' value could have multiple types and values 644 location []*locationIntermediateType 645 // The 'preview' value could have multiple types and values 646 preview []*previewIntermediateType 647 // The functional 'published' value could have multiple types, but only a single value 648 published *publishedIntermediateType 649 // The functional 'replies' value could have multiple types, but only a single value 650 replies *repliesIntermediateType 651 // The functional 'startTime' value could have multiple types, but only a single value 652 startTime *startTimeIntermediateType 653 // The 'summary' value could have multiple types and values 654 summary []*summaryIntermediateType 655 // The 'summaryMap' value holds language-specific values for property 'summary' 656 summaryMap map[string]string 657 // The 'tag' value could have multiple types and values 658 tag []*tagIntermediateType 659 // The 'type' value can hold any type and any number of values 660 typeName []interface{} 661 // The functional 'updated' value could have multiple types, but only a single value 662 updated *updatedIntermediateType 663 // The 'url' value could have multiple types and values 664 url []*urlIntermediateType 665 // The 'to' value could have multiple types and values 666 to []*toIntermediateType 667 // The 'bto' value could have multiple types and values 668 bto []*btoIntermediateType 669 // The 'cc' value could have multiple types and values 670 cc []*ccIntermediateType 671 // The 'bcc' value could have multiple types and values 672 bcc []*bccIntermediateType 673 // The functional 'mediaType' value could have multiple types, but only a single value 674 mediaType *mediaTypeIntermediateType 675 // The functional 'duration' value could have multiple types, but only a single value 676 duration *durationIntermediateType 677 // The functional 'source' value could have multiple types, but only a single value 678 source *sourceIntermediateType 679 // The functional 'inbox' value could have multiple types, but only a single value 680 inbox *inboxIntermediateType 681 // The functional 'outbox' value could have multiple types, but only a single value 682 outbox *outboxIntermediateType 683 // The functional 'following' value could have multiple types, but only a single value 684 following *followingIntermediateType 685 // The functional 'followers' value could have multiple types, but only a single value 686 followers *followersIntermediateType 687 // The functional 'liked' value could have multiple types, but only a single value 688 liked *likedIntermediateType 689 // The functional 'likes' value could have multiple types, but only a single value 690 likes *likesIntermediateType 691 // The 'streams' value holds a single type and any number of values 692 streams []*url.URL 693 // The functional 'preferredUsername' value could have multiple types, but only a single value 694 preferredUsername *preferredUsernameIntermediateType 695 // The 'preferredUsernameMap' value holds language-specific values for property 'preferredUsername' 696 preferredUsernameMap map[string]string 697 // The functional 'endpoints' value could have multiple types, but only a single value 698 endpoints *endpointsIntermediateType 699 // The functional 'proxyUrl' value holds a single type and a single value 700 proxyUrl *url.URL 701 // The functional 'oauthAuthorizationEndpoint' value holds a single type and a single value 702 oauthAuthorizationEndpoint *url.URL 703 // The functional 'oauthTokenEndpoint' value holds a single type and a single value 704 oauthTokenEndpoint *url.URL 705 // The functional 'provideClientKey' value holds a single type and a single value 706 provideClientKey *url.URL 707 // The functional 'signClientKey' value holds a single type and a single value 708 signClientKey *url.URL 709 // The functional 'sharedInbox' value holds a single type and a single value 710 sharedInbox *url.URL 711 // The functional 'partOf' value could have multiple types, but only a single value 712 partOf *partOfIntermediateType 713} 714 715// IsStartIndex determines whether the call to GetStartIndex is safe 716func (t *OrderedCollectionPage) IsStartIndex() (ok bool) { 717 return t.startIndex != nil && t.startIndex.nonNegativeInteger != nil 718 719} 720 721// GetStartIndex returns the value safely if IsStartIndex returned true 722func (t *OrderedCollectionPage) GetStartIndex() (v int64) { 723 return *t.startIndex.nonNegativeInteger 724 725} 726 727// SetStartIndex sets the value of startIndex to be of int64 type 728func (t *OrderedCollectionPage) SetStartIndex(v int64) { 729 t.startIndex = &startIndexIntermediateType{nonNegativeInteger: &v} 730 731} 732 733// IsStartIndexIRI determines whether the call to GetStartIndexIRI is safe 734func (t *OrderedCollectionPage) IsStartIndexIRI() (ok bool) { 735 return t.startIndex != nil && t.startIndex.IRI != nil 736 737} 738 739// GetStartIndexIRI returns the value safely if IsStartIndexIRI returned true 740func (t *OrderedCollectionPage) GetStartIndexIRI() (v *url.URL) { 741 return t.startIndex.IRI 742 743} 744 745// SetStartIndexIRI sets the value of startIndex to be of *url.URL type 746func (t *OrderedCollectionPage) SetStartIndexIRI(v *url.URL) { 747 t.startIndex = &startIndexIntermediateType{IRI: v} 748 749} 750 751// HasUnknownStartIndex determines whether the call to GetUnknownStartIndex is safe 752func (t *OrderedCollectionPage) HasUnknownStartIndex() (ok bool) { 753 return t.startIndex != nil && t.startIndex.unknown_ != nil 754 755} 756 757// GetUnknownStartIndex returns the unknown value for startIndex 758func (t *OrderedCollectionPage) GetUnknownStartIndex() (v interface{}) { 759 return t.startIndex.unknown_ 760 761} 762 763// SetUnknownStartIndex sets the unknown value of startIndex 764func (t *OrderedCollectionPage) SetUnknownStartIndex(i interface{}) { 765 if t.unknown_ == nil { 766 t.unknown_ = make(map[string]interface{}) 767 } 768 tmp := &startIndexIntermediateType{} 769 tmp.unknown_ = i 770 t.startIndex = tmp 771 772} 773 774// IsNextOrderedCollectionPage determines whether the call to GetNextOrderedCollectionPage is safe 775func (t *OrderedCollectionPage) IsNextOrderedCollectionPage() (ok bool) { 776 return t.next != nil && t.next.OrderedCollectionPage != nil 777 778} 779 780// GetNextOrderedCollectionPage returns the value safely if IsNextOrderedCollectionPage returned true 781func (t *OrderedCollectionPage) GetNextOrderedCollectionPage() (v OrderedCollectionPageType) { 782 return t.next.OrderedCollectionPage 783 784} 785 786// SetNextOrderedCollectionPage sets the value of next to be of OrderedCollectionPageType type 787func (t *OrderedCollectionPage) SetNextOrderedCollectionPage(v OrderedCollectionPageType) { 788 t.next = &nextIntermediateType{OrderedCollectionPage: v} 789 790} 791 792// IsNextLink determines whether the call to GetNextLink is safe 793func (t *OrderedCollectionPage) IsNextLink() (ok bool) { 794 return t.next != nil && t.next.Link != nil 795 796} 797 798// GetNextLink returns the value safely if IsNextLink returned true 799func (t *OrderedCollectionPage) GetNextLink() (v LinkType) { 800 return t.next.Link 801 802} 803 804// SetNextLink sets the value of next to be of LinkType type 805func (t *OrderedCollectionPage) SetNextLink(v LinkType) { 806 t.next = &nextIntermediateType{Link: v} 807 808} 809 810// IsNextIRI determines whether the call to GetNextIRI is safe 811func (t *OrderedCollectionPage) IsNextIRI() (ok bool) { 812 return t.next != nil && t.next.IRI != nil 813 814} 815 816// GetNextIRI returns the value safely if IsNextIRI returned true 817func (t *OrderedCollectionPage) GetNextIRI() (v *url.URL) { 818 return t.next.IRI 819 820} 821 822// SetNextIRI sets the value of next to be of *url.URL type 823func (t *OrderedCollectionPage) SetNextIRI(v *url.URL) { 824 t.next = &nextIntermediateType{IRI: v} 825 826} 827 828// HasUnknownNext determines whether the call to GetUnknownNext is safe 829func (t *OrderedCollectionPage) HasUnknownNext() (ok bool) { 830 return t.next != nil && t.next.unknown_ != nil 831 832} 833 834// GetUnknownNext returns the unknown value for next 835func (t *OrderedCollectionPage) GetUnknownNext() (v interface{}) { 836 return t.next.unknown_ 837 838} 839 840// SetUnknownNext sets the unknown value of next 841func (t *OrderedCollectionPage) SetUnknownNext(i interface{}) { 842 if t.unknown_ == nil { 843 t.unknown_ = make(map[string]interface{}) 844 } 845 tmp := &nextIntermediateType{} 846 tmp.unknown_ = i 847 t.next = tmp 848 849} 850 851// IsPrevOrderedCollectionPage determines whether the call to GetPrevOrderedCollectionPage is safe 852func (t *OrderedCollectionPage) IsPrevOrderedCollectionPage() (ok bool) { 853 return t.prev != nil && t.prev.OrderedCollectionPage != nil 854 855} 856 857// GetPrevOrderedCollectionPage returns the value safely if IsPrevOrderedCollectionPage returned true 858func (t *OrderedCollectionPage) GetPrevOrderedCollectionPage() (v OrderedCollectionPageType) { 859 return t.prev.OrderedCollectionPage 860 861} 862 863// SetPrevOrderedCollectionPage sets the value of prev to be of OrderedCollectionPageType type 864func (t *OrderedCollectionPage) SetPrevOrderedCollectionPage(v OrderedCollectionPageType) { 865 t.prev = &prevIntermediateType{OrderedCollectionPage: v} 866 867} 868 869// IsPrevLink determines whether the call to GetPrevLink is safe 870func (t *OrderedCollectionPage) IsPrevLink() (ok bool) { 871 return t.prev != nil && t.prev.Link != nil 872 873} 874 875// GetPrevLink returns the value safely if IsPrevLink returned true 876func (t *OrderedCollectionPage) GetPrevLink() (v LinkType) { 877 return t.prev.Link 878 879} 880 881// SetPrevLink sets the value of prev to be of LinkType type 882func (t *OrderedCollectionPage) SetPrevLink(v LinkType) { 883 t.prev = &prevIntermediateType{Link: v} 884 885} 886 887// IsPrevIRI determines whether the call to GetPrevIRI is safe 888func (t *OrderedCollectionPage) IsPrevIRI() (ok bool) { 889 return t.prev != nil && t.prev.IRI != nil 890 891} 892 893// GetPrevIRI returns the value safely if IsPrevIRI returned true 894func (t *OrderedCollectionPage) GetPrevIRI() (v *url.URL) { 895 return t.prev.IRI 896 897} 898 899// SetPrevIRI sets the value of prev to be of *url.URL type 900func (t *OrderedCollectionPage) SetPrevIRI(v *url.URL) { 901 t.prev = &prevIntermediateType{IRI: v} 902 903} 904 905// HasUnknownPrev determines whether the call to GetUnknownPrev is safe 906func (t *OrderedCollectionPage) HasUnknownPrev() (ok bool) { 907 return t.prev != nil && t.prev.unknown_ != nil 908 909} 910 911// GetUnknownPrev returns the unknown value for prev 912func (t *OrderedCollectionPage) GetUnknownPrev() (v interface{}) { 913 return t.prev.unknown_ 914 915} 916 917// SetUnknownPrev sets the unknown value of prev 918func (t *OrderedCollectionPage) SetUnknownPrev(i interface{}) { 919 if t.unknown_ == nil { 920 t.unknown_ = make(map[string]interface{}) 921 } 922 tmp := &prevIntermediateType{} 923 tmp.unknown_ = i 924 t.prev = tmp 925 926} 927 928// OrderedItemsLen determines the number of elements able to be used for the IsOrderedItemsObject, GetOrderedItemsObject, and RemoveOrderedItemsObject functions 929func (t *OrderedCollectionPage) OrderedItemsLen() (l int) { 930 return len(t.orderedItems) 931 932} 933 934// IsOrderedItemsObject determines whether the call to GetOrderedItemsObject is safe for the specified index 935func (t *OrderedCollectionPage) IsOrderedItemsObject(index int) (ok bool) { 936 return t.orderedItems[index].Object != nil 937 938} 939 940// GetOrderedItemsObject returns the value safely if IsOrderedItemsObject returned true for the specified index 941func (t *OrderedCollectionPage) GetOrderedItemsObject(index int) (v ObjectType) { 942 return t.orderedItems[index].Object 943 944} 945 946// AppendOrderedItemsObject adds to the back of orderedItems a ObjectType type 947func (t *OrderedCollectionPage) AppendOrderedItemsObject(v ObjectType) { 948 t.orderedItems = append(t.orderedItems, &orderedItemsIntermediateType{Object: v}) 949 950} 951 952// PrependOrderedItemsObject adds to the front of orderedItems a ObjectType type 953func (t *OrderedCollectionPage) PrependOrderedItemsObject(v ObjectType) { 954 t.orderedItems = append([]*orderedItemsIntermediateType{&orderedItemsIntermediateType{Object: v}}, t.orderedItems...) 955 956} 957 958// RemoveOrderedItemsObject deletes the value from the specified index 959func (t *OrderedCollectionPage) RemoveOrderedItemsObject(index int) { 960 copy(t.orderedItems[index:], t.orderedItems[index+1:]) 961 t.orderedItems[len(t.orderedItems)-1] = nil 962 t.orderedItems = t.orderedItems[:len(t.orderedItems)-1] 963 964} 965 966// IsOrderedItemsLink determines whether the call to GetOrderedItemsLink is safe for the specified index 967func (t *OrderedCollectionPage) IsOrderedItemsLink(index int) (ok bool) { 968 return t.orderedItems[index].Link != nil 969 970} 971 972// GetOrderedItemsLink returns the value safely if IsOrderedItemsLink returned true for the specified index 973func (t *OrderedCollectionPage) GetOrderedItemsLink(index int) (v LinkType) { 974 return t.orderedItems[index].Link 975 976} 977 978// AppendOrderedItemsLink adds to the back of orderedItems a LinkType type 979func (t *OrderedCollectionPage) AppendOrderedItemsLink(v LinkType) { 980 t.orderedItems = append(t.orderedItems, &orderedItemsIntermediateType{Link: v}) 981 982} 983 984// PrependOrderedItemsLink adds to the front of orderedItems a LinkType type 985func (t *OrderedCollectionPage) PrependOrderedItemsLink(v LinkType) { 986 t.orderedItems = append([]*orderedItemsIntermediateType{&orderedItemsIntermediateType{Link: v}}, t.orderedItems...) 987 988} 989 990// RemoveOrderedItemsLink deletes the value from the specified index 991func (t *OrderedCollectionPage) RemoveOrderedItemsLink(index int) { 992 copy(t.orderedItems[index:], t.orderedItems[index+1:]) 993 t.orderedItems[len(t.orderedItems)-1] = nil 994 t.orderedItems = t.orderedItems[:len(t.orderedItems)-1] 995 996} 997 998// IsOrderedItemsIRI determines whether the call to GetOrderedItemsIRI is safe for the specified index 999func (t *OrderedCollectionPage) IsOrderedItemsIRI(index int) (ok bool) { 1000 return t.orderedItems[index].IRI != nil 1001 1002} 1003 1004// GetOrderedItemsIRI returns the value safely if IsOrderedItemsIRI returned true for the specified index 1005func (t *OrderedCollectionPage) GetOrderedItemsIRI(index int) (v *url.URL) { 1006 return t.orderedItems[index].IRI 1007 1008} 1009 1010// AppendOrderedItemsIRI adds to the back of orderedItems a *url.URL type 1011func (t *OrderedCollectionPage) AppendOrderedItemsIRI(v *url.URL) { 1012 t.orderedItems = append(t.orderedItems, &orderedItemsIntermediateType{IRI: v}) 1013 1014} 1015 1016// PrependOrderedItemsIRI adds to the front of orderedItems a *url.URL type 1017func (t *OrderedCollectionPage) PrependOrderedItemsIRI(v *url.URL) { 1018 t.orderedItems = append([]*orderedItemsIntermediateType{&orderedItemsIntermediateType{IRI: v}}, t.orderedItems...) 1019 1020} 1021 1022// RemoveOrderedItemsIRI deletes the value from the specified index 1023func (t *OrderedCollectionPage) RemoveOrderedItemsIRI(index int) { 1024 copy(t.orderedItems[index:], t.orderedItems[index+1:]) 1025 t.orderedItems[len(t.orderedItems)-1] = nil 1026 t.orderedItems = t.orderedItems[:len(t.orderedItems)-1] 1027 1028} 1029 1030// HasUnknownOrderedItems determines whether the call to GetUnknownOrderedItems is safe 1031func (t *OrderedCollectionPage) HasUnknownOrderedItems() (ok bool) { 1032 return t.orderedItems != nil && t.orderedItems[0].unknown_ != nil 1033 1034} 1035 1036// GetUnknownOrderedItems returns the unknown value for orderedItems 1037func (t *OrderedCollectionPage) GetUnknownOrderedItems() (v interface{}) { 1038 return t.orderedItems[0].unknown_ 1039 1040} 1041 1042// SetUnknownOrderedItems sets the unknown value of orderedItems 1043func (t *OrderedCollectionPage) SetUnknownOrderedItems(i interface{}) { 1044 if t.unknown_ == nil { 1045 t.unknown_ = make(map[string]interface{}) 1046 } 1047 tmp := &orderedItemsIntermediateType{} 1048 tmp.unknown_ = i 1049 t.orderedItems = append(t.orderedItems, tmp) 1050 1051} 1052 1053// IsCurrentOrderedCollectionPage determines whether the call to GetCurrentOrderedCollectionPage is safe 1054func (t *OrderedCollectionPage) IsCurrentOrderedCollectionPage() (ok bool) { 1055 return t.current != nil && t.current.OrderedCollectionPage != nil 1056 1057} 1058 1059// GetCurrentOrderedCollectionPage returns the value safely if IsCurrentOrderedCollectionPage returned true 1060func (t *OrderedCollectionPage) GetCurrentOrderedCollectionPage() (v OrderedCollectionPageType) { 1061 return t.current.OrderedCollectionPage 1062 1063} 1064 1065// SetCurrentOrderedCollectionPage sets the value of current to be of OrderedCollectionPageType type 1066func (t *OrderedCollectionPage) SetCurrentOrderedCollectionPage(v OrderedCollectionPageType) { 1067 t.current = ¤tIntermediateType{OrderedCollectionPage: v} 1068 1069} 1070 1071// IsCurrentLink determines whether the call to GetCurrentLink is safe 1072func (t *OrderedCollectionPage) IsCurrentLink() (ok bool) { 1073 return t.current != nil && t.current.Link != nil 1074 1075} 1076 1077// GetCurrentLink returns the value safely if IsCurrentLink returned true 1078func (t *OrderedCollectionPage) GetCurrentLink() (v LinkType) { 1079 return t.current.Link 1080 1081} 1082 1083// SetCurrentLink sets the value of current to be of LinkType type 1084func (t *OrderedCollectionPage) SetCurrentLink(v LinkType) { 1085 t.current = ¤tIntermediateType{Link: v} 1086 1087} 1088 1089// IsCurrentIRI determines whether the call to GetCurrentIRI is safe 1090func (t *OrderedCollectionPage) IsCurrentIRI() (ok bool) { 1091 return t.current != nil && t.current.IRI != nil 1092 1093} 1094 1095// GetCurrentIRI returns the value safely if IsCurrentIRI returned true 1096func (t *OrderedCollectionPage) GetCurrentIRI() (v *url.URL) { 1097 return t.current.IRI 1098 1099} 1100 1101// SetCurrentIRI sets the value of current to be of *url.URL type 1102func (t *OrderedCollectionPage) SetCurrentIRI(v *url.URL) { 1103 t.current = ¤tIntermediateType{IRI: v} 1104 1105} 1106 1107// HasUnknownCurrent determines whether the call to GetUnknownCurrent is safe 1108func (t *OrderedCollectionPage) HasUnknownCurrent() (ok bool) { 1109 return t.current != nil && t.current.unknown_ != nil 1110 1111} 1112 1113// GetUnknownCurrent returns the unknown value for current 1114func (t *OrderedCollectionPage) GetUnknownCurrent() (v interface{}) { 1115 return t.current.unknown_ 1116 1117} 1118 1119// SetUnknownCurrent sets the unknown value of current 1120func (t *OrderedCollectionPage) SetUnknownCurrent(i interface{}) { 1121 if t.unknown_ == nil { 1122 t.unknown_ = make(map[string]interface{}) 1123 } 1124 tmp := ¤tIntermediateType{} 1125 tmp.unknown_ = i 1126 t.current = tmp 1127 1128} 1129 1130// IsFirstOrderedCollectionPage determines whether the call to GetFirstOrderedCollectionPage is safe 1131func (t *OrderedCollectionPage) IsFirstOrderedCollectionPage() (ok bool) { 1132 return t.first != nil && t.first.OrderedCollectionPage != nil 1133 1134} 1135 1136// GetFirstOrderedCollectionPage returns the value safely if IsFirstOrderedCollectionPage returned true 1137func (t *OrderedCollectionPage) GetFirstOrderedCollectionPage() (v OrderedCollectionPageType) { 1138 return t.first.OrderedCollectionPage 1139 1140} 1141 1142// SetFirstOrderedCollectionPage sets the value of first to be of OrderedCollectionPageType type 1143func (t *OrderedCollectionPage) SetFirstOrderedCollectionPage(v OrderedCollectionPageType) { 1144 t.first = &firstIntermediateType{OrderedCollectionPage: v} 1145 1146} 1147 1148// IsFirstLink determines whether the call to GetFirstLink is safe 1149func (t *OrderedCollectionPage) IsFirstLink() (ok bool) { 1150 return t.first != nil && t.first.Link != nil 1151 1152} 1153 1154// GetFirstLink returns the value safely if IsFirstLink returned true 1155func (t *OrderedCollectionPage) GetFirstLink() (v LinkType) { 1156 return t.first.Link 1157 1158} 1159 1160// SetFirstLink sets the value of first to be of LinkType type 1161func (t *OrderedCollectionPage) SetFirstLink(v LinkType) { 1162 t.first = &firstIntermediateType{Link: v} 1163 1164} 1165 1166// IsFirstIRI determines whether the call to GetFirstIRI is safe 1167func (t *OrderedCollectionPage) IsFirstIRI() (ok bool) { 1168 return t.first != nil && t.first.IRI != nil 1169 1170} 1171 1172// GetFirstIRI returns the value safely if IsFirstIRI returned true 1173func (t *OrderedCollectionPage) GetFirstIRI() (v *url.URL) { 1174 return t.first.IRI 1175 1176} 1177 1178// SetFirstIRI sets the value of first to be of *url.URL type 1179func (t *OrderedCollectionPage) SetFirstIRI(v *url.URL) { 1180 t.first = &firstIntermediateType{IRI: v} 1181 1182} 1183 1184// HasUnknownFirst determines whether the call to GetUnknownFirst is safe 1185func (t *OrderedCollectionPage) HasUnknownFirst() (ok bool) { 1186 return t.first != nil && t.first.unknown_ != nil 1187 1188} 1189 1190// GetUnknownFirst returns the unknown value for first 1191func (t *OrderedCollectionPage) GetUnknownFirst() (v interface{}) { 1192 return t.first.unknown_ 1193 1194} 1195 1196// SetUnknownFirst sets the unknown value of first 1197func (t *OrderedCollectionPage) SetUnknownFirst(i interface{}) { 1198 if t.unknown_ == nil { 1199 t.unknown_ = make(map[string]interface{}) 1200 } 1201 tmp := &firstIntermediateType{} 1202 tmp.unknown_ = i 1203 t.first = tmp 1204 1205} 1206 1207// IsLastOrderedCollectionPage determines whether the call to GetLastOrderedCollectionPage is safe 1208func (t *OrderedCollectionPage) IsLastOrderedCollectionPage() (ok bool) { 1209 return t.last != nil && t.last.OrderedCollectionPage != nil 1210 1211} 1212 1213// GetLastOrderedCollectionPage returns the value safely if IsLastOrderedCollectionPage returned true 1214func (t *OrderedCollectionPage) GetLastOrderedCollectionPage() (v OrderedCollectionPageType) { 1215 return t.last.OrderedCollectionPage 1216 1217} 1218 1219// SetLastOrderedCollectionPage sets the value of last to be of OrderedCollectionPageType type 1220func (t *OrderedCollectionPage) SetLastOrderedCollectionPage(v OrderedCollectionPageType) { 1221 t.last = &lastIntermediateType{OrderedCollectionPage: v} 1222 1223} 1224 1225// IsLastLink determines whether the call to GetLastLink is safe 1226func (t *OrderedCollectionPage) IsLastLink() (ok bool) { 1227 return t.last != nil && t.last.Link != nil 1228 1229} 1230 1231// GetLastLink returns the value safely if IsLastLink returned true 1232func (t *OrderedCollectionPage) GetLastLink() (v LinkType) { 1233 return t.last.Link 1234 1235} 1236 1237// SetLastLink sets the value of last to be of LinkType type 1238func (t *OrderedCollectionPage) SetLastLink(v LinkType) { 1239 t.last = &lastIntermediateType{Link: v} 1240 1241} 1242 1243// IsLastIRI determines whether the call to GetLastIRI is safe 1244func (t *OrderedCollectionPage) IsLastIRI() (ok bool) { 1245 return t.last != nil && t.last.IRI != nil 1246 1247} 1248 1249// GetLastIRI returns the value safely if IsLastIRI returned true 1250func (t *OrderedCollectionPage) GetLastIRI() (v *url.URL) { 1251 return t.last.IRI 1252 1253} 1254 1255// SetLastIRI sets the value of last to be of *url.URL type 1256func (t *OrderedCollectionPage) SetLastIRI(v *url.URL) { 1257 t.last = &lastIntermediateType{IRI: v} 1258 1259} 1260 1261// HasUnknownLast determines whether the call to GetUnknownLast is safe 1262func (t *OrderedCollectionPage) HasUnknownLast() (ok bool) { 1263 return t.last != nil && t.last.unknown_ != nil 1264 1265} 1266 1267// GetUnknownLast returns the unknown value for last 1268func (t *OrderedCollectionPage) GetUnknownLast() (v interface{}) { 1269 return t.last.unknown_ 1270 1271} 1272 1273// SetUnknownLast sets the unknown value of last 1274func (t *OrderedCollectionPage) SetUnknownLast(i interface{}) { 1275 if t.unknown_ == nil { 1276 t.unknown_ = make(map[string]interface{}) 1277 } 1278 tmp := &lastIntermediateType{} 1279 tmp.unknown_ = i 1280 t.last = tmp 1281 1282} 1283 1284// IsTotalItems determines whether the call to GetTotalItems is safe 1285func (t *OrderedCollectionPage) IsTotalItems() (ok bool) { 1286 return t.totalItems != nil && t.totalItems.nonNegativeInteger != nil 1287 1288} 1289 1290// GetTotalItems returns the value safely if IsTotalItems returned true 1291func (t *OrderedCollectionPage) GetTotalItems() (v int64) { 1292 return *t.totalItems.nonNegativeInteger 1293 1294} 1295 1296// SetTotalItems sets the value of totalItems to be of int64 type 1297func (t *OrderedCollectionPage) SetTotalItems(v int64) { 1298 t.totalItems = &totalItemsIntermediateType{nonNegativeInteger: &v} 1299 1300} 1301 1302// IsTotalItemsIRI determines whether the call to GetTotalItemsIRI is safe 1303func (t *OrderedCollectionPage) IsTotalItemsIRI() (ok bool) { 1304 return t.totalItems != nil && t.totalItems.IRI != nil 1305 1306} 1307 1308// GetTotalItemsIRI returns the value safely if IsTotalItemsIRI returned true 1309func (t *OrderedCollectionPage) GetTotalItemsIRI() (v *url.URL) { 1310 return t.totalItems.IRI 1311 1312} 1313 1314// SetTotalItemsIRI sets the value of totalItems to be of *url.URL type 1315func (t *OrderedCollectionPage) SetTotalItemsIRI(v *url.URL) { 1316 t.totalItems = &totalItemsIntermediateType{IRI: v} 1317 1318} 1319 1320// HasUnknownTotalItems determines whether the call to GetUnknownTotalItems is safe 1321func (t *OrderedCollectionPage) HasUnknownTotalItems() (ok bool) { 1322 return t.totalItems != nil && t.totalItems.unknown_ != nil 1323 1324} 1325 1326// GetUnknownTotalItems returns the unknown value for totalItems 1327func (t *OrderedCollectionPage) GetUnknownTotalItems() (v interface{}) { 1328 return t.totalItems.unknown_ 1329 1330} 1331 1332// SetUnknownTotalItems sets the unknown value of totalItems 1333func (t *OrderedCollectionPage) SetUnknownTotalItems(i interface{}) { 1334 if t.unknown_ == nil { 1335 t.unknown_ = make(map[string]interface{}) 1336 } 1337 tmp := &totalItemsIntermediateType{} 1338 tmp.unknown_ = i 1339 t.totalItems = tmp 1340 1341} 1342 1343// IsAltitude determines whether the call to GetAltitude is safe 1344func (t *OrderedCollectionPage) IsAltitude() (ok bool) { 1345 return t.altitude != nil && t.altitude.float != nil 1346 1347} 1348 1349// GetAltitude returns the value safely if IsAltitude returned true 1350func (t *OrderedCollectionPage) GetAltitude() (v float64) { 1351 return *t.altitude.float 1352 1353} 1354 1355// SetAltitude sets the value of altitude to be of float64 type 1356func (t *OrderedCollectionPage) SetAltitude(v float64) { 1357 t.altitude = &altitudeIntermediateType{float: &v} 1358 1359} 1360 1361// IsAltitudeIRI determines whether the call to GetAltitudeIRI is safe 1362func (t *OrderedCollectionPage) IsAltitudeIRI() (ok bool) { 1363 return t.altitude != nil && t.altitude.IRI != nil 1364 1365} 1366 1367// GetAltitudeIRI returns the value safely if IsAltitudeIRI returned true 1368func (t *OrderedCollectionPage) GetAltitudeIRI() (v *url.URL) { 1369 return t.altitude.IRI 1370 1371} 1372 1373// SetAltitudeIRI sets the value of altitude to be of *url.URL type 1374func (t *OrderedCollectionPage) SetAltitudeIRI(v *url.URL) { 1375 t.altitude = &altitudeIntermediateType{IRI: v} 1376 1377} 1378 1379// HasUnknownAltitude determines whether the call to GetUnknownAltitude is safe 1380func (t *OrderedCollectionPage) HasUnknownAltitude() (ok bool) { 1381 return t.altitude != nil && t.altitude.unknown_ != nil 1382 1383} 1384 1385// GetUnknownAltitude returns the unknown value for altitude 1386func (t *OrderedCollectionPage) GetUnknownAltitude() (v interface{}) { 1387 return t.altitude.unknown_ 1388 1389} 1390 1391// SetUnknownAltitude sets the unknown value of altitude 1392func (t *OrderedCollectionPage) SetUnknownAltitude(i interface{}) { 1393 if t.unknown_ == nil { 1394 t.unknown_ = make(map[string]interface{}) 1395 } 1396 tmp := &altitudeIntermediateType{} 1397 tmp.unknown_ = i 1398 t.altitude = tmp 1399 1400} 1401 1402// AttachmentLen determines the number of elements able to be used for the IsAttachmentObject, GetAttachmentObject, and RemoveAttachmentObject functions 1403func (t *OrderedCollectionPage) AttachmentLen() (l int) { 1404 return len(t.attachment) 1405 1406} 1407 1408// IsAttachmentObject determines whether the call to GetAttachmentObject is safe for the specified index 1409func (t *OrderedCollectionPage) IsAttachmentObject(index int) (ok bool) { 1410 return t.attachment[index].Object != nil 1411 1412} 1413 1414// GetAttachmentObject returns the value safely if IsAttachmentObject returned true for the specified index 1415func (t *OrderedCollectionPage) GetAttachmentObject(index int) (v ObjectType) { 1416 return t.attachment[index].Object 1417 1418} 1419 1420// AppendAttachmentObject adds to the back of attachment a ObjectType type 1421func (t *OrderedCollectionPage) AppendAttachmentObject(v ObjectType) { 1422 t.attachment = append(t.attachment, &attachmentIntermediateType{Object: v}) 1423 1424} 1425 1426// PrependAttachmentObject adds to the front of attachment a ObjectType type 1427func (t *OrderedCollectionPage) PrependAttachmentObject(v ObjectType) { 1428 t.attachment = append([]*attachmentIntermediateType{&attachmentIntermediateType{Object: v}}, t.attachment...) 1429 1430} 1431 1432// RemoveAttachmentObject deletes the value from the specified index 1433func (t *OrderedCollectionPage) RemoveAttachmentObject(index int) { 1434 copy(t.attachment[index:], t.attachment[index+1:]) 1435 t.attachment[len(t.attachment)-1] = nil 1436 t.attachment = t.attachment[:len(t.attachment)-1] 1437 1438} 1439 1440// IsAttachmentLink determines whether the call to GetAttachmentLink is safe for the specified index 1441func (t *OrderedCollectionPage) IsAttachmentLink(index int) (ok bool) { 1442 return t.attachment[index].Link != nil 1443 1444} 1445 1446// GetAttachmentLink returns the value safely if IsAttachmentLink returned true for the specified index 1447func (t *OrderedCollectionPage) GetAttachmentLink(index int) (v LinkType) { 1448 return t.attachment[index].Link 1449 1450} 1451 1452// AppendAttachmentLink adds to the back of attachment a LinkType type 1453func (t *OrderedCollectionPage) AppendAttachmentLink(v LinkType) { 1454 t.attachment = append(t.attachment, &attachmentIntermediateType{Link: v}) 1455 1456} 1457 1458// PrependAttachmentLink adds to the front of attachment a LinkType type 1459func (t *OrderedCollectionPage) PrependAttachmentLink(v LinkType) { 1460 t.attachment = append([]*attachmentIntermediateType{&attachmentIntermediateType{Link: v}}, t.attachment...) 1461 1462} 1463 1464// RemoveAttachmentLink deletes the value from the specified index 1465func (t *OrderedCollectionPage) RemoveAttachmentLink(index int) { 1466 copy(t.attachment[index:], t.attachment[index+1:]) 1467 t.attachment[len(t.attachment)-1] = nil 1468 t.attachment = t.attachment[:len(t.attachment)-1] 1469 1470} 1471 1472// IsAttachmentIRI determines whether the call to GetAttachmentIRI is safe for the specified index 1473func (t *OrderedCollectionPage) IsAttachmentIRI(index int) (ok bool) { 1474 return t.attachment[index].IRI != nil 1475 1476} 1477 1478// GetAttachmentIRI returns the value safely if IsAttachmentIRI returned true for the specified index 1479func (t *OrderedCollectionPage) GetAttachmentIRI(index int) (v *url.URL) { 1480 return t.attachment[index].IRI 1481 1482} 1483 1484// AppendAttachmentIRI adds to the back of attachment a *url.URL type 1485func (t *OrderedCollectionPage) AppendAttachmentIRI(v *url.URL) { 1486 t.attachment = append(t.attachment, &attachmentIntermediateType{IRI: v}) 1487 1488} 1489 1490// PrependAttachmentIRI adds to the front of attachment a *url.URL type 1491func (t *OrderedCollectionPage) PrependAttachmentIRI(v *url.URL) { 1492 t.attachment = append([]*attachmentIntermediateType{&attachmentIntermediateType{IRI: v}}, t.attachment...) 1493 1494} 1495 1496// RemoveAttachmentIRI deletes the value from the specified index 1497func (t *OrderedCollectionPage) RemoveAttachmentIRI(index int) { 1498 copy(t.attachment[index:], t.attachment[index+1:]) 1499 t.attachment[len(t.attachment)-1] = nil 1500 t.attachment = t.attachment[:len(t.attachment)-1] 1501 1502} 1503 1504// HasUnknownAttachment determines whether the call to GetUnknownAttachment is safe 1505func (t *OrderedCollectionPage) HasUnknownAttachment() (ok bool) { 1506 return t.attachment != nil && t.attachment[0].unknown_ != nil 1507 1508} 1509 1510// GetUnknownAttachment returns the unknown value for attachment 1511func (t *OrderedCollectionPage) GetUnknownAttachment() (v interface{}) { 1512 return t.attachment[0].unknown_ 1513 1514} 1515 1516// SetUnknownAttachment sets the unknown value of attachment 1517func (t *OrderedCollectionPage) SetUnknownAttachment(i interface{}) { 1518 if t.unknown_ == nil { 1519 t.unknown_ = make(map[string]interface{}) 1520 } 1521 tmp := &attachmentIntermediateType{} 1522 tmp.unknown_ = i 1523 t.attachment = append(t.attachment, tmp) 1524 1525} 1526 1527// AttributedToLen determines the number of elements able to be used for the IsAttributedToObject, GetAttributedToObject, and RemoveAttributedToObject functions 1528func (t *OrderedCollectionPage) AttributedToLen() (l int) { 1529 return len(t.attributedTo) 1530 1531} 1532 1533// IsAttributedToObject determines whether the call to GetAttributedToObject is safe for the specified index 1534func (t *OrderedCollectionPage) IsAttributedToObject(index int) (ok bool) { 1535 return t.attributedTo[index].Object != nil 1536 1537} 1538 1539// GetAttributedToObject returns the value safely if IsAttributedToObject returned true for the specified index 1540func (t *OrderedCollectionPage) GetAttributedToObject(index int) (v ObjectType) { 1541 return t.attributedTo[index].Object 1542 1543} 1544 1545// AppendAttributedToObject adds to the back of attributedTo a ObjectType type 1546func (t *OrderedCollectionPage) AppendAttributedToObject(v ObjectType) { 1547 t.attributedTo = append(t.attributedTo, &attributedToIntermediateType{Object: v}) 1548 1549} 1550 1551// PrependAttributedToObject adds to the front of attributedTo a ObjectType type 1552func (t *OrderedCollectionPage) PrependAttributedToObject(v ObjectType) { 1553 t.attributedTo = append([]*attributedToIntermediateType{&attributedToIntermediateType{Object: v}}, t.attributedTo...) 1554 1555} 1556 1557// RemoveAttributedToObject deletes the value from the specified index 1558func (t *OrderedCollectionPage) RemoveAttributedToObject(index int) { 1559 copy(t.attributedTo[index:], t.attributedTo[index+1:]) 1560 t.attributedTo[len(t.attributedTo)-1] = nil 1561 t.attributedTo = t.attributedTo[:len(t.attributedTo)-1] 1562 1563} 1564 1565// IsAttributedToLink determines whether the call to GetAttributedToLink is safe for the specified index 1566func (t *OrderedCollectionPage) IsAttributedToLink(index int) (ok bool) { 1567 return t.attributedTo[index].Link != nil 1568 1569} 1570 1571// GetAttributedToLink returns the value safely if IsAttributedToLink returned true for the specified index 1572func (t *OrderedCollectionPage) GetAttributedToLink(index int) (v LinkType) { 1573 return t.attributedTo[index].Link 1574 1575} 1576 1577// AppendAttributedToLink adds to the back of attributedTo a LinkType type 1578func (t *OrderedCollectionPage) AppendAttributedToLink(v LinkType) { 1579 t.attributedTo = append(t.attributedTo, &attributedToIntermediateType{Link: v}) 1580 1581} 1582 1583// PrependAttributedToLink adds to the front of attributedTo a LinkType type 1584func (t *OrderedCollectionPage) PrependAttributedToLink(v LinkType) { 1585 t.attributedTo = append([]*attributedToIntermediateType{&attributedToIntermediateType{Link: v}}, t.attributedTo...) 1586 1587} 1588 1589// RemoveAttributedToLink deletes the value from the specified index 1590func (t *OrderedCollectionPage) RemoveAttributedToLink(index int) { 1591 copy(t.attributedTo[index:], t.attributedTo[index+1:]) 1592 t.attributedTo[len(t.attributedTo)-1] = nil 1593 t.attributedTo = t.attributedTo[:len(t.attributedTo)-1] 1594 1595} 1596 1597// IsAttributedToIRI determines whether the call to GetAttributedToIRI is safe for the specified index 1598func (t *OrderedCollectionPage) IsAttributedToIRI(index int) (ok bool) { 1599 return t.attributedTo[index].IRI != nil 1600 1601} 1602 1603// GetAttributedToIRI returns the value safely if IsAttributedToIRI returned true for the specified index 1604func (t *OrderedCollectionPage) GetAttributedToIRI(index int) (v *url.URL) { 1605 return t.attributedTo[index].IRI 1606 1607} 1608 1609// AppendAttributedToIRI adds to the back of attributedTo a *url.URL type 1610func (t *OrderedCollectionPage) AppendAttributedToIRI(v *url.URL) { 1611 t.attributedTo = append(t.attributedTo, &attributedToIntermediateType{IRI: v}) 1612 1613} 1614 1615// PrependAttributedToIRI adds to the front of attributedTo a *url.URL type 1616func (t *OrderedCollectionPage) PrependAttributedToIRI(v *url.URL) { 1617 t.attributedTo = append([]*attributedToIntermediateType{&attributedToIntermediateType{IRI: v}}, t.attributedTo...) 1618 1619} 1620 1621// RemoveAttributedToIRI deletes the value from the specified index 1622func (t *OrderedCollectionPage) RemoveAttributedToIRI(index int) { 1623 copy(t.attributedTo[index:], t.attributedTo[index+1:]) 1624 t.attributedTo[len(t.attributedTo)-1] = nil 1625 t.attributedTo = t.attributedTo[:len(t.attributedTo)-1] 1626 1627} 1628 1629// HasUnknownAttributedTo determines whether the call to GetUnknownAttributedTo is safe 1630func (t *OrderedCollectionPage) HasUnknownAttributedTo() (ok bool) { 1631 return t.attributedTo != nil && t.attributedTo[0].unknown_ != nil 1632 1633} 1634 1635// GetUnknownAttributedTo returns the unknown value for attributedTo 1636func (t *OrderedCollectionPage) GetUnknownAttributedTo() (v interface{}) { 1637 return t.attributedTo[0].unknown_ 1638 1639} 1640 1641// SetUnknownAttributedTo sets the unknown value of attributedTo 1642func (t *OrderedCollectionPage) SetUnknownAttributedTo(i interface{}) { 1643 if t.unknown_ == nil { 1644 t.unknown_ = make(map[string]interface{}) 1645 } 1646 tmp := &attributedToIntermediateType{} 1647 tmp.unknown_ = i 1648 t.attributedTo = append(t.attributedTo, tmp) 1649 1650} 1651 1652// AudienceLen determines the number of elements able to be used for the IsAudienceObject, GetAudienceObject, and RemoveAudienceObject functions 1653func (t *OrderedCollectionPage) AudienceLen() (l int) { 1654 return len(t.audience) 1655 1656} 1657 1658// IsAudienceObject determines whether the call to GetAudienceObject is safe for the specified index 1659func (t *OrderedCollectionPage) IsAudienceObject(index int) (ok bool) { 1660 return t.audience[index].Object != nil 1661 1662} 1663 1664// GetAudienceObject returns the value safely if IsAudienceObject returned true for the specified index 1665func (t *OrderedCollectionPage) GetAudienceObject(index int) (v ObjectType) { 1666 return t.audience[index].Object 1667 1668} 1669 1670// AppendAudienceObject adds to the back of audience a ObjectType type 1671func (t *OrderedCollectionPage) AppendAudienceObject(v ObjectType) { 1672 t.audience = append(t.audience, &audienceIntermediateType{Object: v}) 1673 1674} 1675 1676// PrependAudienceObject adds to the front of audience a ObjectType type 1677func (t *OrderedCollectionPage) PrependAudienceObject(v ObjectType) { 1678 t.audience = append([]*audienceIntermediateType{&audienceIntermediateType{Object: v}}, t.audience...) 1679 1680} 1681 1682// RemoveAudienceObject deletes the value from the specified index 1683func (t *OrderedCollectionPage) RemoveAudienceObject(index int) { 1684 copy(t.audience[index:], t.audience[index+1:]) 1685 t.audience[len(t.audience)-1] = nil 1686 t.audience = t.audience[:len(t.audience)-1] 1687 1688} 1689 1690// IsAudienceLink determines whether the call to GetAudienceLink is safe for the specified index 1691func (t *OrderedCollectionPage) IsAudienceLink(index int) (ok bool) { 1692 return t.audience[index].Link != nil 1693 1694} 1695 1696// GetAudienceLink returns the value safely if IsAudienceLink returned true for the specified index 1697func (t *OrderedCollectionPage) GetAudienceLink(index int) (v LinkType) { 1698 return t.audience[index].Link 1699 1700} 1701 1702// AppendAudienceLink adds to the back of audience a LinkType type 1703func (t *OrderedCollectionPage) AppendAudienceLink(v LinkType) { 1704 t.audience = append(t.audience, &audienceIntermediateType{Link: v}) 1705 1706} 1707 1708// PrependAudienceLink adds to the front of audience a LinkType type 1709func (t *OrderedCollectionPage) PrependAudienceLink(v LinkType) { 1710 t.audience = append([]*audienceIntermediateType{&audienceIntermediateType{Link: v}}, t.audience...) 1711 1712} 1713 1714// RemoveAudienceLink deletes the value from the specified index 1715func (t *OrderedCollectionPage) RemoveAudienceLink(index int) { 1716 copy(t.audience[index:], t.audience[index+1:]) 1717 t.audience[len(t.audience)-1] = nil 1718 t.audience = t.audience[:len(t.audience)-1] 1719 1720} 1721 1722// IsAudienceIRI determines whether the call to GetAudienceIRI is safe for the specified index 1723func (t *OrderedCollectionPage) IsAudienceIRI(index int) (ok bool) { 1724 return t.audience[index].IRI != nil 1725 1726} 1727 1728// GetAudienceIRI returns the value safely if IsAudienceIRI returned true for the specified index 1729func (t *OrderedCollectionPage) GetAudienceIRI(index int) (v *url.URL) { 1730 return t.audience[index].IRI 1731 1732} 1733 1734// AppendAudienceIRI adds to the back of audience a *url.URL type 1735func (t *OrderedCollectionPage) AppendAudienceIRI(v *url.URL) { 1736 t.audience = append(t.audience, &audienceIntermediateType{IRI: v}) 1737 1738} 1739 1740// PrependAudienceIRI adds to the front of audience a *url.URL type 1741func (t *OrderedCollectionPage) PrependAudienceIRI(v *url.URL) { 1742 t.audience = append([]*audienceIntermediateType{&audienceIntermediateType{IRI: v}}, t.audience...) 1743 1744} 1745 1746// RemoveAudienceIRI deletes the value from the specified index 1747func (t *OrderedCollectionPage) RemoveAudienceIRI(index int) { 1748 copy(t.audience[index:], t.audience[index+1:]) 1749 t.audience[len(t.audience)-1] = nil 1750 t.audience = t.audience[:len(t.audience)-1] 1751 1752} 1753 1754// HasUnknownAudience determines whether the call to GetUnknownAudience is safe 1755func (t *OrderedCollectionPage) HasUnknownAudience() (ok bool) { 1756 return t.audience != nil && t.audience[0].unknown_ != nil 1757 1758} 1759 1760// GetUnknownAudience returns the unknown value for audience 1761func (t *OrderedCollectionPage) GetUnknownAudience() (v interface{}) { 1762 return t.audience[0].unknown_ 1763 1764} 1765 1766// SetUnknownAudience sets the unknown value of audience 1767func (t *OrderedCollectionPage) SetUnknownAudience(i interface{}) { 1768 if t.unknown_ == nil { 1769 t.unknown_ = make(map[string]interface{}) 1770 } 1771 tmp := &audienceIntermediateType{} 1772 tmp.unknown_ = i 1773 t.audience = append(t.audience, tmp) 1774 1775} 1776 1777// ContentLen determines the number of elements able to be used for the IsContentString, GetContentString, and RemoveContentString functions 1778func (t *OrderedCollectionPage) ContentLen() (l int) { 1779 return len(t.content) 1780 1781} 1782 1783// IsContentString determines whether the call to GetContentString is safe for the specified index 1784func (t *OrderedCollectionPage) IsContentString(index int) (ok bool) { 1785 return t.content[index].stringName != nil 1786 1787} 1788 1789// GetContentString returns the value safely if IsContentString returned true for the specified index 1790func (t *OrderedCollectionPage) GetContentString(index int) (v string) { 1791 return *t.content[index].stringName 1792 1793} 1794 1795// AppendContentString adds to the back of content a string type 1796func (t *OrderedCollectionPage) AppendContentString(v string) { 1797 t.content = append(t.content, &contentIntermediateType{stringName: &v}) 1798 1799} 1800 1801// PrependContentString adds to the front of content a string type 1802func (t *OrderedCollectionPage) PrependContentString(v string) { 1803 t.content = append([]*contentIntermediateType{&contentIntermediateType{stringName: &v}}, t.content...) 1804 1805} 1806 1807// RemoveContentString deletes the value from the specified index 1808func (t *OrderedCollectionPage) RemoveContentString(index int) { 1809 copy(t.content[index:], t.content[index+1:]) 1810 t.content[len(t.content)-1] = nil 1811 t.content = t.content[:len(t.content)-1] 1812 1813} 1814 1815// IsContentLangString determines whether the call to GetContentLangString is safe for the specified index 1816func (t *OrderedCollectionPage) IsContentLangString(index int) (ok bool) { 1817 return t.content[index].langString != nil 1818 1819} 1820 1821// GetContentLangString returns the value safely if IsContentLangString returned true for the specified index 1822func (t *OrderedCollectionPage) GetContentLangString(index int) (v string) { 1823 return *t.content[index].langString 1824 1825} 1826 1827// AppendContentLangString adds to the back of content a string type 1828func (t *OrderedCollectionPage) AppendContentLangString(v string) { 1829 t.content = append(t.content, &contentIntermediateType{langString: &v}) 1830 1831} 1832 1833// PrependContentLangString adds to the front of content a string type 1834func (t *OrderedCollectionPage) PrependContentLangString(v string) { 1835 t.content = append([]*contentIntermediateType{&contentIntermediateType{langString: &v}}, t.content...) 1836 1837} 1838 1839// RemoveContentLangString deletes the value from the specified index 1840func (t *OrderedCollectionPage) RemoveContentLangString(index int) { 1841 copy(t.content[index:], t.content[index+1:]) 1842 t.content[len(t.content)-1] = nil 1843 t.content = t.content[:len(t.content)-1] 1844 1845} 1846 1847// IsContentIRI determines whether the call to GetContentIRI is safe for the specified index 1848func (t *OrderedCollectionPage) IsContentIRI(index int) (ok bool) { 1849 return t.content[index].IRI != nil 1850 1851} 1852 1853// GetContentIRI returns the value safely if IsContentIRI returned true for the specified index 1854func (t *OrderedCollectionPage) GetContentIRI(index int) (v *url.URL) { 1855 return t.content[index].IRI 1856 1857} 1858 1859// AppendContentIRI adds to the back of content a *url.URL type 1860func (t *OrderedCollectionPage) AppendContentIRI(v *url.URL) { 1861 t.content = append(t.content, &contentIntermediateType{IRI: v}) 1862 1863} 1864 1865// PrependContentIRI adds to the front of content a *url.URL type 1866func (t *OrderedCollectionPage) PrependContentIRI(v *url.URL) { 1867 t.content = append([]*contentIntermediateType{&contentIntermediateType{IRI: v}}, t.content...) 1868 1869} 1870 1871// RemoveContentIRI deletes the value from the specified index 1872func (t *OrderedCollectionPage) RemoveContentIRI(index int) { 1873 copy(t.content[index:], t.content[index+1:]) 1874 t.content[len(t.content)-1] = nil 1875 t.content = t.content[:len(t.content)-1] 1876 1877} 1878 1879// HasUnknownContent determines whether the call to GetUnknownContent is safe 1880func (t *OrderedCollectionPage) HasUnknownContent() (ok bool) { 1881 return t.content != nil && t.content[0].unknown_ != nil 1882 1883} 1884 1885// GetUnknownContent returns the unknown value for content 1886func (t *OrderedCollectionPage) GetUnknownContent() (v interface{}) { 1887 return t.content[0].unknown_ 1888 1889} 1890 1891// SetUnknownContent sets the unknown value of content 1892func (t *OrderedCollectionPage) SetUnknownContent(i interface{}) { 1893 if t.unknown_ == nil { 1894 t.unknown_ = make(map[string]interface{}) 1895 } 1896 tmp := &contentIntermediateType{} 1897 tmp.unknown_ = i 1898 t.content = append(t.content, tmp) 1899 1900} 1901 1902// ContentMapLanguages returns all languages for this property's language mapping, or nil if there are none. 1903func (t *OrderedCollectionPage) ContentMapLanguages() (l []string) { 1904 if t.contentMap == nil || len(t.contentMap) == 0 { 1905 return nil 1906 } 1907 for k := range t.contentMap { 1908 l = append(l, k) 1909 } 1910 return 1911 1912} 1913 1914// GetContentMap retrieves the value of the property for the specified language, or an empty string if it does not exist 1915func (t *OrderedCollectionPage) GetContentMap(l string) (v string) { 1916 if t.contentMap == nil { 1917 return "" 1918 } 1919 ok := false 1920 v, ok = t.contentMap[l] 1921 if !ok { 1922 return "" 1923 } 1924 return v 1925 1926} 1927 1928// SetContentMap sets the value of the property for the specified language 1929func (t *OrderedCollectionPage) SetContentMap(l string, v string) { 1930 if t.contentMap == nil { 1931 t.contentMap = make(map[string]string) 1932 } 1933 t.contentMap[l] = v 1934 1935} 1936 1937// ContextLen determines the number of elements able to be used for the IsContextObject, GetContextObject, and RemoveContextObject functions 1938func (t *OrderedCollectionPage) ContextLen() (l int) { 1939 return len(t.context) 1940 1941} 1942 1943// IsContextObject determines whether the call to GetContextObject is safe for the specified index 1944func (t *OrderedCollectionPage) IsContextObject(index int) (ok bool) { 1945 return t.context[index].Object != nil 1946 1947} 1948 1949// GetContextObject returns the value safely if IsContextObject returned true for the specified index 1950func (t *OrderedCollectionPage) GetContextObject(index int) (v ObjectType) { 1951 return t.context[index].Object 1952 1953} 1954 1955// AppendContextObject adds to the back of context a ObjectType type 1956func (t *OrderedCollectionPage) AppendContextObject(v ObjectType) { 1957 t.context = append(t.context, &contextIntermediateType{Object: v}) 1958 1959} 1960 1961// PrependContextObject adds to the front of context a ObjectType type 1962func (t *OrderedCollectionPage) PrependContextObject(v ObjectType) { 1963 t.context = append([]*contextIntermediateType{&contextIntermediateType{Object: v}}, t.context...) 1964 1965} 1966 1967// RemoveContextObject deletes the value from the specified index 1968func (t *OrderedCollectionPage) RemoveContextObject(index int) { 1969 copy(t.context[index:], t.context[index+1:]) 1970 t.context[len(t.context)-1] = nil 1971 t.context = t.context[:len(t.context)-1] 1972 1973} 1974 1975// IsContextLink determines whether the call to GetContextLink is safe for the specified index 1976func (t *OrderedCollectionPage) IsContextLink(index int) (ok bool) { 1977 return t.context[index].Link != nil 1978 1979} 1980 1981// GetContextLink returns the value safely if IsContextLink returned true for the specified index 1982func (t *OrderedCollectionPage) GetContextLink(index int) (v LinkType) { 1983 return t.context[index].Link 1984 1985} 1986 1987// AppendContextLink adds to the back of context a LinkType type 1988func (t *OrderedCollectionPage) AppendContextLink(v LinkType) { 1989 t.context = append(t.context, &contextIntermediateType{Link: v}) 1990 1991} 1992 1993// PrependContextLink adds to the front of context a LinkType type 1994func (t *OrderedCollectionPage) PrependContextLink(v LinkType) { 1995 t.context = append([]*contextIntermediateType{&contextIntermediateType{Link: v}}, t.context...) 1996 1997} 1998 1999// RemoveContextLink deletes the value from the specified index 2000func (t *OrderedCollectionPage) RemoveContextLink(index int) { 2001 copy(t.context[index:], t.context[index+1:]) 2002 t.context[len(t.context)-1] = nil 2003 t.context = t.context[:len(t.context)-1] 2004 2005} 2006 2007// IsContextIRI determines whether the call to GetContextIRI is safe for the specified index 2008func (t *OrderedCollectionPage) IsContextIRI(index int) (ok bool) { 2009 return t.context[index].IRI != nil 2010 2011} 2012 2013// GetContextIRI returns the value safely if IsContextIRI returned true for the specified index 2014func (t *OrderedCollectionPage) GetContextIRI(index int) (v *url.URL) { 2015 return t.context[index].IRI 2016 2017} 2018 2019// AppendContextIRI adds to the back of context a *url.URL type 2020func (t *OrderedCollectionPage) AppendContextIRI(v *url.URL) { 2021 t.context = append(t.context, &contextIntermediateType{IRI: v}) 2022 2023} 2024 2025// PrependContextIRI adds to the front of context a *url.URL type 2026func (t *OrderedCollectionPage) PrependContextIRI(v *url.URL) { 2027 t.context = append([]*contextIntermediateType{&contextIntermediateType{IRI: v}}, t.context...) 2028 2029} 2030 2031// RemoveContextIRI deletes the value from the specified index 2032func (t *OrderedCollectionPage) RemoveContextIRI(index int) { 2033 copy(t.context[index:], t.context[index+1:]) 2034 t.context[len(t.context)-1] = nil 2035 t.context = t.context[:len(t.context)-1] 2036 2037} 2038 2039// HasUnknownContext determines whether the call to GetUnknownContext is safe 2040func (t *OrderedCollectionPage) HasUnknownContext() (ok bool) { 2041 return t.context != nil && t.context[0].unknown_ != nil 2042 2043} 2044 2045// GetUnknownContext returns the unknown value for context 2046func (t *OrderedCollectionPage) GetUnknownContext() (v interface{}) { 2047 return t.context[0].unknown_ 2048 2049} 2050 2051// SetUnknownContext sets the unknown value of context 2052func (t *OrderedCollectionPage) SetUnknownContext(i interface{}) { 2053 if t.unknown_ == nil { 2054 t.unknown_ = make(map[string]interface{}) 2055 } 2056 tmp := &contextIntermediateType{} 2057 tmp.unknown_ = i 2058 t.context = append(t.context, tmp) 2059 2060} 2061 2062// NameLen determines the number of elements able to be used for the IsNameString, GetNameString, and RemoveNameString functions 2063func (t *OrderedCollectionPage) NameLen() (l int) { 2064 return len(t.name) 2065 2066} 2067 2068// IsNameString determines whether the call to GetNameString is safe for the specified index 2069func (t *OrderedCollectionPage) IsNameString(index int) (ok bool) { 2070 return t.name[index].stringName != nil 2071 2072} 2073 2074// GetNameString returns the value safely if IsNameString returned true for the specified index 2075func (t *OrderedCollectionPage) GetNameString(index int) (v string) { 2076 return *t.name[index].stringName 2077 2078} 2079 2080// AppendNameString adds to the back of name a string type 2081func (t *OrderedCollectionPage) AppendNameString(v string) { 2082 t.name = append(t.name, &nameIntermediateType{stringName: &v}) 2083 2084} 2085 2086// PrependNameString adds to the front of name a string type 2087func (t *OrderedCollectionPage) PrependNameString(v string) { 2088 t.name = append([]*nameIntermediateType{&nameIntermediateType{stringName: &v}}, t.name...) 2089 2090} 2091 2092// RemoveNameString deletes the value from the specified index 2093func (t *OrderedCollectionPage) RemoveNameString(index int) { 2094 copy(t.name[index:], t.name[index+1:]) 2095 t.name[len(t.name)-1] = nil 2096 t.name = t.name[:len(t.name)-1] 2097 2098} 2099 2100// IsNameLangString determines whether the call to GetNameLangString is safe for the specified index 2101func (t *OrderedCollectionPage) IsNameLangString(index int) (ok bool) { 2102 return t.name[index].langString != nil 2103 2104} 2105 2106// GetNameLangString returns the value safely if IsNameLangString returned true for the specified index 2107func (t *OrderedCollectionPage) GetNameLangString(index int) (v string) { 2108 return *t.name[index].langString 2109 2110} 2111 2112// AppendNameLangString adds to the back of name a string type 2113func (t *OrderedCollectionPage) AppendNameLangString(v string) { 2114 t.name = append(t.name, &nameIntermediateType{langString: &v}) 2115 2116} 2117 2118// PrependNameLangString adds to the front of name a string type 2119func (t *OrderedCollectionPage) PrependNameLangString(v string) { 2120 t.name = append([]*nameIntermediateType{&nameIntermediateType{langString: &v}}, t.name...) 2121 2122} 2123 2124// RemoveNameLangString deletes the value from the specified index 2125func (t *OrderedCollectionPage) RemoveNameLangString(index int) { 2126 copy(t.name[index:], t.name[index+1:]) 2127 t.name[len(t.name)-1] = nil 2128 t.name = t.name[:len(t.name)-1] 2129 2130} 2131 2132// IsNameIRI determines whether the call to GetNameIRI is safe for the specified index 2133func (t *OrderedCollectionPage) IsNameIRI(index int) (ok bool) { 2134 return t.name[index].IRI != nil 2135 2136} 2137 2138// GetNameIRI returns the value safely if IsNameIRI returned true for the specified index 2139func (t *OrderedCollectionPage) GetNameIRI(index int) (v *url.URL) { 2140 return t.name[index].IRI 2141 2142} 2143 2144// AppendNameIRI adds to the back of name a *url.URL type 2145func (t *OrderedCollectionPage) AppendNameIRI(v *url.URL) { 2146 t.name = append(t.name, &nameIntermediateType{IRI: v}) 2147 2148} 2149 2150// PrependNameIRI adds to the front of name a *url.URL type 2151func (t *OrderedCollectionPage) PrependNameIRI(v *url.URL) { 2152 t.name = append([]*nameIntermediateType{&nameIntermediateType{IRI: v}}, t.name...) 2153 2154} 2155 2156// RemoveNameIRI deletes the value from the specified index 2157func (t *OrderedCollectionPage) RemoveNameIRI(index int) { 2158 copy(t.name[index:], t.name[index+1:]) 2159 t.name[len(t.name)-1] = nil 2160 t.name = t.name[:len(t.name)-1] 2161 2162} 2163 2164// HasUnknownName determines whether the call to GetUnknownName is safe 2165func (t *OrderedCollectionPage) HasUnknownName() (ok bool) { 2166 return t.name != nil && t.name[0].unknown_ != nil 2167 2168} 2169 2170// GetUnknownName returns the unknown value for name 2171func (t *OrderedCollectionPage) GetUnknownName() (v interface{}) { 2172 return t.name[0].unknown_ 2173 2174} 2175 2176// SetUnknownName sets the unknown value of name 2177func (t *OrderedCollectionPage) SetUnknownName(i interface{}) { 2178 if t.unknown_ == nil { 2179 t.unknown_ = make(map[string]interface{}) 2180 } 2181 tmp := &nameIntermediateType{} 2182 tmp.unknown_ = i 2183 t.name = append(t.name, tmp) 2184 2185} 2186 2187// NameMapLanguages returns all languages for this property's language mapping, or nil if there are none. 2188func (t *OrderedCollectionPage) NameMapLanguages() (l []string) { 2189 if t.nameMap == nil || len(t.nameMap) == 0 { 2190 return nil 2191 } 2192 for k := range t.nameMap { 2193 l = append(l, k) 2194 } 2195 return 2196 2197} 2198 2199// GetNameMap retrieves the value of the property for the specified language, or an empty string if it does not exist 2200func (t *OrderedCollectionPage) GetNameMap(l string) (v string) { 2201 if t.nameMap == nil { 2202 return "" 2203 } 2204 ok := false 2205 v, ok = t.nameMap[l] 2206 if !ok { 2207 return "" 2208 } 2209 return v 2210 2211} 2212 2213// SetNameMap sets the value of the property for the specified language 2214func (t *OrderedCollectionPage) SetNameMap(l string, v string) { 2215 if t.nameMap == nil { 2216 t.nameMap = make(map[string]string) 2217 } 2218 t.nameMap[l] = v 2219 2220} 2221 2222// IsEndTime determines whether the call to GetEndTime is safe 2223func (t *OrderedCollectionPage) IsEndTime() (ok bool) { 2224 return t.endTime != nil && t.endTime.dateTime != nil 2225 2226} 2227 2228// GetEndTime returns the value safely if IsEndTime returned true 2229func (t *OrderedCollectionPage) GetEndTime() (v time.Time) { 2230 return *t.endTime.dateTime 2231 2232} 2233 2234// SetEndTime sets the value of endTime to be of time.Time type 2235func (t *OrderedCollectionPage) SetEndTime(v time.Time) { 2236 t.endTime = &endTimeIntermediateType{dateTime: &v} 2237 2238} 2239 2240// IsEndTimeIRI determines whether the call to GetEndTimeIRI is safe 2241func (t *OrderedCollectionPage) IsEndTimeIRI() (ok bool) { 2242 return t.endTime != nil && t.endTime.IRI != nil 2243 2244} 2245 2246// GetEndTimeIRI returns the value safely if IsEndTimeIRI returned true 2247func (t *OrderedCollectionPage) GetEndTimeIRI() (v *url.URL) { 2248 return t.endTime.IRI 2249 2250} 2251 2252// SetEndTimeIRI sets the value of endTime to be of *url.URL type 2253func (t *OrderedCollectionPage) SetEndTimeIRI(v *url.URL) { 2254 t.endTime = &endTimeIntermediateType{IRI: v} 2255 2256} 2257 2258// HasUnknownEndTime determines whether the call to GetUnknownEndTime is safe 2259func (t *OrderedCollectionPage) HasUnknownEndTime() (ok bool) { 2260 return t.endTime != nil && t.endTime.unknown_ != nil 2261 2262} 2263 2264// GetUnknownEndTime returns the unknown value for endTime 2265func (t *OrderedCollectionPage) GetUnknownEndTime() (v interface{}) { 2266 return t.endTime.unknown_ 2267 2268} 2269 2270// SetUnknownEndTime sets the unknown value of endTime 2271func (t *OrderedCollectionPage) SetUnknownEndTime(i interface{}) { 2272 if t.unknown_ == nil { 2273 t.unknown_ = make(map[string]interface{}) 2274 } 2275 tmp := &endTimeIntermediateType{} 2276 tmp.unknown_ = i 2277 t.endTime = tmp 2278 2279} 2280 2281// GeneratorLen determines the number of elements able to be used for the IsGeneratorObject, GetGeneratorObject, and RemoveGeneratorObject functions 2282func (t *OrderedCollectionPage) GeneratorLen() (l int) { 2283 return len(t.generator) 2284 2285} 2286 2287// IsGeneratorObject determines whether the call to GetGeneratorObject is safe for the specified index 2288func (t *OrderedCollectionPage) IsGeneratorObject(index int) (ok bool) { 2289 return t.generator[index].Object != nil 2290 2291} 2292 2293// GetGeneratorObject returns the value safely if IsGeneratorObject returned true for the specified index 2294func (t *OrderedCollectionPage) GetGeneratorObject(index int) (v ObjectType) { 2295 return t.generator[index].Object 2296 2297} 2298 2299// AppendGeneratorObject adds to the back of generator a ObjectType type 2300func (t *OrderedCollectionPage) AppendGeneratorObject(v ObjectType) { 2301 t.generator = append(t.generator, &generatorIntermediateType{Object: v}) 2302 2303} 2304 2305// PrependGeneratorObject adds to the front of generator a ObjectType type 2306func (t *OrderedCollectionPage) PrependGeneratorObject(v ObjectType) { 2307 t.generator = append([]*generatorIntermediateType{&generatorIntermediateType{Object: v}}, t.generator...) 2308 2309} 2310 2311// RemoveGeneratorObject deletes the value from the specified index 2312func (t *OrderedCollectionPage) RemoveGeneratorObject(index int) { 2313 copy(t.generator[index:], t.generator[index+1:]) 2314 t.generator[len(t.generator)-1] = nil 2315 t.generator = t.generator[:len(t.generator)-1] 2316 2317} 2318 2319// IsGeneratorLink determines whether the call to GetGeneratorLink is safe for the specified index 2320func (t *OrderedCollectionPage) IsGeneratorLink(index int) (ok bool) { 2321 return t.generator[index].Link != nil 2322 2323} 2324 2325// GetGeneratorLink returns the value safely if IsGeneratorLink returned true for the specified index 2326func (t *OrderedCollectionPage) GetGeneratorLink(index int) (v LinkType) { 2327 return t.generator[index].Link 2328 2329} 2330 2331// AppendGeneratorLink adds to the back of generator a LinkType type 2332func (t *OrderedCollectionPage) AppendGeneratorLink(v LinkType) { 2333 t.generator = append(t.generator, &generatorIntermediateType{Link: v}) 2334 2335} 2336 2337// PrependGeneratorLink adds to the front of generator a LinkType type 2338func (t *OrderedCollectionPage) PrependGeneratorLink(v LinkType) { 2339 t.generator = append([]*generatorIntermediateType{&generatorIntermediateType{Link: v}}, t.generator...) 2340 2341} 2342 2343// RemoveGeneratorLink deletes the value from the specified index 2344func (t *OrderedCollectionPage) RemoveGeneratorLink(index int) { 2345 copy(t.generator[index:], t.generator[index+1:]) 2346 t.generator[len(t.generator)-1] = nil 2347 t.generator = t.generator[:len(t.generator)-1] 2348 2349} 2350 2351// IsGeneratorIRI determines whether the call to GetGeneratorIRI is safe for the specified index 2352func (t *OrderedCollectionPage) IsGeneratorIRI(index int) (ok bool) { 2353 return t.generator[index].IRI != nil 2354 2355} 2356 2357// GetGeneratorIRI returns the value safely if IsGeneratorIRI returned true for the specified index 2358func (t *OrderedCollectionPage) GetGeneratorIRI(index int) (v *url.URL) { 2359 return t.generator[index].IRI 2360 2361} 2362 2363// AppendGeneratorIRI adds to the back of generator a *url.URL type 2364func (t *OrderedCollectionPage) AppendGeneratorIRI(v *url.URL) { 2365 t.generator = append(t.generator, &generatorIntermediateType{IRI: v}) 2366 2367} 2368 2369// PrependGeneratorIRI adds to the front of generator a *url.URL type 2370func (t *OrderedCollectionPage) PrependGeneratorIRI(v *url.URL) { 2371 t.generator = append([]*generatorIntermediateType{&generatorIntermediateType{IRI: v}}, t.generator...) 2372 2373} 2374 2375// RemoveGeneratorIRI deletes the value from the specified index 2376func (t *OrderedCollectionPage) RemoveGeneratorIRI(index int) { 2377 copy(t.generator[index:], t.generator[index+1:]) 2378 t.generator[len(t.generator)-1] = nil 2379 t.generator = t.generator[:len(t.generator)-1] 2380 2381} 2382 2383// HasUnknownGenerator determines whether the call to GetUnknownGenerator is safe 2384func (t *OrderedCollectionPage) HasUnknownGenerator() (ok bool) { 2385 return t.generator != nil && t.generator[0].unknown_ != nil 2386 2387} 2388 2389// GetUnknownGenerator returns the unknown value for generator 2390func (t *OrderedCollectionPage) GetUnknownGenerator() (v interface{}) { 2391 return t.generator[0].unknown_ 2392 2393} 2394 2395// SetUnknownGenerator sets the unknown value of generator 2396func (t *OrderedCollectionPage) SetUnknownGenerator(i interface{}) { 2397 if t.unknown_ == nil { 2398 t.unknown_ = make(map[string]interface{}) 2399 } 2400 tmp := &generatorIntermediateType{} 2401 tmp.unknown_ = i 2402 t.generator = append(t.generator, tmp) 2403 2404} 2405 2406// IconLen determines the number of elements able to be used for the IsIconImage, GetIconImage, and RemoveIconImage functions 2407func (t *OrderedCollectionPage) IconLen() (l int) { 2408 return len(t.icon) 2409 2410} 2411 2412// IsIconImage determines whether the call to GetIconImage is safe for the specified index 2413func (t *OrderedCollectionPage) IsIconImage(index int) (ok bool) { 2414 return t.icon[index].Image != nil 2415 2416} 2417 2418// GetIconImage returns the value safely if IsIconImage returned true for the specified index 2419func (t *OrderedCollectionPage) GetIconImage(index int) (v ImageType) { 2420 return t.icon[index].Image 2421 2422} 2423 2424// AppendIconImage adds to the back of icon a ImageType type 2425func (t *OrderedCollectionPage) AppendIconImage(v ImageType) { 2426 t.icon = append(t.icon, &iconIntermediateType{Image: v}) 2427 2428} 2429 2430// PrependIconImage adds to the front of icon a ImageType type 2431func (t *OrderedCollectionPage) PrependIconImage(v ImageType) { 2432 t.icon = append([]*iconIntermediateType{&iconIntermediateType{Image: v}}, t.icon...) 2433 2434} 2435 2436// RemoveIconImage deletes the value from the specified index 2437func (t *OrderedCollectionPage) RemoveIconImage(index int) { 2438 copy(t.icon[index:], t.icon[index+1:]) 2439 t.icon[len(t.icon)-1] = nil 2440 t.icon = t.icon[:len(t.icon)-1] 2441 2442} 2443 2444// IsIconLink determines whether the call to GetIconLink is safe for the specified index 2445func (t *OrderedCollectionPage) IsIconLink(index int) (ok bool) { 2446 return t.icon[index].Link != nil 2447 2448} 2449 2450// GetIconLink returns the value safely if IsIconLink returned true for the specified index 2451func (t *OrderedCollectionPage) GetIconLink(index int) (v LinkType) { 2452 return t.icon[index].Link 2453 2454} 2455 2456// AppendIconLink adds to the back of icon a LinkType type 2457func (t *OrderedCollectionPage) AppendIconLink(v LinkType) { 2458 t.icon = append(t.icon, &iconIntermediateType{Link: v}) 2459 2460} 2461 2462// PrependIconLink adds to the front of icon a LinkType type 2463func (t *OrderedCollectionPage) PrependIconLink(v LinkType) { 2464 t.icon = append([]*iconIntermediateType{&iconIntermediateType{Link: v}}, t.icon...) 2465 2466} 2467 2468// RemoveIconLink deletes the value from the specified index 2469func (t *OrderedCollectionPage) RemoveIconLink(index int) { 2470 copy(t.icon[index:], t.icon[index+1:]) 2471 t.icon[len(t.icon)-1] = nil 2472 t.icon = t.icon[:len(t.icon)-1] 2473 2474} 2475 2476// IsIconIRI determines whether the call to GetIconIRI is safe for the specified index 2477func (t *OrderedCollectionPage) IsIconIRI(index int) (ok bool) { 2478 return t.icon[index].IRI != nil 2479 2480} 2481 2482// GetIconIRI returns the value safely if IsIconIRI returned true for the specified index 2483func (t *OrderedCollectionPage) GetIconIRI(index int) (v *url.URL) { 2484 return t.icon[index].IRI 2485 2486} 2487 2488// AppendIconIRI adds to the back of icon a *url.URL type 2489func (t *OrderedCollectionPage) AppendIconIRI(v *url.URL) { 2490 t.icon = append(t.icon, &iconIntermediateType{IRI: v}) 2491 2492} 2493 2494// PrependIconIRI adds to the front of icon a *url.URL type 2495func (t *OrderedCollectionPage) PrependIconIRI(v *url.URL) { 2496 t.icon = append([]*iconIntermediateType{&iconIntermediateType{IRI: v}}, t.icon...) 2497 2498} 2499 2500// RemoveIconIRI deletes the value from the specified index 2501func (t *OrderedCollectionPage) RemoveIconIRI(index int) { 2502 copy(t.icon[index:], t.icon[index+1:]) 2503 t.icon[len(t.icon)-1] = nil 2504 t.icon = t.icon[:len(t.icon)-1] 2505 2506} 2507 2508// HasUnknownIcon determines whether the call to GetUnknownIcon is safe 2509func (t *OrderedCollectionPage) HasUnknownIcon() (ok bool) { 2510 return t.icon != nil && t.icon[0].unknown_ != nil 2511 2512} 2513 2514// GetUnknownIcon returns the unknown value for icon 2515func (t *OrderedCollectionPage) GetUnknownIcon() (v interface{}) { 2516 return t.icon[0].unknown_ 2517 2518} 2519 2520// SetUnknownIcon sets the unknown value of icon 2521func (t *OrderedCollectionPage) SetUnknownIcon(i interface{}) { 2522 if t.unknown_ == nil { 2523 t.unknown_ = make(map[string]interface{}) 2524 } 2525 tmp := &iconIntermediateType{} 2526 tmp.unknown_ = i 2527 t.icon = append(t.icon, tmp) 2528 2529} 2530 2531// HasId determines whether the call to GetId is safe 2532func (t *OrderedCollectionPage) HasId() (ok bool) { 2533 return t.id != nil 2534 2535} 2536 2537// GetId returns the value for id 2538func (t *OrderedCollectionPage) GetId() (v *url.URL) { 2539 return t.id 2540 2541} 2542 2543// SetId sets the value of id 2544func (t *OrderedCollectionPage) SetId(v *url.URL) { 2545 t.id = v 2546 2547} 2548 2549// HasUnknownId determines whether the call to GetUnknownId is safe 2550func (t *OrderedCollectionPage) HasUnknownId() (ok bool) { 2551 return t.unknown_ != nil && t.unknown_["id"] != nil 2552 2553} 2554 2555// GetUnknownId returns the unknown value for id 2556func (t *OrderedCollectionPage) GetUnknownId() (v interface{}) { 2557 return t.unknown_["id"] 2558 2559} 2560 2561// SetUnknownId sets the unknown value of id 2562func (t *OrderedCollectionPage) SetUnknownId(i interface{}) { 2563 if t.unknown_ == nil { 2564 t.unknown_ = make(map[string]interface{}) 2565 } 2566 t.unknown_["id"] = i 2567 2568} 2569 2570// ImageLen determines the number of elements able to be used for the IsImageImage, GetImageImage, and RemoveImageImage functions 2571func (t *OrderedCollectionPage) ImageLen() (l int) { 2572 return len(t.image) 2573 2574} 2575 2576// IsImageImage determines whether the call to GetImageImage is safe for the specified index 2577func (t *OrderedCollectionPage) IsImageImage(index int) (ok bool) { 2578 return t.image[index].Image != nil 2579 2580} 2581 2582// GetImageImage returns the value safely if IsImageImage returned true for the specified index 2583func (t *OrderedCollectionPage) GetImageImage(index int) (v ImageType) { 2584 return t.image[index].Image 2585 2586} 2587 2588// AppendImageImage adds to the back of image a ImageType type 2589func (t *OrderedCollectionPage) AppendImageImage(v ImageType) { 2590 t.image = append(t.image, &imageIntermediateType{Image: v}) 2591 2592} 2593 2594// PrependImageImage adds to the front of image a ImageType type 2595func (t *OrderedCollectionPage) PrependImageImage(v ImageType) { 2596 t.image = append([]*imageIntermediateType{&imageIntermediateType{Image: v}}, t.image...) 2597 2598} 2599 2600// RemoveImageImage deletes the value from the specified index 2601func (t *OrderedCollectionPage) RemoveImageImage(index int) { 2602 copy(t.image[index:], t.image[index+1:]) 2603 t.image[len(t.image)-1] = nil 2604 t.image = t.image[:len(t.image)-1] 2605 2606} 2607 2608// IsImageLink determines whether the call to GetImageLink is safe for the specified index 2609func (t *OrderedCollectionPage) IsImageLink(index int) (ok bool) { 2610 return t.image[index].Link != nil 2611 2612} 2613 2614// GetImageLink returns the value safely if IsImageLink returned true for the specified index 2615func (t *OrderedCollectionPage) GetImageLink(index int) (v LinkType) { 2616 return t.image[index].Link 2617 2618} 2619 2620// AppendImageLink adds to the back of image a LinkType type 2621func (t *OrderedCollectionPage) AppendImageLink(v LinkType) { 2622 t.image = append(t.image, &imageIntermediateType{Link: v}) 2623 2624} 2625 2626// PrependImageLink adds to the front of image a LinkType type 2627func (t *OrderedCollectionPage) PrependImageLink(v LinkType) { 2628 t.image = append([]*imageIntermediateType{&imageIntermediateType{Link: v}}, t.image...) 2629 2630} 2631 2632// RemoveImageLink deletes the value from the specified index 2633func (t *OrderedCollectionPage) RemoveImageLink(index int) { 2634 copy(t.image[index:], t.image[index+1:]) 2635 t.image[len(t.image)-1] = nil 2636 t.image = t.image[:len(t.image)-1] 2637 2638} 2639 2640// IsImageIRI determines whether the call to GetImageIRI is safe for the specified index 2641func (t *OrderedCollectionPage) IsImageIRI(index int) (ok bool) { 2642 return t.image[index].IRI != nil 2643 2644} 2645 2646// GetImageIRI returns the value safely if IsImageIRI returned true for the specified index 2647func (t *OrderedCollectionPage) GetImageIRI(index int) (v *url.URL) { 2648 return t.image[index].IRI 2649 2650} 2651 2652// AppendImageIRI adds to the back of image a *url.URL type 2653func (t *OrderedCollectionPage) AppendImageIRI(v *url.URL) { 2654 t.image = append(t.image, &imageIntermediateType{IRI: v}) 2655 2656} 2657 2658// PrependImageIRI adds to the front of image a *url.URL type 2659func (t *OrderedCollectionPage) PrependImageIRI(v *url.URL) { 2660 t.image = append([]*imageIntermediateType{&imageIntermediateType{IRI: v}}, t.image...) 2661 2662} 2663 2664// RemoveImageIRI deletes the value from the specified index 2665func (t *OrderedCollectionPage) RemoveImageIRI(index int) { 2666 copy(t.image[index:], t.image[index+1:]) 2667 t.image[len(t.image)-1] = nil 2668 t.image = t.image[:len(t.image)-1] 2669 2670} 2671 2672// HasUnknownImage determines whether the call to GetUnknownImage is safe 2673func (t *OrderedCollectionPage) HasUnknownImage() (ok bool) { 2674 return t.image != nil && t.image[0].unknown_ != nil 2675 2676} 2677 2678// GetUnknownImage returns the unknown value for image 2679func (t *OrderedCollectionPage) GetUnknownImage() (v interface{}) { 2680 return t.image[0].unknown_ 2681 2682} 2683 2684// SetUnknownImage sets the unknown value of image 2685func (t *OrderedCollectionPage) SetUnknownImage(i interface{}) { 2686 if t.unknown_ == nil { 2687 t.unknown_ = make(map[string]interface{}) 2688 } 2689 tmp := &imageIntermediateType{} 2690 tmp.unknown_ = i 2691 t.image = append(t.image, tmp) 2692 2693} 2694 2695// InReplyToLen determines the number of elements able to be used for the IsInReplyToObject, GetInReplyToObject, and RemoveInReplyToObject functions 2696func (t *OrderedCollectionPage) InReplyToLen() (l int) { 2697 return len(t.inReplyTo) 2698 2699} 2700 2701// IsInReplyToObject determines whether the call to GetInReplyToObject is safe for the specified index 2702func (t *OrderedCollectionPage) IsInReplyToObject(index int) (ok bool) { 2703 return t.inReplyTo[index].Object != nil 2704 2705} 2706 2707// GetInReplyToObject returns the value safely if IsInReplyToObject returned true for the specified index 2708func (t *OrderedCollectionPage) GetInReplyToObject(index int) (v ObjectType) { 2709 return t.inReplyTo[index].Object 2710 2711} 2712 2713// AppendInReplyToObject adds to the back of inReplyTo a ObjectType type 2714func (t *OrderedCollectionPage) AppendInReplyToObject(v ObjectType) { 2715 t.inReplyTo = append(t.inReplyTo, &inReplyToIntermediateType{Object: v}) 2716 2717} 2718 2719// PrependInReplyToObject adds to the front of inReplyTo a ObjectType type 2720func (t *OrderedCollectionPage) PrependInReplyToObject(v ObjectType) { 2721 t.inReplyTo = append([]*inReplyToIntermediateType{&inReplyToIntermediateType{Object: v}}, t.inReplyTo...) 2722 2723} 2724 2725// RemoveInReplyToObject deletes the value from the specified index 2726func (t *OrderedCollectionPage) RemoveInReplyToObject(index int) { 2727 copy(t.inReplyTo[index:], t.inReplyTo[index+1:]) 2728 t.inReplyTo[len(t.inReplyTo)-1] = nil 2729 t.inReplyTo = t.inReplyTo[:len(t.inReplyTo)-1] 2730 2731} 2732 2733// IsInReplyToLink determines whether the call to GetInReplyToLink is safe for the specified index 2734func (t *OrderedCollectionPage) IsInReplyToLink(index int) (ok bool) { 2735 return t.inReplyTo[index].Link != nil 2736 2737} 2738 2739// GetInReplyToLink returns the value safely if IsInReplyToLink returned true for the specified index 2740func (t *OrderedCollectionPage) GetInReplyToLink(index int) (v LinkType) { 2741 return t.inReplyTo[index].Link 2742 2743} 2744 2745// AppendInReplyToLink adds to the back of inReplyTo a LinkType type 2746func (t *OrderedCollectionPage) AppendInReplyToLink(v LinkType) { 2747 t.inReplyTo = append(t.inReplyTo, &inReplyToIntermediateType{Link: v}) 2748 2749} 2750 2751// PrependInReplyToLink adds to the front of inReplyTo a LinkType type 2752func (t *OrderedCollectionPage) PrependInReplyToLink(v LinkType) { 2753 t.inReplyTo = append([]*inReplyToIntermediateType{&inReplyToIntermediateType{Link: v}}, t.inReplyTo...) 2754 2755} 2756 2757// RemoveInReplyToLink deletes the value from the specified index 2758func (t *OrderedCollectionPage) RemoveInReplyToLink(index int) { 2759 copy(t.inReplyTo[index:], t.inReplyTo[index+1:]) 2760 t.inReplyTo[len(t.inReplyTo)-1] = nil 2761 t.inReplyTo = t.inReplyTo[:len(t.inReplyTo)-1] 2762 2763} 2764 2765// IsInReplyToIRI determines whether the call to GetInReplyToIRI is safe for the specified index 2766func (t *OrderedCollectionPage) IsInReplyToIRI(index int) (ok bool) { 2767 return t.inReplyTo[index].IRI != nil 2768 2769} 2770 2771// GetInReplyToIRI returns the value safely if IsInReplyToIRI returned true for the specified index 2772func (t *OrderedCollectionPage) GetInReplyToIRI(index int) (v *url.URL) { 2773 return t.inReplyTo[index].IRI 2774 2775} 2776 2777// AppendInReplyToIRI adds to the back of inReplyTo a *url.URL type 2778func (t *OrderedCollectionPage) AppendInReplyToIRI(v *url.URL) { 2779 t.inReplyTo = append(t.inReplyTo, &inReplyToIntermediateType{IRI: v}) 2780 2781} 2782 2783// PrependInReplyToIRI adds to the front of inReplyTo a *url.URL type 2784func (t *OrderedCollectionPage) PrependInReplyToIRI(v *url.URL) { 2785 t.inReplyTo = append([]*inReplyToIntermediateType{&inReplyToIntermediateType{IRI: v}}, t.inReplyTo...) 2786 2787} 2788 2789// RemoveInReplyToIRI deletes the value from the specified index 2790func (t *OrderedCollectionPage) RemoveInReplyToIRI(index int) { 2791 copy(t.inReplyTo[index:], t.inReplyTo[index+1:]) 2792 t.inReplyTo[len(t.inReplyTo)-1] = nil 2793 t.inReplyTo = t.inReplyTo[:len(t.inReplyTo)-1] 2794 2795} 2796 2797// HasUnknownInReplyTo determines whether the call to GetUnknownInReplyTo is safe 2798func (t *OrderedCollectionPage) HasUnknownInReplyTo() (ok bool) { 2799 return t.inReplyTo != nil && t.inReplyTo[0].unknown_ != nil 2800 2801} 2802 2803// GetUnknownInReplyTo returns the unknown value for inReplyTo 2804func (t *OrderedCollectionPage) GetUnknownInReplyTo() (v interface{}) { 2805 return t.inReplyTo[0].unknown_ 2806 2807} 2808 2809// SetUnknownInReplyTo sets the unknown value of inReplyTo 2810func (t *OrderedCollectionPage) SetUnknownInReplyTo(i interface{}) { 2811 if t.unknown_ == nil { 2812 t.unknown_ = make(map[string]interface{}) 2813 } 2814 tmp := &inReplyToIntermediateType{} 2815 tmp.unknown_ = i 2816 t.inReplyTo = append(t.inReplyTo, tmp) 2817 2818} 2819 2820// LocationLen determines the number of elements able to be used for the IsLocationObject, GetLocationObject, and RemoveLocationObject functions 2821func (t *OrderedCollectionPage) LocationLen() (l int) { 2822 return len(t.location) 2823 2824} 2825 2826// IsLocationObject determines whether the call to GetLocationObject is safe for the specified index 2827func (t *OrderedCollectionPage) IsLocationObject(index int) (ok bool) { 2828 return t.location[index].Object != nil 2829 2830} 2831 2832// GetLocationObject returns the value safely if IsLocationObject returned true for the specified index 2833func (t *OrderedCollectionPage) GetLocationObject(index int) (v ObjectType) { 2834 return t.location[index].Object 2835 2836} 2837 2838// AppendLocationObject adds to the back of location a ObjectType type 2839func (t *OrderedCollectionPage) AppendLocationObject(v ObjectType) { 2840 t.location = append(t.location, &locationIntermediateType{Object: v}) 2841 2842} 2843 2844// PrependLocationObject adds to the front of location a ObjectType type 2845func (t *OrderedCollectionPage) PrependLocationObject(v ObjectType) { 2846 t.location = append([]*locationIntermediateType{&locationIntermediateType{Object: v}}, t.location...) 2847 2848} 2849 2850// RemoveLocationObject deletes the value from the specified index 2851func (t *OrderedCollectionPage) RemoveLocationObject(index int) { 2852 copy(t.location[index:], t.location[index+1:]) 2853 t.location[len(t.location)-1] = nil 2854 t.location = t.location[:len(t.location)-1] 2855 2856} 2857 2858// IsLocationLink determines whether the call to GetLocationLink is safe for the specified index 2859func (t *OrderedCollectionPage) IsLocationLink(index int) (ok bool) { 2860 return t.location[index].Link != nil 2861 2862} 2863 2864// GetLocationLink returns the value safely if IsLocationLink returned true for the specified index 2865func (t *OrderedCollectionPage) GetLocationLink(index int) (v LinkType) { 2866 return t.location[index].Link 2867 2868} 2869 2870// AppendLocationLink adds to the back of location a LinkType type 2871func (t *OrderedCollectionPage) AppendLocationLink(v LinkType) { 2872 t.location = append(t.location, &locationIntermediateType{Link: v}) 2873 2874} 2875 2876// PrependLocationLink adds to the front of location a LinkType type 2877func (t *OrderedCollectionPage) PrependLocationLink(v LinkType) { 2878 t.location = append([]*locationIntermediateType{&locationIntermediateType{Link: v}}, t.location...) 2879 2880} 2881 2882// RemoveLocationLink deletes the value from the specified index 2883func (t *OrderedCollectionPage) RemoveLocationLink(index int) { 2884 copy(t.location[index:], t.location[index+1:]) 2885 t.location[len(t.location)-1] = nil 2886 t.location = t.location[:len(t.location)-1] 2887 2888} 2889 2890// IsLocationIRI determines whether the call to GetLocationIRI is safe for the specified index 2891func (t *OrderedCollectionPage) IsLocationIRI(index int) (ok bool) { 2892 return t.location[index].IRI != nil 2893 2894} 2895 2896// GetLocationIRI returns the value safely if IsLocationIRI returned true for the specified index 2897func (t *OrderedCollectionPage) GetLocationIRI(index int) (v *url.URL) { 2898 return t.location[index].IRI 2899 2900} 2901 2902// AppendLocationIRI adds to the back of location a *url.URL type 2903func (t *OrderedCollectionPage) AppendLocationIRI(v *url.URL) { 2904 t.location = append(t.location, &locationIntermediateType{IRI: v}) 2905 2906} 2907 2908// PrependLocationIRI adds to the front of location a *url.URL type 2909func (t *OrderedCollectionPage) PrependLocationIRI(v *url.URL) { 2910 t.location = append([]*locationIntermediateType{&locationIntermediateType{IRI: v}}, t.location...) 2911 2912} 2913 2914// RemoveLocationIRI deletes the value from the specified index 2915func (t *OrderedCollectionPage) RemoveLocationIRI(index int) { 2916 copy(t.location[index:], t.location[index+1:]) 2917 t.location[len(t.location)-1] = nil 2918 t.location = t.location[:len(t.location)-1] 2919 2920} 2921 2922// HasUnknownLocation determines whether the call to GetUnknownLocation is safe 2923func (t *OrderedCollectionPage) HasUnknownLocation() (ok bool) { 2924 return t.location != nil && t.location[0].unknown_ != nil 2925 2926} 2927 2928// GetUnknownLocation returns the unknown value for location 2929func (t *OrderedCollectionPage) GetUnknownLocation() (v interface{}) { 2930 return t.location[0].unknown_ 2931 2932} 2933 2934// SetUnknownLocation sets the unknown value of location 2935func (t *OrderedCollectionPage) SetUnknownLocation(i interface{}) { 2936 if t.unknown_ == nil { 2937 t.unknown_ = make(map[string]interface{}) 2938 } 2939 tmp := &locationIntermediateType{} 2940 tmp.unknown_ = i 2941 t.location = append(t.location, tmp) 2942 2943} 2944 2945// PreviewLen determines the number of elements able to be used for the IsPreviewObject, GetPreviewObject, and RemovePreviewObject functions 2946func (t *OrderedCollectionPage) PreviewLen() (l int) { 2947 return len(t.preview) 2948 2949} 2950 2951// IsPreviewObject determines whether the call to GetPreviewObject is safe for the specified index 2952func (t *OrderedCollectionPage) IsPreviewObject(index int) (ok bool) { 2953 return t.preview[index].Object != nil 2954 2955} 2956 2957// GetPreviewObject returns the value safely if IsPreviewObject returned true for the specified index 2958func (t *OrderedCollectionPage) GetPreviewObject(index int) (v ObjectType) { 2959 return t.preview[index].Object 2960 2961} 2962 2963// AppendPreviewObject adds to the back of preview a ObjectType type 2964func (t *OrderedCollectionPage) AppendPreviewObject(v ObjectType) { 2965 t.preview = append(t.preview, &previewIntermediateType{Object: v}) 2966 2967} 2968 2969// PrependPreviewObject adds to the front of preview a ObjectType type 2970func (t *OrderedCollectionPage) PrependPreviewObject(v ObjectType) { 2971 t.preview = append([]*previewIntermediateType{&previewIntermediateType{Object: v}}, t.preview...) 2972 2973} 2974 2975// RemovePreviewObject deletes the value from the specified index 2976func (t *OrderedCollectionPage) RemovePreviewObject(index int) { 2977 copy(t.preview[index:], t.preview[index+1:]) 2978 t.preview[len(t.preview)-1] = nil 2979 t.preview = t.preview[:len(t.preview)-1] 2980 2981} 2982 2983// IsPreviewLink determines whether the call to GetPreviewLink is safe for the specified index 2984func (t *OrderedCollectionPage) IsPreviewLink(index int) (ok bool) { 2985 return t.preview[index].Link != nil 2986 2987} 2988 2989// GetPreviewLink returns the value safely if IsPreviewLink returned true for the specified index 2990func (t *OrderedCollectionPage) GetPreviewLink(index int) (v LinkType) { 2991 return t.preview[index].Link 2992 2993} 2994 2995// AppendPreviewLink adds to the back of preview a LinkType type 2996func (t *OrderedCollectionPage) AppendPreviewLink(v LinkType) { 2997 t.preview = append(t.preview, &previewIntermediateType{Link: v}) 2998 2999} 3000 3001// PrependPreviewLink adds to the front of preview a LinkType type 3002func (t *OrderedCollectionPage) PrependPreviewLink(v LinkType) { 3003 t.preview = append([]*previewIntermediateType{&previewIntermediateType{Link: v}}, t.preview...) 3004 3005} 3006 3007// RemovePreviewLink deletes the value from the specified index 3008func (t *OrderedCollectionPage) RemovePreviewLink(index int) { 3009 copy(t.preview[index:], t.preview[index+1:]) 3010 t.preview[len(t.preview)-1] = nil 3011 t.preview = t.preview[:len(t.preview)-1] 3012 3013} 3014 3015// IsPreviewIRI determines whether the call to GetPreviewIRI is safe for the specified index 3016func (t *OrderedCollectionPage) IsPreviewIRI(index int) (ok bool) { 3017 return t.preview[index].IRI != nil 3018 3019} 3020 3021// GetPreviewIRI returns the value safely if IsPreviewIRI returned true for the specified index 3022func (t *OrderedCollectionPage) GetPreviewIRI(index int) (v *url.URL) { 3023 return t.preview[index].IRI 3024 3025} 3026 3027// AppendPreviewIRI adds to the back of preview a *url.URL type 3028func (t *OrderedCollectionPage) AppendPreviewIRI(v *url.URL) { 3029 t.preview = append(t.preview, &previewIntermediateType{IRI: v}) 3030 3031} 3032 3033// PrependPreviewIRI adds to the front of preview a *url.URL type 3034func (t *OrderedCollectionPage) PrependPreviewIRI(v *url.URL) { 3035 t.preview = append([]*previewIntermediateType{&previewIntermediateType{IRI: v}}, t.preview...) 3036 3037} 3038 3039// RemovePreviewIRI deletes the value from the specified index 3040func (t *OrderedCollectionPage) RemovePreviewIRI(index int) { 3041 copy(t.preview[index:], t.preview[index+1:]) 3042 t.preview[len(t.preview)-1] = nil 3043 t.preview = t.preview[:len(t.preview)-1] 3044 3045} 3046 3047// HasUnknownPreview determines whether the call to GetUnknownPreview is safe 3048func (t *OrderedCollectionPage) HasUnknownPreview() (ok bool) { 3049 return t.preview != nil && t.preview[0].unknown_ != nil 3050 3051} 3052 3053// GetUnknownPreview returns the unknown value for preview 3054func (t *OrderedCollectionPage) GetUnknownPreview() (v interface{}) { 3055 return t.preview[0].unknown_ 3056 3057} 3058 3059// SetUnknownPreview sets the unknown value of preview 3060func (t *OrderedCollectionPage) SetUnknownPreview(i interface{}) { 3061 if t.unknown_ == nil { 3062 t.unknown_ = make(map[string]interface{}) 3063 } 3064 tmp := &previewIntermediateType{} 3065 tmp.unknown_ = i 3066 t.preview = append(t.preview, tmp) 3067 3068} 3069 3070// IsPublished determines whether the call to GetPublished is safe 3071func (t *OrderedCollectionPage) IsPublished() (ok bool) { 3072 return t.published != nil && t.published.dateTime != nil 3073 3074} 3075 3076// GetPublished returns the value safely if IsPublished returned true 3077func (t *OrderedCollectionPage) GetPublished() (v time.Time) { 3078 return *t.published.dateTime 3079 3080} 3081 3082// SetPublished sets the value of published to be of time.Time type 3083func (t *OrderedCollectionPage) SetPublished(v time.Time) { 3084 t.published = &publishedIntermediateType{dateTime: &v} 3085 3086} 3087 3088// IsPublishedIRI determines whether the call to GetPublishedIRI is safe 3089func (t *OrderedCollectionPage) IsPublishedIRI() (ok bool) { 3090 return t.published != nil && t.published.IRI != nil 3091 3092} 3093 3094// GetPublishedIRI returns the value safely if IsPublishedIRI returned true 3095func (t *OrderedCollectionPage) GetPublishedIRI() (v *url.URL) { 3096 return t.published.IRI 3097 3098} 3099 3100// SetPublishedIRI sets the value of published to be of *url.URL type 3101func (t *OrderedCollectionPage) SetPublishedIRI(v *url.URL) { 3102 t.published = &publishedIntermediateType{IRI: v} 3103 3104} 3105 3106// HasUnknownPublished determines whether the call to GetUnknownPublished is safe 3107func (t *OrderedCollectionPage) HasUnknownPublished() (ok bool) { 3108 return t.published != nil && t.published.unknown_ != nil 3109 3110} 3111 3112// GetUnknownPublished returns the unknown value for published 3113func (t *OrderedCollectionPage) GetUnknownPublished() (v interface{}) { 3114 return t.published.unknown_ 3115 3116} 3117 3118// SetUnknownPublished sets the unknown value of published 3119func (t *OrderedCollectionPage) SetUnknownPublished(i interface{}) { 3120 if t.unknown_ == nil { 3121 t.unknown_ = make(map[string]interface{}) 3122 } 3123 tmp := &publishedIntermediateType{} 3124 tmp.unknown_ = i 3125 t.published = tmp 3126 3127} 3128 3129// IsReplies determines whether the call to GetReplies is safe 3130func (t *OrderedCollectionPage) IsReplies() (ok bool) { 3131 return t.replies != nil && t.replies.Collection != nil 3132 3133} 3134 3135// GetReplies returns the value safely if IsReplies returned true 3136func (t *OrderedCollectionPage) GetReplies() (v CollectionType) { 3137 return t.replies.Collection 3138 3139} 3140 3141// SetReplies sets the value of replies to be of CollectionType type 3142func (t *OrderedCollectionPage) SetReplies(v CollectionType) { 3143 t.replies = &repliesIntermediateType{Collection: v} 3144 3145} 3146 3147// IsRepliesIRI determines whether the call to GetRepliesIRI is safe 3148func (t *OrderedCollectionPage) IsRepliesIRI() (ok bool) { 3149 return t.replies != nil && t.replies.IRI != nil 3150 3151} 3152 3153// GetRepliesIRI returns the value safely if IsRepliesIRI returned true 3154func (t *OrderedCollectionPage) GetRepliesIRI() (v *url.URL) { 3155 return t.replies.IRI 3156 3157} 3158 3159// SetRepliesIRI sets the value of replies to be of *url.URL type 3160func (t *OrderedCollectionPage) SetRepliesIRI(v *url.URL) { 3161 t.replies = &repliesIntermediateType{IRI: v} 3162 3163} 3164 3165// HasUnknownReplies determines whether the call to GetUnknownReplies is safe 3166func (t *OrderedCollectionPage) HasUnknownReplies() (ok bool) { 3167 return t.replies != nil && t.replies.unknown_ != nil 3168 3169} 3170 3171// GetUnknownReplies returns the unknown value for replies 3172func (t *OrderedCollectionPage) GetUnknownReplies() (v interface{}) { 3173 return t.replies.unknown_ 3174 3175} 3176 3177// SetUnknownReplies sets the unknown value of replies 3178func (t *OrderedCollectionPage) SetUnknownReplies(i interface{}) { 3179 if t.unknown_ == nil { 3180 t.unknown_ = make(map[string]interface{}) 3181 } 3182 tmp := &repliesIntermediateType{} 3183 tmp.unknown_ = i 3184 t.replies = tmp 3185 3186} 3187 3188// IsStartTime determines whether the call to GetStartTime is safe 3189func (t *OrderedCollectionPage) IsStartTime() (ok bool) { 3190 return t.startTime != nil && t.startTime.dateTime != nil 3191 3192} 3193 3194// GetStartTime returns the value safely if IsStartTime returned true 3195func (t *OrderedCollectionPage) GetStartTime() (v time.Time) { 3196 return *t.startTime.dateTime 3197 3198} 3199 3200// SetStartTime sets the value of startTime to be of time.Time type 3201func (t *OrderedCollectionPage) SetStartTime(v time.Time) { 3202 t.startTime = &startTimeIntermediateType{dateTime: &v} 3203 3204} 3205 3206// IsStartTimeIRI determines whether the call to GetStartTimeIRI is safe 3207func (t *OrderedCollectionPage) IsStartTimeIRI() (ok bool) { 3208 return t.startTime != nil && t.startTime.IRI != nil 3209 3210} 3211 3212// GetStartTimeIRI returns the value safely if IsStartTimeIRI returned true 3213func (t *OrderedCollectionPage) GetStartTimeIRI() (v *url.URL) { 3214 return t.startTime.IRI 3215 3216} 3217 3218// SetStartTimeIRI sets the value of startTime to be of *url.URL type 3219func (t *OrderedCollectionPage) SetStartTimeIRI(v *url.URL) { 3220 t.startTime = &startTimeIntermediateType{IRI: v} 3221 3222} 3223 3224// HasUnknownStartTime determines whether the call to GetUnknownStartTime is safe 3225func (t *OrderedCollectionPage) HasUnknownStartTime() (ok bool) { 3226 return t.startTime != nil && t.startTime.unknown_ != nil 3227 3228} 3229 3230// GetUnknownStartTime returns the unknown value for startTime 3231func (t *OrderedCollectionPage) GetUnknownStartTime() (v interface{}) { 3232 return t.startTime.unknown_ 3233 3234} 3235 3236// SetUnknownStartTime sets the unknown value of startTime 3237func (t *OrderedCollectionPage) SetUnknownStartTime(i interface{}) { 3238 if t.unknown_ == nil { 3239 t.unknown_ = make(map[string]interface{}) 3240 } 3241 tmp := &startTimeIntermediateType{} 3242 tmp.unknown_ = i 3243 t.startTime = tmp 3244 3245} 3246 3247// SummaryLen determines the number of elements able to be used for the IsSummaryString, GetSummaryString, and RemoveSummaryString functions 3248func (t *OrderedCollectionPage) SummaryLen() (l int) { 3249 return len(t.summary) 3250 3251} 3252 3253// IsSummaryString determines whether the call to GetSummaryString is safe for the specified index 3254func (t *OrderedCollectionPage) IsSummaryString(index int) (ok bool) { 3255 return t.summary[index].stringName != nil 3256 3257} 3258 3259// GetSummaryString returns the value safely if IsSummaryString returned true for the specified index 3260func (t *OrderedCollectionPage) GetSummaryString(index int) (v string) { 3261 return *t.summary[index].stringName 3262 3263} 3264 3265// AppendSummaryString adds to the back of summary a string type 3266func (t *OrderedCollectionPage) AppendSummaryString(v string) { 3267 t.summary = append(t.summary, &summaryIntermediateType{stringName: &v}) 3268 3269} 3270 3271// PrependSummaryString adds to the front of summary a string type 3272func (t *OrderedCollectionPage) PrependSummaryString(v string) { 3273 t.summary = append([]*summaryIntermediateType{&summaryIntermediateType{stringName: &v}}, t.summary...) 3274 3275} 3276 3277// RemoveSummaryString deletes the value from the specified index 3278func (t *OrderedCollectionPage) RemoveSummaryString(index int) { 3279 copy(t.summary[index:], t.summary[index+1:]) 3280 t.summary[len(t.summary)-1] = nil 3281 t.summary = t.summary[:len(t.summary)-1] 3282 3283} 3284 3285// IsSummaryLangString determines whether the call to GetSummaryLangString is safe for the specified index 3286func (t *OrderedCollectionPage) IsSummaryLangString(index int) (ok bool) { 3287 return t.summary[index].langString != nil 3288 3289} 3290 3291// GetSummaryLangString returns the value safely if IsSummaryLangString returned true for the specified index 3292func (t *OrderedCollectionPage) GetSummaryLangString(index int) (v string) { 3293 return *t.summary[index].langString 3294 3295} 3296 3297// AppendSummaryLangString adds to the back of summary a string type 3298func (t *OrderedCollectionPage) AppendSummaryLangString(v string) { 3299 t.summary = append(t.summary, &summaryIntermediateType{langString: &v}) 3300 3301} 3302 3303// PrependSummaryLangString adds to the front of summary a string type 3304func (t *OrderedCollectionPage) PrependSummaryLangString(v string) { 3305 t.summary = append([]*summaryIntermediateType{&summaryIntermediateType{langString: &v}}, t.summary...) 3306 3307} 3308 3309// RemoveSummaryLangString deletes the value from the specified index 3310func (t *OrderedCollectionPage) RemoveSummaryLangString(index int) { 3311 copy(t.summary[index:], t.summary[index+1:]) 3312 t.summary[len(t.summary)-1] = nil 3313 t.summary = t.summary[:len(t.summary)-1] 3314 3315} 3316 3317// IsSummaryIRI determines whether the call to GetSummaryIRI is safe for the specified index 3318func (t *OrderedCollectionPage) IsSummaryIRI(index int) (ok bool) { 3319 return t.summary[index].IRI != nil 3320 3321} 3322 3323// GetSummaryIRI returns the value safely if IsSummaryIRI returned true for the specified index 3324func (t *OrderedCollectionPage) GetSummaryIRI(index int) (v *url.URL) { 3325 return t.summary[index].IRI 3326 3327} 3328 3329// AppendSummaryIRI adds to the back of summary a *url.URL type 3330func (t *OrderedCollectionPage) AppendSummaryIRI(v *url.URL) { 3331 t.summary = append(t.summary, &summaryIntermediateType{IRI: v}) 3332 3333} 3334 3335// PrependSummaryIRI adds to the front of summary a *url.URL type 3336func (t *OrderedCollectionPage) PrependSummaryIRI(v *url.URL) { 3337 t.summary = append([]*summaryIntermediateType{&summaryIntermediateType{IRI: v}}, t.summary...) 3338 3339} 3340 3341// RemoveSummaryIRI deletes the value from the specified index 3342func (t *OrderedCollectionPage) RemoveSummaryIRI(index int) { 3343 copy(t.summary[index:], t.summary[index+1:]) 3344 t.summary[len(t.summary)-1] = nil 3345 t.summary = t.summary[:len(t.summary)-1] 3346 3347} 3348 3349// HasUnknownSummary determines whether the call to GetUnknownSummary is safe 3350func (t *OrderedCollectionPage) HasUnknownSummary() (ok bool) { 3351 return t.summary != nil && t.summary[0].unknown_ != nil 3352 3353} 3354 3355// GetUnknownSummary returns the unknown value for summary 3356func (t *OrderedCollectionPage) GetUnknownSummary() (v interface{}) { 3357 return t.summary[0].unknown_ 3358 3359} 3360 3361// SetUnknownSummary sets the unknown value of summary 3362func (t *OrderedCollectionPage) SetUnknownSummary(i interface{}) { 3363 if t.unknown_ == nil { 3364 t.unknown_ = make(map[string]interface{}) 3365 } 3366 tmp := &summaryIntermediateType{} 3367 tmp.unknown_ = i 3368 t.summary = append(t.summary, tmp) 3369 3370} 3371 3372// SummaryMapLanguages returns all languages for this property's language mapping, or nil if there are none. 3373func (t *OrderedCollectionPage) SummaryMapLanguages() (l []string) { 3374 if t.summaryMap == nil || len(t.summaryMap) == 0 { 3375 return nil 3376 } 3377 for k := range t.summaryMap { 3378 l = append(l, k) 3379 } 3380 return 3381 3382} 3383 3384// GetSummaryMap retrieves the value of the property for the specified language, or an empty string if it does not exist 3385func (t *OrderedCollectionPage) GetSummaryMap(l string) (v string) { 3386 if t.summaryMap == nil { 3387 return "" 3388 } 3389 ok := false 3390 v, ok = t.summaryMap[l] 3391 if !ok { 3392 return "" 3393 } 3394 return v 3395 3396} 3397 3398// SetSummaryMap sets the value of the property for the specified language 3399func (t *OrderedCollectionPage) SetSummaryMap(l string, v string) { 3400 if t.summaryMap == nil { 3401 t.summaryMap = make(map[string]string) 3402 } 3403 t.summaryMap[l] = v 3404 3405} 3406 3407// TagLen determines the number of elements able to be used for the IsTagObject, GetTagObject, and RemoveTagObject functions 3408func (t *OrderedCollectionPage) TagLen() (l int) { 3409 return len(t.tag) 3410 3411} 3412 3413// IsTagObject determines whether the call to GetTagObject is safe for the specified index 3414func (t *OrderedCollectionPage) IsTagObject(index int) (ok bool) { 3415 return t.tag[index].Object != nil 3416 3417} 3418 3419// GetTagObject returns the value safely if IsTagObject returned true for the specified index 3420func (t *OrderedCollectionPage) GetTagObject(index int) (v ObjectType) { 3421 return t.tag[index].Object 3422 3423} 3424 3425// AppendTagObject adds to the back of tag a ObjectType type 3426func (t *OrderedCollectionPage) AppendTagObject(v ObjectType) { 3427 t.tag = append(t.tag, &tagIntermediateType{Object: v}) 3428 3429} 3430 3431// PrependTagObject adds to the front of tag a ObjectType type 3432func (t *OrderedCollectionPage) PrependTagObject(v ObjectType) { 3433 t.tag = append([]*tagIntermediateType{&tagIntermediateType{Object: v}}, t.tag...) 3434 3435} 3436 3437// RemoveTagObject deletes the value from the specified index 3438func (t *OrderedCollectionPage) RemoveTagObject(index int) { 3439 copy(t.tag[index:], t.tag[index+1:]) 3440 t.tag[len(t.tag)-1] = nil 3441 t.tag = t.tag[:len(t.tag)-1] 3442 3443} 3444 3445// IsTagLink determines whether the call to GetTagLink is safe for the specified index 3446func (t *OrderedCollectionPage) IsTagLink(index int) (ok bool) { 3447 return t.tag[index].Link != nil 3448 3449} 3450 3451// GetTagLink returns the value safely if IsTagLink returned true for the specified index 3452func (t *OrderedCollectionPage) GetTagLink(index int) (v LinkType) { 3453 return t.tag[index].Link 3454 3455} 3456 3457// AppendTagLink adds to the back of tag a LinkType type 3458func (t *OrderedCollectionPage) AppendTagLink(v LinkType) { 3459 t.tag = append(t.tag, &tagIntermediateType{Link: v}) 3460 3461} 3462 3463// PrependTagLink adds to the front of tag a LinkType type 3464func (t *OrderedCollectionPage) PrependTagLink(v LinkType) { 3465 t.tag = append([]*tagIntermediateType{&tagIntermediateType{Link: v}}, t.tag...) 3466 3467} 3468 3469// RemoveTagLink deletes the value from the specified index 3470func (t *OrderedCollectionPage) RemoveTagLink(index int) { 3471 copy(t.tag[index:], t.tag[index+1:]) 3472 t.tag[len(t.tag)-1] = nil 3473 t.tag = t.tag[:len(t.tag)-1] 3474 3475} 3476 3477// IsTagIRI determines whether the call to GetTagIRI is safe for the specified index 3478func (t *OrderedCollectionPage) IsTagIRI(index int) (ok bool) { 3479 return t.tag[index].IRI != nil 3480 3481} 3482 3483// GetTagIRI returns the value safely if IsTagIRI returned true for the specified index 3484func (t *OrderedCollectionPage) GetTagIRI(index int) (v *url.URL) { 3485 return t.tag[index].IRI 3486 3487} 3488 3489// AppendTagIRI adds to the back of tag a *url.URL type 3490func (t *OrderedCollectionPage) AppendTagIRI(v *url.URL) { 3491 t.tag = append(t.tag, &tagIntermediateType{IRI: v}) 3492 3493} 3494 3495// PrependTagIRI adds to the front of tag a *url.URL type 3496func (t *OrderedCollectionPage) PrependTagIRI(v *url.URL) { 3497 t.tag = append([]*tagIntermediateType{&tagIntermediateType{IRI: v}}, t.tag...) 3498 3499} 3500 3501// RemoveTagIRI deletes the value from the specified index 3502func (t *OrderedCollectionPage) RemoveTagIRI(index int) { 3503 copy(t.tag[index:], t.tag[index+1:]) 3504 t.tag[len(t.tag)-1] = nil 3505 t.tag = t.tag[:len(t.tag)-1] 3506 3507} 3508 3509// HasUnknownTag determines whether the call to GetUnknownTag is safe 3510func (t *OrderedCollectionPage) HasUnknownTag() (ok bool) { 3511 return t.tag != nil && t.tag[0].unknown_ != nil 3512 3513} 3514 3515// GetUnknownTag returns the unknown value for tag 3516func (t *OrderedCollectionPage) GetUnknownTag() (v interface{}) { 3517 return t.tag[0].unknown_ 3518 3519} 3520 3521// SetUnknownTag sets the unknown value of tag 3522func (t *OrderedCollectionPage) SetUnknownTag(i interface{}) { 3523 if t.unknown_ == nil { 3524 t.unknown_ = make(map[string]interface{}) 3525 } 3526 tmp := &tagIntermediateType{} 3527 tmp.unknown_ = i 3528 t.tag = append(t.tag, tmp) 3529 3530} 3531 3532// TypeLen determines the number of elements able to be used for the GetType and RemoveType functions 3533func (t *OrderedCollectionPage) TypeLen() (l int) { 3534 return len(t.typeName) 3535 3536} 3537 3538// GetType returns the value for the specified index 3539func (t *OrderedCollectionPage) GetType(index int) (v interface{}) { 3540 return t.typeName[index] 3541 3542} 3543 3544// AppendType adds a value to the back of type 3545func (t *OrderedCollectionPage) AppendType(v interface{}) { 3546 t.typeName = append(t.typeName, v) 3547 3548} 3549 3550// PrependType adds a value to the front of type 3551func (t *OrderedCollectionPage) PrependType(v interface{}) { 3552 t.typeName = append([]interface{}{v}, t.typeName...) 3553 3554} 3555 3556// RemoveType deletes the value from the specified index 3557func (t *OrderedCollectionPage) RemoveType(index int) { 3558 copy(t.typeName[index:], t.typeName[index+1:]) 3559 t.typeName[len(t.typeName)-1] = nil 3560 t.typeName = t.typeName[:len(t.typeName)-1] 3561 3562} 3563 3564// IsUpdated determines whether the call to GetUpdated is safe 3565func (t *OrderedCollectionPage) IsUpdated() (ok bool) { 3566 return t.updated != nil && t.updated.dateTime != nil 3567 3568} 3569 3570// GetUpdated returns the value safely if IsUpdated returned true 3571func (t *OrderedCollectionPage) GetUpdated() (v time.Time) { 3572 return *t.updated.dateTime 3573 3574} 3575 3576// SetUpdated sets the value of updated to be of time.Time type 3577func (t *OrderedCollectionPage) SetUpdated(v time.Time) { 3578 t.updated = &updatedIntermediateType{dateTime: &v} 3579 3580} 3581 3582// IsUpdatedIRI determines whether the call to GetUpdatedIRI is safe 3583func (t *OrderedCollectionPage) IsUpdatedIRI() (ok bool) { 3584 return t.updated != nil && t.updated.IRI != nil 3585 3586} 3587 3588// GetUpdatedIRI returns the value safely if IsUpdatedIRI returned true 3589func (t *OrderedCollectionPage) GetUpdatedIRI() (v *url.URL) { 3590 return t.updated.IRI 3591 3592} 3593 3594// SetUpdatedIRI sets the value of updated to be of *url.URL type 3595func (t *OrderedCollectionPage) SetUpdatedIRI(v *url.URL) { 3596 t.updated = &updatedIntermediateType{IRI: v} 3597 3598} 3599 3600// HasUnknownUpdated determines whether the call to GetUnknownUpdated is safe 3601func (t *OrderedCollectionPage) HasUnknownUpdated() (ok bool) { 3602 return t.updated != nil && t.updated.unknown_ != nil 3603 3604} 3605 3606// GetUnknownUpdated returns the unknown value for updated 3607func (t *OrderedCollectionPage) GetUnknownUpdated() (v interface{}) { 3608 return t.updated.unknown_ 3609 3610} 3611 3612// SetUnknownUpdated sets the unknown value of updated 3613func (t *OrderedCollectionPage) SetUnknownUpdated(i interface{}) { 3614 if t.unknown_ == nil { 3615 t.unknown_ = make(map[string]interface{}) 3616 } 3617 tmp := &updatedIntermediateType{} 3618 tmp.unknown_ = i 3619 t.updated = tmp 3620 3621} 3622 3623// UrlLen determines the number of elements able to be used for the IsUrlAnyURI, GetUrlAnyURI, and RemoveUrlAnyURI functions 3624func (t *OrderedCollectionPage) UrlLen() (l int) { 3625 return len(t.url) 3626 3627} 3628 3629// IsUrlAnyURI determines whether the call to GetUrlAnyURI is safe for the specified index 3630func (t *OrderedCollectionPage) IsUrlAnyURI(index int) (ok bool) { 3631 return t.url[index].anyURI != nil 3632 3633} 3634 3635// GetUrlAnyURI returns the value safely if IsUrlAnyURI returned true for the specified index 3636func (t *OrderedCollectionPage) GetUrlAnyURI(index int) (v *url.URL) { 3637 return t.url[index].anyURI 3638 3639} 3640 3641// AppendUrlAnyURI adds to the back of url a *url.URL type 3642func (t *OrderedCollectionPage) AppendUrlAnyURI(v *url.URL) { 3643 t.url = append(t.url, &urlIntermediateType{anyURI: v}) 3644 3645} 3646 3647// PrependUrlAnyURI adds to the front of url a *url.URL type 3648func (t *OrderedCollectionPage) PrependUrlAnyURI(v *url.URL) { 3649 t.url = append([]*urlIntermediateType{&urlIntermediateType{anyURI: v}}, t.url...) 3650 3651} 3652 3653// RemoveUrlAnyURI deletes the value from the specified index 3654func (t *OrderedCollectionPage) RemoveUrlAnyURI(index int) { 3655 copy(t.url[index:], t.url[index+1:]) 3656 t.url[len(t.url)-1] = nil 3657 t.url = t.url[:len(t.url)-1] 3658 3659} 3660 3661// IsUrlLink determines whether the call to GetUrlLink is safe for the specified index 3662func (t *OrderedCollectionPage) IsUrlLink(index int) (ok bool) { 3663 return t.url[index].Link != nil 3664 3665} 3666 3667// GetUrlLink returns the value safely if IsUrlLink returned true for the specified index 3668func (t *OrderedCollectionPage) GetUrlLink(index int) (v LinkType) { 3669 return t.url[index].Link 3670 3671} 3672 3673// AppendUrlLink adds to the back of url a LinkType type 3674func (t *OrderedCollectionPage) AppendUrlLink(v LinkType) { 3675 t.url = append(t.url, &urlIntermediateType{Link: v}) 3676 3677} 3678 3679// PrependUrlLink adds to the front of url a LinkType type 3680func (t *OrderedCollectionPage) PrependUrlLink(v LinkType) { 3681 t.url = append([]*urlIntermediateType{&urlIntermediateType{Link: v}}, t.url...) 3682 3683} 3684 3685// RemoveUrlLink deletes the value from the specified index 3686func (t *OrderedCollectionPage) RemoveUrlLink(index int) { 3687 copy(t.url[index:], t.url[index+1:]) 3688 t.url[len(t.url)-1] = nil 3689 t.url = t.url[:len(t.url)-1] 3690 3691} 3692 3693// HasUnknownUrl determines whether the call to GetUnknownUrl is safe 3694func (t *OrderedCollectionPage) HasUnknownUrl() (ok bool) { 3695 return t.url != nil && t.url[0].unknown_ != nil 3696 3697} 3698 3699// GetUnknownUrl returns the unknown value for url 3700func (t *OrderedCollectionPage) GetUnknownUrl() (v interface{}) { 3701 return t.url[0].unknown_ 3702 3703} 3704 3705// SetUnknownUrl sets the unknown value of url 3706func (t *OrderedCollectionPage) SetUnknownUrl(i interface{}) { 3707 if t.unknown_ == nil { 3708 t.unknown_ = make(map[string]interface{}) 3709 } 3710 tmp := &urlIntermediateType{} 3711 tmp.unknown_ = i 3712 t.url = append(t.url, tmp) 3713 3714} 3715 3716// ToLen determines the number of elements able to be used for the IsToObject, GetToObject, and RemoveToObject functions 3717func (t *OrderedCollectionPage) ToLen() (l int) { 3718 return len(t.to) 3719 3720} 3721 3722// IsToObject determines whether the call to GetToObject is safe for the specified index 3723func (t *OrderedCollectionPage) IsToObject(index int) (ok bool) { 3724 return t.to[index].Object != nil 3725 3726} 3727 3728// GetToObject returns the value safely if IsToObject returned true for the specified index 3729func (t *OrderedCollectionPage) GetToObject(index int) (v ObjectType) { 3730 return t.to[index].Object 3731 3732} 3733 3734// AppendToObject adds to the back of to a ObjectType type 3735func (t *OrderedCollectionPage) AppendToObject(v ObjectType) { 3736 t.to = append(t.to, &toIntermediateType{Object: v}) 3737 3738} 3739 3740// PrependToObject adds to the front of to a ObjectType type 3741func (t *OrderedCollectionPage) PrependToObject(v ObjectType) { 3742 t.to = append([]*toIntermediateType{&toIntermediateType{Object: v}}, t.to...) 3743 3744} 3745 3746// RemoveToObject deletes the value from the specified index 3747func (t *OrderedCollectionPage) RemoveToObject(index int) { 3748 copy(t.to[index:], t.to[index+1:]) 3749 t.to[len(t.to)-1] = nil 3750 t.to = t.to[:len(t.to)-1] 3751 3752} 3753 3754// IsToLink determines whether the call to GetToLink is safe for the specified index 3755func (t *OrderedCollectionPage) IsToLink(index int) (ok bool) { 3756 return t.to[index].Link != nil 3757 3758} 3759 3760// GetToLink returns the value safely if IsToLink returned true for the specified index 3761func (t *OrderedCollectionPage) GetToLink(index int) (v LinkType) { 3762 return t.to[index].Link 3763 3764} 3765 3766// AppendToLink adds to the back of to a LinkType type 3767func (t *OrderedCollectionPage) AppendToLink(v LinkType) { 3768 t.to = append(t.to, &toIntermediateType{Link: v}) 3769 3770} 3771 3772// PrependToLink adds to the front of to a LinkType type 3773func (t *OrderedCollectionPage) PrependToLink(v LinkType) { 3774 t.to = append([]*toIntermediateType{&toIntermediateType{Link: v}}, t.to...) 3775 3776} 3777 3778// RemoveToLink deletes the value from the specified index 3779func (t *OrderedCollectionPage) RemoveToLink(index int) { 3780 copy(t.to[index:], t.to[index+1:]) 3781 t.to[len(t.to)-1] = nil 3782 t.to = t.to[:len(t.to)-1] 3783 3784} 3785 3786// IsToIRI determines whether the call to GetToIRI is safe for the specified index 3787func (t *OrderedCollectionPage) IsToIRI(index int) (ok bool) { 3788 return t.to[index].IRI != nil 3789 3790} 3791 3792// GetToIRI returns the value safely if IsToIRI returned true for the specified index 3793func (t *OrderedCollectionPage) GetToIRI(index int) (v *url.URL) { 3794 return t.to[index].IRI 3795 3796} 3797 3798// AppendToIRI adds to the back of to a *url.URL type 3799func (t *OrderedCollectionPage) AppendToIRI(v *url.URL) { 3800 t.to = append(t.to, &toIntermediateType{IRI: v}) 3801 3802} 3803 3804// PrependToIRI adds to the front of to a *url.URL type 3805func (t *OrderedCollectionPage) PrependToIRI(v *url.URL) { 3806 t.to = append([]*toIntermediateType{&toIntermediateType{IRI: v}}, t.to...) 3807 3808} 3809 3810// RemoveToIRI deletes the value from the specified index 3811func (t *OrderedCollectionPage) RemoveToIRI(index int) { 3812 copy(t.to[index:], t.to[index+1:]) 3813 t.to[len(t.to)-1] = nil 3814 t.to = t.to[:len(t.to)-1] 3815 3816} 3817 3818// HasUnknownTo determines whether the call to GetUnknownTo is safe 3819func (t *OrderedCollectionPage) HasUnknownTo() (ok bool) { 3820 return t.to != nil && t.to[0].unknown_ != nil 3821 3822} 3823 3824// GetUnknownTo returns the unknown value for to 3825func (t *OrderedCollectionPage) GetUnknownTo() (v interface{}) { 3826 return t.to[0].unknown_ 3827 3828} 3829 3830// SetUnknownTo sets the unknown value of to 3831func (t *OrderedCollectionPage) SetUnknownTo(i interface{}) { 3832 if t.unknown_ == nil { 3833 t.unknown_ = make(map[string]interface{}) 3834 } 3835 tmp := &toIntermediateType{} 3836 tmp.unknown_ = i 3837 t.to = append(t.to, tmp) 3838 3839} 3840 3841// BtoLen determines the number of elements able to be used for the IsBtoObject, GetBtoObject, and RemoveBtoObject functions 3842func (t *OrderedCollectionPage) BtoLen() (l int) { 3843 return len(t.bto) 3844 3845} 3846 3847// IsBtoObject determines whether the call to GetBtoObject is safe for the specified index 3848func (t *OrderedCollectionPage) IsBtoObject(index int) (ok bool) { 3849 return t.bto[index].Object != nil 3850 3851} 3852 3853// GetBtoObject returns the value safely if IsBtoObject returned true for the specified index 3854func (t *OrderedCollectionPage) GetBtoObject(index int) (v ObjectType) { 3855 return t.bto[index].Object 3856 3857} 3858 3859// AppendBtoObject adds to the back of bto a ObjectType type 3860func (t *OrderedCollectionPage) AppendBtoObject(v ObjectType) { 3861 t.bto = append(t.bto, &btoIntermediateType{Object: v}) 3862 3863} 3864 3865// PrependBtoObject adds to the front of bto a ObjectType type 3866func (t *OrderedCollectionPage) PrependBtoObject(v ObjectType) { 3867 t.bto = append([]*btoIntermediateType{&btoIntermediateType{Object: v}}, t.bto...) 3868 3869} 3870 3871// RemoveBtoObject deletes the value from the specified index 3872func (t *OrderedCollectionPage) RemoveBtoObject(index int) { 3873 copy(t.bto[index:], t.bto[index+1:]) 3874 t.bto[len(t.bto)-1] = nil 3875 t.bto = t.bto[:len(t.bto)-1] 3876 3877} 3878 3879// IsBtoLink determines whether the call to GetBtoLink is safe for the specified index 3880func (t *OrderedCollectionPage) IsBtoLink(index int) (ok bool) { 3881 return t.bto[index].Link != nil 3882 3883} 3884 3885// GetBtoLink returns the value safely if IsBtoLink returned true for the specified index 3886func (t *OrderedCollectionPage) GetBtoLink(index int) (v LinkType) { 3887 return t.bto[index].Link 3888 3889} 3890 3891// AppendBtoLink adds to the back of bto a LinkType type 3892func (t *OrderedCollectionPage) AppendBtoLink(v LinkType) { 3893 t.bto = append(t.bto, &btoIntermediateType{Link: v}) 3894 3895} 3896 3897// PrependBtoLink adds to the front of bto a LinkType type 3898func (t *OrderedCollectionPage) PrependBtoLink(v LinkType) { 3899 t.bto = append([]*btoIntermediateType{&btoIntermediateType{Link: v}}, t.bto...) 3900 3901} 3902 3903// RemoveBtoLink deletes the value from the specified index 3904func (t *OrderedCollectionPage) RemoveBtoLink(index int) { 3905 copy(t.bto[index:], t.bto[index+1:]) 3906 t.bto[len(t.bto)-1] = nil 3907 t.bto = t.bto[:len(t.bto)-1] 3908 3909} 3910 3911// IsBtoIRI determines whether the call to GetBtoIRI is safe for the specified index 3912func (t *OrderedCollectionPage) IsBtoIRI(index int) (ok bool) { 3913 return t.bto[index].IRI != nil 3914 3915} 3916 3917// GetBtoIRI returns the value safely if IsBtoIRI returned true for the specified index 3918func (t *OrderedCollectionPage) GetBtoIRI(index int) (v *url.URL) { 3919 return t.bto[index].IRI 3920 3921} 3922 3923// AppendBtoIRI adds to the back of bto a *url.URL type 3924func (t *OrderedCollectionPage) AppendBtoIRI(v *url.URL) { 3925 t.bto = append(t.bto, &btoIntermediateType{IRI: v}) 3926 3927} 3928 3929// PrependBtoIRI adds to the front of bto a *url.URL type 3930func (t *OrderedCollectionPage) PrependBtoIRI(v *url.URL) { 3931 t.bto = append([]*btoIntermediateType{&btoIntermediateType{IRI: v}}, t.bto...) 3932 3933} 3934 3935// RemoveBtoIRI deletes the value from the specified index 3936func (t *OrderedCollectionPage) RemoveBtoIRI(index int) { 3937 copy(t.bto[index:], t.bto[index+1:]) 3938 t.bto[len(t.bto)-1] = nil 3939 t.bto = t.bto[:len(t.bto)-1] 3940 3941} 3942 3943// HasUnknownBto determines whether the call to GetUnknownBto is safe 3944func (t *OrderedCollectionPage) HasUnknownBto() (ok bool) { 3945 return t.bto != nil && t.bto[0].unknown_ != nil 3946 3947} 3948 3949// GetUnknownBto returns the unknown value for bto 3950func (t *OrderedCollectionPage) GetUnknownBto() (v interface{}) { 3951 return t.bto[0].unknown_ 3952 3953} 3954 3955// SetUnknownBto sets the unknown value of bto 3956func (t *OrderedCollectionPage) SetUnknownBto(i interface{}) { 3957 if t.unknown_ == nil { 3958 t.unknown_ = make(map[string]interface{}) 3959 } 3960 tmp := &btoIntermediateType{} 3961 tmp.unknown_ = i 3962 t.bto = append(t.bto, tmp) 3963 3964} 3965 3966// CcLen determines the number of elements able to be used for the IsCcObject, GetCcObject, and RemoveCcObject functions 3967func (t *OrderedCollectionPage) CcLen() (l int) { 3968 return len(t.cc) 3969 3970} 3971 3972// IsCcObject determines whether the call to GetCcObject is safe for the specified index 3973func (t *OrderedCollectionPage) IsCcObject(index int) (ok bool) { 3974 return t.cc[index].Object != nil 3975 3976} 3977 3978// GetCcObject returns the value safely if IsCcObject returned true for the specified index 3979func (t *OrderedCollectionPage) GetCcObject(index int) (v ObjectType) { 3980 return t.cc[index].Object 3981 3982} 3983 3984// AppendCcObject adds to the back of cc a ObjectType type 3985func (t *OrderedCollectionPage) AppendCcObject(v ObjectType) { 3986 t.cc = append(t.cc, &ccIntermediateType{Object: v}) 3987 3988} 3989 3990// PrependCcObject adds to the front of cc a ObjectType type 3991func (t *OrderedCollectionPage) PrependCcObject(v ObjectType) { 3992 t.cc = append([]*ccIntermediateType{&ccIntermediateType{Object: v}}, t.cc...) 3993 3994} 3995 3996// RemoveCcObject deletes the value from the specified index 3997func (t *OrderedCollectionPage) RemoveCcObject(index int) { 3998 copy(t.cc[index:], t.cc[index+1:]) 3999 t.cc[len(t.cc)-1] = nil 4000 t.cc = t.cc[:len(t.cc)-1] 4001 4002} 4003 4004// IsCcLink determines whether the call to GetCcLink is safe for the specified index 4005func (t *OrderedCollectionPage) IsCcLink(index int) (ok bool) { 4006 return t.cc[index].Link != nil 4007 4008} 4009 4010// GetCcLink returns the value safely if IsCcLink returned true for the specified index 4011func (t *OrderedCollectionPage) GetCcLink(index int) (v LinkType) { 4012 return t.cc[index].Link 4013 4014} 4015 4016// AppendCcLink adds to the back of cc a LinkType type 4017func (t *OrderedCollectionPage) AppendCcLink(v LinkType) { 4018 t.cc = append(t.cc, &ccIntermediateType{Link: v}) 4019 4020} 4021 4022// PrependCcLink adds to the front of cc a LinkType type 4023func (t *OrderedCollectionPage) PrependCcLink(v LinkType) { 4024 t.cc = append([]*ccIntermediateType{&ccIntermediateType{Link: v}}, t.cc...) 4025 4026} 4027 4028// RemoveCcLink deletes the value from the specified index 4029func (t *OrderedCollectionPage) RemoveCcLink(index int) { 4030 copy(t.cc[index:], t.cc[index+1:]) 4031 t.cc[len(t.cc)-1] = nil 4032 t.cc = t.cc[:len(t.cc)-1] 4033 4034} 4035 4036// IsCcIRI determines whether the call to GetCcIRI is safe for the specified index 4037func (t *OrderedCollectionPage) IsCcIRI(index int) (ok bool) { 4038 return t.cc[index].IRI != nil 4039 4040} 4041 4042// GetCcIRI returns the value safely if IsCcIRI returned true for the specified index 4043func (t *OrderedCollectionPage) GetCcIRI(index int) (v *url.URL) { 4044 return t.cc[index].IRI 4045 4046} 4047 4048// AppendCcIRI adds to the back of cc a *url.URL type 4049func (t *OrderedCollectionPage) AppendCcIRI(v *url.URL) { 4050 t.cc = append(t.cc, &ccIntermediateType{IRI: v}) 4051 4052} 4053 4054// PrependCcIRI adds to the front of cc a *url.URL type 4055func (t *OrderedCollectionPage) PrependCcIRI(v *url.URL) { 4056 t.cc = append([]*ccIntermediateType{&ccIntermediateType{IRI: v}}, t.cc...) 4057 4058} 4059 4060// RemoveCcIRI deletes the value from the specified index 4061func (t *OrderedCollectionPage) RemoveCcIRI(index int) { 4062 copy(t.cc[index:], t.cc[index+1:]) 4063 t.cc[len(t.cc)-1] = nil 4064 t.cc = t.cc[:len(t.cc)-1] 4065 4066} 4067 4068// HasUnknownCc determines whether the call to GetUnknownCc is safe 4069func (t *OrderedCollectionPage) HasUnknownCc() (ok bool) { 4070 return t.cc != nil && t.cc[0].unknown_ != nil 4071 4072} 4073 4074// GetUnknownCc returns the unknown value for cc 4075func (t *OrderedCollectionPage) GetUnknownCc() (v interface{}) { 4076 return t.cc[0].unknown_ 4077 4078} 4079 4080// SetUnknownCc sets the unknown value of cc 4081func (t *OrderedCollectionPage) SetUnknownCc(i interface{}) { 4082 if t.unknown_ == nil { 4083 t.unknown_ = make(map[string]interface{}) 4084 } 4085 tmp := &ccIntermediateType{} 4086 tmp.unknown_ = i 4087 t.cc = append(t.cc, tmp) 4088 4089} 4090 4091// BccLen determines the number of elements able to be used for the IsBccObject, GetBccObject, and RemoveBccObject functions 4092func (t *OrderedCollectionPage) BccLen() (l int) { 4093 return len(t.bcc) 4094 4095} 4096 4097// IsBccObject determines whether the call to GetBccObject is safe for the specified index 4098func (t *OrderedCollectionPage) IsBccObject(index int) (ok bool) { 4099 return t.bcc[index].Object != nil 4100 4101} 4102 4103// GetBccObject returns the value safely if IsBccObject returned true for the specified index 4104func (t *OrderedCollectionPage) GetBccObject(index int) (v ObjectType) { 4105 return t.bcc[index].Object 4106 4107} 4108 4109// AppendBccObject adds to the back of bcc a ObjectType type 4110func (t *OrderedCollectionPage) AppendBccObject(v ObjectType) { 4111 t.bcc = append(t.bcc, &bccIntermediateType{Object: v}) 4112 4113} 4114 4115// PrependBccObject adds to the front of bcc a ObjectType type 4116func (t *OrderedCollectionPage) PrependBccObject(v ObjectType) { 4117 t.bcc = append([]*bccIntermediateType{&bccIntermediateType{Object: v}}, t.bcc...) 4118 4119} 4120 4121// RemoveBccObject deletes the value from the specified index 4122func (t *OrderedCollectionPage) RemoveBccObject(index int) { 4123 copy(t.bcc[index:], t.bcc[index+1:]) 4124 t.bcc[len(t.bcc)-1] = nil 4125 t.bcc = t.bcc[:len(t.bcc)-1] 4126 4127} 4128 4129// IsBccLink determines whether the call to GetBccLink is safe for the specified index 4130func (t *OrderedCollectionPage) IsBccLink(index int) (ok bool) { 4131 return t.bcc[index].Link != nil 4132 4133} 4134 4135// GetBccLink returns the value safely if IsBccLink returned true for the specified index 4136func (t *OrderedCollectionPage) GetBccLink(index int) (v LinkType) { 4137 return t.bcc[index].Link 4138 4139} 4140 4141// AppendBccLink adds to the back of bcc a LinkType type 4142func (t *OrderedCollectionPage) AppendBccLink(v LinkType) { 4143 t.bcc = append(t.bcc, &bccIntermediateType{Link: v}) 4144 4145} 4146 4147// PrependBccLink adds to the front of bcc a LinkType type 4148func (t *OrderedCollectionPage) PrependBccLink(v LinkType) { 4149 t.bcc = append([]*bccIntermediateType{&bccIntermediateType{Link: v}}, t.bcc...) 4150 4151} 4152 4153// RemoveBccLink deletes the value from the specified index 4154func (t *OrderedCollectionPage) RemoveBccLink(index int) { 4155 copy(t.bcc[index:], t.bcc[index+1:]) 4156 t.bcc[len(t.bcc)-1] = nil 4157 t.bcc = t.bcc[:len(t.bcc)-1] 4158 4159} 4160 4161// IsBccIRI determines whether the call to GetBccIRI is safe for the specified index 4162func (t *OrderedCollectionPage) IsBccIRI(index int) (ok bool) { 4163 return t.bcc[index].IRI != nil 4164 4165} 4166 4167// GetBccIRI returns the value safely if IsBccIRI returned true for the specified index 4168func (t *OrderedCollectionPage) GetBccIRI(index int) (v *url.URL) { 4169 return t.bcc[index].IRI 4170 4171} 4172 4173// AppendBccIRI adds to the back of bcc a *url.URL type 4174func (t *OrderedCollectionPage) AppendBccIRI(v *url.URL) { 4175 t.bcc = append(t.bcc, &bccIntermediateType{IRI: v}) 4176 4177} 4178 4179// PrependBccIRI adds to the front of bcc a *url.URL type 4180func (t *OrderedCollectionPage) PrependBccIRI(v *url.URL) { 4181 t.bcc = append([]*bccIntermediateType{&bccIntermediateType{IRI: v}}, t.bcc...) 4182 4183} 4184 4185// RemoveBccIRI deletes the value from the specified index 4186func (t *OrderedCollectionPage) RemoveBccIRI(index int) { 4187 copy(t.bcc[index:], t.bcc[index+1:]) 4188 t.bcc[len(t.bcc)-1] = nil 4189 t.bcc = t.bcc[:len(t.bcc)-1] 4190 4191} 4192 4193// HasUnknownBcc determines whether the call to GetUnknownBcc is safe 4194func (t *OrderedCollectionPage) HasUnknownBcc() (ok bool) { 4195 return t.bcc != nil && t.bcc[0].unknown_ != nil 4196 4197} 4198 4199// GetUnknownBcc returns the unknown value for bcc 4200func (t *OrderedCollectionPage) GetUnknownBcc() (v interface{}) { 4201 return t.bcc[0].unknown_ 4202 4203} 4204 4205// SetUnknownBcc sets the unknown value of bcc 4206func (t *OrderedCollectionPage) SetUnknownBcc(i interface{}) { 4207 if t.unknown_ == nil { 4208 t.unknown_ = make(map[string]interface{}) 4209 } 4210 tmp := &bccIntermediateType{} 4211 tmp.unknown_ = i 4212 t.bcc = append(t.bcc, tmp) 4213 4214} 4215 4216// IsMediaType determines whether the call to GetMediaType is safe 4217func (t *OrderedCollectionPage) IsMediaType() (ok bool) { 4218 return t.mediaType != nil && t.mediaType.mimeMediaTypeValue != nil 4219 4220} 4221 4222// GetMediaType returns the value safely if IsMediaType returned true 4223func (t *OrderedCollectionPage) GetMediaType() (v string) { 4224 return *t.mediaType.mimeMediaTypeValue 4225 4226} 4227 4228// SetMediaType sets the value of mediaType to be of string type 4229func (t *OrderedCollectionPage) SetMediaType(v string) { 4230 t.mediaType = &mediaTypeIntermediateType{mimeMediaTypeValue: &v} 4231 4232} 4233 4234// IsMediaTypeIRI determines whether the call to GetMediaTypeIRI is safe 4235func (t *OrderedCollectionPage) IsMediaTypeIRI() (ok bool) { 4236 return t.mediaType != nil && t.mediaType.IRI != nil 4237 4238} 4239 4240// GetMediaTypeIRI returns the value safely if IsMediaTypeIRI returned true 4241func (t *OrderedCollectionPage) GetMediaTypeIRI() (v *url.URL) { 4242 return t.mediaType.IRI 4243 4244} 4245 4246// SetMediaTypeIRI sets the value of mediaType to be of *url.URL type 4247func (t *OrderedCollectionPage) SetMediaTypeIRI(v *url.URL) { 4248 t.mediaType = &mediaTypeIntermediateType{IRI: v} 4249 4250} 4251 4252// HasUnknownMediaType determines whether the call to GetUnknownMediaType is safe 4253func (t *OrderedCollectionPage) HasUnknownMediaType() (ok bool) { 4254 return t.mediaType != nil && t.mediaType.unknown_ != nil 4255 4256} 4257 4258// GetUnknownMediaType returns the unknown value for mediaType 4259func (t *OrderedCollectionPage) GetUnknownMediaType() (v interface{}) { 4260 return t.mediaType.unknown_ 4261 4262} 4263 4264// SetUnknownMediaType sets the unknown value of mediaType 4265func (t *OrderedCollectionPage) SetUnknownMediaType(i interface{}) { 4266 if t.unknown_ == nil { 4267 t.unknown_ = make(map[string]interface{}) 4268 } 4269 tmp := &mediaTypeIntermediateType{} 4270 tmp.unknown_ = i 4271 t.mediaType = tmp 4272 4273} 4274 4275// IsDuration determines whether the call to GetDuration is safe 4276func (t *OrderedCollectionPage) IsDuration() (ok bool) { 4277 return t.duration != nil && t.duration.duration != nil 4278 4279} 4280 4281// GetDuration returns the value safely if IsDuration returned true 4282func (t *OrderedCollectionPage) GetDuration() (v time.Duration) { 4283 return *t.duration.duration 4284 4285} 4286 4287// SetDuration sets the value of duration to be of time.Duration type 4288func (t *OrderedCollectionPage) SetDuration(v time.Duration) { 4289 t.duration = &durationIntermediateType{duration: &v} 4290 4291} 4292 4293// IsDurationIRI determines whether the call to GetDurationIRI is safe 4294func (t *OrderedCollectionPage) IsDurationIRI() (ok bool) { 4295 return t.duration != nil && t.duration.IRI != nil 4296 4297} 4298 4299// GetDurationIRI returns the value safely if IsDurationIRI returned true 4300func (t *OrderedCollectionPage) GetDurationIRI() (v *url.URL) { 4301 return t.duration.IRI 4302 4303} 4304 4305// SetDurationIRI sets the value of duration to be of *url.URL type 4306func (t *OrderedCollectionPage) SetDurationIRI(v *url.URL) { 4307 t.duration = &durationIntermediateType{IRI: v} 4308 4309} 4310 4311// HasUnknownDuration determines whether the call to GetUnknownDuration is safe 4312func (t *OrderedCollectionPage) HasUnknownDuration() (ok bool) { 4313 return t.duration != nil && t.duration.unknown_ != nil 4314 4315} 4316 4317// GetUnknownDuration returns the unknown value for duration 4318func (t *OrderedCollectionPage) GetUnknownDuration() (v interface{}) { 4319 return t.duration.unknown_ 4320 4321} 4322 4323// SetUnknownDuration sets the unknown value of duration 4324func (t *OrderedCollectionPage) SetUnknownDuration(i interface{}) { 4325 if t.unknown_ == nil { 4326 t.unknown_ = make(map[string]interface{}) 4327 } 4328 tmp := &durationIntermediateType{} 4329 tmp.unknown_ = i 4330 t.duration = tmp 4331 4332} 4333 4334// IsSource determines whether the call to GetSource is safe 4335func (t *OrderedCollectionPage) IsSource() (ok bool) { 4336 return t.source != nil && t.source.Object != nil 4337 4338} 4339 4340// GetSource returns the value safely if IsSource returned true 4341func (t *OrderedCollectionPage) GetSource() (v ObjectType) { 4342 return t.source.Object 4343 4344} 4345 4346// SetSource sets the value of source to be of ObjectType type 4347func (t *OrderedCollectionPage) SetSource(v ObjectType) { 4348 t.source = &sourceIntermediateType{Object: v} 4349 4350} 4351 4352// IsSourceIRI determines whether the call to GetSourceIRI is safe 4353func (t *OrderedCollectionPage) IsSourceIRI() (ok bool) { 4354 return t.source != nil && t.source.IRI != nil 4355 4356} 4357 4358// GetSourceIRI returns the value safely if IsSourceIRI returned true 4359func (t *OrderedCollectionPage) GetSourceIRI() (v *url.URL) { 4360 return t.source.IRI 4361 4362} 4363 4364// SetSourceIRI sets the value of source to be of *url.URL type 4365func (t *OrderedCollectionPage) SetSourceIRI(v *url.URL) { 4366 t.source = &sourceIntermediateType{IRI: v} 4367 4368} 4369 4370// HasUnknownSource determines whether the call to GetUnknownSource is safe 4371func (t *OrderedCollectionPage) HasUnknownSource() (ok bool) { 4372 return t.source != nil && t.source.unknown_ != nil 4373 4374} 4375 4376// GetUnknownSource returns the unknown value for source 4377func (t *OrderedCollectionPage) GetUnknownSource() (v interface{}) { 4378 return t.source.unknown_ 4379 4380} 4381 4382// SetUnknownSource sets the unknown value of source 4383func (t *OrderedCollectionPage) SetUnknownSource(i interface{}) { 4384 if t.unknown_ == nil { 4385 t.unknown_ = make(map[string]interface{}) 4386 } 4387 tmp := &sourceIntermediateType{} 4388 tmp.unknown_ = i 4389 t.source = tmp 4390 4391} 4392 4393// IsInboxOrderedCollection determines whether the call to GetInboxOrderedCollection is safe 4394func (t *OrderedCollectionPage) IsInboxOrderedCollection() (ok bool) { 4395 return t.inbox != nil && t.inbox.OrderedCollection != nil 4396 4397} 4398 4399// GetInboxOrderedCollection returns the value safely if IsInboxOrderedCollection returned true 4400func (t *OrderedCollectionPage) GetInboxOrderedCollection() (v OrderedCollectionType) { 4401 return t.inbox.OrderedCollection 4402 4403} 4404 4405// SetInboxOrderedCollection sets the value of inbox to be of OrderedCollectionType type 4406func (t *OrderedCollectionPage) SetInboxOrderedCollection(v OrderedCollectionType) { 4407 t.inbox = &inboxIntermediateType{OrderedCollection: v} 4408 4409} 4410 4411// IsInboxAnyURI determines whether the call to GetInboxAnyURI is safe 4412func (t *OrderedCollectionPage) IsInboxAnyURI() (ok bool) { 4413 return t.inbox != nil && t.inbox.anyURI != nil 4414 4415} 4416 4417// GetInboxAnyURI returns the value safely if IsInboxAnyURI returned true 4418func (t *OrderedCollectionPage) GetInboxAnyURI() (v *url.URL) { 4419 return t.inbox.anyURI 4420 4421} 4422 4423// SetInboxAnyURI sets the value of inbox to be of *url.URL type 4424func (t *OrderedCollectionPage) SetInboxAnyURI(v *url.URL) { 4425 t.inbox = &inboxIntermediateType{anyURI: v} 4426 4427} 4428 4429// HasUnknownInbox determines whether the call to GetUnknownInbox is safe 4430func (t *OrderedCollectionPage) HasUnknownInbox() (ok bool) { 4431 return t.inbox != nil && t.inbox.unknown_ != nil 4432 4433} 4434 4435// GetUnknownInbox returns the unknown value for inbox 4436func (t *OrderedCollectionPage) GetUnknownInbox() (v interface{}) { 4437 return t.inbox.unknown_ 4438 4439} 4440 4441// SetUnknownInbox sets the unknown value of inbox 4442func (t *OrderedCollectionPage) SetUnknownInbox(i interface{}) { 4443 if t.unknown_ == nil { 4444 t.unknown_ = make(map[string]interface{}) 4445 } 4446 tmp := &inboxIntermediateType{} 4447 tmp.unknown_ = i 4448 t.inbox = tmp 4449 4450} 4451 4452// IsOutboxOrderedCollection determines whether the call to GetOutboxOrderedCollection is safe 4453func (t *OrderedCollectionPage) IsOutboxOrderedCollection() (ok bool) { 4454 return t.outbox != nil && t.outbox.OrderedCollection != nil 4455 4456} 4457 4458// GetOutboxOrderedCollection returns the value safely if IsOutboxOrderedCollection returned true 4459func (t *OrderedCollectionPage) GetOutboxOrderedCollection() (v OrderedCollectionType) { 4460 return t.outbox.OrderedCollection 4461 4462} 4463 4464// SetOutboxOrderedCollection sets the value of outbox to be of OrderedCollectionType type 4465func (t *OrderedCollectionPage) SetOutboxOrderedCollection(v OrderedCollectionType) { 4466 t.outbox = &outboxIntermediateType{OrderedCollection: v} 4467 4468} 4469 4470// IsOutboxAnyURI determines whether the call to GetOutboxAnyURI is safe 4471func (t *OrderedCollectionPage) IsOutboxAnyURI() (ok bool) { 4472 return t.outbox != nil && t.outbox.anyURI != nil 4473 4474} 4475 4476// GetOutboxAnyURI returns the value safely if IsOutboxAnyURI returned true 4477func (t *OrderedCollectionPage) GetOutboxAnyURI() (v *url.URL) { 4478 return t.outbox.anyURI 4479 4480} 4481 4482// SetOutboxAnyURI sets the value of outbox to be of *url.URL type 4483func (t *OrderedCollectionPage) SetOutboxAnyURI(v *url.URL) { 4484 t.outbox = &outboxIntermediateType{anyURI: v} 4485 4486} 4487 4488// HasUnknownOutbox determines whether the call to GetUnknownOutbox is safe 4489func (t *OrderedCollectionPage) HasUnknownOutbox() (ok bool) { 4490 return t.outbox != nil && t.outbox.unknown_ != nil 4491 4492} 4493 4494// GetUnknownOutbox returns the unknown value for outbox 4495func (t *OrderedCollectionPage) GetUnknownOutbox() (v interface{}) { 4496 return t.outbox.unknown_ 4497 4498} 4499 4500// SetUnknownOutbox sets the unknown value of outbox 4501func (t *OrderedCollectionPage) SetUnknownOutbox(i interface{}) { 4502 if t.unknown_ == nil { 4503 t.unknown_ = make(map[string]interface{}) 4504 } 4505 tmp := &outboxIntermediateType{} 4506 tmp.unknown_ = i 4507 t.outbox = tmp 4508 4509} 4510 4511// IsFollowingCollection determines whether the call to GetFollowingCollection is safe 4512func (t *OrderedCollectionPage) IsFollowingCollection() (ok bool) { 4513 return t.following != nil && t.following.Collection != nil 4514 4515} 4516 4517// GetFollowingCollection returns the value safely if IsFollowingCollection returned true 4518func (t *OrderedCollectionPage) GetFollowingCollection() (v CollectionType) { 4519 return t.following.Collection 4520 4521} 4522 4523// SetFollowingCollection sets the value of following to be of CollectionType type 4524func (t *OrderedCollectionPage) SetFollowingCollection(v CollectionType) { 4525 t.following = &followingIntermediateType{Collection: v} 4526 4527} 4528 4529// IsFollowingOrderedCollection determines whether the call to GetFollowingOrderedCollection is safe 4530func (t *OrderedCollectionPage) IsFollowingOrderedCollection() (ok bool) { 4531 return t.following != nil && t.following.OrderedCollection != nil 4532 4533} 4534 4535// GetFollowingOrderedCollection returns the value safely if IsFollowingOrderedCollection returned true 4536func (t *OrderedCollectionPage) GetFollowingOrderedCollection() (v OrderedCollectionType) { 4537 return t.following.OrderedCollection 4538 4539} 4540 4541// SetFollowingOrderedCollection sets the value of following to be of OrderedCollectionType type 4542func (t *OrderedCollectionPage) SetFollowingOrderedCollection(v OrderedCollectionType) { 4543 t.following = &followingIntermediateType{OrderedCollection: v} 4544 4545} 4546 4547// IsFollowingAnyURI determines whether the call to GetFollowingAnyURI is safe 4548func (t *OrderedCollectionPage) IsFollowingAnyURI() (ok bool) { 4549 return t.following != nil && t.following.anyURI != nil 4550 4551} 4552 4553// GetFollowingAnyURI returns the value safely if IsFollowingAnyURI returned true 4554func (t *OrderedCollectionPage) GetFollowingAnyURI() (v *url.URL) { 4555 return t.following.anyURI 4556 4557} 4558 4559// SetFollowingAnyURI sets the value of following to be of *url.URL type 4560func (t *OrderedCollectionPage) SetFollowingAnyURI(v *url.URL) { 4561 t.following = &followingIntermediateType{anyURI: v} 4562 4563} 4564 4565// HasUnknownFollowing determines whether the call to GetUnknownFollowing is safe 4566func (t *OrderedCollectionPage) HasUnknownFollowing() (ok bool) { 4567 return t.following != nil && t.following.unknown_ != nil 4568 4569} 4570 4571// GetUnknownFollowing returns the unknown value for following 4572func (t *OrderedCollectionPage) GetUnknownFollowing() (v interface{}) { 4573 return t.following.unknown_ 4574 4575} 4576 4577// SetUnknownFollowing sets the unknown value of following 4578func (t *OrderedCollectionPage) SetUnknownFollowing(i interface{}) { 4579 if t.unknown_ == nil { 4580 t.unknown_ = make(map[string]interface{}) 4581 } 4582 tmp := &followingIntermediateType{} 4583 tmp.unknown_ = i 4584 t.following = tmp 4585 4586} 4587 4588// IsFollowersCollection determines whether the call to GetFollowersCollection is safe 4589func (t *OrderedCollectionPage) IsFollowersCollection() (ok bool) { 4590 return t.followers != nil && t.followers.Collection != nil 4591 4592} 4593 4594// GetFollowersCollection returns the value safely if IsFollowersCollection returned true 4595func (t *OrderedCollectionPage) GetFollowersCollection() (v CollectionType) { 4596 return t.followers.Collection 4597 4598} 4599 4600// SetFollowersCollection sets the value of followers to be of CollectionType type 4601func (t *OrderedCollectionPage) SetFollowersCollection(v CollectionType) { 4602 t.followers = &followersIntermediateType{Collection: v} 4603 4604} 4605 4606// IsFollowersOrderedCollection determines whether the call to GetFollowersOrderedCollection is safe 4607func (t *OrderedCollectionPage) IsFollowersOrderedCollection() (ok bool) { 4608 return t.followers != nil && t.followers.OrderedCollection != nil 4609 4610} 4611 4612// GetFollowersOrderedCollection returns the value safely if IsFollowersOrderedCollection returned true 4613func (t *OrderedCollectionPage) GetFollowersOrderedCollection() (v OrderedCollectionType) { 4614 return t.followers.OrderedCollection 4615 4616} 4617 4618// SetFollowersOrderedCollection sets the value of followers to be of OrderedCollectionType type 4619func (t *OrderedCollectionPage) SetFollowersOrderedCollection(v OrderedCollectionType) { 4620 t.followers = &followersIntermediateType{OrderedCollection: v} 4621 4622} 4623 4624// IsFollowersAnyURI determines whether the call to GetFollowersAnyURI is safe 4625func (t *OrderedCollectionPage) IsFollowersAnyURI() (ok bool) { 4626 return t.followers != nil && t.followers.anyURI != nil 4627 4628} 4629 4630// GetFollowersAnyURI returns the value safely if IsFollowersAnyURI returned true 4631func (t *OrderedCollectionPage) GetFollowersAnyURI() (v *url.URL) { 4632 return t.followers.anyURI 4633 4634} 4635 4636// SetFollowersAnyURI sets the value of followers to be of *url.URL type 4637func (t *OrderedCollectionPage) SetFollowersAnyURI(v *url.URL) { 4638 t.followers = &followersIntermediateType{anyURI: v} 4639 4640} 4641 4642// HasUnknownFollowers determines whether the call to GetUnknownFollowers is safe 4643func (t *OrderedCollectionPage) HasUnknownFollowers() (ok bool) { 4644 return t.followers != nil && t.followers.unknown_ != nil 4645 4646} 4647 4648// GetUnknownFollowers returns the unknown value for followers 4649func (t *OrderedCollectionPage) GetUnknownFollowers() (v interface{}) { 4650 return t.followers.unknown_ 4651 4652} 4653 4654// SetUnknownFollowers sets the unknown value of followers 4655func (t *OrderedCollectionPage) SetUnknownFollowers(i interface{}) { 4656 if t.unknown_ == nil { 4657 t.unknown_ = make(map[string]interface{}) 4658 } 4659 tmp := &followersIntermediateType{} 4660 tmp.unknown_ = i 4661 t.followers = tmp 4662 4663} 4664 4665// IsLikedCollection determines whether the call to GetLikedCollection is safe 4666func (t *OrderedCollectionPage) IsLikedCollection() (ok bool) { 4667 return t.liked != nil && t.liked.Collection != nil 4668 4669} 4670 4671// GetLikedCollection returns the value safely if IsLikedCollection returned true 4672func (t *OrderedCollectionPage) GetLikedCollection() (v CollectionType) { 4673 return t.liked.Collection 4674 4675} 4676 4677// SetLikedCollection sets the value of liked to be of CollectionType type 4678func (t *OrderedCollectionPage) SetLikedCollection(v CollectionType) { 4679 t.liked = &likedIntermediateType{Collection: v} 4680 4681} 4682 4683// IsLikedOrderedCollection determines whether the call to GetLikedOrderedCollection is safe 4684func (t *OrderedCollectionPage) IsLikedOrderedCollection() (ok bool) { 4685 return t.liked != nil && t.liked.OrderedCollection != nil 4686 4687} 4688 4689// GetLikedOrderedCollection returns the value safely if IsLikedOrderedCollection returned true 4690func (t *OrderedCollectionPage) GetLikedOrderedCollection() (v OrderedCollectionType) { 4691 return t.liked.OrderedCollection 4692 4693} 4694 4695// SetLikedOrderedCollection sets the value of liked to be of OrderedCollectionType type 4696func (t *OrderedCollectionPage) SetLikedOrderedCollection(v OrderedCollectionType) { 4697 t.liked = &likedIntermediateType{OrderedCollection: v} 4698 4699} 4700 4701// IsLikedAnyURI determines whether the call to GetLikedAnyURI is safe 4702func (t *OrderedCollectionPage) IsLikedAnyURI() (ok bool) { 4703 return t.liked != nil && t.liked.anyURI != nil 4704 4705} 4706 4707// GetLikedAnyURI returns the value safely if IsLikedAnyURI returned true 4708func (t *OrderedCollectionPage) GetLikedAnyURI() (v *url.URL) { 4709 return t.liked.anyURI 4710 4711} 4712 4713// SetLikedAnyURI sets the value of liked to be of *url.URL type 4714func (t *OrderedCollectionPage) SetLikedAnyURI(v *url.URL) { 4715 t.liked = &likedIntermediateType{anyURI: v} 4716 4717} 4718 4719// HasUnknownLiked determines whether the call to GetUnknownLiked is safe 4720func (t *OrderedCollectionPage) HasUnknownLiked() (ok bool) { 4721 return t.liked != nil && t.liked.unknown_ != nil 4722 4723} 4724 4725// GetUnknownLiked returns the unknown value for liked 4726func (t *OrderedCollectionPage) GetUnknownLiked() (v interface{}) { 4727 return t.liked.unknown_ 4728 4729} 4730 4731// SetUnknownLiked sets the unknown value of liked 4732func (t *OrderedCollectionPage) SetUnknownLiked(i interface{}) { 4733 if t.unknown_ == nil { 4734 t.unknown_ = make(map[string]interface{}) 4735 } 4736 tmp := &likedIntermediateType{} 4737 tmp.unknown_ = i 4738 t.liked = tmp 4739 4740} 4741 4742// IsLikesCollection determines whether the call to GetLikesCollection is safe 4743func (t *OrderedCollectionPage) IsLikesCollection() (ok bool) { 4744 return t.likes != nil && t.likes.Collection != nil 4745 4746} 4747 4748// GetLikesCollection returns the value safely if IsLikesCollection returned true 4749func (t *OrderedCollectionPage) GetLikesCollection() (v CollectionType) { 4750 return t.likes.Collection 4751 4752} 4753 4754// SetLikesCollection sets the value of likes to be of CollectionType type 4755func (t *OrderedCollectionPage) SetLikesCollection(v CollectionType) { 4756 t.likes = &likesIntermediateType{Collection: v} 4757 4758} 4759 4760// IsLikesOrderedCollection determines whether the call to GetLikesOrderedCollection is safe 4761func (t *OrderedCollectionPage) IsLikesOrderedCollection() (ok bool) { 4762 return t.likes != nil && t.likes.OrderedCollection != nil 4763 4764} 4765 4766// GetLikesOrderedCollection returns the value safely if IsLikesOrderedCollection returned true 4767func (t *OrderedCollectionPage) GetLikesOrderedCollection() (v OrderedCollectionType) { 4768 return t.likes.OrderedCollection 4769 4770} 4771 4772// SetLikesOrderedCollection sets the value of likes to be of OrderedCollectionType type 4773func (t *OrderedCollectionPage) SetLikesOrderedCollection(v OrderedCollectionType) { 4774 t.likes = &likesIntermediateType{OrderedCollection: v} 4775 4776} 4777 4778// IsLikesAnyURI determines whether the call to GetLikesAnyURI is safe 4779func (t *OrderedCollectionPage) IsLikesAnyURI() (ok bool) { 4780 return t.likes != nil && t.likes.anyURI != nil 4781 4782} 4783 4784// GetLikesAnyURI returns the value safely if IsLikesAnyURI returned true 4785func (t *OrderedCollectionPage) GetLikesAnyURI() (v *url.URL) { 4786 return t.likes.anyURI 4787 4788} 4789 4790// SetLikesAnyURI sets the value of likes to be of *url.URL type 4791func (t *OrderedCollectionPage) SetLikesAnyURI(v *url.URL) { 4792 t.likes = &likesIntermediateType{anyURI: v} 4793 4794} 4795 4796// HasUnknownLikes determines whether the call to GetUnknownLikes is safe 4797func (t *OrderedCollectionPage) HasUnknownLikes() (ok bool) { 4798 return t.likes != nil && t.likes.unknown_ != nil 4799 4800} 4801 4802// GetUnknownLikes returns the unknown value for likes 4803func (t *OrderedCollectionPage) GetUnknownLikes() (v interface{}) { 4804 return t.likes.unknown_ 4805 4806} 4807 4808// SetUnknownLikes sets the unknown value of likes 4809func (t *OrderedCollectionPage) SetUnknownLikes(i interface{}) { 4810 if t.unknown_ == nil { 4811 t.unknown_ = make(map[string]interface{}) 4812 } 4813 tmp := &likesIntermediateType{} 4814 tmp.unknown_ = i 4815 t.likes = tmp 4816 4817} 4818 4819// StreamsLen determines the number of elements able to be used for the GetStreams and RemoveStreams functions 4820func (t *OrderedCollectionPage) StreamsLen() (l int) { 4821 return len(t.streams) 4822 4823} 4824 4825// GetStreams returns the value for the specified index 4826func (t *OrderedCollectionPage) GetStreams(index int) (v *url.URL) { 4827 return t.streams[index] 4828 4829} 4830 4831// AppendStreams adds a value to the back of streams 4832func (t *OrderedCollectionPage) AppendStreams(v *url.URL) { 4833 t.streams = append(t.streams, v) 4834 4835} 4836 4837// PrependStreams adds a value to the front of streams 4838func (t *OrderedCollectionPage) PrependStreams(v *url.URL) { 4839 t.streams = append([]*url.URL{v}, t.streams...) 4840 4841} 4842 4843// RemoveStreams deletes the value from the specified index 4844func (t *OrderedCollectionPage) RemoveStreams(index int) { 4845 copy(t.streams[index:], t.streams[index+1:]) 4846 t.streams[len(t.streams)-1] = nil 4847 t.streams = t.streams[:len(t.streams)-1] 4848 4849} 4850 4851// HasUnknownStreams determines whether the call to GetUnknownStreams is safe 4852func (t *OrderedCollectionPage) HasUnknownStreams() (ok bool) { 4853 return t.unknown_ != nil && t.unknown_["streams"] != nil 4854 4855} 4856 4857// GetUnknownStreams returns the unknown value for streams 4858func (t *OrderedCollectionPage) GetUnknownStreams() (v interface{}) { 4859 return t.unknown_["streams"] 4860 4861} 4862 4863// SetUnknownStreams sets the unknown value of streams 4864func (t *OrderedCollectionPage) SetUnknownStreams(i interface{}) { 4865 if t.unknown_ == nil { 4866 t.unknown_ = make(map[string]interface{}) 4867 } 4868 t.unknown_["streams"] = i 4869 4870} 4871 4872// IsPreferredUsername determines whether the call to GetPreferredUsername is safe 4873func (t *OrderedCollectionPage) IsPreferredUsername() (ok bool) { 4874 return t.preferredUsername != nil && t.preferredUsername.stringName != nil 4875 4876} 4877 4878// GetPreferredUsername returns the value safely if IsPreferredUsername returned true 4879func (t *OrderedCollectionPage) GetPreferredUsername() (v string) { 4880 return *t.preferredUsername.stringName 4881 4882} 4883 4884// SetPreferredUsername sets the value of preferredUsername to be of string type 4885func (t *OrderedCollectionPage) SetPreferredUsername(v string) { 4886 t.preferredUsername = &preferredUsernameIntermediateType{stringName: &v} 4887 4888} 4889 4890// IsPreferredUsernameIRI determines whether the call to GetPreferredUsernameIRI is safe 4891func (t *OrderedCollectionPage) IsPreferredUsernameIRI() (ok bool) { 4892 return t.preferredUsername != nil && t.preferredUsername.IRI != nil 4893 4894} 4895 4896// GetPreferredUsernameIRI returns the value safely if IsPreferredUsernameIRI returned true 4897func (t *OrderedCollectionPage) GetPreferredUsernameIRI() (v *url.URL) { 4898 return t.preferredUsername.IRI 4899 4900} 4901 4902// SetPreferredUsernameIRI sets the value of preferredUsername to be of *url.URL type 4903func (t *OrderedCollectionPage) SetPreferredUsernameIRI(v *url.URL) { 4904 t.preferredUsername = &preferredUsernameIntermediateType{IRI: v} 4905 4906} 4907 4908// HasUnknownPreferredUsername determines whether the call to GetUnknownPreferredUsername is safe 4909func (t *OrderedCollectionPage) HasUnknownPreferredUsername() (ok bool) { 4910 return t.preferredUsername != nil && t.preferredUsername.unknown_ != nil 4911 4912} 4913 4914// GetUnknownPreferredUsername returns the unknown value for preferredUsername 4915func (t *OrderedCollectionPage) GetUnknownPreferredUsername() (v interface{}) { 4916 return t.preferredUsername.unknown_ 4917 4918} 4919 4920// SetUnknownPreferredUsername sets the unknown value of preferredUsername 4921func (t *OrderedCollectionPage) SetUnknownPreferredUsername(i interface{}) { 4922 if t.unknown_ == nil { 4923 t.unknown_ = make(map[string]interface{}) 4924 } 4925 tmp := &preferredUsernameIntermediateType{} 4926 tmp.unknown_ = i 4927 t.preferredUsername = tmp 4928 4929} 4930 4931// PreferredUsernameMapLanguages returns all languages for this property's language mapping, or nil if there are none. 4932func (t *OrderedCollectionPage) PreferredUsernameMapLanguages() (l []string) { 4933 if t.preferredUsernameMap == nil || len(t.preferredUsernameMap) == 0 { 4934 return nil 4935 } 4936 for k := range t.preferredUsernameMap { 4937 l = append(l, k) 4938 } 4939 return 4940 4941} 4942 4943// GetPreferredUsernameMap retrieves the value of the property for the specified language, or an empty string if it does not exist 4944func (t *OrderedCollectionPage) GetPreferredUsernameMap(l string) (v string) { 4945 if t.preferredUsernameMap == nil { 4946 return "" 4947 } 4948 ok := false 4949 v, ok = t.preferredUsernameMap[l] 4950 if !ok { 4951 return "" 4952 } 4953 return v 4954 4955} 4956 4957// SetPreferredUsernameMap sets the value of the property for the specified language 4958func (t *OrderedCollectionPage) SetPreferredUsernameMap(l string, v string) { 4959 if t.preferredUsernameMap == nil { 4960 t.preferredUsernameMap = make(map[string]string) 4961 } 4962 t.preferredUsernameMap[l] = v 4963 4964} 4965 4966// IsEndpoints determines whether the call to GetEndpoints is safe 4967func (t *OrderedCollectionPage) IsEndpoints() (ok bool) { 4968 return t.endpoints != nil && t.endpoints.Object != nil 4969 4970} 4971 4972// GetEndpoints returns the value safely if IsEndpoints returned true 4973func (t *OrderedCollectionPage) GetEndpoints() (v ObjectType) { 4974 return t.endpoints.Object 4975 4976} 4977 4978// SetEndpoints sets the value of endpoints to be of ObjectType type 4979func (t *OrderedCollectionPage) SetEndpoints(v ObjectType) { 4980 t.endpoints = &endpointsIntermediateType{Object: v} 4981 4982} 4983 4984// IsEndpointsIRI determines whether the call to GetEndpointsIRI is safe 4985func (t *OrderedCollectionPage) IsEndpointsIRI() (ok bool) { 4986 return t.endpoints != nil && t.endpoints.IRI != nil 4987 4988} 4989 4990// GetEndpointsIRI returns the value safely if IsEndpointsIRI returned true 4991func (t *OrderedCollectionPage) GetEndpointsIRI() (v *url.URL) { 4992 return t.endpoints.IRI 4993 4994} 4995 4996// SetEndpointsIRI sets the value of endpoints to be of *url.URL type 4997func (t *OrderedCollectionPage) SetEndpointsIRI(v *url.URL) { 4998 t.endpoints = &endpointsIntermediateType{IRI: v} 4999 5000} 5001 5002// HasUnknownEndpoints determines whether the call to GetUnknownEndpoints is safe 5003func (t *OrderedCollectionPage) HasUnknownEndpoints() (ok bool) { 5004 return t.endpoints != nil && t.endpoints.unknown_ != nil 5005 5006} 5007 5008// GetUnknownEndpoints returns the unknown value for endpoints 5009func (t *OrderedCollectionPage) GetUnknownEndpoints() (v interface{}) { 5010 return t.endpoints.unknown_ 5011 5012} 5013 5014// SetUnknownEndpoints sets the unknown value of endpoints 5015func (t *OrderedCollectionPage) SetUnknownEndpoints(i interface{}) { 5016 if t.unknown_ == nil { 5017 t.unknown_ = make(map[string]interface{}) 5018 } 5019 tmp := &endpointsIntermediateType{} 5020 tmp.unknown_ = i 5021 t.endpoints = tmp 5022 5023} 5024 5025// HasProxyUrl determines whether the call to GetProxyUrl is safe 5026func (t *OrderedCollectionPage) HasProxyUrl() (ok bool) { 5027 return t.proxyUrl != nil 5028 5029} 5030 5031// GetProxyUrl returns the value for proxyUrl 5032func (t *OrderedCollectionPage) GetProxyUrl() (v *url.URL) { 5033 return t.proxyUrl 5034 5035} 5036 5037// SetProxyUrl sets the value of proxyUrl 5038func (t *OrderedCollectionPage) SetProxyUrl(v *url.URL) { 5039 t.proxyUrl = v 5040 5041} 5042 5043// HasUnknownProxyUrl determines whether the call to GetUnknownProxyUrl is safe 5044func (t *OrderedCollectionPage) HasUnknownProxyUrl() (ok bool) { 5045 return t.unknown_ != nil && t.unknown_["proxyUrl"] != nil 5046 5047} 5048 5049// GetUnknownProxyUrl returns the unknown value for proxyUrl 5050func (t *OrderedCollectionPage) GetUnknownProxyUrl() (v interface{}) { 5051 return t.unknown_["proxyUrl"] 5052 5053} 5054 5055// SetUnknownProxyUrl sets the unknown value of proxyUrl 5056func (t *OrderedCollectionPage) SetUnknownProxyUrl(i interface{}) { 5057 if t.unknown_ == nil { 5058 t.unknown_ = make(map[string]interface{}) 5059 } 5060 t.unknown_["proxyUrl"] = i 5061 5062} 5063 5064// HasOauthAuthorizationEndpoint determines whether the call to GetOauthAuthorizationEndpoint is safe 5065func (t *OrderedCollectionPage) HasOauthAuthorizationEndpoint() (ok bool) { 5066 return t.oauthAuthorizationEndpoint != nil 5067 5068} 5069 5070// GetOauthAuthorizationEndpoint returns the value for oauthAuthorizationEndpoint 5071func (t *OrderedCollectionPage) GetOauthAuthorizationEndpoint() (v *url.URL) { 5072 return t.oauthAuthorizationEndpoint 5073 5074} 5075 5076// SetOauthAuthorizationEndpoint sets the value of oauthAuthorizationEndpoint 5077func (t *OrderedCollectionPage) SetOauthAuthorizationEndpoint(v *url.URL) { 5078 t.oauthAuthorizationEndpoint = v 5079 5080} 5081 5082// HasUnknownOauthAuthorizationEndpoint determines whether the call to GetUnknownOauthAuthorizationEndpoint is safe 5083func (t *OrderedCollectionPage) HasUnknownOauthAuthorizationEndpoint() (ok bool) { 5084 return t.unknown_ != nil && t.unknown_["oauthAuthorizationEndpoint"] != nil 5085 5086} 5087 5088// GetUnknownOauthAuthorizationEndpoint returns the unknown value for oauthAuthorizationEndpoint 5089func (t *OrderedCollectionPage) GetUnknownOauthAuthorizationEndpoint() (v interface{}) { 5090 return t.unknown_["oauthAuthorizationEndpoint"] 5091 5092} 5093 5094// SetUnknownOauthAuthorizationEndpoint sets the unknown value of oauthAuthorizationEndpoint 5095func (t *OrderedCollectionPage) SetUnknownOauthAuthorizationEndpoint(i interface{}) { 5096 if t.unknown_ == nil { 5097 t.unknown_ = make(map[string]interface{}) 5098 } 5099 t.unknown_["oauthAuthorizationEndpoint"] = i 5100 5101} 5102 5103// HasOauthTokenEndpoint determines whether the call to GetOauthTokenEndpoint is safe 5104func (t *OrderedCollectionPage) HasOauthTokenEndpoint() (ok bool) { 5105 return t.oauthTokenEndpoint != nil 5106 5107} 5108 5109// GetOauthTokenEndpoint returns the value for oauthTokenEndpoint 5110func (t *OrderedCollectionPage) GetOauthTokenEndpoint() (v *url.URL) { 5111 return t.oauthTokenEndpoint 5112 5113} 5114 5115// SetOauthTokenEndpoint sets the value of oauthTokenEndpoint 5116func (t *OrderedCollectionPage) SetOauthTokenEndpoint(v *url.URL) { 5117 t.oauthTokenEndpoint = v 5118 5119} 5120 5121// HasUnknownOauthTokenEndpoint determines whether the call to GetUnknownOauthTokenEndpoint is safe 5122func (t *OrderedCollectionPage) HasUnknownOauthTokenEndpoint() (ok bool) { 5123 return t.unknown_ != nil && t.unknown_["oauthTokenEndpoint"] != nil 5124 5125} 5126 5127// GetUnknownOauthTokenEndpoint returns the unknown value for oauthTokenEndpoint 5128func (t *OrderedCollectionPage) GetUnknownOauthTokenEndpoint() (v interface{}) { 5129 return t.unknown_["oauthTokenEndpoint"] 5130 5131} 5132 5133// SetUnknownOauthTokenEndpoint sets the unknown value of oauthTokenEndpoint 5134func (t *OrderedCollectionPage) SetUnknownOauthTokenEndpoint(i interface{}) { 5135 if t.unknown_ == nil { 5136 t.unknown_ = make(map[string]interface{}) 5137 } 5138 t.unknown_["oauthTokenEndpoint"] = i 5139 5140} 5141 5142// HasProvideClientKey determines whether the call to GetProvideClientKey is safe 5143func (t *OrderedCollectionPage) HasProvideClientKey() (ok bool) { 5144 return t.provideClientKey != nil 5145 5146} 5147 5148// GetProvideClientKey returns the value for provideClientKey 5149func (t *OrderedCollectionPage) GetProvideClientKey() (v *url.URL) { 5150 return t.provideClientKey 5151 5152} 5153 5154// SetProvideClientKey sets the value of provideClientKey 5155func (t *OrderedCollectionPage) SetProvideClientKey(v *url.URL) { 5156 t.provideClientKey = v 5157 5158} 5159 5160// HasUnknownProvideClientKey determines whether the call to GetUnknownProvideClientKey is safe 5161func (t *OrderedCollectionPage) HasUnknownProvideClientKey() (ok bool) { 5162 return t.unknown_ != nil && t.unknown_["provideClientKey"] != nil 5163 5164} 5165 5166// GetUnknownProvideClientKey returns the unknown value for provideClientKey 5167func (t *OrderedCollectionPage) GetUnknownProvideClientKey() (v interface{}) { 5168 return t.unknown_["provideClientKey"] 5169 5170} 5171 5172// SetUnknownProvideClientKey sets the unknown value of provideClientKey 5173func (t *OrderedCollectionPage) SetUnknownProvideClientKey(i interface{}) { 5174 if t.unknown_ == nil { 5175 t.unknown_ = make(map[string]interface{}) 5176 } 5177 t.unknown_["provideClientKey"] = i 5178 5179} 5180 5181// HasSignClientKey determines whether the call to GetSignClientKey is safe 5182func (t *OrderedCollectionPage) HasSignClientKey() (ok bool) { 5183 return t.signClientKey != nil 5184 5185} 5186 5187// GetSignClientKey returns the value for signClientKey 5188func (t *OrderedCollectionPage) GetSignClientKey() (v *url.URL) { 5189 return t.signClientKey 5190 5191} 5192 5193// SetSignClientKey sets the value of signClientKey 5194func (t *OrderedCollectionPage) SetSignClientKey(v *url.URL) { 5195 t.signClientKey = v 5196 5197} 5198 5199// HasUnknownSignClientKey determines whether the call to GetUnknownSignClientKey is safe 5200func (t *OrderedCollectionPage) HasUnknownSignClientKey() (ok bool) { 5201 return t.unknown_ != nil && t.unknown_["signClientKey"] != nil 5202 5203} 5204 5205// GetUnknownSignClientKey returns the unknown value for signClientKey 5206func (t *OrderedCollectionPage) GetUnknownSignClientKey() (v interface{}) { 5207 return t.unknown_["signClientKey"] 5208 5209} 5210 5211// SetUnknownSignClientKey sets the unknown value of signClientKey 5212func (t *OrderedCollectionPage) SetUnknownSignClientKey(i interface{}) { 5213 if t.unknown_ == nil { 5214 t.unknown_ = make(map[string]interface{}) 5215 } 5216 t.unknown_["signClientKey"] = i 5217 5218} 5219 5220// HasSharedInbox determines whether the call to GetSharedInbox is safe 5221func (t *OrderedCollectionPage) HasSharedInbox() (ok bool) { 5222 return t.sharedInbox != nil 5223 5224} 5225 5226// GetSharedInbox returns the value for sharedInbox 5227func (t *OrderedCollectionPage) GetSharedInbox() (v *url.URL) { 5228 return t.sharedInbox 5229 5230} 5231 5232// SetSharedInbox sets the value of sharedInbox 5233func (t *OrderedCollectionPage) SetSharedInbox(v *url.URL) { 5234 t.sharedInbox = v 5235 5236} 5237 5238// HasUnknownSharedInbox determines whether the call to GetUnknownSharedInbox is safe 5239func (t *OrderedCollectionPage) HasUnknownSharedInbox() (ok bool) { 5240 return t.unknown_ != nil && t.unknown_["sharedInbox"] != nil 5241 5242} 5243 5244// GetUnknownSharedInbox returns the unknown value for sharedInbox 5245func (t *OrderedCollectionPage) GetUnknownSharedInbox() (v interface{}) { 5246 return t.unknown_["sharedInbox"] 5247 5248} 5249 5250// SetUnknownSharedInbox sets the unknown value of sharedInbox 5251func (t *OrderedCollectionPage) SetUnknownSharedInbox(i interface{}) { 5252 if t.unknown_ == nil { 5253 t.unknown_ = make(map[string]interface{}) 5254 } 5255 t.unknown_["sharedInbox"] = i 5256 5257} 5258 5259// IsPartOfLink determines whether the call to GetPartOfLink is safe 5260func (t *OrderedCollectionPage) IsPartOfLink() (ok bool) { 5261 return t.partOf != nil && t.partOf.Link != nil 5262 5263} 5264 5265// GetPartOfLink returns the value safely if IsPartOfLink returned true 5266func (t *OrderedCollectionPage) GetPartOfLink() (v LinkType) { 5267 return t.partOf.Link 5268 5269} 5270 5271// SetPartOfLink sets the value of partOf to be of LinkType type 5272func (t *OrderedCollectionPage) SetPartOfLink(v LinkType) { 5273 t.partOf = &partOfIntermediateType{Link: v} 5274 5275} 5276 5277// IsPartOfCollection determines whether the call to GetPartOfCollection is safe 5278func (t *OrderedCollectionPage) IsPartOfCollection() (ok bool) { 5279 return t.partOf != nil && t.partOf.Collection != nil 5280 5281} 5282 5283// GetPartOfCollection returns the value safely if IsPartOfCollection returned true 5284func (t *OrderedCollectionPage) GetPartOfCollection() (v CollectionType) { 5285 return t.partOf.Collection 5286 5287} 5288 5289// SetPartOfCollection sets the value of partOf to be of CollectionType type 5290func (t *OrderedCollectionPage) SetPartOfCollection(v CollectionType) { 5291 t.partOf = &partOfIntermediateType{Collection: v} 5292 5293} 5294 5295// IsPartOfIRI determines whether the call to GetPartOfIRI is safe 5296func (t *OrderedCollectionPage) IsPartOfIRI() (ok bool) { 5297 return t.partOf != nil && t.partOf.IRI != nil 5298 5299} 5300 5301// GetPartOfIRI returns the value safely if IsPartOfIRI returned true 5302func (t *OrderedCollectionPage) GetPartOfIRI() (v *url.URL) { 5303 return t.partOf.IRI 5304 5305} 5306 5307// SetPartOfIRI sets the value of partOf to be of *url.URL type 5308func (t *OrderedCollectionPage) SetPartOfIRI(v *url.URL) { 5309 t.partOf = &partOfIntermediateType{IRI: v} 5310 5311} 5312 5313// HasUnknownPartOf determines whether the call to GetUnknownPartOf is safe 5314func (t *OrderedCollectionPage) HasUnknownPartOf() (ok bool) { 5315 return t.partOf != nil && t.partOf.unknown_ != nil 5316 5317} 5318 5319// GetUnknownPartOf returns the unknown value for partOf 5320func (t *OrderedCollectionPage) GetUnknownPartOf() (v interface{}) { 5321 return t.partOf.unknown_ 5322 5323} 5324 5325// SetUnknownPartOf sets the unknown value of partOf 5326func (t *OrderedCollectionPage) SetUnknownPartOf(i interface{}) { 5327 if t.unknown_ == nil { 5328 t.unknown_ = make(map[string]interface{}) 5329 } 5330 tmp := &partOfIntermediateType{} 5331 tmp.unknown_ = i 5332 t.partOf = tmp 5333 5334} 5335 5336// ItemsLen is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5337func (t *OrderedCollectionPage) ItemsLen() (l int) { 5338 return 0 5339 5340} 5341 5342// IsItemsObject is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5343func (t *OrderedCollectionPage) IsItemsObject(index int) (ok bool) { 5344 return false 5345 5346} 5347 5348// GetItemsObject is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5349func (t *OrderedCollectionPage) GetItemsObject(index int) (v ObjectType) { 5350 return nil 5351 5352} 5353 5354// AppendItemsObject is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5355func (t *OrderedCollectionPage) AppendItemsObject(v ObjectType) { 5356 5357} 5358 5359// PrependItemsObject is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5360func (t *OrderedCollectionPage) PrependItemsObject(v ObjectType) { 5361 5362} 5363 5364// RemoveItemsObject is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5365func (t *OrderedCollectionPage) RemoveItemsObject(index int) { 5366 5367} 5368 5369// IsItemsLink is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5370func (t *OrderedCollectionPage) IsItemsLink(index int) (ok bool) { 5371 return false 5372 5373} 5374 5375// GetItemsLink is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5376func (t *OrderedCollectionPage) GetItemsLink(index int) (v LinkType) { 5377 return nil 5378 5379} 5380 5381// AppendItemsLink is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5382func (t *OrderedCollectionPage) AppendItemsLink(v LinkType) { 5383 5384} 5385 5386// PrependItemsLink is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5387func (t *OrderedCollectionPage) PrependItemsLink(v LinkType) { 5388 5389} 5390 5391// RemoveItemsLink is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5392func (t *OrderedCollectionPage) RemoveItemsLink(index int) { 5393 5394} 5395 5396// IsItemsIRI is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5397func (t *OrderedCollectionPage) IsItemsIRI(index int) (ok bool) { 5398 return false 5399 5400} 5401 5402// GetItemsIRI is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5403func (t *OrderedCollectionPage) GetItemsIRI(index int) (v *url.URL) { 5404 return nil 5405 5406} 5407 5408// AppendItemsIRI is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5409func (t *OrderedCollectionPage) AppendItemsIRI(v *url.URL) { 5410 5411} 5412 5413// PrependItemsIRI is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5414func (t *OrderedCollectionPage) PrependItemsIRI(v *url.URL) { 5415 5416} 5417 5418// RemoveItemsIRI is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5419func (t *OrderedCollectionPage) RemoveItemsIRI(index int) { 5420 5421} 5422 5423// HasUnknownItems is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5424func (t *OrderedCollectionPage) HasUnknownItems() (ok bool) { 5425 return false 5426 5427} 5428 5429// GetUnknownItems is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5430func (t *OrderedCollectionPage) GetUnknownItems() (v interface{}) { 5431 return nil 5432 5433} 5434 5435// SetUnknownItems is NOT a valid property for this type; calling its associated methods will always yield an empty-equivalent value such as false, nil, or empty string. This includes instances where it should return itself. This ugliness is a symptom of the fundamental design of the ActivityStream vocabulary as instead of 'W-is-a-X' relationships it contains the notion of 'W-is-a-X-except-for-Y'. 5436func (t *OrderedCollectionPage) SetUnknownItems(i interface{}) { 5437 5438} 5439 5440// AddUnknown adds a raw extension to this object with the specified key 5441func (t *OrderedCollectionPage) AddUnknown(k string, i interface{}) (this *OrderedCollectionPage) { 5442 if t.unknown_ == nil { 5443 t.unknown_ = make(map[string]interface{}) 5444 } 5445 t.unknown_[k] = i 5446 return t 5447 5448} 5449 5450// HasUnknown returns true if there is an unknown object with the specified key 5451func (t *OrderedCollectionPage) HasUnknown(k string) (b bool) { 5452 if t.unknown_ == nil { 5453 return false 5454 } 5455 _, ok := t.unknown_[k] 5456 return ok 5457 5458} 5459 5460// RemoveUnknown removes a raw extension from this object with the specified key 5461func (t *OrderedCollectionPage) RemoveUnknown(k string) (this *OrderedCollectionPage) { 5462 delete(t.unknown_, k) 5463 return t 5464 5465} 5466 5467// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "OrderedCollectionPage" if not manually set by the caller 5468func (t *OrderedCollectionPage) Serialize() (m map[string]interface{}, err error) { 5469 m = make(map[string]interface{}) 5470 for k, v := range t.unknown_ { 5471 m[k] = unknownValueSerialize(v) 5472 } 5473 var typeAlreadySet bool 5474 for _, k := range t.typeName { 5475 if ks, ok := k.(string); ok { 5476 if ks == "OrderedCollectionPage" { 5477 typeAlreadySet = true 5478 break 5479 } 5480 } 5481 } 5482 if !typeAlreadySet { 5483 t.typeName = append(t.typeName, "OrderedCollectionPage") 5484 } 5485 // Begin generation by generateFunctionalMultiTypeDefinition 5486 if t.startIndex != nil { 5487 if v, err := serializeStartIndexIntermediateType(t.startIndex); err == nil { 5488 m["startIndex"] = v 5489 } else { 5490 return m, err 5491 } 5492 } 5493 // End generation by generateFunctionalMultiTypeDefinition 5494 // Begin generation by generateFunctionalMultiTypeDefinition 5495 if t.next != nil { 5496 if v, err := serializeNextIntermediateType(t.next); err == nil { 5497 m["next"] = v 5498 } else { 5499 return m, err 5500 } 5501 } 5502 // End generation by generateFunctionalMultiTypeDefinition 5503 // Begin generation by generateFunctionalMultiTypeDefinition 5504 if t.prev != nil { 5505 if v, err := serializePrevIntermediateType(t.prev); err == nil { 5506 m["prev"] = v 5507 } else { 5508 return m, err 5509 } 5510 } 5511 // End generation by generateFunctionalMultiTypeDefinition 5512 // Begin generation by generateNonFunctionalMultiTypeDefinition 5513 if v, err := serializeSliceOrderedItemsIntermediateType(t.orderedItems); err == nil && v != nil { 5514 if len(v) == 1 { 5515 m["orderedItems"] = v[0] 5516 } else { 5517 m["orderedItems"] = v 5518 } 5519 } else if err != nil { 5520 return m, err 5521 } 5522 // End generation by generateNonFunctionalMultiTypeDefinition 5523 // Begin generation by generateFunctionalMultiTypeDefinition 5524 if t.current != nil { 5525 if v, err := serializeCurrentIntermediateType(t.current); err == nil { 5526 m["current"] = v 5527 } else { 5528 return m, err 5529 } 5530 } 5531 // End generation by generateFunctionalMultiTypeDefinition 5532 // Begin generation by generateFunctionalMultiTypeDefinition 5533 if t.first != nil { 5534 if v, err := serializeFirstIntermediateType(t.first); err == nil { 5535 m["first"] = v 5536 } else { 5537 return m, err 5538 } 5539 } 5540 // End generation by generateFunctionalMultiTypeDefinition 5541 // Begin generation by generateFunctionalMultiTypeDefinition 5542 if t.last != nil { 5543 if v, err := serializeLastIntermediateType(t.last); err == nil { 5544 m["last"] = v 5545 } else { 5546 return m, err 5547 } 5548 } 5549 // End generation by generateFunctionalMultiTypeDefinition 5550 // Begin generation by generateFunctionalMultiTypeDefinition 5551 if t.totalItems != nil { 5552 if v, err := serializeTotalItemsIntermediateType(t.totalItems); err == nil { 5553 m["totalItems"] = v 5554 } else { 5555 return m, err 5556 } 5557 } 5558 // End generation by generateFunctionalMultiTypeDefinition 5559 // Begin generation by generateFunctionalMultiTypeDefinition 5560 if t.altitude != nil { 5561 if v, err := serializeAltitudeIntermediateType(t.altitude); err == nil { 5562 m["altitude"] = v 5563 } else { 5564 return m, err 5565 } 5566 } 5567 // End generation by generateFunctionalMultiTypeDefinition 5568 // Begin generation by generateNonFunctionalMultiTypeDefinition 5569 if v, err := serializeSliceAttachmentIntermediateType(t.attachment); err == nil && v != nil { 5570 if len(v) == 1 { 5571 m["attachment"] = v[0] 5572 } else { 5573 m["attachment"] = v 5574 } 5575 } else if err != nil { 5576 return m, err 5577 } 5578 // End generation by generateNonFunctionalMultiTypeDefinition 5579 // Begin generation by generateNonFunctionalMultiTypeDefinition 5580 if v, err := serializeSliceAttributedToIntermediateType(t.attributedTo); err == nil && v != nil { 5581 if len(v) == 1 { 5582 m["attributedTo"] = v[0] 5583 } else { 5584 m["attributedTo"] = v 5585 } 5586 } else if err != nil { 5587 return m, err 5588 } 5589 // End generation by generateNonFunctionalMultiTypeDefinition 5590 // Begin generation by generateNonFunctionalMultiTypeDefinition 5591 if v, err := serializeSliceAudienceIntermediateType(t.audience); err == nil && v != nil { 5592 if len(v) == 1 { 5593 m["audience"] = v[0] 5594 } else { 5595 m["audience"] = v 5596 } 5597 } else if err != nil { 5598 return m, err 5599 } 5600 // End generation by generateNonFunctionalMultiTypeDefinition 5601 // Begin generation by generateNonFunctionalMultiTypeDefinition 5602 if v, err := serializeSliceContentIntermediateType(t.content); err == nil && v != nil { 5603 if len(v) == 1 { 5604 m["content"] = v[0] 5605 } else { 5606 m["content"] = v 5607 } 5608 } else if err != nil { 5609 return m, err 5610 } 5611 // End generation by generateNonFunctionalMultiTypeDefinition 5612 5613 // Begin generation by generateNaturalLanguageMap 5614 if t.contentMap != nil && len(t.contentMap) >= 0 { 5615 m["contentMap"] = t.contentMap 5616 } 5617 // End generation by generateNaturalLanguageMap 5618 // Begin generation by generateNonFunctionalMultiTypeDefinition 5619 if v, err := serializeSliceContextIntermediateType(t.context); err == nil && v != nil { 5620 if len(v) == 1 { 5621 m["context"] = v[0] 5622 } else { 5623 m["context"] = v 5624 } 5625 } else if err != nil { 5626 return m, err 5627 } 5628 // End generation by generateNonFunctionalMultiTypeDefinition 5629 // Begin generation by generateNonFunctionalMultiTypeDefinition 5630 if v, err := serializeSliceNameIntermediateType(t.name); err == nil && v != nil { 5631 if len(v) == 1 { 5632 m["name"] = v[0] 5633 } else { 5634 m["name"] = v 5635 } 5636 } else if err != nil { 5637 return m, err 5638 } 5639 // End generation by generateNonFunctionalMultiTypeDefinition 5640 5641 // Begin generation by generateNaturalLanguageMap 5642 if t.nameMap != nil && len(t.nameMap) >= 0 { 5643 m["nameMap"] = t.nameMap 5644 } 5645 // End generation by generateNaturalLanguageMap 5646 // Begin generation by generateFunctionalMultiTypeDefinition 5647 if t.endTime != nil { 5648 if v, err := serializeEndTimeIntermediateType(t.endTime); err == nil { 5649 m["endTime"] = v 5650 } else { 5651 return m, err 5652 } 5653 } 5654 // End generation by generateFunctionalMultiTypeDefinition 5655 // Begin generation by generateNonFunctionalMultiTypeDefinition 5656 if v, err := serializeSliceGeneratorIntermediateType(t.generator); err == nil && v != nil { 5657 if len(v) == 1 { 5658 m["generator"] = v[0] 5659 } else { 5660 m["generator"] = v 5661 } 5662 } else if err != nil { 5663 return m, err 5664 } 5665 // End generation by generateNonFunctionalMultiTypeDefinition 5666 // Begin generation by generateNonFunctionalMultiTypeDefinition 5667 if v, err := serializeSliceIconIntermediateType(t.icon); err == nil && v != nil { 5668 if len(v) == 1 { 5669 m["icon"] = v[0] 5670 } else { 5671 m["icon"] = v 5672 } 5673 } else if err != nil { 5674 return m, err 5675 } 5676 // End generation by generateNonFunctionalMultiTypeDefinition 5677 // Begin generation by RangeReference.Serialize for Value 5678 if t.id != nil { 5679 idSerializeFunc := func() (interface{}, error) { 5680 v := t.id 5681 tmp := anyURISerialize(v) 5682 return tmp, nil 5683 } 5684 idResult, err := idSerializeFunc() 5685 if err == nil { 5686 m["id"] = idResult 5687 } else { 5688 return m, err 5689 } 5690 } 5691 // End generation by RangeReference.Serialize for Value 5692 // Begin generation by generateNonFunctionalMultiTypeDefinition 5693 if v, err := serializeSliceImageIntermediateType(t.image); err == nil && v != nil { 5694 if len(v) == 1 { 5695 m["image"] = v[0] 5696 } else { 5697 m["image"] = v 5698 } 5699 } else if err != nil { 5700 return m, err 5701 } 5702 // End generation by generateNonFunctionalMultiTypeDefinition 5703 // Begin generation by generateNonFunctionalMultiTypeDefinition 5704 if v, err := serializeSliceInReplyToIntermediateType(t.inReplyTo); err == nil && v != nil { 5705 if len(v) == 1 { 5706 m["inReplyTo"] = v[0] 5707 } else { 5708 m["inReplyTo"] = v 5709 } 5710 } else if err != nil { 5711 return m, err 5712 } 5713 // End generation by generateNonFunctionalMultiTypeDefinition 5714 // Begin generation by generateNonFunctionalMultiTypeDefinition 5715 if v, err := serializeSliceLocationIntermediateType(t.location); err == nil && v != nil { 5716 if len(v) == 1 { 5717 m["location"] = v[0] 5718 } else { 5719 m["location"] = v 5720 } 5721 } else if err != nil { 5722 return m, err 5723 } 5724 // End generation by generateNonFunctionalMultiTypeDefinition 5725 // Begin generation by generateNonFunctionalMultiTypeDefinition 5726 if v, err := serializeSlicePreviewIntermediateType(t.preview); err == nil && v != nil { 5727 if len(v) == 1 { 5728 m["preview"] = v[0] 5729 } else { 5730 m["preview"] = v 5731 } 5732 } else if err != nil { 5733 return m, err 5734 } 5735 // End generation by generateNonFunctionalMultiTypeDefinition 5736 // Begin generation by generateFunctionalMultiTypeDefinition 5737 if t.published != nil { 5738 if v, err := serializePublishedIntermediateType(t.published); err == nil { 5739 m["published"] = v 5740 } else { 5741 return m, err 5742 } 5743 } 5744 // End generation by generateFunctionalMultiTypeDefinition 5745 // Begin generation by generateFunctionalMultiTypeDefinition 5746 if t.replies != nil { 5747 if v, err := serializeRepliesIntermediateType(t.replies); err == nil { 5748 m["replies"] = v 5749 } else { 5750 return m, err 5751 } 5752 } 5753 // End generation by generateFunctionalMultiTypeDefinition 5754 // Begin generation by generateFunctionalMultiTypeDefinition 5755 if t.startTime != nil { 5756 if v, err := serializeStartTimeIntermediateType(t.startTime); err == nil { 5757 m["startTime"] = v 5758 } else { 5759 return m, err 5760 } 5761 } 5762 // End generation by generateFunctionalMultiTypeDefinition 5763 // Begin generation by generateNonFunctionalMultiTypeDefinition 5764 if v, err := serializeSliceSummaryIntermediateType(t.summary); err == nil && v != nil { 5765 if len(v) == 1 { 5766 m["summary"] = v[0] 5767 } else { 5768 m["summary"] = v 5769 } 5770 } else if err != nil { 5771 return m, err 5772 } 5773 // End generation by generateNonFunctionalMultiTypeDefinition 5774 5775 // Begin generation by generateNaturalLanguageMap 5776 if t.summaryMap != nil && len(t.summaryMap) >= 0 { 5777 m["summaryMap"] = t.summaryMap 5778 } 5779 // End generation by generateNaturalLanguageMap 5780 // Begin generation by generateNonFunctionalMultiTypeDefinition 5781 if v, err := serializeSliceTagIntermediateType(t.tag); err == nil && v != nil { 5782 if len(v) == 1 { 5783 m["tag"] = v[0] 5784 } else { 5785 m["tag"] = v 5786 } 5787 } else if err != nil { 5788 return m, err 5789 } 5790 // End generation by generateNonFunctionalMultiTypeDefinition 5791 // Begin generation by generateNonFunctionalAnyDefinition 5792 if t.typeName != nil { 5793 if len(t.typeName) == 1 { 5794 m["type"] = t.typeName[0] 5795 } else { 5796 m["type"] = t.typeName 5797 } 5798 } 5799 // End generation by generateNonFunctionalAnyDefinition 5800 // Begin generation by generateFunctionalMultiTypeDefinition 5801 if t.updated != nil { 5802 if v, err := serializeUpdatedIntermediateType(t.updated); err == nil { 5803 m["updated"] = v 5804 } else { 5805 return m, err 5806 } 5807 } 5808 // End generation by generateFunctionalMultiTypeDefinition 5809 // Begin generation by generateNonFunctionalMultiTypeDefinition 5810 if v, err := serializeSliceUrlIntermediateType(t.url); err == nil && v != nil { 5811 if len(v) == 1 { 5812 m["url"] = v[0] 5813 } else { 5814 m["url"] = v 5815 } 5816 } else if err != nil { 5817 return m, err 5818 } 5819 // End generation by generateNonFunctionalMultiTypeDefinition 5820 // Begin generation by generateNonFunctionalMultiTypeDefinition 5821 if v, err := serializeSliceToIntermediateType(t.to); err == nil && v != nil { 5822 if len(v) == 1 { 5823 m["to"] = v[0] 5824 } else { 5825 m["to"] = v 5826 } 5827 } else if err != nil { 5828 return m, err 5829 } 5830 // End generation by generateNonFunctionalMultiTypeDefinition 5831 // Begin generation by generateNonFunctionalMultiTypeDefinition 5832 if v, err := serializeSliceBtoIntermediateType(t.bto); err == nil && v != nil { 5833 if len(v) == 1 { 5834 m["bto"] = v[0] 5835 } else { 5836 m["bto"] = v 5837 } 5838 } else if err != nil { 5839 return m, err 5840 } 5841 // End generation by generateNonFunctionalMultiTypeDefinition 5842 // Begin generation by generateNonFunctionalMultiTypeDefinition 5843 if v, err := serializeSliceCcIntermediateType(t.cc); err == nil && v != nil { 5844 if len(v) == 1 { 5845 m["cc"] = v[0] 5846 } else { 5847 m["cc"] = v 5848 } 5849 } else if err != nil { 5850 return m, err 5851 } 5852 // End generation by generateNonFunctionalMultiTypeDefinition 5853 // Begin generation by generateNonFunctionalMultiTypeDefinition 5854 if v, err := serializeSliceBccIntermediateType(t.bcc); err == nil && v != nil { 5855 if len(v) == 1 { 5856 m["bcc"] = v[0] 5857 } else { 5858 m["bcc"] = v 5859 } 5860 } else if err != nil { 5861 return m, err 5862 } 5863 // End generation by generateNonFunctionalMultiTypeDefinition 5864 // Begin generation by generateFunctionalMultiTypeDefinition 5865 if t.mediaType != nil { 5866 if v, err := serializeMediaTypeIntermediateType(t.mediaType); err == nil { 5867 m["mediaType"] = v 5868 } else { 5869 return m, err 5870 } 5871 } 5872 // End generation by generateFunctionalMultiTypeDefinition 5873 // Begin generation by generateFunctionalMultiTypeDefinition 5874 if t.duration != nil { 5875 if v, err := serializeDurationIntermediateType(t.duration); err == nil { 5876 m["duration"] = v 5877 } else { 5878 return m, err 5879 } 5880 } 5881 // End generation by generateFunctionalMultiTypeDefinition 5882 // Begin generation by generateFunctionalMultiTypeDefinition 5883 if t.source != nil { 5884 if v, err := serializeSourceIntermediateType(t.source); err == nil { 5885 m["source"] = v 5886 } else { 5887 return m, err 5888 } 5889 } 5890 // End generation by generateFunctionalMultiTypeDefinition 5891 // Begin generation by generateFunctionalMultiTypeDefinition 5892 if t.inbox != nil { 5893 if v, err := serializeInboxIntermediateType(t.inbox); err == nil { 5894 m["inbox"] = v 5895 } else { 5896 return m, err 5897 } 5898 } 5899 // End generation by generateFunctionalMultiTypeDefinition 5900 // Begin generation by generateFunctionalMultiTypeDefinition 5901 if t.outbox != nil { 5902 if v, err := serializeOutboxIntermediateType(t.outbox); err == nil { 5903 m["outbox"] = v 5904 } else { 5905 return m, err 5906 } 5907 } 5908 // End generation by generateFunctionalMultiTypeDefinition 5909 // Begin generation by generateFunctionalMultiTypeDefinition 5910 if t.following != nil { 5911 if v, err := serializeFollowingIntermediateType(t.following); err == nil { 5912 m["following"] = v 5913 } else { 5914 return m, err 5915 } 5916 } 5917 // End generation by generateFunctionalMultiTypeDefinition 5918 // Begin generation by generateFunctionalMultiTypeDefinition 5919 if t.followers != nil { 5920 if v, err := serializeFollowersIntermediateType(t.followers); err == nil { 5921 m["followers"] = v 5922 } else { 5923 return m, err 5924 } 5925 } 5926 // End generation by generateFunctionalMultiTypeDefinition 5927 // Begin generation by generateFunctionalMultiTypeDefinition 5928 if t.liked != nil { 5929 if v, err := serializeLikedIntermediateType(t.liked); err == nil { 5930 m["liked"] = v 5931 } else { 5932 return m, err 5933 } 5934 } 5935 // End generation by generateFunctionalMultiTypeDefinition 5936 // Begin generation by generateFunctionalMultiTypeDefinition 5937 if t.likes != nil { 5938 if v, err := serializeLikesIntermediateType(t.likes); err == nil { 5939 m["likes"] = v 5940 } else { 5941 return m, err 5942 } 5943 } 5944 // End generation by generateFunctionalMultiTypeDefinition 5945 // Begin generation by RangeReference.Serialize for Value 5946 var streamsTemp []interface{} 5947 for _, v := range t.streams { 5948 tmp := anyURISerialize(v) 5949 streamsTemp = append(streamsTemp, tmp) 5950 } 5951 if streamsTemp != nil { 5952 if len(streamsTemp) == 1 { 5953 m["streams"] = streamsTemp[0] 5954 } else { 5955 m["streams"] = streamsTemp 5956 } 5957 } 5958 // End generation by RangeReference.Serialize for Value 5959 // Begin generation by generateFunctionalMultiTypeDefinition 5960 if t.preferredUsername != nil { 5961 if v, err := serializePreferredUsernameIntermediateType(t.preferredUsername); err == nil { 5962 m["preferredUsername"] = v 5963 } else { 5964 return m, err 5965 } 5966 } 5967 // End generation by generateFunctionalMultiTypeDefinition 5968 5969 // Begin generation by generateNaturalLanguageMap 5970 if t.preferredUsernameMap != nil && len(t.preferredUsernameMap) >= 0 { 5971 m["preferredUsernameMap"] = t.preferredUsernameMap 5972 } 5973 // End generation by generateNaturalLanguageMap 5974 // Begin generation by generateFunctionalMultiTypeDefinition 5975 if t.endpoints != nil { 5976 if v, err := serializeEndpointsIntermediateType(t.endpoints); err == nil { 5977 m["endpoints"] = v 5978 } else { 5979 return m, err 5980 } 5981 } 5982 // End generation by generateFunctionalMultiTypeDefinition 5983 // Begin generation by RangeReference.Serialize for Value 5984 if t.proxyUrl != nil { 5985 proxyUrlSerializeFunc := func() (interface{}, error) { 5986 v := t.proxyUrl 5987 tmp := anyURISerialize(v) 5988 return tmp, nil 5989 } 5990 proxyUrlResult, err := proxyUrlSerializeFunc() 5991 if err == nil { 5992 m["proxyUrl"] = proxyUrlResult 5993 } else { 5994 return m, err 5995 } 5996 } 5997 // End generation by RangeReference.Serialize for Value 5998 // Begin generation by RangeReference.Serialize for Value 5999 if t.oauthAuthorizationEndpoint != nil { 6000 oauthAuthorizationEndpointSerializeFunc := func() (interface{}, error) { 6001 v := t.oauthAuthorizationEndpoint 6002 tmp := anyURISerialize(v) 6003 return tmp, nil 6004 } 6005 oauthAuthorizationEndpointResult, err := oauthAuthorizationEndpointSerializeFunc() 6006 if err == nil { 6007 m["oauthAuthorizationEndpoint"] = oauthAuthorizationEndpointResult 6008 } else { 6009 return m, err 6010 } 6011 } 6012 // End generation by RangeReference.Serialize for Value 6013 // Begin generation by RangeReference.Serialize for Value 6014 if t.oauthTokenEndpoint != nil { 6015 oauthTokenEndpointSerializeFunc := func() (interface{}, error) { 6016 v := t.oauthTokenEndpoint 6017 tmp := anyURISerialize(v) 6018 return tmp, nil 6019 } 6020 oauthTokenEndpointResult, err := oauthTokenEndpointSerializeFunc() 6021 if err == nil { 6022 m["oauthTokenEndpoint"] = oauthTokenEndpointResult 6023 } else { 6024 return m, err 6025 } 6026 } 6027 // End generation by RangeReference.Serialize for Value 6028 // Begin generation by RangeReference.Serialize for Value 6029 if t.provideClientKey != nil { 6030 provideClientKeySerializeFunc := func() (interface{}, error) { 6031 v := t.provideClientKey 6032 tmp := anyURISerialize(v) 6033 return tmp, nil 6034 } 6035 provideClientKeyResult, err := provideClientKeySerializeFunc() 6036 if err == nil { 6037 m["provideClientKey"] = provideClientKeyResult 6038 } else { 6039 return m, err 6040 } 6041 } 6042 // End generation by RangeReference.Serialize for Value 6043 // Begin generation by RangeReference.Serialize for Value 6044 if t.signClientKey != nil { 6045 signClientKeySerializeFunc := func() (interface{}, error) { 6046 v := t.signClientKey 6047 tmp := anyURISerialize(v) 6048 return tmp, nil 6049 } 6050 signClientKeyResult, err := signClientKeySerializeFunc() 6051 if err == nil { 6052 m["signClientKey"] = signClientKeyResult 6053 } else { 6054 return m, err 6055 } 6056 } 6057 // End generation by RangeReference.Serialize for Value 6058 // Begin generation by RangeReference.Serialize for Value 6059 if t.sharedInbox != nil { 6060 sharedInboxSerializeFunc := func() (interface{}, error) { 6061 v := t.sharedInbox 6062 tmp := anyURISerialize(v) 6063 return tmp, nil 6064 } 6065 sharedInboxResult, err := sharedInboxSerializeFunc() 6066 if err == nil { 6067 m["sharedInbox"] = sharedInboxResult 6068 } else { 6069 return m, err 6070 } 6071 } 6072 // End generation by RangeReference.Serialize for Value 6073 // Begin generation by generateFunctionalMultiTypeDefinition 6074 if t.partOf != nil { 6075 if v, err := serializePartOfIntermediateType(t.partOf); err == nil { 6076 m["partOf"] = v 6077 } else { 6078 return m, err 6079 } 6080 } 6081 // End generation by generateFunctionalMultiTypeDefinition 6082 return 6083 6084} 6085 6086// Deserialize populates this object from a map[string]interface{} 6087func (t *OrderedCollectionPage) Deserialize(m map[string]interface{}) (err error) { 6088 for k, v := range m { 6089 handled := false 6090 if !handled { 6091 // Begin generation by generateFunctionalMultiTypeDefinition 6092 if k == "startIndex" { 6093 t.startIndex, err = deserializeStartIndexIntermediateType(v) 6094 if err != nil { 6095 return err 6096 } 6097 handled = true 6098 } 6099 // End generation by generateFunctionalMultiTypeDefinition 6100 } 6101 if !handled { 6102 // Begin generation by generateFunctionalMultiTypeDefinition 6103 if k == "next" { 6104 t.next, err = deserializeNextIntermediateType(v) 6105 if err != nil { 6106 return err 6107 } 6108 handled = true 6109 } 6110 // End generation by generateFunctionalMultiTypeDefinition 6111 } 6112 if !handled { 6113 // Begin generation by generateFunctionalMultiTypeDefinition 6114 if k == "prev" { 6115 t.prev, err = deserializePrevIntermediateType(v) 6116 if err != nil { 6117 return err 6118 } 6119 handled = true 6120 } 6121 // End generation by generateFunctionalMultiTypeDefinition 6122 } 6123 if !handled { 6124 // Begin generation by generateNonFunctionalMultiTypeDefinition 6125 if k == "orderedItems" { 6126 if tmpMap, ok := v.(map[string]interface{}); ok { 6127 tmp, err := deserializeOrderedItemsIntermediateType(tmpMap) 6128 if err != nil { 6129 return err 6130 } 6131 t.orderedItems = []*orderedItemsIntermediateType{tmp} 6132 handled = true 6133 } else if tmpSlice, ok := v.([]interface{}); ok { 6134 t.orderedItems, err = deserializeSliceOrderedItemsIntermediateType(tmpSlice) 6135 if err != nil { 6136 return err 6137 } 6138 handled = true 6139 } else { 6140 tmp := &orderedItemsIntermediateType{} 6141 err = tmp.Deserialize(v) 6142 if err != nil { 6143 return err 6144 } 6145 t.orderedItems = []*orderedItemsIntermediateType{tmp} 6146 handled = true 6147 } 6148 } 6149 // End generation by generateNonFunctionalMultiTypeDefinition 6150 } 6151 if !handled { 6152 // Begin generation by generateFunctionalMultiTypeDefinition 6153 if k == "current" { 6154 t.current, err = deserializeCurrentIntermediateType(v) 6155 if err != nil { 6156 return err 6157 } 6158 handled = true 6159 } 6160 // End generation by generateFunctionalMultiTypeDefinition 6161 } 6162 if !handled { 6163 // Begin generation by generateFunctionalMultiTypeDefinition 6164 if k == "first" { 6165 t.first, err = deserializeFirstIntermediateType(v) 6166 if err != nil { 6167 return err 6168 } 6169 handled = true 6170 } 6171 // End generation by generateFunctionalMultiTypeDefinition 6172 } 6173 if !handled { 6174 // Begin generation by generateFunctionalMultiTypeDefinition 6175 if k == "last" { 6176 t.last, err = deserializeLastIntermediateType(v) 6177 if err != nil { 6178 return err 6179 } 6180 handled = true 6181 } 6182 // End generation by generateFunctionalMultiTypeDefinition 6183 } 6184 if !handled { 6185 // Begin generation by generateFunctionalMultiTypeDefinition 6186 if k == "totalItems" { 6187 t.totalItems, err = deserializeTotalItemsIntermediateType(v) 6188 if err != nil { 6189 return err 6190 } 6191 handled = true 6192 } 6193 // End generation by generateFunctionalMultiTypeDefinition 6194 } 6195 if !handled { 6196 // Begin generation by generateFunctionalMultiTypeDefinition 6197 if k == "altitude" { 6198 t.altitude, err = deserializeAltitudeIntermediateType(v) 6199 if err != nil { 6200 return err 6201 } 6202 handled = true 6203 } 6204 // End generation by generateFunctionalMultiTypeDefinition 6205 } 6206 if !handled { 6207 // Begin generation by generateNonFunctionalMultiTypeDefinition 6208 if k == "attachment" { 6209 if tmpMap, ok := v.(map[string]interface{}); ok { 6210 tmp, err := deserializeAttachmentIntermediateType(tmpMap) 6211 if err != nil { 6212 return err 6213 } 6214 t.attachment = []*attachmentIntermediateType{tmp} 6215 handled = true 6216 } else if tmpSlice, ok := v.([]interface{}); ok { 6217 t.attachment, err = deserializeSliceAttachmentIntermediateType(tmpSlice) 6218 if err != nil { 6219 return err 6220 } 6221 handled = true 6222 } else { 6223 tmp := &attachmentIntermediateType{} 6224 err = tmp.Deserialize(v) 6225 if err != nil { 6226 return err 6227 } 6228 t.attachment = []*attachmentIntermediateType{tmp} 6229 handled = true 6230 } 6231 } 6232 // End generation by generateNonFunctionalMultiTypeDefinition 6233 } 6234 if !handled { 6235 // Begin generation by generateNonFunctionalMultiTypeDefinition 6236 if k == "attributedTo" { 6237 if tmpMap, ok := v.(map[string]interface{}); ok { 6238 tmp, err := deserializeAttributedToIntermediateType(tmpMap) 6239 if err != nil { 6240 return err 6241 } 6242 t.attributedTo = []*attributedToIntermediateType{tmp} 6243 handled = true 6244 } else if tmpSlice, ok := v.([]interface{}); ok { 6245 t.attributedTo, err = deserializeSliceAttributedToIntermediateType(tmpSlice) 6246 if err != nil { 6247 return err 6248 } 6249 handled = true 6250 } else { 6251 tmp := &attributedToIntermediateType{} 6252 err = tmp.Deserialize(v) 6253 if err != nil { 6254 return err 6255 } 6256 t.attributedTo = []*attributedToIntermediateType{tmp} 6257 handled = true 6258 } 6259 } 6260 // End generation by generateNonFunctionalMultiTypeDefinition 6261 } 6262 if !handled { 6263 // Begin generation by generateNonFunctionalMultiTypeDefinition 6264 if k == "audience" { 6265 if tmpMap, ok := v.(map[string]interface{}); ok { 6266 tmp, err := deserializeAudienceIntermediateType(tmpMap) 6267 if err != nil { 6268 return err 6269 } 6270 t.audience = []*audienceIntermediateType{tmp} 6271 handled = true 6272 } else if tmpSlice, ok := v.([]interface{}); ok { 6273 t.audience, err = deserializeSliceAudienceIntermediateType(tmpSlice) 6274 if err != nil { 6275 return err 6276 } 6277 handled = true 6278 } else { 6279 tmp := &audienceIntermediateType{} 6280 err = tmp.Deserialize(v) 6281 if err != nil { 6282 return err 6283 } 6284 t.audience = []*audienceIntermediateType{tmp} 6285 handled = true 6286 } 6287 } 6288 // End generation by generateNonFunctionalMultiTypeDefinition 6289 } 6290 if !handled { 6291 // Begin generation by generateNonFunctionalMultiTypeDefinition 6292 if k == "content" { 6293 if tmpMap, ok := v.(map[string]interface{}); ok { 6294 tmp, err := deserializeContentIntermediateType(tmpMap) 6295 if err != nil { 6296 return err 6297 } 6298 t.content = []*contentIntermediateType{tmp} 6299 handled = true 6300 } else if tmpSlice, ok := v.([]interface{}); ok { 6301 t.content, err = deserializeSliceContentIntermediateType(tmpSlice) 6302 if err != nil { 6303 return err 6304 } 6305 handled = true 6306 } else { 6307 tmp := &contentIntermediateType{} 6308 err = tmp.Deserialize(v) 6309 if err != nil { 6310 return err 6311 } 6312 t.content = []*contentIntermediateType{tmp} 6313 handled = true 6314 } 6315 } 6316 // End generation by generateNonFunctionalMultiTypeDefinition 6317 6318 // Begin generation by generateNaturalLanguageMap 6319 if k == "contentMap" { 6320 if vMap, ok := v.(map[string]interface{}); ok { 6321 val := make(map[string]string) 6322 for k, iVal := range vMap { 6323 if sVal, ok := iVal.(string); ok { 6324 val[k] = sVal 6325 } 6326 } 6327 t.contentMap = val 6328 handled = true 6329 } 6330 } 6331 // End generation by generateNaturalLanguageMap 6332 } 6333 if !handled { 6334 // Begin generation by generateNonFunctionalMultiTypeDefinition 6335 if k == "context" { 6336 if tmpMap, ok := v.(map[string]interface{}); ok { 6337 tmp, err := deserializeContextIntermediateType(tmpMap) 6338 if err != nil { 6339 return err 6340 } 6341 t.context = []*contextIntermediateType{tmp} 6342 handled = true 6343 } else if tmpSlice, ok := v.([]interface{}); ok { 6344 t.context, err = deserializeSliceContextIntermediateType(tmpSlice) 6345 if err != nil { 6346 return err 6347 } 6348 handled = true 6349 } else { 6350 tmp := &contextIntermediateType{} 6351 err = tmp.Deserialize(v) 6352 if err != nil { 6353 return err 6354 } 6355 t.context = []*contextIntermediateType{tmp} 6356 handled = true 6357 } 6358 } 6359 // End generation by generateNonFunctionalMultiTypeDefinition 6360 } 6361 if !handled { 6362 // Begin generation by generateNonFunctionalMultiTypeDefinition 6363 if k == "name" { 6364 if tmpMap, ok := v.(map[string]interface{}); ok { 6365 tmp, err := deserializeNameIntermediateType(tmpMap) 6366 if err != nil { 6367 return err 6368 } 6369 t.name = []*nameIntermediateType{tmp} 6370 handled = true 6371 } else if tmpSlice, ok := v.([]interface{}); ok { 6372 t.name, err = deserializeSliceNameIntermediateType(tmpSlice) 6373 if err != nil { 6374 return err 6375 } 6376 handled = true 6377 } else { 6378 tmp := &nameIntermediateType{} 6379 err = tmp.Deserialize(v) 6380 if err != nil { 6381 return err 6382 } 6383 t.name = []*nameIntermediateType{tmp} 6384 handled = true 6385 } 6386 } 6387 // End generation by generateNonFunctionalMultiTypeDefinition 6388 6389 // Begin generation by generateNaturalLanguageMap 6390 if k == "nameMap" { 6391 if vMap, ok := v.(map[string]interface{}); ok { 6392 val := make(map[string]string) 6393 for k, iVal := range vMap { 6394 if sVal, ok := iVal.(string); ok { 6395 val[k] = sVal 6396 } 6397 } 6398 t.nameMap = val 6399 handled = true 6400 } 6401 } 6402 // End generation by generateNaturalLanguageMap 6403 } 6404 if !handled { 6405 // Begin generation by generateFunctionalMultiTypeDefinition 6406 if k == "endTime" { 6407 t.endTime, err = deserializeEndTimeIntermediateType(v) 6408 if err != nil { 6409 return err 6410 } 6411 handled = true 6412 } 6413 // End generation by generateFunctionalMultiTypeDefinition 6414 } 6415 if !handled { 6416 // Begin generation by generateNonFunctionalMultiTypeDefinition 6417 if k == "generator" { 6418 if tmpMap, ok := v.(map[string]interface{}); ok { 6419 tmp, err := deserializeGeneratorIntermediateType(tmpMap) 6420 if err != nil { 6421 return err 6422 } 6423 t.generator = []*generatorIntermediateType{tmp} 6424 handled = true 6425 } else if tmpSlice, ok := v.([]interface{}); ok { 6426 t.generator, err = deserializeSliceGeneratorIntermediateType(tmpSlice) 6427 if err != nil { 6428 return err 6429 } 6430 handled = true 6431 } else { 6432 tmp := &generatorIntermediateType{} 6433 err = tmp.Deserialize(v) 6434 if err != nil { 6435 return err 6436 } 6437 t.generator = []*generatorIntermediateType{tmp} 6438 handled = true 6439 } 6440 } 6441 // End generation by generateNonFunctionalMultiTypeDefinition 6442 } 6443 if !handled { 6444 // Begin generation by generateNonFunctionalMultiTypeDefinition 6445 if k == "icon" { 6446 if tmpMap, ok := v.(map[string]interface{}); ok { 6447 tmp, err := deserializeIconIntermediateType(tmpMap) 6448 if err != nil { 6449 return err 6450 } 6451 t.icon = []*iconIntermediateType{tmp} 6452 handled = true 6453 } else if tmpSlice, ok := v.([]interface{}); ok { 6454 t.icon, err = deserializeSliceIconIntermediateType(tmpSlice) 6455 if err != nil { 6456 return err 6457 } 6458 handled = true 6459 } else { 6460 tmp := &iconIntermediateType{} 6461 err = tmp.Deserialize(v) 6462 if err != nil { 6463 return err 6464 } 6465 t.icon = []*iconIntermediateType{tmp} 6466 handled = true 6467 } 6468 } 6469 // End generation by generateNonFunctionalMultiTypeDefinition 6470 } 6471 if !handled { 6472 // Begin generation by RangeReference.Deserialize for Value 6473 if k == "id" { 6474 if v, ok := v.(interface{}); ok { 6475 tmp, err := anyURIDeserialize(v) 6476 if err != nil { 6477 return err 6478 } 6479 t.id = tmp 6480 handled = true 6481 } 6482 } 6483 // End generation by RangeReference.Deserialize for Value 6484 } 6485 if !handled { 6486 // Begin generation by generateNonFunctionalMultiTypeDefinition 6487 if k == "image" { 6488 if tmpMap, ok := v.(map[string]interface{}); ok { 6489 tmp, err := deserializeImageIntermediateType(tmpMap) 6490 if err != nil { 6491 return err 6492 } 6493 t.image = []*imageIntermediateType{tmp} 6494 handled = true 6495 } else if tmpSlice, ok := v.([]interface{}); ok { 6496 t.image, err = deserializeSliceImageIntermediateType(tmpSlice) 6497 if err != nil { 6498 return err 6499 } 6500 handled = true 6501 } else { 6502 tmp := &imageIntermediateType{} 6503 err = tmp.Deserialize(v) 6504 if err != nil { 6505 return err 6506 } 6507 t.image = []*imageIntermediateType{tmp} 6508 handled = true 6509 } 6510 } 6511 // End generation by generateNonFunctionalMultiTypeDefinition 6512 } 6513 if !handled { 6514 // Begin generation by generateNonFunctionalMultiTypeDefinition 6515 if k == "inReplyTo" { 6516 if tmpMap, ok := v.(map[string]interface{}); ok { 6517 tmp, err := deserializeInReplyToIntermediateType(tmpMap) 6518 if err != nil { 6519 return err 6520 } 6521 t.inReplyTo = []*inReplyToIntermediateType{tmp} 6522 handled = true 6523 } else if tmpSlice, ok := v.([]interface{}); ok { 6524 t.inReplyTo, err = deserializeSliceInReplyToIntermediateType(tmpSlice) 6525 if err != nil { 6526 return err 6527 } 6528 handled = true 6529 } else { 6530 tmp := &inReplyToIntermediateType{} 6531 err = tmp.Deserialize(v) 6532 if err != nil { 6533 return err 6534 } 6535 t.inReplyTo = []*inReplyToIntermediateType{tmp} 6536 handled = true 6537 } 6538 } 6539 // End generation by generateNonFunctionalMultiTypeDefinition 6540 } 6541 if !handled { 6542 // Begin generation by generateNonFunctionalMultiTypeDefinition 6543 if k == "location" { 6544 if tmpMap, ok := v.(map[string]interface{}); ok { 6545 tmp, err := deserializeLocationIntermediateType(tmpMap) 6546 if err != nil { 6547 return err 6548 } 6549 t.location = []*locationIntermediateType{tmp} 6550 handled = true 6551 } else if tmpSlice, ok := v.([]interface{}); ok { 6552 t.location, err = deserializeSliceLocationIntermediateType(tmpSlice) 6553 if err != nil { 6554 return err 6555 } 6556 handled = true 6557 } else { 6558 tmp := &locationIntermediateType{} 6559 err = tmp.Deserialize(v) 6560 if err != nil { 6561 return err 6562 } 6563 t.location = []*locationIntermediateType{tmp} 6564 handled = true 6565 } 6566 } 6567 // End generation by generateNonFunctionalMultiTypeDefinition 6568 } 6569 if !handled { 6570 // Begin generation by generateNonFunctionalMultiTypeDefinition 6571 if k == "preview" { 6572 if tmpMap, ok := v.(map[string]interface{}); ok { 6573 tmp, err := deserializePreviewIntermediateType(tmpMap) 6574 if err != nil { 6575 return err 6576 } 6577 t.preview = []*previewIntermediateType{tmp} 6578 handled = true 6579 } else if tmpSlice, ok := v.([]interface{}); ok { 6580 t.preview, err = deserializeSlicePreviewIntermediateType(tmpSlice) 6581 if err != nil { 6582 return err 6583 } 6584 handled = true 6585 } else { 6586 tmp := &previewIntermediateType{} 6587 err = tmp.Deserialize(v) 6588 if err != nil { 6589 return err 6590 } 6591 t.preview = []*previewIntermediateType{tmp} 6592 handled = true 6593 } 6594 } 6595 // End generation by generateNonFunctionalMultiTypeDefinition 6596 } 6597 if !handled { 6598 // Begin generation by generateFunctionalMultiTypeDefinition 6599 if k == "published" { 6600 t.published, err = deserializePublishedIntermediateType(v) 6601 if err != nil { 6602 return err 6603 } 6604 handled = true 6605 } 6606 // End generation by generateFunctionalMultiTypeDefinition 6607 } 6608 if !handled { 6609 // Begin generation by generateFunctionalMultiTypeDefinition 6610 if k == "replies" { 6611 t.replies, err = deserializeRepliesIntermediateType(v) 6612 if err != nil { 6613 return err 6614 } 6615 handled = true 6616 } 6617 // End generation by generateFunctionalMultiTypeDefinition 6618 } 6619 if !handled { 6620 // Begin generation by generateFunctionalMultiTypeDefinition 6621 if k == "startTime" { 6622 t.startTime, err = deserializeStartTimeIntermediateType(v) 6623 if err != nil { 6624 return err 6625 } 6626 handled = true 6627 } 6628 // End generation by generateFunctionalMultiTypeDefinition 6629 } 6630 if !handled { 6631 // Begin generation by generateNonFunctionalMultiTypeDefinition 6632 if k == "summary" { 6633 if tmpMap, ok := v.(map[string]interface{}); ok { 6634 tmp, err := deserializeSummaryIntermediateType(tmpMap) 6635 if err != nil { 6636 return err 6637 } 6638 t.summary = []*summaryIntermediateType{tmp} 6639 handled = true 6640 } else if tmpSlice, ok := v.([]interface{}); ok { 6641 t.summary, err = deserializeSliceSummaryIntermediateType(tmpSlice) 6642 if err != nil { 6643 return err 6644 } 6645 handled = true 6646 } else { 6647 tmp := &summaryIntermediateType{} 6648 err = tmp.Deserialize(v) 6649 if err != nil { 6650 return err 6651 } 6652 t.summary = []*summaryIntermediateType{tmp} 6653 handled = true 6654 } 6655 } 6656 // End generation by generateNonFunctionalMultiTypeDefinition 6657 6658 // Begin generation by generateNaturalLanguageMap 6659 if k == "summaryMap" { 6660 if vMap, ok := v.(map[string]interface{}); ok { 6661 val := make(map[string]string) 6662 for k, iVal := range vMap { 6663 if sVal, ok := iVal.(string); ok { 6664 val[k] = sVal 6665 } 6666 } 6667 t.summaryMap = val 6668 handled = true 6669 } 6670 } 6671 // End generation by generateNaturalLanguageMap 6672 } 6673 if !handled { 6674 // Begin generation by generateNonFunctionalMultiTypeDefinition 6675 if k == "tag" { 6676 if tmpMap, ok := v.(map[string]interface{}); ok { 6677 tmp, err := deserializeTagIntermediateType(tmpMap) 6678 if err != nil { 6679 return err 6680 } 6681 t.tag = []*tagIntermediateType{tmp} 6682 handled = true 6683 } else if tmpSlice, ok := v.([]interface{}); ok { 6684 t.tag, err = deserializeSliceTagIntermediateType(tmpSlice) 6685 if err != nil { 6686 return err 6687 } 6688 handled = true 6689 } else { 6690 tmp := &tagIntermediateType{} 6691 err = tmp.Deserialize(v) 6692 if err != nil { 6693 return err 6694 } 6695 t.tag = []*tagIntermediateType{tmp} 6696 handled = true 6697 } 6698 } 6699 // End generation by generateNonFunctionalMultiTypeDefinition 6700 } 6701 if !handled { 6702 // Begin generation by generateNonFunctionalAnyDefinition 6703 if k == "type" { 6704 if tmpTypeSlice, ok := v.([]interface{}); ok { 6705 t.typeName = tmpTypeSlice 6706 handled = true 6707 } else { 6708 t.typeName = []interface{}{v} 6709 handled = true 6710 } 6711 } 6712 // End generation by generateNonFunctionalAnyDefinition 6713 } 6714 if !handled { 6715 // Begin generation by generateFunctionalMultiTypeDefinition 6716 if k == "updated" { 6717 t.updated, err = deserializeUpdatedIntermediateType(v) 6718 if err != nil { 6719 return err 6720 } 6721 handled = true 6722 } 6723 // End generation by generateFunctionalMultiTypeDefinition 6724 } 6725 if !handled { 6726 // Begin generation by generateNonFunctionalMultiTypeDefinition 6727 if k == "url" { 6728 if tmpMap, ok := v.(map[string]interface{}); ok { 6729 tmp, err := deserializeUrlIntermediateType(tmpMap) 6730 if err != nil { 6731 return err 6732 } 6733 t.url = []*urlIntermediateType{tmp} 6734 handled = true 6735 } else if tmpSlice, ok := v.([]interface{}); ok { 6736 t.url, err = deserializeSliceUrlIntermediateType(tmpSlice) 6737 if err != nil { 6738 return err 6739 } 6740 handled = true 6741 } else { 6742 tmp := &urlIntermediateType{} 6743 err = tmp.Deserialize(v) 6744 if err != nil { 6745 return err 6746 } 6747 t.url = []*urlIntermediateType{tmp} 6748 handled = true 6749 } 6750 } 6751 // End generation by generateNonFunctionalMultiTypeDefinition 6752 } 6753 if !handled { 6754 // Begin generation by generateNonFunctionalMultiTypeDefinition 6755 if k == "to" { 6756 if tmpMap, ok := v.(map[string]interface{}); ok { 6757 tmp, err := deserializeToIntermediateType(tmpMap) 6758 if err != nil { 6759 return err 6760 } 6761 t.to = []*toIntermediateType{tmp} 6762 handled = true 6763 } else if tmpSlice, ok := v.([]interface{}); ok { 6764 t.to, err = deserializeSliceToIntermediateType(tmpSlice) 6765 if err != nil { 6766 return err 6767 } 6768 handled = true 6769 } else { 6770 tmp := &toIntermediateType{} 6771 err = tmp.Deserialize(v) 6772 if err != nil { 6773 return err 6774 } 6775 t.to = []*toIntermediateType{tmp} 6776 handled = true 6777 } 6778 } 6779 // End generation by generateNonFunctionalMultiTypeDefinition 6780 } 6781 if !handled { 6782 // Begin generation by generateNonFunctionalMultiTypeDefinition 6783 if k == "bto" { 6784 if tmpMap, ok := v.(map[string]interface{}); ok { 6785 tmp, err := deserializeBtoIntermediateType(tmpMap) 6786 if err != nil { 6787 return err 6788 } 6789 t.bto = []*btoIntermediateType{tmp} 6790 handled = true 6791 } else if tmpSlice, ok := v.([]interface{}); ok { 6792 t.bto, err = deserializeSliceBtoIntermediateType(tmpSlice) 6793 if err != nil { 6794 return err 6795 } 6796 handled = true 6797 } else { 6798 tmp := &btoIntermediateType{} 6799 err = tmp.Deserialize(v) 6800 if err != nil { 6801 return err 6802 } 6803 t.bto = []*btoIntermediateType{tmp} 6804 handled = true 6805 } 6806 } 6807 // End generation by generateNonFunctionalMultiTypeDefinition 6808 } 6809 if !handled { 6810 // Begin generation by generateNonFunctionalMultiTypeDefinition 6811 if k == "cc" { 6812 if tmpMap, ok := v.(map[string]interface{}); ok { 6813 tmp, err := deserializeCcIntermediateType(tmpMap) 6814 if err != nil { 6815 return err 6816 } 6817 t.cc = []*ccIntermediateType{tmp} 6818 handled = true 6819 } else if tmpSlice, ok := v.([]interface{}); ok { 6820 t.cc, err = deserializeSliceCcIntermediateType(tmpSlice) 6821 if err != nil { 6822 return err 6823 } 6824 handled = true 6825 } else { 6826 tmp := &ccIntermediateType{} 6827 err = tmp.Deserialize(v) 6828 if err != nil { 6829 return err 6830 } 6831 t.cc = []*ccIntermediateType{tmp} 6832 handled = true 6833 } 6834 } 6835 // End generation by generateNonFunctionalMultiTypeDefinition 6836 } 6837 if !handled { 6838 // Begin generation by generateNonFunctionalMultiTypeDefinition 6839 if k == "bcc" { 6840 if tmpMap, ok := v.(map[string]interface{}); ok { 6841 tmp, err := deserializeBccIntermediateType(tmpMap) 6842 if err != nil { 6843 return err 6844 } 6845 t.bcc = []*bccIntermediateType{tmp} 6846 handled = true 6847 } else if tmpSlice, ok := v.([]interface{}); ok { 6848 t.bcc, err = deserializeSliceBccIntermediateType(tmpSlice) 6849 if err != nil { 6850 return err 6851 } 6852 handled = true 6853 } else { 6854 tmp := &bccIntermediateType{} 6855 err = tmp.Deserialize(v) 6856 if err != nil { 6857 return err 6858 } 6859 t.bcc = []*bccIntermediateType{tmp} 6860 handled = true 6861 } 6862 } 6863 // End generation by generateNonFunctionalMultiTypeDefinition 6864 } 6865 if !handled { 6866 // Begin generation by generateFunctionalMultiTypeDefinition 6867 if k == "mediaType" { 6868 t.mediaType, err = deserializeMediaTypeIntermediateType(v) 6869 if err != nil { 6870 return err 6871 } 6872 handled = true 6873 } 6874 // End generation by generateFunctionalMultiTypeDefinition 6875 } 6876 if !handled { 6877 // Begin generation by generateFunctionalMultiTypeDefinition 6878 if k == "duration" { 6879 t.duration, err = deserializeDurationIntermediateType(v) 6880 if err != nil { 6881 return err 6882 } 6883 handled = true 6884 } 6885 // End generation by generateFunctionalMultiTypeDefinition 6886 } 6887 if !handled { 6888 // Begin generation by generateFunctionalMultiTypeDefinition 6889 if k == "source" { 6890 t.source, err = deserializeSourceIntermediateType(v) 6891 if err != nil { 6892 return err 6893 } 6894 handled = true 6895 } 6896 // End generation by generateFunctionalMultiTypeDefinition 6897 } 6898 if !handled { 6899 // Begin generation by generateFunctionalMultiTypeDefinition 6900 if k == "inbox" { 6901 t.inbox, err = deserializeInboxIntermediateType(v) 6902 if err != nil { 6903 return err 6904 } 6905 handled = true 6906 } 6907 // End generation by generateFunctionalMultiTypeDefinition 6908 } 6909 if !handled { 6910 // Begin generation by generateFunctionalMultiTypeDefinition 6911 if k == "outbox" { 6912 t.outbox, err = deserializeOutboxIntermediateType(v) 6913 if err != nil { 6914 return err 6915 } 6916 handled = true 6917 } 6918 // End generation by generateFunctionalMultiTypeDefinition 6919 } 6920 if !handled { 6921 // Begin generation by generateFunctionalMultiTypeDefinition 6922 if k == "following" { 6923 t.following, err = deserializeFollowingIntermediateType(v) 6924 if err != nil { 6925 return err 6926 } 6927 handled = true 6928 } 6929 // End generation by generateFunctionalMultiTypeDefinition 6930 } 6931 if !handled { 6932 // Begin generation by generateFunctionalMultiTypeDefinition 6933 if k == "followers" { 6934 t.followers, err = deserializeFollowersIntermediateType(v) 6935 if err != nil { 6936 return err 6937 } 6938 handled = true 6939 } 6940 // End generation by generateFunctionalMultiTypeDefinition 6941 } 6942 if !handled { 6943 // Begin generation by generateFunctionalMultiTypeDefinition 6944 if k == "liked" { 6945 t.liked, err = deserializeLikedIntermediateType(v) 6946 if err != nil { 6947 return err 6948 } 6949 handled = true 6950 } 6951 // End generation by generateFunctionalMultiTypeDefinition 6952 } 6953 if !handled { 6954 // Begin generation by generateFunctionalMultiTypeDefinition 6955 if k == "likes" { 6956 t.likes, err = deserializeLikesIntermediateType(v) 6957 if err != nil { 6958 return err 6959 } 6960 handled = true 6961 } 6962 // End generation by generateFunctionalMultiTypeDefinition 6963 } 6964 if !handled { 6965 // Begin generation by RangeReference.Deserialize for Value 6966 if k == "streams" { 6967 if tmpSlice, ok := v.([]interface{}); ok { 6968 for _, tmpElem := range tmpSlice { 6969 if v, ok := tmpElem.(interface{}); ok { 6970 tmp, err := anyURIDeserialize(v) 6971 if err != nil { 6972 return err 6973 } 6974 t.streams = append(t.streams, tmp) 6975 handled = true 6976 } 6977 } 6978 } else if v, ok := v.(interface{}); ok { 6979 tmp, err := anyURIDeserialize(v) 6980 if err != nil { 6981 return err 6982 } 6983 t.streams = append(t.streams, tmp) 6984 handled = true 6985 } 6986 } 6987 // End generation by RangeReference.Deserialize for Value 6988 } 6989 if !handled { 6990 // Begin generation by generateFunctionalMultiTypeDefinition 6991 if k == "preferredUsername" { 6992 t.preferredUsername, err = deserializePreferredUsernameIntermediateType(v) 6993 if err != nil { 6994 return err 6995 } 6996 handled = true 6997 } 6998 // End generation by generateFunctionalMultiTypeDefinition 6999 7000 // Begin generation by generateNaturalLanguageMap 7001 if k == "preferredUsernameMap" { 7002 if vMap, ok := v.(map[string]interface{}); ok { 7003 val := make(map[string]string) 7004 for k, iVal := range vMap { 7005 if sVal, ok := iVal.(string); ok { 7006 val[k] = sVal 7007 } 7008 } 7009 t.preferredUsernameMap = val 7010 handled = true 7011 } 7012 } 7013 // End generation by generateNaturalLanguageMap 7014 } 7015 if !handled { 7016 // Begin generation by generateFunctionalMultiTypeDefinition 7017 if k == "endpoints" { 7018 t.endpoints, err = deserializeEndpointsIntermediateType(v) 7019 if err != nil { 7020 return err 7021 } 7022 handled = true 7023 } 7024 // End generation by generateFunctionalMultiTypeDefinition 7025 } 7026 if !handled { 7027 // Begin generation by RangeReference.Deserialize for Value 7028 if k == "proxyUrl" { 7029 if v, ok := v.(interface{}); ok { 7030 tmp, err := anyURIDeserialize(v) 7031 if err != nil { 7032 return err 7033 } 7034 t.proxyUrl = tmp 7035 handled = true 7036 } 7037 } 7038 // End generation by RangeReference.Deserialize for Value 7039 } 7040 if !handled { 7041 // Begin generation by RangeReference.Deserialize for Value 7042 if k == "oauthAuthorizationEndpoint" { 7043 if v, ok := v.(interface{}); ok { 7044 tmp, err := anyURIDeserialize(v) 7045 if err != nil { 7046 return err 7047 } 7048 t.oauthAuthorizationEndpoint = tmp 7049 handled = true 7050 } 7051 } 7052 // End generation by RangeReference.Deserialize for Value 7053 } 7054 if !handled { 7055 // Begin generation by RangeReference.Deserialize for Value 7056 if k == "oauthTokenEndpoint" { 7057 if v, ok := v.(interface{}); ok { 7058 tmp, err := anyURIDeserialize(v) 7059 if err != nil { 7060 return err 7061 } 7062 t.oauthTokenEndpoint = tmp 7063 handled = true 7064 } 7065 } 7066 // End generation by RangeReference.Deserialize for Value 7067 } 7068 if !handled { 7069 // Begin generation by RangeReference.Deserialize for Value 7070 if k == "provideClientKey" { 7071 if v, ok := v.(interface{}); ok { 7072 tmp, err := anyURIDeserialize(v) 7073 if err != nil { 7074 return err 7075 } 7076 t.provideClientKey = tmp 7077 handled = true 7078 } 7079 } 7080 // End generation by RangeReference.Deserialize for Value 7081 } 7082 if !handled { 7083 // Begin generation by RangeReference.Deserialize for Value 7084 if k == "signClientKey" { 7085 if v, ok := v.(interface{}); ok { 7086 tmp, err := anyURIDeserialize(v) 7087 if err != nil { 7088 return err 7089 } 7090 t.signClientKey = tmp 7091 handled = true 7092 } 7093 } 7094 // End generation by RangeReference.Deserialize for Value 7095 } 7096 if !handled { 7097 // Begin generation by RangeReference.Deserialize for Value 7098 if k == "sharedInbox" { 7099 if v, ok := v.(interface{}); ok { 7100 tmp, err := anyURIDeserialize(v) 7101 if err != nil { 7102 return err 7103 } 7104 t.sharedInbox = tmp 7105 handled = true 7106 } 7107 } 7108 // End generation by RangeReference.Deserialize for Value 7109 } 7110 if !handled { 7111 // Begin generation by generateFunctionalMultiTypeDefinition 7112 if k == "partOf" { 7113 t.partOf, err = deserializePartOfIntermediateType(v) 7114 if err != nil { 7115 return err 7116 } 7117 handled = true 7118 } 7119 // End generation by generateFunctionalMultiTypeDefinition 7120 } 7121 if !handled && k != "@context" { 7122 if t.unknown_ == nil { 7123 t.unknown_ = make(map[string]interface{}) 7124 } 7125 t.unknown_[k] = unknownValueDeserialize(v) 7126 } 7127 } 7128 return 7129 7130} 7131